From c9d167564d81f332393edc0ca93c3cf8d83f461f Mon Sep 17 00:00:00 2001 From: Fede Barcelona Date: Wed, 14 Oct 2026 09:09:07 +0200 Subject: [PATCH] fix: update base image and dependencies to remediate vulnerabilities --- .github/workflows/publish.yaml | 8 +- .github/workflows/pull-request-ci.yaml | 4 +- docker-base-aarch64.nix | 4 +- docker-base-amd64.nix | 4 +- flake.lock | 18 +- go.mod | 20 +- go.sum | 40 +- internal/infra/sysdig/client.gen.go | 63622 ++++++++++------ .../infra/sysdig/mocks/client_extension.go | 964 +- package.nix | 4 +- 10 files changed, 39587 insertions(+), 25101 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7aa1abd..17973ec 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -124,7 +124,7 @@ jobs: touch "/tmp/digests/${digest#sha256:}" - name: Upload digest - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: digests-${{ matrix.arch }} path: /tmp/digests/* @@ -142,7 +142,7 @@ jobs: REGISTRY: ghcr.io/sysdiglabs/sysdig-mcp-server steps: - name: Download digests - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: path: /tmp/digests pattern: digests-* @@ -226,7 +226,7 @@ jobs: fi - name: Upload artifact - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: binary-${{ matrix.goos }}-${{ matrix.goarch }} path: sysdig-mcp-server_${{ matrix.goos }}-${{ matrix.goarch }}.${{ matrix.ext }} @@ -268,7 +268,7 @@ jobs: run: git-chglog -c .github/git-chglog/config.yml -o RELEASE_CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1)) - name: Download binary artifacts - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: path: /tmp/binaries pattern: binary-* diff --git a/.github/workflows/pull-request-ci.yaml b/.github/workflows/pull-request-ci.yaml index b57c5c0..da4265e 100644 --- a/.github/workflows/pull-request-ci.yaml +++ b/.github/workflows/pull-request-ci.yaml @@ -139,7 +139,7 @@ jobs: touch "/tmp/digests/${digest#sha256:}" - name: Upload digest - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: name: digests-${{ matrix.arch }} path: /tmp/digests/* @@ -158,7 +158,7 @@ jobs: REGISTRY: ghcr.io/sysdiglabs/sysdig-mcp-server steps: - name: Download digests - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2 with: path: /tmp/digests pattern: digests-* diff --git a/docker-base-aarch64.nix b/docker-base-aarch64.nix index 265b9f8..8507d0d 100644 --- a/docker-base-aarch64.nix +++ b/docker-base-aarch64.nix @@ -1,7 +1,7 @@ { imageName = "quay.io/sysdig/sysdig-mini-ubi9"; - imageDigest = "sha256:79ad0756b339eda0fc30bcc629dc3bc302da0d54fd931b28c160a5238d3cf498"; - hash = "sha256-sBs68B6PAdh7ixy8UyC4yB/XnFNZjD5wAXjPwovLexM="; + imageDigest = "sha256:bdeff97241a7e97edf8e44c8ba068f99fb94e8a81f383dcf573852a62798d8e2"; + hash = "sha256-SLPF4M5bZ5k+op6pQYqmiI8+sDtV3Bbnh1nMCLsxNbM="; finalImageName = "quay.io/sysdig/sysdig-mini-ubi9"; finalImageTag = "1"; } diff --git a/docker-base-amd64.nix b/docker-base-amd64.nix index 046c49b..c0765ff 100644 --- a/docker-base-amd64.nix +++ b/docker-base-amd64.nix @@ -1,7 +1,7 @@ { imageName = "quay.io/sysdig/sysdig-mini-ubi9"; - imageDigest = "sha256:79ad0756b339eda0fc30bcc629dc3bc302da0d54fd931b28c160a5238d3cf498"; - hash = "sha256-4u0k56QVQtkTbsBelxf/Lg2MFkcTSXJSL+pYV3PqkAs="; + imageDigest = "sha256:bdeff97241a7e97edf8e44c8ba068f99fb94e8a81f383dcf573852a62798d8e2"; + hash = "sha256-be9uN0NYBjOa3IQ8oAHuJd81Loy3K8pjuif70WlnFp0="; finalImageName = "quay.io/sysdig/sysdig-mini-ubi9"; finalImageTag = "1"; } diff --git a/flake.lock b/flake.lock index cf83de2..e7cf519 100644 --- a/flake.lock +++ b/flake.lock @@ -21,11 +21,11 @@ "systems": "systems" }, "locked": { - "lastModified": 1731533236, - "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "lastModified": 1791914995, + "narHash": "sha256-Zf/xfQEAasnwnmEfHqW/4hjDE/s44yn2hD4RuVIZRjA=", "owner": "numtide", "repo": "flake-utils", - "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "rev": "b7a79d3fea1e214f6d668d521cecec0c01e26544", "type": "github" }, "original": { @@ -81,11 +81,11 @@ "nixpkgs": "nixpkgs" }, "locked": { - "lastModified": 1790226441, - "narHash": "sha256-66dvA99zBpAnE1DXPakzaq/ijeZGpE5btDS28ERvqaA=", + "lastModified": 1791867576, + "narHash": "sha256-wQxH6+i+mPMDqP5XqjJIrDbaWHNQQCCCknq2j8M5S0E=", "owner": "purpleclay", "repo": "go-overlay", - "rev": "a2d551f006480c1807624f7eb7d1928ae148b53e", + "rev": "435cb15677acf4d75161566394b2cc44462fb5ed", "type": "github" }, "original": { @@ -112,11 +112,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1790178388, - "narHash": "sha256-kK3t7gwoz4Nx8RF46cs1Xz/skKNcK7y3KYP+gGqX6W8=", + "lastModified": 1791487292, + "narHash": "sha256-tqM7xDEsaeK1p6VvRygeZ9LkQRpUUkbRT02BHv6hnTM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "00455b0a3690d3f5dc61e9aef4277dc86235b73f", + "rev": "8edc0c72e3a38faf5434e40d1f19431125fe4b30", "type": "github" }, "original": { diff --git a/go.mod b/go.mod index f583d0d..a646301 100644 --- a/go.mod +++ b/go.mod @@ -3,10 +3,10 @@ module github.com/sysdiglabs/sysdig-mcp-server go 1.27 require ( - github.com/mark3labs/mcp-go v1.1.1 + github.com/mark3labs/mcp-go v1.2.1 github.com/oapi-codegen/runtime v1.7.0 - github.com/onsi/ginkgo/v2 v2.33.0 - github.com/onsi/gomega v1.43.1 + github.com/onsi/ginkgo/v2 v2.33.1 + github.com/onsi/gomega v1.44.0 github.com/spf13/cobra v1.10.2 go.uber.org/mock v0.6.0 go.yaml.in/yaml/v3 v3.0.5 @@ -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-20260906184651-6331bc6350fe // indirect + github.com/google/pprof v0.0.0-20261012231050-2af12c3f4d87 // 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.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 + golang.org/x/mod v0.42.0 // indirect + golang.org/x/net v0.61.0 // indirect + golang.org/x/sync v0.24.0 // indirect + golang.org/x/sys v0.49.0 // indirect + golang.org/x/text v0.43.0 // indirect + golang.org/x/tools v0.52.0 // indirect ) diff --git a/go.sum b/go.sum index 41a90e4..a8b99bc 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-20260906184651-6331bc6350fe h1:QAinXoAFJdGQYztXn3VpFey7KCwpedbZ/EkzbplQ0cY= -github.com/google/pprof v0.0.0-20260906184651-6331bc6350fe/go.mod h1:jl5iWTm0/hd5PjEYEOuwAJ57L/CibdZfrqZ5XA5GrCk= +github.com/google/pprof v0.0.0-20261012231050-2af12c3f4d87 h1:P18JvwDzBYAeC8SIfnee/YJzKk1dysuN6rUwmF6CxZY= +github.com/google/pprof v0.0.0-20261012231050-2af12c3f4d87/go.mod h1:yUo1AMMpsPIDFGuwDK8nLcf8+vvAd5l2O6JDZ6hpwrM= 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 v1.1.1 h1:PMZjyayCF01Y4R2kQXgDtsmxVLOdq1Mol4CnzzTYSEo= -github.com/mark3labs/mcp-go v1.1.1/go.mod h1:r2fW4o3wsoJ7IMsx1Wuq5xeP8PRGXPDfNveoGAYbb/s= +github.com/mark3labs/mcp-go v1.2.1 h1:gd8VD3feMAVycwAM0x1nhv42Q1oLLjfOyowoUzHULB8= +github.com/mark3labs/mcp-go v1.2.1/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,10 +51,10 @@ 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.33.0 h1:C8gBA6Uc2ZEubiV+SXiu5tZnMTwEmXHgkJwGozKtZf8= -github.com/onsi/ginkgo/v2 v2.33.0/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= -github.com/onsi/gomega v1.43.1 h1:vGIPFuYrIO6/0Z09s0I0QQQgFchiX4+tb1re3MScJYo= -github.com/onsi/gomega v1.43.1/go.mod h1:e/C2HwaZ1DhvjzXXuFhcR7hY7Sh9pl7MmoWKEjzwcdA= +github.com/onsi/ginkgo/v2 v2.33.1 h1:62XfWJbEIjPSCSDYrsCPP/SHcmH7O0M8ne8zfqQ2iz4= +github.com/onsi/ginkgo/v2 v2.33.1/go.mod h1:+aXOY+vzZ5mu2iI2HpTZUPmM//oQfsNFX6gU9kNcA44= +github.com/onsi/gomega v1.44.0 h1:eAiGl3Pw5jz5GQdDff0BcxYpAX1JxW8xD7mFUuwNfZQ= +github.com/onsi/gomega v1.44.0/go.mod h1:e/C2HwaZ1DhvjzXXuFhcR7hY7Sh9pl7MmoWKEjzwcdA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= @@ -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.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= +golang.org/x/mod v0.42.0 h1:ICeL3t2L30ljSPHHxDnR4fqVcBt/zR2zJAb9juavmQg= +golang.org/x/mod v0.42.0/go.mod h1:u5fzIrRInkL8MaO1cbRkUHT64v303YIT5KEqpNr7jRs= +golang.org/x/net v0.61.0 h1:RR+6j/BTBCrggOLugxa+66R8FvoN6MHlzDlZIbN9YFw= +golang.org/x/net v0.61.0/go.mod h1:WgDCOTH8iwtB66T4/GfI94AHo/hhdb7Hah9NDseQfiI= +golang.org/x/sync v0.24.0 h1:iqiDrGoDgyuvAKrhLQthUEzU/R378N78gXbBjxed7oA= +golang.org/x/sync v0.24.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0= +golang.org/x/sys v0.49.0 h1:XbzkgYJHdqh/8m2Uu0W/dQv8nktxx4BFHp1M0gROTXA= +golang.org/x/sys v0.49.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og= +golang.org/x/text v0.43.0 h1:1QivrlhwAsnMOcqgOdl9my7s9OyZl8O5/UGUTJVXoWc= +golang.org/x/text v0.43.0/go.mod h1:hbSIYA/amXcRXTFSZqh8tWHEoqRvvbKPJ2uz/KU+a+s= +golang.org/x/tools v0.52.0 h1:ryxg4U63oaUYk7uOLTF37n43f4qgtGvqV4Ioit1BaEs= +golang.org/x/tools v0.52.0/go.mod h1:ItcP5UNaVGG+Yc4eIYmaFLNJ4soEopkx5Y2d4lcEurs= 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 d90170b..fd1ecdc 100644 --- a/internal/infra/sysdig/client.gen.go +++ b/internal/infra/sysdig/client.gen.go @@ -230,13 +230,13 @@ func (e AlertsResponseV1Status) Valid() bool { // Defines values for ApiGraphEntityDefType. const ( - Entity ApiGraphEntityDefType = "Entity" + ApiGraphEntityDefTypeEntity ApiGraphEntityDefType = "Entity" ) // Valid indicates whether the value is a known member of the ApiGraphEntityDefType enum. func (e ApiGraphEntityDefType) Valid() bool { switch e { - case Entity: + case ApiGraphEntityDefTypeEntity: return true default: return false @@ -858,6 +858,105 @@ func (e AutomationValidationErrorV1Alpha1ErrorType) Valid() bool { } } +// Defines values for AvailableFilterV2Alpha1Operators. +const ( + AvailableFilterV2Alpha1OperatorsContains AvailableFilterV2Alpha1Operators = "contains" + AvailableFilterV2Alpha1OperatorsEndsWith AvailableFilterV2Alpha1Operators = "ends_with" + AvailableFilterV2Alpha1OperatorsEq AvailableFilterV2Alpha1Operators = "eq" + AvailableFilterV2Alpha1OperatorsGt AvailableFilterV2Alpha1Operators = "gt" + AvailableFilterV2Alpha1OperatorsGte AvailableFilterV2Alpha1Operators = "gte" + AvailableFilterV2Alpha1OperatorsIn AvailableFilterV2Alpha1Operators = "in" + AvailableFilterV2Alpha1OperatorsLt AvailableFilterV2Alpha1Operators = "lt" + AvailableFilterV2Alpha1OperatorsLte AvailableFilterV2Alpha1Operators = "lte" + AvailableFilterV2Alpha1OperatorsNotEq AvailableFilterV2Alpha1Operators = "not_eq" + AvailableFilterV2Alpha1OperatorsNotIn AvailableFilterV2Alpha1Operators = "not_in" + AvailableFilterV2Alpha1OperatorsStartsWith AvailableFilterV2Alpha1Operators = "starts_with" +) + +// Valid indicates whether the value is a known member of the AvailableFilterV2Alpha1Operators enum. +func (e AvailableFilterV2Alpha1Operators) Valid() bool { + switch e { + case AvailableFilterV2Alpha1OperatorsContains: + return true + case AvailableFilterV2Alpha1OperatorsEndsWith: + return true + case AvailableFilterV2Alpha1OperatorsEq: + return true + case AvailableFilterV2Alpha1OperatorsGt: + return true + case AvailableFilterV2Alpha1OperatorsGte: + return true + case AvailableFilterV2Alpha1OperatorsIn: + return true + case AvailableFilterV2Alpha1OperatorsLt: + return true + case AvailableFilterV2Alpha1OperatorsLte: + return true + case AvailableFilterV2Alpha1OperatorsNotEq: + return true + case AvailableFilterV2Alpha1OperatorsNotIn: + return true + case AvailableFilterV2Alpha1OperatorsStartsWith: + return true + default: + return false + } +} + +// Defines values for AvailableFilterV2Alpha1Type. +const ( + AvailableFilterV2Alpha1TypeBoolean AvailableFilterV2Alpha1Type = "boolean" + AvailableFilterV2Alpha1TypeDate AvailableFilterV2Alpha1Type = "date" + AvailableFilterV2Alpha1TypeEntity AvailableFilterV2Alpha1Type = "entity" + AvailableFilterV2Alpha1TypeEnum AvailableFilterV2Alpha1Type = "enum" + AvailableFilterV2Alpha1TypeNumber AvailableFilterV2Alpha1Type = "number" + AvailableFilterV2Alpha1TypeString AvailableFilterV2Alpha1Type = "string" +) + +// Valid indicates whether the value is a known member of the AvailableFilterV2Alpha1Type enum. +func (e AvailableFilterV2Alpha1Type) Valid() bool { + switch e { + case AvailableFilterV2Alpha1TypeBoolean: + return true + case AvailableFilterV2Alpha1TypeDate: + return true + case AvailableFilterV2Alpha1TypeEntity: + return true + case AvailableFilterV2Alpha1TypeEnum: + return true + case AvailableFilterV2Alpha1TypeNumber: + return true + case AvailableFilterV2Alpha1TypeString: + return true + default: + return false + } +} + +// Defines values for AvailableFilterV2Alpha1ValueSource. +const ( + AvailableFilterV2Alpha1ValueSourceInline AvailableFilterV2Alpha1ValueSource = "inline" + AvailableFilterV2Alpha1ValueSourceNone AvailableFilterV2Alpha1ValueSource = "none" + AvailableFilterV2Alpha1ValueSourceOpen AvailableFilterV2Alpha1ValueSource = "open" + AvailableFilterV2Alpha1ValueSourceResource AvailableFilterV2Alpha1ValueSource = "resource" +) + +// Valid indicates whether the value is a known member of the AvailableFilterV2Alpha1ValueSource enum. +func (e AvailableFilterV2Alpha1ValueSource) Valid() bool { + switch e { + case AvailableFilterV2Alpha1ValueSourceInline: + return true + case AvailableFilterV2Alpha1ValueSourceNone: + return true + case AvailableFilterV2Alpha1ValueSourceOpen: + return true + case AvailableFilterV2Alpha1ValueSourceResource: + return true + default: + return false + } +} + // Defines values for BaseConnectionInfoChronicleRegion. const ( BaseConnectionInfoChronicleRegionAsiaSoutheast1 BaseConnectionInfoChronicleRegion = "asia-southeast1" @@ -1539,6 +1638,84 @@ func (e CreateRiskAcceptedRequestStages) Valid() bool { } } +// Defines values for CreateRunRequestV2Alpha1Compression. +const ( + CreateRunRequestV2Alpha1CompressionGzip CreateRunRequestV2Alpha1Compression = "gzip" + CreateRunRequestV2Alpha1CompressionZip CreateRunRequestV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the CreateRunRequestV2Alpha1Compression enum. +func (e CreateRunRequestV2Alpha1Compression) Valid() bool { + switch e { + case CreateRunRequestV2Alpha1CompressionGzip: + return true + case CreateRunRequestV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for CreateRunRequestV2Alpha1Format. +const ( + CreateRunRequestV2Alpha1FormatCsv CreateRunRequestV2Alpha1Format = "csv" + CreateRunRequestV2Alpha1FormatJson CreateRunRequestV2Alpha1Format = "json" + CreateRunRequestV2Alpha1FormatPdf CreateRunRequestV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the CreateRunRequestV2Alpha1Format enum. +func (e CreateRunRequestV2Alpha1Format) Valid() bool { + switch e { + case CreateRunRequestV2Alpha1FormatCsv: + return true + case CreateRunRequestV2Alpha1FormatJson: + return true + case CreateRunRequestV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for CreateScheduleRequestV2Alpha1Compression. +const ( + CreateScheduleRequestV2Alpha1CompressionGzip CreateScheduleRequestV2Alpha1Compression = "gzip" + CreateScheduleRequestV2Alpha1CompressionZip CreateScheduleRequestV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the CreateScheduleRequestV2Alpha1Compression enum. +func (e CreateScheduleRequestV2Alpha1Compression) Valid() bool { + switch e { + case CreateScheduleRequestV2Alpha1CompressionGzip: + return true + case CreateScheduleRequestV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for CreateScheduleRequestV2Alpha1Format. +const ( + CreateScheduleRequestV2Alpha1FormatCsv CreateScheduleRequestV2Alpha1Format = "csv" + CreateScheduleRequestV2Alpha1FormatJson CreateScheduleRequestV2Alpha1Format = "json" + CreateScheduleRequestV2Alpha1FormatPdf CreateScheduleRequestV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the CreateScheduleRequestV2Alpha1Format enum. +func (e CreateScheduleRequestV2Alpha1Format) Valid() bool { + switch e { + case CreateScheduleRequestV2Alpha1FormatCsv: + return true + case CreateScheduleRequestV2Alpha1FormatJson: + return true + case CreateScheduleRequestV2Alpha1FormatPdf: + return true + default: + return false + } +} + // Defines values for CveScoreCvss2V1Beta1Type. const ( CveScoreCvss2V1Beta1TypeN20 CveScoreCvss2V1Beta1Type = "2.0" @@ -3387,6 +3564,27 @@ func (e NotificationChannelTypeV1) Valid() bool { } } +// Defines values for NotificationChannelV2Alpha1Type. +const ( + Email NotificationChannelV2Alpha1Type = "email" + Slack NotificationChannelV2Alpha1Type = "slack" + TeamEmail NotificationChannelV2Alpha1Type = "team_email" +) + +// Valid indicates whether the value is a known member of the NotificationChannelV2Alpha1Type enum. +func (e NotificationChannelV2Alpha1Type) Valid() bool { + switch e { + case Email: + return true + case Slack: + return true + case TeamEmail: + return true + default: + return false + } +} + // Defines values for Operand. const ( OperandContains Operand = "contains" @@ -3582,6 +3780,81 @@ func (e PackageVersionContextType) Valid() bool { } } +// Defines values for PanelSummaryV2Alpha1ChartType. +const ( + PanelSummaryV2Alpha1ChartTypeGauge PanelSummaryV2Alpha1ChartType = "gauge" + PanelSummaryV2Alpha1ChartTypeNumber PanelSummaryV2Alpha1ChartType = "number" + PanelSummaryV2Alpha1ChartTypePie PanelSummaryV2Alpha1ChartType = "pie" + PanelSummaryV2Alpha1ChartTypeSankey PanelSummaryV2Alpha1ChartType = "sankey" + PanelSummaryV2Alpha1ChartTypeTable PanelSummaryV2Alpha1ChartType = "table" + PanelSummaryV2Alpha1ChartTypeText PanelSummaryV2Alpha1ChartType = "text" + PanelSummaryV2Alpha1ChartTypeTimechart PanelSummaryV2Alpha1ChartType = "timechart" + PanelSummaryV2Alpha1ChartTypeToplist PanelSummaryV2Alpha1ChartType = "toplist" +) + +// Valid indicates whether the value is a known member of the PanelSummaryV2Alpha1ChartType enum. +func (e PanelSummaryV2Alpha1ChartType) Valid() bool { + switch e { + case PanelSummaryV2Alpha1ChartTypeGauge: + return true + case PanelSummaryV2Alpha1ChartTypeNumber: + return true + case PanelSummaryV2Alpha1ChartTypePie: + return true + case PanelSummaryV2Alpha1ChartTypeSankey: + return true + case PanelSummaryV2Alpha1ChartTypeTable: + return true + case PanelSummaryV2Alpha1ChartTypeText: + return true + case PanelSummaryV2Alpha1ChartTypeTimechart: + return true + case PanelSummaryV2Alpha1ChartTypeToplist: + return true + default: + return false + } +} + +// Defines values for PatchScheduleRequestV2Alpha1Compression. +const ( + PatchScheduleRequestV2Alpha1CompressionGzip PatchScheduleRequestV2Alpha1Compression = "gzip" + PatchScheduleRequestV2Alpha1CompressionZip PatchScheduleRequestV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the PatchScheduleRequestV2Alpha1Compression enum. +func (e PatchScheduleRequestV2Alpha1Compression) Valid() bool { + switch e { + case PatchScheduleRequestV2Alpha1CompressionGzip: + return true + case PatchScheduleRequestV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for PatchScheduleRequestV2Alpha1Format. +const ( + PatchScheduleRequestV2Alpha1FormatCsv PatchScheduleRequestV2Alpha1Format = "csv" + PatchScheduleRequestV2Alpha1FormatJson PatchScheduleRequestV2Alpha1Format = "json" + PatchScheduleRequestV2Alpha1FormatPdf PatchScheduleRequestV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the PatchScheduleRequestV2Alpha1Format enum. +func (e PatchScheduleRequestV2Alpha1Format) Valid() bool { + switch e { + case PatchScheduleRequestV2Alpha1FormatCsv: + return true + case PatchScheduleRequestV2Alpha1FormatJson: + return true + case PatchScheduleRequestV2Alpha1FormatPdf: + return true + default: + return false + } +} + // Defines values for PoliciesGlobalEvaluation. const ( PoliciesGlobalEvaluationAccepted PoliciesGlobalEvaluation = "accepted" @@ -3773,22 +4046,22 @@ func (e PromqlMatcherOperator) Valid() bool { // Defines values for QueryMode. const ( - AdjacencyList QueryMode = "AdjacencyList" - Graph QueryMode = "Graph" - RootList QueryMode = "RootList" - Table QueryMode = "Table" + QueryModeAdjacencyList QueryMode = "AdjacencyList" + QueryModeGraph QueryMode = "Graph" + QueryModeRootList QueryMode = "RootList" + QueryModeTable QueryMode = "Table" ) // Valid indicates whether the value is a known member of the QueryMode enum. func (e QueryMode) Valid() bool { switch e { - case AdjacencyList: + case QueryModeAdjacencyList: return true - case Graph: + case QueryModeGraph: return true - case RootList: + case QueryModeRootList: return true - case Table: + case QueryModeTable: return true default: return false @@ -3837,6 +4110,72 @@ func (e QueryResponseV1Status) Valid() bool { } } +// Defines values for ReportFilterV2Alpha1Operator. +const ( + ReportFilterV2Alpha1OperatorContains ReportFilterV2Alpha1Operator = "contains" + ReportFilterV2Alpha1OperatorEndsWith ReportFilterV2Alpha1Operator = "ends_with" + ReportFilterV2Alpha1OperatorEq ReportFilterV2Alpha1Operator = "eq" + ReportFilterV2Alpha1OperatorGt ReportFilterV2Alpha1Operator = "gt" + ReportFilterV2Alpha1OperatorGte ReportFilterV2Alpha1Operator = "gte" + ReportFilterV2Alpha1OperatorIn ReportFilterV2Alpha1Operator = "in" + ReportFilterV2Alpha1OperatorLt ReportFilterV2Alpha1Operator = "lt" + ReportFilterV2Alpha1OperatorLte ReportFilterV2Alpha1Operator = "lte" + ReportFilterV2Alpha1OperatorNotEq ReportFilterV2Alpha1Operator = "not_eq" + ReportFilterV2Alpha1OperatorNotIn ReportFilterV2Alpha1Operator = "not_in" + ReportFilterV2Alpha1OperatorStartsWith ReportFilterV2Alpha1Operator = "starts_with" +) + +// Valid indicates whether the value is a known member of the ReportFilterV2Alpha1Operator enum. +func (e ReportFilterV2Alpha1Operator) Valid() bool { + switch e { + case ReportFilterV2Alpha1OperatorContains: + return true + case ReportFilterV2Alpha1OperatorEndsWith: + return true + case ReportFilterV2Alpha1OperatorEq: + return true + case ReportFilterV2Alpha1OperatorGt: + return true + case ReportFilterV2Alpha1OperatorGte: + return true + case ReportFilterV2Alpha1OperatorIn: + return true + case ReportFilterV2Alpha1OperatorLt: + return true + case ReportFilterV2Alpha1OperatorLte: + return true + case ReportFilterV2Alpha1OperatorNotEq: + return true + case ReportFilterV2Alpha1OperatorNotIn: + return true + case ReportFilterV2Alpha1OperatorStartsWith: + return true + default: + return false + } +} + +// Defines values for ReportResponseV2Alpha1Kind. +const ( + ReportResponseV2Alpha1KindCompliance ReportResponseV2Alpha1Kind = "compliance" + ReportResponseV2Alpha1KindPostureV2 ReportResponseV2Alpha1Kind = "posture_v2" + ReportResponseV2Alpha1KindVulnerabilityManagement ReportResponseV2Alpha1Kind = "vulnerability_management" +) + +// Valid indicates whether the value is a known member of the ReportResponseV2Alpha1Kind enum. +func (e ReportResponseV2Alpha1Kind) Valid() bool { + switch e { + case ReportResponseV2Alpha1KindCompliance: + return true + case ReportResponseV2Alpha1KindPostureV2: + return true + case ReportResponseV2Alpha1KindVulnerabilityManagement: + return true + default: + return false + } +} + // Defines values for ResourceFilterV2BaseResourceType. const ( ResourceFilterV2BaseResourceTypeAws ResourceFilterV2BaseResourceType = "aws" @@ -4197,6 +4536,309 @@ func (e RulesResponseV1Status) Valid() bool { } } +// Defines values for RunBaseV2Alpha1Compression. +const ( + RunBaseV2Alpha1CompressionGzip RunBaseV2Alpha1Compression = "gzip" + RunBaseV2Alpha1CompressionZip RunBaseV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the RunBaseV2Alpha1Compression enum. +func (e RunBaseV2Alpha1Compression) Valid() bool { + switch e { + case RunBaseV2Alpha1CompressionGzip: + return true + case RunBaseV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for RunBaseV2Alpha1Format. +const ( + RunBaseV2Alpha1FormatCsv RunBaseV2Alpha1Format = "csv" + RunBaseV2Alpha1FormatJson RunBaseV2Alpha1Format = "json" + RunBaseV2Alpha1FormatPdf RunBaseV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the RunBaseV2Alpha1Format enum. +func (e RunBaseV2Alpha1Format) Valid() bool { + switch e { + case RunBaseV2Alpha1FormatCsv: + return true + case RunBaseV2Alpha1FormatJson: + return true + case RunBaseV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for RunBaseV2Alpha1Status. +const ( + RunBaseV2Alpha1StatusCompleted RunBaseV2Alpha1Status = "completed" + RunBaseV2Alpha1StatusFailed RunBaseV2Alpha1Status = "failed" + RunBaseV2Alpha1StatusPending RunBaseV2Alpha1Status = "pending" + RunBaseV2Alpha1StatusRunning RunBaseV2Alpha1Status = "running" +) + +// Valid indicates whether the value is a known member of the RunBaseV2Alpha1Status enum. +func (e RunBaseV2Alpha1Status) Valid() bool { + switch e { + case RunBaseV2Alpha1StatusCompleted: + return true + case RunBaseV2Alpha1StatusFailed: + return true + case RunBaseV2Alpha1StatusPending: + return true + case RunBaseV2Alpha1StatusRunning: + return true + default: + return false + } +} + +// Defines values for RunCompletedV2Alpha1Compression. +const ( + RunCompletedV2Alpha1CompressionGzip RunCompletedV2Alpha1Compression = "gzip" + RunCompletedV2Alpha1CompressionZip RunCompletedV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the RunCompletedV2Alpha1Compression enum. +func (e RunCompletedV2Alpha1Compression) Valid() bool { + switch e { + case RunCompletedV2Alpha1CompressionGzip: + return true + case RunCompletedV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for RunCompletedV2Alpha1Format. +const ( + RunCompletedV2Alpha1FormatCsv RunCompletedV2Alpha1Format = "csv" + RunCompletedV2Alpha1FormatJson RunCompletedV2Alpha1Format = "json" + RunCompletedV2Alpha1FormatPdf RunCompletedV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the RunCompletedV2Alpha1Format enum. +func (e RunCompletedV2Alpha1Format) Valid() bool { + switch e { + case RunCompletedV2Alpha1FormatCsv: + return true + case RunCompletedV2Alpha1FormatJson: + return true + case RunCompletedV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for RunCompletedV2Alpha1Status. +const ( + RunCompletedV2Alpha1StatusCompleted RunCompletedV2Alpha1Status = "completed" +) + +// Valid indicates whether the value is a known member of the RunCompletedV2Alpha1Status enum. +func (e RunCompletedV2Alpha1Status) Valid() bool { + switch e { + case RunCompletedV2Alpha1StatusCompleted: + return true + default: + return false + } +} + +// Defines values for RunFailedV2Alpha1Compression. +const ( + RunFailedV2Alpha1CompressionGzip RunFailedV2Alpha1Compression = "gzip" + RunFailedV2Alpha1CompressionZip RunFailedV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the RunFailedV2Alpha1Compression enum. +func (e RunFailedV2Alpha1Compression) Valid() bool { + switch e { + case RunFailedV2Alpha1CompressionGzip: + return true + case RunFailedV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for RunFailedV2Alpha1Format. +const ( + RunFailedV2Alpha1FormatCsv RunFailedV2Alpha1Format = "csv" + RunFailedV2Alpha1FormatJson RunFailedV2Alpha1Format = "json" + RunFailedV2Alpha1FormatPdf RunFailedV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the RunFailedV2Alpha1Format enum. +func (e RunFailedV2Alpha1Format) Valid() bool { + switch e { + case RunFailedV2Alpha1FormatCsv: + return true + case RunFailedV2Alpha1FormatJson: + return true + case RunFailedV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for RunFailedV2Alpha1Status. +const ( + RunFailedV2Alpha1StatusFailed RunFailedV2Alpha1Status = "failed" +) + +// Valid indicates whether the value is a known member of the RunFailedV2Alpha1Status enum. +func (e RunFailedV2Alpha1Status) Valid() bool { + switch e { + case RunFailedV2Alpha1StatusFailed: + return true + default: + return false + } +} + +// Defines values for RunPendingV2Alpha1Compression. +const ( + RunPendingV2Alpha1CompressionGzip RunPendingV2Alpha1Compression = "gzip" + RunPendingV2Alpha1CompressionZip RunPendingV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the RunPendingV2Alpha1Compression enum. +func (e RunPendingV2Alpha1Compression) Valid() bool { + switch e { + case RunPendingV2Alpha1CompressionGzip: + return true + case RunPendingV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for RunPendingV2Alpha1Format. +const ( + RunPendingV2Alpha1FormatCsv RunPendingV2Alpha1Format = "csv" + RunPendingV2Alpha1FormatJson RunPendingV2Alpha1Format = "json" + RunPendingV2Alpha1FormatPdf RunPendingV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the RunPendingV2Alpha1Format enum. +func (e RunPendingV2Alpha1Format) Valid() bool { + switch e { + case RunPendingV2Alpha1FormatCsv: + return true + case RunPendingV2Alpha1FormatJson: + return true + case RunPendingV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for RunPendingV2Alpha1Status. +const ( + RunPendingV2Alpha1StatusPending RunPendingV2Alpha1Status = "pending" +) + +// Valid indicates whether the value is a known member of the RunPendingV2Alpha1Status enum. +func (e RunPendingV2Alpha1Status) Valid() bool { + switch e { + case RunPendingV2Alpha1StatusPending: + return true + default: + return false + } +} + +// Defines values for RunResponseV2Alpha1Status. +const ( + RunResponseV2Alpha1StatusCompleted RunResponseV2Alpha1Status = "completed" + RunResponseV2Alpha1StatusFailed RunResponseV2Alpha1Status = "failed" + RunResponseV2Alpha1StatusPending RunResponseV2Alpha1Status = "pending" + RunResponseV2Alpha1StatusRunning RunResponseV2Alpha1Status = "running" +) + +// Valid indicates whether the value is a known member of the RunResponseV2Alpha1Status enum. +func (e RunResponseV2Alpha1Status) Valid() bool { + switch e { + case RunResponseV2Alpha1StatusCompleted: + return true + case RunResponseV2Alpha1StatusFailed: + return true + case RunResponseV2Alpha1StatusPending: + return true + case RunResponseV2Alpha1StatusRunning: + return true + default: + return false + } +} + +// Defines values for RunRunningV2Alpha1Compression. +const ( + RunRunningV2Alpha1CompressionGzip RunRunningV2Alpha1Compression = "gzip" + RunRunningV2Alpha1CompressionZip RunRunningV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the RunRunningV2Alpha1Compression enum. +func (e RunRunningV2Alpha1Compression) Valid() bool { + switch e { + case RunRunningV2Alpha1CompressionGzip: + return true + case RunRunningV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for RunRunningV2Alpha1Format. +const ( + RunRunningV2Alpha1FormatCsv RunRunningV2Alpha1Format = "csv" + RunRunningV2Alpha1FormatJson RunRunningV2Alpha1Format = "json" + RunRunningV2Alpha1FormatPdf RunRunningV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the RunRunningV2Alpha1Format enum. +func (e RunRunningV2Alpha1Format) Valid() bool { + switch e { + case RunRunningV2Alpha1FormatCsv: + return true + case RunRunningV2Alpha1FormatJson: + return true + case RunRunningV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for RunRunningV2Alpha1Status. +const ( + RunRunningV2Alpha1StatusRunning RunRunningV2Alpha1Status = "running" +) + +// Valid indicates whether the value is a known member of the RunRunningV2Alpha1Status enum. +func (e RunRunningV2Alpha1Status) Valid() bool { + switch e { + case RunRunningV2Alpha1StatusRunning: + return true + default: + return false + } +} + // Defines values for SbomResultResponseBomFormat. const ( CycloneDX SbomResultResponseBomFormat = "CycloneDX" @@ -4296,6 +4938,108 @@ func (e ScanResultResponseStage) Valid() bool { } } +// Defines values for ScheduleRequestV2Alpha1Compression. +const ( + ScheduleRequestV2Alpha1CompressionGzip ScheduleRequestV2Alpha1Compression = "gzip" + ScheduleRequestV2Alpha1CompressionZip ScheduleRequestV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the ScheduleRequestV2Alpha1Compression enum. +func (e ScheduleRequestV2Alpha1Compression) Valid() bool { + switch e { + case ScheduleRequestV2Alpha1CompressionGzip: + return true + case ScheduleRequestV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for ScheduleRequestV2Alpha1Format. +const ( + ScheduleRequestV2Alpha1FormatCsv ScheduleRequestV2Alpha1Format = "csv" + ScheduleRequestV2Alpha1FormatJson ScheduleRequestV2Alpha1Format = "json" + ScheduleRequestV2Alpha1FormatPdf ScheduleRequestV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the ScheduleRequestV2Alpha1Format enum. +func (e ScheduleRequestV2Alpha1Format) Valid() bool { + switch e { + case ScheduleRequestV2Alpha1FormatCsv: + return true + case ScheduleRequestV2Alpha1FormatJson: + return true + case ScheduleRequestV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for ScheduleResponseV2Alpha1Compression. +const ( + ScheduleResponseV2Alpha1CompressionGzip ScheduleResponseV2Alpha1Compression = "gzip" + ScheduleResponseV2Alpha1CompressionZip ScheduleResponseV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the ScheduleResponseV2Alpha1Compression enum. +func (e ScheduleResponseV2Alpha1Compression) Valid() bool { + switch e { + case ScheduleResponseV2Alpha1CompressionGzip: + return true + case ScheduleResponseV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for ScheduleResponseV2Alpha1Format. +const ( + ScheduleResponseV2Alpha1FormatCsv ScheduleResponseV2Alpha1Format = "csv" + ScheduleResponseV2Alpha1FormatJson ScheduleResponseV2Alpha1Format = "json" + ScheduleResponseV2Alpha1FormatPdf ScheduleResponseV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the ScheduleResponseV2Alpha1Format enum. +func (e ScheduleResponseV2Alpha1Format) Valid() bool { + switch e { + case ScheduleResponseV2Alpha1FormatCsv: + return true + case ScheduleResponseV2Alpha1FormatJson: + return true + case ScheduleResponseV2Alpha1FormatPdf: + return true + default: + return false + } +} + +// Defines values for ScheduleResponseV2Alpha1Status. +const ( + ScheduleResponseV2Alpha1StatusActive ScheduleResponseV2Alpha1Status = "active" + ScheduleResponseV2Alpha1StatusActiveLimitedData ScheduleResponseV2Alpha1Status = "active_limited_data" + ScheduleResponseV2Alpha1StatusError ScheduleResponseV2Alpha1Status = "error" + ScheduleResponseV2Alpha1StatusInactive ScheduleResponseV2Alpha1Status = "inactive" +) + +// Valid indicates whether the value is a known member of the ScheduleResponseV2Alpha1Status enum. +func (e ScheduleResponseV2Alpha1Status) Valid() bool { + switch e { + case ScheduleResponseV2Alpha1StatusActive: + return true + case ScheduleResponseV2Alpha1StatusActiveLimitedData: + return true + case ScheduleResponseV2Alpha1StatusError: + return true + case ScheduleResponseV2Alpha1StatusInactive: + return true + default: + return false + } +} + // Defines values for ScopeTypeV1. const ( AGENT ScopeTypeV1 = "AGENT" @@ -4479,6 +5223,27 @@ func (e TeamRoleV1) Valid() bool { } } +// Defines values for TemplateV2Alpha1Kind. +const ( + TemplateV2Alpha1KindCompliance TemplateV2Alpha1Kind = "compliance" + TemplateV2Alpha1KindPostureV2 TemplateV2Alpha1Kind = "posture_v2" + TemplateV2Alpha1KindVulnerabilityManagement TemplateV2Alpha1Kind = "vulnerability_management" +) + +// Valid indicates whether the value is a known member of the TemplateV2Alpha1Kind enum. +func (e TemplateV2Alpha1Kind) Valid() bool { + switch e { + case TemplateV2Alpha1KindCompliance: + return true + case TemplateV2Alpha1KindPostureV2: + return true + case TemplateV2Alpha1KindVulnerabilityManagement: + return true + default: + return false + } +} + // Defines values for Types. const ( TypesCommands Types = "commands" @@ -4698,6 +5463,45 @@ func (e UpdateRiskAcceptedReason) Valid() bool { } } +// Defines values for UpdateScheduleRequestV2Alpha1Compression. +const ( + UpdateScheduleRequestV2Alpha1CompressionGzip UpdateScheduleRequestV2Alpha1Compression = "gzip" + UpdateScheduleRequestV2Alpha1CompressionZip UpdateScheduleRequestV2Alpha1Compression = "zip" +) + +// Valid indicates whether the value is a known member of the UpdateScheduleRequestV2Alpha1Compression enum. +func (e UpdateScheduleRequestV2Alpha1Compression) Valid() bool { + switch e { + case UpdateScheduleRequestV2Alpha1CompressionGzip: + return true + case UpdateScheduleRequestV2Alpha1CompressionZip: + return true + default: + return false + } +} + +// Defines values for UpdateScheduleRequestV2Alpha1Format. +const ( + UpdateScheduleRequestV2Alpha1FormatCsv UpdateScheduleRequestV2Alpha1Format = "csv" + UpdateScheduleRequestV2Alpha1FormatJson UpdateScheduleRequestV2Alpha1Format = "json" + UpdateScheduleRequestV2Alpha1FormatPdf UpdateScheduleRequestV2Alpha1Format = "pdf" +) + +// Valid indicates whether the value is a known member of the UpdateScheduleRequestV2Alpha1Format enum. +func (e UpdateScheduleRequestV2Alpha1Format) Valid() bool { + switch e { + case UpdateScheduleRequestV2Alpha1FormatCsv: + return true + case UpdateScheduleRequestV2Alpha1FormatJson: + return true + case UpdateScheduleRequestV2Alpha1FormatPdf: + return true + default: + return false + } +} + // Defines values for UpdateWebhookIntegrationRequestConnectionInfoAuth. const ( UpdateWebhookIntegrationRequestConnectionInfoAuthBASICAUTH UpdateWebhookIntegrationRequestConnectionInfoAuth = "BASIC_AUTH" @@ -5289,6 +6093,48 @@ func (e RoleDisplayNamePath) Valid() bool { } } +// Defines values for RunStatusQuery. +const ( + RunStatusQueryCompleted RunStatusQuery = "completed" + RunStatusQueryFailed RunStatusQuery = "failed" + RunStatusQueryPending RunStatusQuery = "pending" + RunStatusQueryRunning RunStatusQuery = "running" +) + +// Valid indicates whether the value is a known member of the RunStatusQuery enum. +func (e RunStatusQuery) Valid() bool { + switch e { + case RunStatusQueryCompleted: + return true + case RunStatusQueryFailed: + return true + case RunStatusQueryPending: + return true + case RunStatusQueryRunning: + return true + default: + return false + } +} + +// Defines values for RunTriggerQuery. +const ( + RunTriggerQueryOnDemand RunTriggerQuery = "on_demand" + RunTriggerQuerySchedule RunTriggerQuery = "schedule" +) + +// Valid indicates whether the value is a known member of the RunTriggerQuery enum. +func (e RunTriggerQuery) Valid() bool { + switch e { + case RunTriggerQueryOnDemand: + return true + case RunTriggerQuerySchedule: + return true + default: + return false + } +} + // Defines values for SsoProductIdPath. const ( SsoProductIdPathMonitor SsoProductIdPath = "monitor" @@ -5387,16 +6233,58 @@ func (e ListJobsV1ParamsStatus) Valid() bool { // Defines values for ListJobsV1ParamsKind. const ( - ComplianceReadiness ListJobsV1ParamsKind = "compliance_readiness" - VulnerabilityManagement ListJobsV1ParamsKind = "vulnerability_management" + ListJobsV1ParamsKindComplianceReadiness ListJobsV1ParamsKind = "compliance_readiness" + ListJobsV1ParamsKindVulnerabilityManagement ListJobsV1ParamsKind = "vulnerability_management" ) // Valid indicates whether the value is a known member of the ListJobsV1ParamsKind enum. func (e ListJobsV1ParamsKind) Valid() bool { switch e { - case ComplianceReadiness: + case ListJobsV1ParamsKindComplianceReadiness: return true - case VulnerabilityManagement: + case ListJobsV1ParamsKindVulnerabilityManagement: + return true + default: + return false + } +} + +// Defines values for ListRunsV2Alpha1ParamsTrigger. +const ( + ListRunsV2Alpha1ParamsTriggerOnDemand ListRunsV2Alpha1ParamsTrigger = "on_demand" + ListRunsV2Alpha1ParamsTriggerSchedule ListRunsV2Alpha1ParamsTrigger = "schedule" +) + +// Valid indicates whether the value is a known member of the ListRunsV2Alpha1ParamsTrigger enum. +func (e ListRunsV2Alpha1ParamsTrigger) Valid() bool { + switch e { + case ListRunsV2Alpha1ParamsTriggerOnDemand: + return true + case ListRunsV2Alpha1ParamsTriggerSchedule: + return true + default: + return false + } +} + +// Defines values for ListRunsV2Alpha1ParamsStatus. +const ( + ListRunsV2Alpha1ParamsStatusCompleted ListRunsV2Alpha1ParamsStatus = "completed" + ListRunsV2Alpha1ParamsStatusFailed ListRunsV2Alpha1ParamsStatus = "failed" + ListRunsV2Alpha1ParamsStatusPending ListRunsV2Alpha1ParamsStatus = "pending" + ListRunsV2Alpha1ParamsStatusRunning ListRunsV2Alpha1ParamsStatus = "running" +) + +// Valid indicates whether the value is a known member of the ListRunsV2Alpha1ParamsStatus enum. +func (e ListRunsV2Alpha1ParamsStatus) Valid() bool { + switch e { + case ListRunsV2Alpha1ParamsStatusCompleted: + return true + case ListRunsV2Alpha1ParamsStatusFailed: + return true + case ListRunsV2Alpha1ParamsStatusPending: + return true + case ListRunsV2Alpha1ParamsStatusRunning: return true default: return false @@ -7707,6 +8595,192 @@ type AutomationsPageV1Alpha1 struct { Total *int64 `json:"total,omitempty"` } +// AvailableFilterV2Alpha1 A filter a report, template, or panel supports — which filters apply and how to obtain valid values. +// Customer-scoped values are never embedded; `valueSource` tells you where to get them. +// +// Read `valueSource` first and branch on it. Do not infer the source from which of +// `values`/`valuesFrom` happens to be present. +// +// `type` tells you which field of `ReportFilter` carries the value; `operators` tells you how that +// value may be matched. Both are declared by the filter's underlying query, so neither is fixed +// across templates — read them here rather than assuming. +type AvailableFilterV2Alpha1 struct { + // DependsOn Other filter keys whose selected values constrain this filter's valid values. When present, the + // caller SHOULD resolve those filters first and scope this filter's option lookup by them — + // otherwise it may send a value that is rejected with `422`. + // + // Example: a compliance template's `policy` depends on `zone`, because only the policies attached + // to the selected zone are valid. + DependsOn *[]string `json:"dependsOn,omitempty"` + + // Description Human-readable explanation of what this filter selects, and of the unit for `number` filters + // (for example "days until the CISA-KEV due date"). Present when the underlying query declares + // one. + // + // + // Example: Severity of the vulnerability. + Description *string `json:"description,omitempty"` + + // Key Stable filter key, always `snake_case` — safe to use unescaped in a query string. + // + // A key is **stable across templates**: where a filter appears on more than one template it uses the + // same key on each, even where the underlying queries name the field differently. Some address a + // nested field internally; the key is always the published name, never the internal one — the + // CISA-KEV due-date filter is `vuln_cisa_kev_due_date` on every template that offers it. + // + // **Which keys are report-wide and which are per-panel is decided per template, not globally.** + // Each template promotes a curated set of keys to report level; everything else its panels' queries + // support stays per-panel. So the same key can be report-wide on one template and per-panel on + // another — `vuln_severity` is report-wide on the vulnerability program report and per-panel on the + // runtime container report. The two sets never overlap **within one template**: a key listed in the + // template's report-level `availableFilters` is excluded from every `panels[].availableFilters`, and + // vice versa. + // + // Treat a key as an opaque identifier: read it from the `availableFilters` of the level you intend to + // set it at, and send it back unchanged rather than constructing it or assuming its level. In + // particular it is the filter's own name, not the name of the column the report renders — the two + // differ, and only this one is accepted. + // + // + // Example: vuln_severity + Key string `json:"key"` + + // Operators Operators this filter accepts, in the order the underlying query declares them. **The first + // entry is the default** — the one applied when a `ReportFilter` for this key omits `operator`. + // + // Send only an operator listed here; anything else is rejected with `422`. The list is per-filter + // and per-template, so a key that supports `contains` on one template may not on another. + // + // * `in` / `not_in` — membership against `values`; `not_in` is the negation. + // * `eq` / `not_eq` — equality against a single `value`. On a presence filter — one with no `values` + // and only these two operators — send `value: ""` and the operator alone decides: `not_eq` matches + // records that have the field set, `eq` matches records that do not. + // * `contains` / `starts_with` / `ends_with` — substring, prefix and suffix match against a single + // string `value`, case-sensitive. Offered together, and only for `open` filters, where they are the + // only way to match high-cardinality values you cannot enumerate. + // * `lt` / `lte` / `gt` / `gte` — ordered comparison against a single `value`; offered for `date` + // and `number` filters. + Operators []AvailableFilterV2Alpha1Operators `json:"operators"` + + // Required Whether this filter is always applied. `true` means the underlying query cannot run without a + // value for it, so it can be **narrowed but never removed**: + // + // * Omit it from a create or update and the current value stays — the template's default on create, + // the report's existing value on update. + // * It survives a clear. Sending `filters: []` for a panel resets its optional filters and leaves + // the required ones at their current values; there is no request that removes one. + // * Send it like any other filter to change its value, subject to its `operators`. + // + // `false` means the filter is optional and can be omitted or cleared freely. Always present, like the + // other capability fields on this object, so a caller never has to infer it. Required filters are + // rare — most templates have none — and they are always echoed back in `filters` so a reader sees the + // full scope actually in force. + // + // + // Example: false + Required bool `json:"required"` + + // Type What kind of value this filter takes: + // + // * `entity` — a customer entity, identified by id. Pair with `valueSource: resource`. + // * `enum` — one of a fixed, customer-independent vocabulary. Pair with `valueSource: inline`, which + // lists the vocabulary in `values`. + // * `string` — free text drawn from the customer's own data: an image name, a package name, a CVE id. + // Pair with `valueSource: open`, since the set is too large to enumerate. Match it exactly with + // `eq`/`in`, or partially with `contains`/`starts_with`/`ends_with`. + // * `boolean` — a flag. + // * `date` — an instant, as an RFC 3339 string. Express a range as two filter entries on the same + // `key`, one `gte` and one `lte`. + // * `number` — a numeric quantity; the unit is stated in `description`. Whole days for window filters + // such as a CISA-KEV due-date window; fractional where the quantity is naturally fractional, such + // as a CVSS score of `7.5`. + // + // **`type` describes the value, not which field carries it.** The carrier is decided by `operator`: + // `in`/`not_in` take the `values` array, every other operator takes the scalar `value`. So the same + // `type` can use either field — `vuln_id` is a `string` matched with `in`, `container_image` is a + // `string` matched with `contains`. + // + // + // Example: enum + Type AvailableFilterV2Alpha1Type `json:"type"` + + // ValueSource Where valid values come from — the caller MUST branch on this: + // + // * `inline` — a fixed, customer-independent set, listed in `values`. Pick from that list. + // * `resource` — customer-scoped entities supplied by another API, named in `valuesFrom`. Fetch + // options from it and pass the returned ids. + // * `open` — high-cardinality values drawn from the customer's own data (container image names, + // package names, hostnames). **Not enumerable through this API**: no `values`, no `valuesFrom`. + // Send exact values you already know from your environment, or use the `contains` operator when + // it appears in `operators` to match on a substring instead. + // * `none` — the filter takes no value list; `boolean`, `date` and `number` filters use this. + // + // + // Example: inline + ValueSource AvailableFilterV2Alpha1ValueSource `json:"valueSource"` + + // Values Accepted values. Present **only** when `valueSource` is `inline`. + // + // Always lowercase `snake_case`, regardless of how the value is spelled internally — the service + // translates to the internal form (so `high` may map to an internal `High`, or to a numeric + // severity code). Send these values verbatim; do not send internal spellings or codes. + Values *[]string `json:"values,omitempty"` + + // ValuesFrom Name of the API supplying valid values, as entity ids. Present **only** when `valueSource` is + // `resource`. + // + // A free-form resource name, not a fixed enumeration: the set of names is **not exhaustive** and + // may grow in future minor versions, so treat an unrecognised name as a resource to fetch rather + // than an error. It is **not guaranteed to be a platform-wide resource collection**, and the + // returned set may be a **subset** scoped to what this report kind can actually report on — the + // same `key` may resolve against different sources for different template kinds. Always fetch from + // the name given here rather than assuming a platform endpoint. + // + // + // Example: zones + ValuesFrom *string `json:"valuesFrom,omitempty"` +} + +// AvailableFilterV2Alpha1Operators Example: in +type AvailableFilterV2Alpha1Operators string + +// AvailableFilterV2Alpha1Type What kind of value this filter takes: +// +// - `entity` — a customer entity, identified by id. Pair with `valueSource: resource`. +// - `enum` — one of a fixed, customer-independent vocabulary. Pair with `valueSource: inline`, which +// lists the vocabulary in `values`. +// - `string` — free text drawn from the customer's own data: an image name, a package name, a CVE id. +// Pair with `valueSource: open`, since the set is too large to enumerate. Match it exactly with +// `eq`/`in`, or partially with `contains`/`starts_with`/`ends_with`. +// - `boolean` — a flag. +// - `date` — an instant, as an RFC 3339 string. Express a range as two filter entries on the same +// `key`, one `gte` and one `lte`. +// - `number` — a numeric quantity; the unit is stated in `description`. Whole days for window filters +// such as a CISA-KEV due-date window; fractional where the quantity is naturally fractional, such +// as a CVSS score of `7.5`. +// +// **`type` describes the value, not which field carries it.** The carrier is decided by `operator`: +// `in`/`not_in` take the `values` array, every other operator takes the scalar `value`. So the same +// `type` can use either field — `vuln_id` is a `string` matched with `in`, `container_image` is a +// `string` matched with `contains`. +// +// Example: enum +type AvailableFilterV2Alpha1Type string + +// AvailableFilterV2Alpha1ValueSource Where valid values come from — the caller MUST branch on this: +// +// - `inline` — a fixed, customer-independent set, listed in `values`. Pick from that list. +// - `resource` — customer-scoped entities supplied by another API, named in `valuesFrom`. Fetch +// options from it and pass the returned ids. +// - `open` — high-cardinality values drawn from the customer's own data (container image names, +// package names, hostnames). **Not enumerable through this API**: no `values`, no `valuesFrom`. +// Send exact values you already know from your environment, or use the `contains` operator when +// it appears in `operators` to match on a substring instead. +// - `none` — the filter takes no value list; `boolean`, `date` and `number` filters use this. +// +// Example: inline +type AvailableFilterV2Alpha1ValueSource string + // BaseAction defines model for BaseAction. type BaseAction struct { // Type Action type. @@ -9737,6 +10811,66 @@ type CreateQradarIntegrationRequest struct { Type IntegrationType `json:"type"` } +// CreateReportRequestV2Alpha1 Create a report from a template. Optionally create a schedule in the same request (embedded +// `schedule`). Template-based only — panels/layout are never authored via the API. +type CreateReportRequestV2Alpha1 struct { + // DefaultTimeframe The report's own default reporting window, used when a run created from it does not state one. Defaults to the template's `defaultTimePreset`. + // `preset` must be one of the template's `timePresets`; any other value is rejected with `422`. + // + // Relative only, and advisory: a run may always report over a different window. Set it so that the + // report carries the period it is meant to be read over, rather than every caller having to + // remember. + DefaultTimeframe *ScheduleTimeframeV2Alpha1 `json:"defaultTimeframe,omitempty"` + + // Description Report description. + // + // Example: Weekly critical/high in prod. + Description *string `json:"description,omitempty"` + + // Filters Report-wide filters, validated against the template's report-level `availableFilters`. + // + // Each applies to **every panel whose query supports that key** — one filter here is equivalent to + // setting it on each of those panels, which is what makes the generated document internally + // consistent. Panels whose queries do not use the key are unaffected. + // + // A compliance report takes exactly one `zone` and one `policy`; any other number is rejected with `422`. + // + // Which keys are accepted here is decided by the template, not fixed across the API: some templates + // promote most of their filter surface to report level and leave their panels with none, others + // promote only `zone`. Read the template's `availableFilters` rather than assuming. Keys the template + // leaves per-panel go in `panels` instead, and the two sets never overlap. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` + + // Name Report name. Leading and trailing whitespace is trimmed; a name that is empty once trimmed is rejected. + // + // Example: Prod runtime vulns + Name string `json:"name"` + + // Panels Per-panel filters. Sparse — list only the panels you want to scope; omitted panels keep the + // template's defaults. Panels themselves are never authored via the API; this only sets filters on + // panels the template already defines. + Panels *[]PanelFilterAssignmentV2Alpha1 `json:"panels,omitempty"` + + // Schedule A schedule's settings. Embedded as-is in `POST /reports`, where the report is implicit. `POST /schedules` + // uses `CreateScheduleRequest`, which requires `reportId`; `PUT /schedules/{scheduleId}` uses + // `UpdateScheduleRequest`, which omits it. + // + // **A schedule describes only *when* and *in what form* a report is produced, never *what it covers*.** + // Scope is not part of this payload and cannot be set per schedule — to report on a different scope, create + // a second report. + // + // A schedule has **no scope of its own at all**. Every run covers the scope its report has **when the run + // fires**, so editing a report's `filters` changes what all of that report's existing schedules deliver, from + // their next run onwards — and nothing in this payload or in the schedule response reflects that change. Two + // schedules on the same report therefore always deliver the same scope as each other. + Schedule *ScheduleRequestV2Alpha1 `json:"schedule,omitempty"` + + // TemplateId Identifier (slug) of the template to create the report from. + // + // Example: runtime_container_vulnerabilities + TemplateId string `json:"templateId"` +} + // CreateRiskAcceptedRequest defines model for CreateRiskAcceptedRequest. type CreateRiskAcceptedRequest struct { // Context If entityType is not `vulnerability`, `policyRule` or `package`, you should use `Empty Matcher` in the context. The platform-scoping matchers — `assetType`, `osName`, `osNameNot`, `architecture` and `architectureNot` — are valid only with entityType `vulnerability`, and each must be the definition's only context. New matcher variants MAY be added in a minor version, so clients MUST handle an unrecognised `contextType` defensively (surface it as an opaque value and continue) rather than failing to deserialize. @@ -9791,6 +10925,243 @@ type CreateRiskAcceptedRequestReason string // CreateRiskAcceptedRequestStages Example: runtime type CreateRiskAcceptedRequestStages string +// CreateRunRequestV2Alpha1 Generate a report on demand. Scope is not part of this payload and cannot be set per run — to export a +// different scope, edit the report or create another one. The run records the report's scope **as it is at +// the moment the run is created**, and `RunResponse.filters` reports that snapshot. Set `panelId` for a per-panel +// export (CSV/JSON only). No password (password protection is a schedule-only feature).\ +// \ +// On-demand generation covers **recent history only** — see the recency limit on `timeframe`. +type CreateRunRequestV2Alpha1 struct { + // Compression Compression of the produced file. Defaults to `gzip`, which is what the Sysdig UI sends; `zip` is + // the opt-in choice, and the only one a scheduled delivery password can protect. + // + // + // Example: gzip + Compression *CreateRunRequestV2Alpha1Compression `json:"compression,omitempty"` + + // FileName Base name for the produced file. Defaults to the report's name (or the panel's name for a + // per-panel export).\ + // \ + // This is a **base name, not the final file name**. The service always appends a UTC timestamp + // and the format/compression extensions, so `fileName: "prod-runtime-vulns"` with + // `format: csv` and `compression: gzip` yields + // `prod-runtime-vulns_2026-07-28T10_05_00.000Z.csv.gz`. With `compression: zip` only the `.zip` + // extension is appended.\ + // \ + // Any path components are stripped and `:` is replaced with `_`, so the value cannot influence + // the storage location. Send a non-empty string or omit the field entirely; an empty string is + // rejected with `422`.\ + // \ + // On-demand only — a schedule's runs are always named after the report. + // + // + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` + + // Format Output format. **Not every format is valid for every report** — the permitted set is + // determined by the `kind` of the template the report was created from (see `Template.kind`):\ + // \ + // - `posture_v2` — `csv` only\ + // - `compliance` — `pdf` only\ + // - `vulnerability_management` — `csv`, `pdf` or `json`\ + // \ + // An unsupported combination is rejected with `422`.\ + // \ + // Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including + // panels that are charts rather than tables: they export each panel's underlying result rows, with + // the chart type recorded as + // metadata in the JSON form. (Sysdig's own UI offers only `pdf` for chart-bearing reports, but + // that is a presentation choice — the data export is not restricted.) + // + // + // Example: pdf + Format CreateRunRequestV2Alpha1Format `json:"format"` + + // PanelId Export only this panel — an id assigned by the reporting service, and one of the report's + // `panels[].id`. CSV/JSON only; on-demand only. + // + // Not available for every report: a report whose template has no panels (`panels: []`) cannot be + // exported per panel, and sending `panelId` for one is rejected with `422`. Check the report's + // `panels` before offering this. + // + // + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` + + // ReportId The report to generate, as assigned by the reporting service. + // + // Example: 26 + ReportId int64 `json:"reportId"` + + // Timeframe Window to report over. An absolute `startAt`/`endAt` range may span at most **31 days** + // (note: relative `preset` values cap at 30 days). Omit to use the report's `defaultTimeframe`. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` + + // Timezone IANA timezone the produced file's dates and day boundaries are rendered in. Defaults to `UTC`.\ + // \ + // This affects presentation, not selection: `timeframe` is resolved against absolute instants + // either way, so two runs of the same report over the same window in different timezones cover the + // same data and differ only in how dates are formatted and where day boundaries fall in grouped + // output. + // + // + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` +} + +// CreateRunRequestV2Alpha1Compression Compression of the produced file. Defaults to `gzip`, which is what the Sysdig UI sends; `zip` is +// the opt-in choice, and the only one a scheduled delivery password can protect. +// +// Example: gzip +type CreateRunRequestV2Alpha1Compression string + +// CreateRunRequestV2Alpha1Format Output format. **Not every format is valid for every report** — the permitted set is +// determined by the `kind` of the template the report was created from (see `Template.kind`):\ +// \ +// - `posture_v2` — `csv` only\ +// - `compliance` — `pdf` only\ +// - `vulnerability_management` — `csv`, `pdf` or `json`\ +// \ +// An unsupported combination is rejected with `422`.\ +// \ +// Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including +// panels that are charts rather than tables: they export each panel's underlying result rows, with +// the chart type recorded as +// metadata in the JSON form. (Sysdig's own UI offers only `pdf` for chart-bearing reports, but +// that is a presentation choice — the data export is not restricted.) +// +// Example: pdf +type CreateRunRequestV2Alpha1Format string + +// CreateScheduleRequestV2Alpha1 Payload for `POST /schedules`: a schedule plus the `reportId` it belongs to, which is required here. +// When a schedule is embedded in `POST /reports`, the report is implicit and `reportId` is omitted. +type CreateScheduleRequestV2Alpha1 struct { + // Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. + // On update an omitted value keeps the schedule's current compression rather than resetting it, so a + // password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot + // protect. `delivery.password` requires `zip`. + // Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request + // also removes the password — see `delivery.password`. + // + // + // Example: gzip + Compression *CreateScheduleRequestV2Alpha1Compression `json:"compression,omitempty"` + + // Cron Cron expression defining the recurrence, as **six fields** — + // `second minute hour dayOfMonth month dayOfWeek`. The common five-field form is **not** accepted and is + // rejected with `422`. + // + // Always evaluated in **UTC**, whatever `timezone` says. To fire at a local wall-clock time, convert it to + // UTC yourself before building the expression — the Sysdig UI does exactly this, which is why a schedule + // created here and one created there behave the same way. Converting means three things, and the second is + // the one that is easy to miss: + // + // 1. Convert the local time to UTC; that gives `hour` and `minute`. + // 2. **If that conversion crosses midnight, shift the day as well.** Monday 22:00 in + // `America/New_York` is *Tuesday* 02:00 UTC, so `dayOfWeek` becomes `TUE` — a schedule that converts + // only the time fires on the wrong day. + // 3. Leave a `dayOfMonth` of `28-31` alone. That is the "last day of the month" form, and it is the one + // case where `timezone` affects firing: the service uses it to decide whether today is that month's + // last day. + // + // Which `timeframe.preset` values are accepted depends on the recurrence this describes — see `timeframe`. + // + // + // Example: 0 30 6 * * MON + Cron string `json:"cron"` + + // Delivery How a scheduled report's output is delivered and protected. + // + // `isSecureDownload` and `password` are **two independent protections** and may be used separately or + // together: + // * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). + // * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. + Delivery *DeliveryV2Alpha1 `json:"delivery,omitempty"` + + // Description Optional free-text note describing what this schedule is for and who consumes it. + // + // Example: Weekly vulnerability summary for the platform team's Monday review. + Description *string `json:"description,omitempty"` + + // Enabled Whether the schedule is active. Defaults to true. + // + // Example: true + Enabled *bool `json:"enabled,omitempty"` + + // Format Output format of each generated run. **Not every format is valid for every report** — the + // permitted set is determined by the `kind` of the template the report was created from (see + // `Template.kind`):\ + // \ + // - `posture_v2` — `csv` only\ + // - `compliance` — `pdf` only\ + // - `vulnerability_management` — `csv`, `pdf` or `json`\ + // \ + // An unsupported combination is rejected with `422`.\ + // \ + // Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including + // panels that are charts rather than tables: they export each panel's underlying result rows. + // + // + // Example: pdf + Format CreateScheduleRequestV2Alpha1Format `json:"format"` + + // Name Optional schedule name (a report may have multiple named schedules). + // + // Example: Weekly + Name *string `json:"name,omitempty"` + + // ReportId The report this schedule belongs to, as assigned by the reporting service. Required for `POST /schedules`; omit when embedded in `POST /reports`. + // + // Example: 26 + ReportId int64 `json:"reportId"` + + // Timeframe Window each run reports over. Required: a schedule does not fall back to the report's + // `defaultTimeframe`, because which presets are accepted depends on `cron` (below). + // + // **Which presets are accepted depends on `cron`:** a daily recurrence takes `1d`; a weekly one `1d` or + // `7d`; a monthly one `1d`, `7d` or `30d`; any other cron is unrestricted. A `cron`/`preset` combination + // outside that is rejected with `422`, naming `/timeframe/preset`. + Timeframe ScheduleTimeframeV2Alpha1 `json:"timeframe"` + + // Timezone IANA timezone the `cron` expression was composed in — a record of the caller's intent, so a UI can + // render the schedule back as a local time. + // + // **It does not shift when the schedule fires.** `cron` is evaluated in UTC regardless, so convert a local + // wall-clock time to UTC yourself when building the expression. Its one effect on firing is for a cron + // whose day-of-month selects the end of the month (e.g. `28-31`), where it decides whether today is that + // month's last day in this zone. + // + // + // Example: America/New_York + Timezone string `json:"timezone"` +} + +// CreateScheduleRequestV2Alpha1Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. +// On update an omitted value keeps the schedule's current compression rather than resetting it, so a +// password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot +// protect. `delivery.password` requires `zip`. +// Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request +// also removes the password — see `delivery.password`. +// +// Example: gzip +type CreateScheduleRequestV2Alpha1Compression string + +// CreateScheduleRequestV2Alpha1Format Output format of each generated run. **Not every format is valid for every report** — the +// permitted set is determined by the `kind` of the template the report was created from (see +// `Template.kind`):\ +// \ +// - `posture_v2` — `csv` only\ +// - `compliance` — `pdf` only\ +// - `vulnerability_management` — `csv`, `pdf` or `json`\ +// \ +// An unsupported combination is rejected with `422`.\ +// \ +// Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including +// panels that are charts rather than tables: they export each panel's underlying result rows. +// +// Example: pdf +type CreateScheduleRequestV2Alpha1Format string + // CreateServiceAccountRequestV1 defines model for CreateServiceAccountRequestV1. type CreateServiceAccountRequestV1 struct { // ExpirationDate Time when the Service Account API key expires, | in number of milliseconds since January 1, 1970, 00:00:00 GMT @@ -10593,6 +11964,42 @@ type DefaultRoleResponseV1 struct { SecurePermissions *[]string `json:"securePermissions,omitempty"` } +// DeliveryV2Alpha1 How a scheduled report's output is delivered and protected. +// +// `isSecureDownload` and `password` are **two independent protections** and may be used separately or +// together: +// * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). +// * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. +type DeliveryV2Alpha1 struct { + // Channels Notification channels the produced file is delivered to. + Channels *[]NotificationChannelV2Alpha1 `json:"channels,omitempty"` + + // IsPasswordProtected Whether the produced file is password-protected. The password itself is never returned. + // + // + // Example: true + IsPasswordProtected *bool `json:"isPasswordProtected,omitempty"` + + // IsSecureDownload Require a Sysdig login to access the report when it is shared via a notification channel. + // Gates access to the download; it does **not** password-protect the file — use `password` for + // that. Independent of `password` and of `compression`. + // + // + // Example: true + IsSecureDownload *bool `json:"isSecureDownload,omitempty"` + + // Password Password protecting the produced file. Only available for `compression: zip`. Independent of + // `isSecureDownload`. Write-only — accepted on write, never returned; read `isPasswordProtected` to + // tell whether one is set. + // + // On update, an omitted `password` keeps the current one, even when the rest of `delivery` is + // replaced. Send a new value to change it, or `null` to remove it. + // + // + // Example: s3cr3t-p4ss + Password *string `json:"password,omitempty"` +} + // DenyCve Predicate expressing "any of these CVEs is present". type DenyCve struct { Extra struct { @@ -13175,7 +14582,7 @@ type JobResponse struct { // Example: user@sysdig.com CreatedBy string `json:"createdBy"` - // CustomerId ID of the user associated with the job. + // CustomerId ID of the customer associated with the job. // // Example: 121517 CustomerId int64 `json:"customerId"` @@ -14214,6 +15621,12 @@ type ListPoliciesResponse struct { Page PoliciesPage `json:"page"` } +// ListReportsV2Alpha1 A list of reports. +type ListReportsV2Alpha1 struct { + // Data List of reports. + Data []ReportResponseV2Alpha1 `json:"data"` +} + // ListRiskAcceptedResponse defines model for ListRiskAcceptedResponse. type ListRiskAcceptedResponse struct { // Data List of Accepted Risks @@ -14232,12 +15645,30 @@ type ListRiskAcceptedResponse struct { } `json:"page,omitempty"` } +// ListRunsV2Alpha1 A list of report runs. +type ListRunsV2Alpha1 struct { + // Data List of runs. + Data []RunResponseV2Alpha1 `json:"data"` +} + // ListSchedules defines model for ListSchedules. type ListSchedules struct { // Data List of Schedules. Data []ScheduleResponse `json:"data"` } +// ListSchedulesV2Alpha1 A list of report schedules. +type ListSchedulesV2Alpha1 struct { + // Data List of schedules. + Data []ScheduleResponseV2Alpha1 `json:"data"` +} + +// ListTemplatesV2Alpha1 A list of report templates. +type ListTemplatesV2Alpha1 struct { + // Data List of templates. + Data []TemplateV2Alpha1 `json:"data"` +} + // ListZonesResponseV1 defines model for ListZonesResponseV1. type ListZonesResponseV1 struct { Data *[]ZoneResponseV1 `json:"data,omitempty"` @@ -14533,6 +15964,27 @@ type NotificationChannelResponseV1 struct { // Example: EMAIL type NotificationChannelTypeV1 string +// NotificationChannelV2Alpha1 A notification channel a scheduled report is delivered to. +type NotificationChannelV2Alpha1 struct { + // Id Notification channel identifier, as assigned by the notification-channel service. + // + // Example: 42 + Id int64 `json:"id"` + + // Type Notification channel type, always lowercase. Send and expect these spellings verbatim; the + // service translates to the internal form, which is upper-cased. + // + // + // Example: email + Type NotificationChannelV2Alpha1Type `json:"type"` +} + +// NotificationChannelV2Alpha1Type Notification channel type, always lowercase. Send and expect these spellings verbatim; the +// service translates to the internal form, which is upper-cased. +// +// Example: email +type NotificationChannelV2Alpha1Type string + // NotificationTemplateChannelTypeV1 Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. // // Example: pager_duty @@ -14922,6 +16374,101 @@ type PaginatedIntegrationsResponseV1 struct { } `json:"page,omitempty"` } +// PanelFilterAssignmentV2Alpha1 Filters to apply to one panel of a report. +// +// Sparse — list only the panels you want to scope; panels you omit keep the defaults inherited from the +// template. +// +// Each `key` must be one of **that panel's** `availableFilters` (see the panel entries in +// `GET /templates/{templateId}` or `GET /reports/{reportId}`). An unknown key is rejected with `422`, and +// so is a key this template promotes to report level: those are set once in the report's `filters` and +// cannot be overridden per panel, because a panel contradicting the report's own scope would produce a +// document whose panels cannot be compared. If a filter you want is missing from this panel's list, check +// the report-level `availableFilters` — on many templates that is where it lives. +type PanelFilterAssignmentV2Alpha1 struct { + // Filters Filters to apply to this panel. Replaces the panel's current set rather than merging with it — an + // empty array clears the panel's **optional** filters. + // + // Filters whose `availableFilters` entry says `required: true` are exempt: they cannot be removed, so + // omitting one leaves its current value in place and an empty array does not clear it. Send one + // explicitly to change its value. Most panels have no required filters; where they exist they are + // always visible in `panels[].filters`, so a caller can see what it is keeping. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` + + // Id Panel identifier, assigned by the reporting service and returned in the template's or report's + // `panels[].id`. Must exist on the + // report being created or updated; an unknown id is rejected with `422`. + // + // + // Example: 5 + Id int64 `json:"id"` +} + +// PanelSummaryV2Alpha1 Read-only panel identity and filter scope — enough to preview a report's contents, see how each +// panel is scoped, and target per-panel export (via a run's `panelId`). Panel rendering internals are +// not exposed. +// +// **Panel filters and report filters partition a template's filter surface; they never overlap.** A +// report's `filters` carry the keys that template promotes to report level, and apply to every panel +// whose query supports them. A panel's `filters` carry the remaining keys its query supports, and apply +// to that panel alone. Which keys fall on which side is decided per template, so validate each against +// its own `availableFilters` rather than assuming a fixed split. +// +// A key is never settable at both levels on the same template. Allowing it would let one panel silently +// contradict the report's own scope and produce a document whose panels cannot be compared, so a +// report-level key sent in a panel's filters is rejected with `422`. +// +// On a **template**, `filters` are the panel's built-in defaults. On a **report**, they are what that +// report applies — set them via `panels` on the create/update request. +type PanelSummaryV2Alpha1 struct { + // AvailableFilters Filters this panel supports, derived from the panel's underlying query **minus** the keys this + // template promotes to report level. A key valid here is never valid at report level on the same + // template, and vice versa — the two lists partition the surface. + // + // Also excluded, and not settable: operands the report kind's generation path ignores, and operands + // the query resolves internally rather than from a caller-supplied value. + // + // Filters the query **always** applies are a different case and *are* listed here, marked + // `required: true` — they can be narrowed but not removed. See `required` on `AvailableFilter`. + // + // Empty is a normal and common result — it means the template exposes this panel's whole filter + // surface at report level, or the panel has no query (a text panel), or the kind's data is not + // produced by a panel query at all. + AvailableFilters *[]AvailableFilterV2Alpha1 `json:"availableFilters,omitempty"` + + // ChartType Panel chart type. + // + // Example: table + ChartType PanelSummaryV2Alpha1ChartType `json:"chartType"` + + // Filters Filters currently applied to this panel. On a template these are the panel's built-in defaults; + // on a report they are what this report applies. Every `key` is one of this panel's + // `availableFilters` — including any marked `required: true`, which always appear here because they + // are always in force. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` + + // Id Panel identifier, unique within the report/template. Assigned by the reporting service (legacy integer id, not UUIDv7). + // + // Example: 1 + Id *int64 `json:"id,omitempty"` + + // Name Panel title. **May be an empty string** — `text` panels used for prose or spacing usually have no + // title, and a few report kinds leave even their data-bearing panel untitled. Always present, never + // null. + // + // When presenting a panel list, fall back to `chartType` and `id`; do not assume a non-empty + // string. `id` is what a per-panel run targets, so an untitled panel is still addressable. + // + // + // Example: Top vulnerable images + Name string `json:"name"` +} + +// PanelSummaryV2Alpha1ChartType Panel chart type. +// +// Example: table +type PanelSummaryV2Alpha1ChartType string + // ParameterType The type of an Response Action parameter.\ // It may assume the following values:\ // * string\ @@ -14954,6 +16501,145 @@ type ParseErrorResponse struct { Type string `json:"type"` } +// PatchReportRequestV2Alpha1 JSON Merge Patch body for a report ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). Include only +// the fields you want to change; omitted fields are left as they are. `templateId` and `kind` are +// immutable and are rejected with `422`. +// +// Merge Patch replaces arrays wholesale rather than merging them element-wise, so `filters` and `panels` +// overwrite the current values entirely. Send `null` to clear a field. +type PatchReportRequestV2Alpha1 struct { + // DefaultTimeframe The report's default reporting window. `null` resets it to the template's `defaultTimePreset`. + // `preset` must be one of the template's `timePresets`; any other value is rejected with `422`. + DefaultTimeframe *ScheduleTimeframeV2Alpha1 `json:"defaultTimeframe,omitempty"` + + // Description Report description. `null` clears it. + // + // Example: Weekly critical/high in prod. + Description *string `json:"description,omitempty"` + + // Filters Report-wide filters, replacing the current set entirely. `null` clears all report-wide filters. + // Validated against the template's report-level `availableFilters`; each applies to every panel whose + // query supports the key. + // + // A compliance report takes exactly one `zone` and one `policy`; any other number is rejected with `422`. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` + + // Name Report name. Leading and trailing whitespace is trimmed; a name that is empty once trimmed is rejected. + // + // Example: Prod runtime vulns + Name *string `json:"name,omitempty"` + + // Panels Per-panel filters. Sparse — list only the panels you want to change; panels not listed keep their + // current filters. `null` is the same as listing every panel with an empty `filters`: each panel's + // optional filters are cleared, and its required filters keep their current values. + Panels *[]PanelFilterAssignmentV2Alpha1 `json:"panels,omitempty"` +} + +// PatchScheduleRequestV2Alpha1 JSON Merge Patch body for a schedule ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). Include only +// the fields you want to change; omitted fields are left as they are. `reportId` is immutable — move a +// schedule by deleting it and creating a new one. +// +// Schedules carry no `ETag`: only reports are versioned, so schedule writes are unconditional +// (last writer wins). Merge Patch replaces objects and arrays wholesale rather than merging them, so +// `delivery` and `timeframe` overwrite the current value entirely. +// +// The most common use is toggling a schedule without resending its whole definition: +// `{"enabled": false}`. +type PatchScheduleRequestV2Alpha1 struct { + // Compression Compression applied to the produced file. Omit to keep the schedule's current compression — there is + // no uncompressed state, so there is nothing to clear it to. Send `zip` or `gzip` to change it. + // Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request + // also removes the password — see `delivery.password`. + // + // + // Example: zip + Compression *PatchScheduleRequestV2Alpha1Compression `json:"compression,omitempty"` + + // Cron Cron expression for when the schedule runs, as **six fields** — + // `second minute hour dayOfMonth month dayOfWeek`. The common five-field form is **not** accepted and is + // rejected with `422`. + // + // Always evaluated in **UTC**, whatever `timezone` says. To fire at a local wall-clock time, convert it to + // UTC yourself before building the expression. Converting means three things, and the second is the one + // that is easy to miss: + // + // 1. Convert the local time to UTC; that gives `hour` and `minute`. + // 2. **If that conversion crosses midnight, shift the day as well.** Monday 22:00 in + // `America/New_York` is *Tuesday* 02:00 UTC, so `dayOfWeek` becomes `TUE` — a schedule that converts + // only the time fires on the wrong day. + // 3. Leave a `dayOfMonth` of `28-31` alone. That is the "last day of the month" form, and it is the one + // case where `timezone` affects firing: the service uses it to decide whether today is that month's + // last day. + // + // **Patching `cron` alone can invalidate the stored `timeframe`.** Which `timeframe.preset` values are + // accepted depends on the recurrence — see `timeframe` — so a change of recurrence may require patching + // `timeframe` in the same request. + // + // + // Example: 0 30 6 * * MON + Cron *string `json:"cron,omitempty"` + + // Delivery How a scheduled report's output is delivered and protected. + // + // `isSecureDownload` and `password` are **two independent protections** and may be used separately or + // together: + // * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). + // * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. + Delivery *DeliveryV2Alpha1 `json:"delivery,omitempty"` + + // Description Free-text note about this schedule. `null` clears it. + // + // Example: Weekly vulnerability summary for the platform team's Monday review. + Description *string `json:"description,omitempty"` + + // Enabled Whether the schedule runs. Set `false` to pause it without deleting it. + // + // Example: false + Enabled *bool `json:"enabled,omitempty"` + + // Format Output format of the produced file. Valid values depend on the report's `kind`. + // + // Example: pdf + Format *PatchScheduleRequestV2Alpha1Format `json:"format,omitempty"` + + // Name Schedule name. + // + // Example: Weekly prod vulns + Name *string `json:"name,omitempty"` + + // Timeframe Window each run reports over. Omit to keep the schedule's current window. + // + // Which presets are accepted depends on the recurrence `cron` describes, so patching `cron` on its + // own can leave the stored preset invalid — send both in the same request when you change the + // recurrence. + Timeframe *ScheduleTimeframeV2Alpha1 `json:"timeframe,omitempty"` + + // Timezone IANA timezone the `cron` expression was composed in — a record of the caller's intent, so a UI can + // render the schedule back as a local time. + // + // **It does not shift when the schedule fires.** `cron` is evaluated in UTC regardless, so convert a local + // wall-clock time to UTC yourself when building the expression. Its one effect on firing is for a cron + // whose day-of-month selects the end of the month (e.g. `28-31`), where it decides whether today is that + // month's last day in this zone. + // + // + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` +} + +// PatchScheduleRequestV2Alpha1Compression Compression applied to the produced file. Omit to keep the schedule's current compression — there is +// no uncompressed state, so there is nothing to clear it to. Send `zip` or `gzip` to change it. +// Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request +// also removes the password — see `delivery.password`. +// +// Example: zip +type PatchScheduleRequestV2Alpha1Compression string + +// PatchScheduleRequestV2Alpha1Format Output format of the produced file. Valid values depend on the report's `kind`. +// +// Example: pdf +type PatchScheduleRequestV2Alpha1Format string + // PermissionV1 Permission to perform an action on the Sysdig platform. type PermissionV1 struct { // Dependencies List of permissions that this permission depends on. @@ -15744,6 +17430,223 @@ type RegistryResultsResponse struct { Page *VulnerabilityManagementPage `json:"page,omitempty"` } +// ReportFilterV2Alpha1 A filter value applied to a report or to one of its panels. +// +// **Which field carries the value is decided by `operator`, not by `type`:** `in` and `not_in` take the +// `values` array, every other operator takes the scalar `value`. Sending both at once, or the one the +// operator does not use, is rejected with `422`. +// +// In practice `entity` and `enum` filters are matched with `in`/`not_in` and so use `values`; `boolean`, +// `date` and `number` are matched with scalar operators and so use `value`; and a `string` filter uses +// either — `values` with `in`, `value` with `contains`/`starts_with`/`ends_with`/`eq`. Read the filter's +// `operators` in `availableFilters` rather than inferring from `type`. +// +// `operator` selects how the value is matched and must be one of the filter's declared `operators`. +// Omit it to get that filter's default (the first entry in `operators`) — for most filters `in` for +// lists and `eq` for scalars. +// +// **A range is two entries.** To bound a `date` or `number` filter on both sides, send the same `key` +// twice, once with `gte` and once with `lte`. Repeating a key with any other pair of operators (two +// `in`s, an `eq` and a `not_eq`) is rejected with `422`. +type ReportFilterV2Alpha1 struct { + // Key The filter key, matching one of the template's `availableFilters[].key`. + // + // Example: vuln_severity + Key string `json:"key"` + + // Operator How `values`/`value` is matched. Must appear in this filter's `availableFilters[].operators`; an + // operator the filter does not declare is rejected with `422`. Omitted means the filter's default, + // which is the first entry in that list. + // + // `in`/`not_in` apply to `values`. Every other operator applies to `value`. Pairing an operator with + // the wrong field is rejected with `422`. + // + // `contains`, `starts_with` and `ends_with` are substring, prefix and suffix matches on a string + // `value`. A filter that offers one generally offers all three; matching is case-sensitive. + // + // + // Example: in + Operator *ReportFilterV2Alpha1Operator `json:"operator,omitempty"` + + // Value Selected value for any operator other than `in`/`not_in` — a single scalar rather than a list: + // + // * `boolean` — `true` matches records where the flag is set, `false` matches records where it is + // not. Both are real constraints; omit the filter to apply neither. + // * `date` — an RFC 3339 instant, matched with `lt`/`lte`/`gt`/`gte`. + // * `number` — a non-negative quantity in the unit given by the filter's `description`, matched with + // `lt`/`lte`/`gt`/`gte` or `eq`/`not_eq`. Whole days for window filters; fractional where the + // quantity is naturally fractional, such as a CVSS score of `7.5`. Send the value as a user would + // read it; where the underlying query encodes it differently the service converts. + // * a string, when matched with `contains`/`starts_with`/`ends_with` against an `open` filter. + // + // **Presence filters take an empty string.** A few filters test only whether a field is set at all and + // carry no value of their own — `vuln_cisa_kev_due_date` on the templates that expose it as a flag is + // the one to know. Send `value: ""` and let the operator carry the meaning: `not_eq` matches records + // that have the field, `eq` matches records that do not. Its `availableFilters` entry declares + // `operators: [eq, not_eq]` and no `values`, which is how you recognise one. + // + // + // Example: true + Value *ReportFilterV2Alpha1_Value `json:"value,omitempty"` + + // Values Selected values, used with `in` and `not_in`: entity ids for an `entity` filter, vocabulary + // members for an `enum` filter, or exact strings for a `string` filter. + // + // An empty array is rejected with `422` — omit the filter entirely to apply no constraint. For an + // `enum` filter send the values exactly as listed in `availableFilters[].values`. + Values *[]ReportFilterV2Alpha1_Values_Item `json:"values,omitempty"` +} + +// ReportFilterV2Alpha1Operator How `values`/`value` is matched. Must appear in this filter's `availableFilters[].operators`; an +// operator the filter does not declare is rejected with `422`. Omitted means the filter's default, +// which is the first entry in that list. +// +// `in`/`not_in` apply to `values`. Every other operator applies to `value`. Pairing an operator with +// the wrong field is rejected with `422`. +// +// `contains`, `starts_with` and `ends_with` are substring, prefix and suffix matches on a string +// `value`. A filter that offers one generally offers all three; matching is case-sensitive. +// +// Example: in +type ReportFilterV2Alpha1Operator string + +// ReportFilterV2Alpha1Value0 Example: true +type ReportFilterV2Alpha1Value0 = bool + +// ReportFilterV2Alpha1Value1 Example: 2026-09-01T00:00:00Z +type ReportFilterV2Alpha1Value1 = string + +// ReportFilterV2Alpha1Value2 Example: 7.5 +type ReportFilterV2Alpha1Value2 = float32 + +// ReportFilterV2Alpha1_Value Selected value for any operator other than `in`/`not_in` — a single scalar rather than a list: +// +// - `boolean` — `true` matches records where the flag is set, `false` matches records where it is +// not. Both are real constraints; omit the filter to apply neither. +// - `date` — an RFC 3339 instant, matched with `lt`/`lte`/`gt`/`gte`. +// - `number` — a non-negative quantity in the unit given by the filter's `description`, matched with +// `lt`/`lte`/`gt`/`gte` or `eq`/`not_eq`. Whole days for window filters; fractional where the +// quantity is naturally fractional, such as a CVSS score of `7.5`. Send the value as a user would +// read it; where the underlying query encodes it differently the service converts. +// - a string, when matched with `contains`/`starts_with`/`ends_with` against an `open` filter. +// +// **Presence filters take an empty string.** A few filters test only whether a field is set at all and +// carry no value of their own — `vuln_cisa_kev_due_date` on the templates that expose it as a flag is +// the one to know. Send `value: ""` and let the operator carry the meaning: `not_eq` matches records +// that have the field, `eq` matches records that do not. Its `availableFilters` entry declares +// `operators: [eq, not_eq]` and no `values`, which is how you recognise one. +// +// Example: true +type ReportFilterV2Alpha1_Value struct { + union json.RawMessage +} + +// ReportFilterV2Alpha1Values0 Example: high +type ReportFilterV2Alpha1Values0 = string + +// ReportFilterV2Alpha1Values1 Example: 12 +type ReportFilterV2Alpha1Values1 = int64 + +// ReportFilterV2Alpha1_Values_Item An entity id (integer) or enum value (string). +// +// Example: high +type ReportFilterV2Alpha1_Values_Item struct { + union json.RawMessage +} + +// ReportResponseV2Alpha1 A customer-owned report instance created from a template (saved filters + name). +type ReportResponseV2Alpha1 struct { + // AvailableFilters Filters this report can apply **report-wide**, inherited from its template. Present here so that + // editing a report does not require fetching the template as well; the per-panel remainder is under + // `panels[].availableFilters`, and the two lists never share a key. + // + // The contents are template-specific — do not assume a fixed set of report-level keys. + AvailableFilters *[]AvailableFilterV2Alpha1 `json:"availableFilters,omitempty"` + + // CreatedAt Timestamp when the report was created. + // + // Example: 2026-07-28T10:00:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` + + // CreatedBy Email of the user who created the report. + // + // Example: jane@acme.com + CreatedBy *string `json:"createdBy,omitempty"` + + // DefaultTimeframe The report's default reporting window, applied to runs created from it that do not state their + // own. Seeded from the template's `defaultTimePreset` when the report is created. + DefaultTimeframe *ScheduleTimeframeV2Alpha1 `json:"defaultTimeframe,omitempty"` + + // Description Report description. + // + // Example: Weekly critical/high in prod. + Description *string `json:"description,omitempty"` + + // Filters Applied **report-wide** filters (echoed back with template defaults applied). Each affects every + // panel whose query supports the key. Filters applied to a single panel are echoed under + // `panels[].filters`, and no key appears in both. + Filters []ReportFilterV2Alpha1 `json:"filters"` + + // Id Report identifier, assigned by the reporting service. Legacy integer identifier retained for + // compatibility (pre-existing-identifier exception; not UUIDv7). + // + // + // Example: 26 + Id *int64 `json:"id,omitempty"` + + // Kind Report category, derived from the template. + // + // Example: vulnerability_management + Kind *ReportResponseV2Alpha1Kind `json:"kind,omitempty"` + + // Name Report name. + // + // Example: Prod runtime vulns + Name string `json:"name"` + + // Panels Panel preview — identity, the filters each panel supports (`availableFilters`), and the filters + // this report applies to it (`filters`). A per-panel run's `panelId` must be one of these. + Panels *[]PanelSummaryV2Alpha1 `json:"panels,omitempty"` + + // ScheduleCount Count of schedules attached to this report. Fetch the schedules via `GET /schedules?reportId=`. + // + // Example: 1 + ScheduleCount *int64 `json:"scheduleCount,omitempty"` + + // ScheduleIds Identifiers of the schedules attached to this report, the same set `scheduleCount` counts. On the + // response to a `POST /reports` that embedded a `schedule`, this holds the id of the schedule that + // request created. Fetch a schedule with `GET /schedules/{scheduleId}`. + ScheduleIds *[]string `json:"scheduleIds,omitempty"` + + // TemplateId Identifier (slug) of the template this report was created from. Immutable — a report cannot be + // moved to another template. Fetch the template to see the full filter and panel catalog this + // report's own `availableFilters` are drawn from. + // + // + // Example: runtime_container_vulnerabilities + TemplateId *string `json:"templateId,omitempty"` + + // Type Resource type, derived from the template. `report` is the only value returned today. New values MAY + // be added in a future minor version — treat an unrecognised value as opaque and carry on rather than + // failing on it. + // + // Never accepted in a request body — supplying it is a `400`. + // + // + // Example: report + Type *string `json:"type,omitempty"` + + // UpdatedAt Timestamp when the report was last updated. + // + // Example: 2026-07-28T10:00:00Z + UpdatedAt *time.Time `json:"updatedAt,omitempty"` +} + +// ReportResponseV2Alpha1Kind Report category, derived from the template. +// +// Example: vulnerability_management +type ReportResponseV2Alpha1Kind string + // RequestBodyDisabledMetricsV1 Change Disabled Metrics per JobName type RequestBodyDisabledMetricsV1 struct { Data []DisableJobsAndMetricsV1 `json:"data"` @@ -16144,6 +18047,19 @@ type RoleResponseV1 struct { SecurePermissions *[]string `json:"securePermissions,omitempty"` } +// RowCountV2Alpha1 Row counts for a run, present when the run completed with limited data. +type RowCountV2Alpha1 struct { + // Included Rows actually included in the output (capped). + // + // Example: 10000 + Included *int64 `json:"included,omitempty"` + + // Total Total rows the report would have produced. + // + // Example: 12000 + Total *int64 `json:"total,omitempty"` +} + // Rule defines model for Rule. type Rule struct { // Description rule description @@ -16327,2278 +18243,2511 @@ type RulesResponseV1DataGroupsRulesType string // Example: success type RulesResponseV1Status string -// RuntimeResult Runtime result -type RuntimeResult struct { - // EndOfLifeDate The date and time when any component in the resource is no longer supported or maintained (end-of-life). Returns `null` if the value is not defined for any component. +// RunBaseV2Alpha1 Fields every run carries, whatever its `status`. Not used on its own — see `Run`. +type RunBaseV2Alpha1 struct { + // Compression Compression applied to the produced file, echoing what the run was created with. Absent when the + // run records no compression at all — every run created through this API records one, so expect this + // only on older runs. // - // Example: 2020-04-21T16:08:08.845336507Z - EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` + // Together with `format` this determines the produced file's extensions and media type, which + // `result` reports once the run has completed. + // + // + // Example: zip + Compression *RunBaseV2Alpha1Compression `json:"compression,omitempty"` - // IsRiskSpotlightEnabled Whether risk spotlight is enabled or not + // CreatedAt Timestamp when the run was created. // - // Example: true - IsRiskSpotlightEnabled *bool `json:"isRiskSpotlightEnabled,omitempty"` + // Example: 2026-07-28T10:05:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // MainAssetName Name of the scanned asset + // FileName The run's requested base name — the `fileName` sent on create, or the report/panel name when + // none was sent. **Not the name of the produced file:** the service appends a UTC timestamp and + // the format/compression extensions when it writes the file. The full name is `result.fileName`. // - // Example: nginx:latest - MainAssetName *string `json:"mainAssetName,omitempty"` + // + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` - // PolicyEvaluationResult Policy evaluation result + // Filters The report-wide filters this run used — the scope recorded on the run itself. // - // Example: passed - PolicyEvaluationResult *PolicyEvaluationResult `json:"policyEvaluationResult,omitempty"` + // This is a **snapshot**, not a live view of the report: editing the report's filters afterwards does + // not change it, so a historical run stays an accurate record of what its file contains — the only + // way to tell what scope an already-produced file covers. + // + // A run created through this API always records its report's scope at the moment of creation. A run + // created in the Sysdig UI can be **narrower** than its report, because the UI sets scope per run — + // for example a run over one zone of a report scoped to two. Read this field as the truth about this + // run, not as a copy of the report. Absent on runs created before scope snapshots were recorded. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` - // ResourceId Identifier of the scanned resource: it will be the image ID for container images or the host ID for hosts. + // FinishedAt Timestamp when the run finished (completed or failed). Present once the run has finished. // - // Example: sha256:a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6 - ResourceId *string `json:"resourceId,omitempty"` + // Example: 2026-07-28T10:05:40Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` - // ResultId Identifier of the scan result + // Format Output format. // - // Example: scan-1234 - ResultId *string `json:"resultId,omitempty"` + // Example: pdf + Format *RunBaseV2Alpha1Format `json:"format,omitempty"` - // RunningVulnTotalBySeverity total vulnerabilities by severity - RunningVulnTotalBySeverity *VulnTotalBySeverity `json:"runningVulnTotalBySeverity,omitempty"` + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). + // + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` - // SbomId Identifier of the sbom + // PanelId For a per-panel export, the panel exported (a panel id assigned by the reporting service). Omitted for a whole-report run. // - // Example: sbom-1234 - SbomId *string `json:"sbomId,omitempty"` + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` - // Scope Scope labels that define the asset + // ReportId The report this run was generated from. Legacy integer id assigned by the reporting service (not UUIDv7). // - // Example: {"asset.type":"workload","kubernetes.cluster.name":"prod-cluster-00","kubernetes.namespace.name":"foo","kubernetes.workload.name":"bar","kubernetes.workload.type":"deployment"} - Scope *Scope `json:"scope,omitempty"` + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` - // VulnTotalBySeverity total vulnerabilities by severity - VulnTotalBySeverity *VulnTotalBySeverity `json:"vulnTotalBySeverity,omitempty"` -} + // ScheduleId The schedule that produced this run. Omitted for on-demand runs. Legacy id assigned by the reporting service. + // + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + ScheduleId *string `json:"scheduleId,omitempty"` -// RuntimeResultsResponse runtime results response -type RuntimeResultsResponse struct { - Data *[]RuntimeResult `json:"data,omitempty"` + // StartedAt Timestamp when the run started executing. Present once the run has started. + // + // Example: 2026-07-28T10:05:02Z + StartedAt *time.Time `json:"startedAt,omitempty"` - // Page API paging response - Page *VulnerabilityManagementPage `json:"page,omitempty"` -} + // Status Run (job) status. See `Run.status`; each variant pins its own value. + // + // Example: completed + Status *RunBaseV2Alpha1Status `json:"status,omitempty"` -// SaveCaptureStorageConfigurationRequestV1 defines model for SaveCaptureStorageConfigurationRequestV1. -type SaveCaptureStorageConfigurationRequestV1 struct { - // Buckets The list of buckets where the captures are stored. Currently only one bucket is supported. - Buckets *[]BucketConfigurationV1 `json:"buckets,omitempty"` + // Timeframe The window this run covered, always as an absolute `startAt`/`endAt` range. A `preset` sent on + // create — or inherited from a schedule — is resolved to absolute instants when the run is created, + // so a run records the period it actually reported over rather than the relative expression that + // produced it. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` - // EncryptionKey AES-256 encryption key to be used for server-side encryption (base64 encoded). + // Timezone The IANA timezone the produced file's dates were rendered in. `UTC` when none was requested. // - // Example: 23kA/KCxPktKXLijIIt91uB+sJ652w/ES9hZ3+eWadM= - EncryptionKey *string `json:"encryptionKey,omitempty"` + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` - // IsEnabled Specifies if capture storage is enabled. + // Type Resource type, derived from the run's report. `report` is the only value returned today. New values + // MAY be added in a future minor version — treat an unrecognised value as opaque and carry on rather + // than failing on it. // - // Example: false - IsEnabled bool `json:"isEnabled"` - - // IsEncryptionWithProvidedKeyEnabled Specifies if server-side encryption with provided encryption key (SSE-C) is enabled. // - // Example: false - IsEncryptionWithProvidedKeyEnabled *bool `json:"isEncryptionWithProvidedKeyEnabled,omitempty"` + // Example: report + Type *string `json:"type,omitempty"` } -// SaveTeamUserRequestV1 defines model for SaveTeamUserRequestV1. -type SaveTeamUserRequestV1 struct { - // CustomTeamRoleId The custom team role ID assigned for the user in this team. **Mutually exclusive with standardTeamRole**. - CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` +// RunBaseV2Alpha1Compression Compression applied to the produced file, echoing what the run was created with. Absent when the +// run records no compression at all — every run created through this API records one, so expect this +// only on older runs. +// +// Together with `format` this determines the produced file's extensions and media type, which +// `result` reports once the run has completed. +// +// Example: zip +type RunBaseV2Alpha1Compression string - // StandardTeamRole The standard team role assigned for the user in this team. **Mutually exclusive with customTeamRoleId**.\ - // \ - // *ROLE_TEAM_SERVICE_MANAGER is only supported in Secure.* - StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` -} +// RunBaseV2Alpha1Format Output format. +// +// Example: pdf +type RunBaseV2Alpha1Format string -// SbomComponent defines model for SbomComponent. -type SbomComponent struct { - // BomRef An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref MUST be unique within the BOM. - // - // Example: 5581fa94-9052-4e55-8b28-750f16e183be - BomRef *string `json:"bom-ref,omitempty"` +// RunBaseV2Alpha1Status Run (job) status. See `Run.status`; each variant pins its own value. +// +// Example: completed +type RunBaseV2Alpha1Status string - // Group The grouping name or identifier. This will often be a shortened, single name of the company or project that produced the component, or the source package or domain name. Whitespace and special characters should be avoided. Examples include: apache, org.apache.commons, and apache.org. +// RunCompletedV2Alpha1 A run that produced its file. +type RunCompletedV2Alpha1 struct { + // Compression Compression applied to the produced file, echoing what the run was created with. Absent when the + // run records no compression at all — every run created through this API records one, so expect this + // only on older runs. // - // Example: com.acme - Group *string `json:"group,omitempty"` - - // Name The name of the component. This will often be a shortened, single name of the component. Examples: commons-lang3 and jquery + // Together with `format` this determines the produced file's extensions and media type, which + // `result` reports once the run has completed. // - // Example: tomcat-catalina - Name string `json:"name"` + // + // Example: zip + Compression *RunCompletedV2Alpha1Compression `json:"compression,omitempty"` - // Purl Specifies the package-url (purl). The purl, if specified, MUST be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec) + // CreatedAt Timestamp when the run was created. // - // Example: pkg:maven/com.acme/tomcat-catalina@9.0.14?packaging=jar - Purl *string `json:"purl,omitempty"` + // Example: 2026-07-28T10:05:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Type Specifies the type of component. For software components, classify as application if no more specific appropriate classification is available or cannot be determined for the component. Types include: + // FileName The run's requested base name — the `fileName` sent on create, or the report/panel name when + // none was sent. **Not the name of the produced file:** the service appends a UTC timestamp and + // the format/compression extensions when it writes the file. The full name is `result.fileName`. // - // * __application__ = A software application. Refer to [https://en.wikipedia.org/wiki/Application_software](https://en.wikipedia.org/wiki/Application_software) for information about applications. - // * __framework__ = A software framework. Refer to [https://en.wikipedia.org/wiki/Software_framework](https://en.wikipedia.org/wiki/Software_framework) for information on how frameworks vary slightly from libraries. - // * __library__ = A software library. Refer to [https://en.wikipedia.org/wiki/Library_(computing)](https://en.wikipedia.org/wiki/Library_(computing)) - // for information about libraries. All third-party and open source reusable components will likely be a library. If the library also has key features of a framework, then it should be classified as a framework. If not, or is unknown, then specifying library is RECOMMENDED. - // * __container__ = A packaging and/or runtime format, not specific to any particular technology, which isolates software inside the container from software outside of a container through virtualization technology. Refer to [https://en.wikipedia.org/wiki/OS-level_virtualization](https://en.wikipedia.org/wiki/OS-level_virtualization) - // * __platform__ = A runtime environment which interprets or executes software. This may include runtimes such as those that execute bytecode or low-code/no-code application platforms. - // * __operating-system__ = A software operating system without regard to deployment model (i.e. installed on physical hardware, virtual machine, image, etc) Refer to [https://en.wikipedia.org/wiki/Operating_system](https://en.wikipedia.org/wiki/Operating_system) - // * __device__ = A hardware device such as a processor, or chip-set. A hardware device containing firmware SHOULD include a component for the physical hardware itself, and another component of type 'firmware' or 'operating-system' (whichever is relevant), describing information about the software running on the device. - // See also the list of [known device properties](https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md). - // * __device-driver__ = A special type of software that operates or controls a particular type of device. Refer to [https://en.wikipedia.org/wiki/Device_driver](https://en.wikipedia.org/wiki/Device_driver) - // * __firmware__ = A special type of software that provides low-level control over a devices hardware. Refer to [https://en.wikipedia.org/wiki/Firmware](https://en.wikipedia.org/wiki/Firmware) - // * __file__ = A computer file. Refer to [https://en.wikipedia.org/wiki/Computer_file](https://en.wikipedia.org/wiki/Computer_file) for information about files. - // * __machine-learning-model__ = A model based on training data that can make predictions or decisions without being explicitly programmed to do so. - // * __data__ = A collection of discrete values that convey information. // - // Example: library - Type string `json:"type"` + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` - // Version The component version. The version should ideally comply with semantic versioning but is not enforced. + // Filters The report-wide filters this run used — the scope recorded on the run itself. // - // Example: 9.0.14 - Version *string `json:"version,omitempty"` -} + // This is a **snapshot**, not a live view of the report: editing the report's filters afterwards does + // not change it, so a historical run stays an accurate record of what its file contains — the only + // way to tell what scope an already-produced file covers. + // + // A run created through this API always records its report's scope at the moment of creation. A run + // created in the Sysdig UI can be **narrower** than its report, because the UI sets scope per run — + // for example a run over one zone of a report scoped to two. Read this field as the truth about this + // run, not as a copy of the report. Absent on runs created before scope snapshots were recorded. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` -// SbomResultResponse SBOM of the requested asset -type SbomResultResponse struct { - // BomFormat Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be "CycloneDX". + // FinishedAt Timestamp when the run finished (completed or failed). Present once the run has finished. // - // Example: CycloneDX - BomFormat SbomResultResponseBomFormat `json:"bomFormat"` + // Example: 2026-07-28T10:05:40Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` - // Components A list of software and hardware components. - Components *[]SbomComponent `json:"components,omitempty"` + // Format Output format. + // + // Example: pdf + Format *RunCompletedV2Alpha1Format `json:"format,omitempty"` - // Compositions Compositions describe constituent parts (including components, services, and dependency relationships) and their completeness. The completeness of vulnerabilities expressed in a BOM may also be described. - Compositions *[]struct { - // Aggregate Specifies an aggregate type that describe how complete a relationship is. - // - // * __complete__ = The relationship is complete. No further relationships including constituent components, services, or dependencies are known to exist. - // * __incomplete__ = The relationship is incomplete. Additional relationships exist and may include constituent components, services, or dependencies. - // * __incomplete_first_party_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented. - // * __incomplete_first_party_proprietary_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. - // * __incomplete_first_party_opensource_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are opensource. - // * __incomplete_third_party_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented. - // * __incomplete_third_party_proprietary_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. - // * __incomplete_third_party_opensource_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are opensource. - // * __unknown__ = The relationship may be complete or incomplete. This usually signifies a 'best-effort' to obtain constituent components, services, or dependencies but the completeness is inconclusive. - // * __not_specified__ = The relationship completeness is not specified. - // - // - // Example: complete - Aggregate SbomResultResponseCompositionsAggregate `json:"aggregate"` + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). + // + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` - // Assemblies The bom-ref identifiers of the components or services being described. Assemblies refer to nested relationships whereby a constituent part may include other constituent parts. References do not cascade to child parts. References are explicit for the specified constituent part only. - Assemblies *[]string `json:"assemblies,omitempty"` + // PanelId For a per-panel export, the panel exported (a panel id assigned by the reporting service). Omitted for a whole-report run. + // + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` - // Dependencies The bom-ref identifiers of the components or services being described. Assemblies refer to nested relationships whereby a constituent part may include other constituent parts. References do not cascade to child parts. References are explicit for the specified constituent part only. - Dependencies *[]string `json:"dependencies,omitempty"` - } `json:"compositions,omitempty"` + // ReportId The report this run was generated from. Legacy integer id assigned by the reporting service (not UUIDv7). + // + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` - // Dependencies Provides the ability to document dependency relationships. - Dependencies *[]struct { - // DependsOn The bom-ref identifiers of the components or services that are dependencies of this dependency object. - DependsOn *[]string `json:"dependsOn,omitempty"` + // Result Summary of the file a completed run produced. Present if and only if the run's `status` is `completed`; + // the file itself is fetched from the run's `resultUri`. + Result RunResultV2Alpha1 `json:"result"` - // Ref References a component or service by its bom-ref attribute - // - // Example: 5581fa94-9052-4e55-8b28-750f16e183be - Ref string `json:"ref"` - } `json:"dependencies,omitempty"` + // ResultUri Absolute URL of the produced file. Present while `status` is `completed` and the file is still + // retained (until `result.expiresAt`); absent otherwise. + // + // The URL points outside this API, at the platform's report-file endpoint. Fetch it with the same + // `Authorization` header as your API calls: the endpoint requires + // `platform.reporting.reports.read`, so the URL on its own does not grant access. It may redirect to a + // short-lived storage URL on another host; do **not** forward `Authorization` to a different host. + // + // Treat the value as opaque — follow it as given rather than building or parsing it — and do not rely + // on it after `result.expiresAt`. + // + // + // Example: https://api.us2.sysdig.com/api/platform/reporting_files/v1/secure/prod-runtime-vulns_2026-07-28T10_05_00.000Z.csv.gz?token=eyJhbGc + ResultUri *string `json:"resultUri,omitempty"` - // Metadata Provides additional information about a BOM. - Metadata *struct { - Component *SbomComponent `json:"component,omitempty"` + // ScheduleId The schedule that produced this run. Omitted for on-demand runs. Legacy id assigned by the reporting service. + // + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + ScheduleId *string `json:"scheduleId,omitempty"` - // Lifecycle The product lifecycle(s) that this BOM represents. - // - // Example: post-build - Lifecycle *SbomResultResponseMetadataLifecycle `json:"lifecycle,omitempty"` + // StartedAt Timestamp when the run started executing. Present once the run has started. + // + // Example: 2026-07-28T10:05:02Z + StartedAt *time.Time `json:"startedAt,omitempty"` - // Timestamp The date and time (timestamp) when the BOM was created. - // - // Example: 2018-03-20T09:12:28Z - Timestamp *time.Time `json:"timestamp,omitempty"` + // Status Always `completed` for this variant. + // + // Example: completed + Status *RunCompletedV2Alpha1Status `json:"status,omitempty"` - // Tools The tool(s) used in the creation of the BOM. - Tools *map[string]interface{} `json:"tools,omitempty"` - } `json:"metadata,omitempty"` + // Timeframe The window this run covered, always as an absolute `startAt`/`endAt` range. A `preset` sent on + // create — or inherited from a schedule — is resolved to absolute instants when the run is created, + // so a run records the period it actually reported over rather than the relative expression that + // produced it. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` - // SerialNumber Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number MUST conform to RFC-4122. Use of serial numbers are RECOMMENDED. + // Timezone The IANA timezone the produced file's dates were rendered in. `UTC` when none was requested. // - // Example: urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79 - SerialNumber *string `json:"serialNumber,omitempty"` + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` - // SpecVersion The version of the CycloneDX specification a BOM conforms to (starting at version 1.2). + // Type Resource type, derived from the run's report. `report` is the only value returned today. New values + // MAY be added in a future minor version — treat an unrecognised value as opaque and carry on rather + // than failing on it. // - // Example: 1.5 - SpecVersion string `json:"specVersion"` - - // Version Whenever an existing BOM is modified, either manually or through automated processes, the version of the BOM SHOULD be incremented by 1. When a system is presented with multiple BOMs with identical serial numbers, the system SHOULD use the most recent version of the BOM. The default version is '1'. // - // Example: 1 - Version *int32 `json:"version,omitempty"` + // Example: report + Type *string `json:"type,omitempty"` } -// SbomResultResponseBomFormat Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be "CycloneDX". +// RunCompletedV2Alpha1Compression Compression applied to the produced file, echoing what the run was created with. Absent when the +// run records no compression at all — every run created through this API records one, so expect this +// only on older runs. // -// Example: CycloneDX -type SbomResultResponseBomFormat string +// Together with `format` this determines the produced file's extensions and media type, which +// `result` reports once the run has completed. +// +// Example: zip +type RunCompletedV2Alpha1Compression string -// SbomResultResponseCompositionsAggregate Specifies an aggregate type that describe how complete a relationship is. +// RunCompletedV2Alpha1Format Output format. // -// * __complete__ = The relationship is complete. No further relationships including constituent components, services, or dependencies are known to exist. -// * __incomplete__ = The relationship is incomplete. Additional relationships exist and may include constituent components, services, or dependencies. -// * __incomplete_first_party_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented. -// * __incomplete_first_party_proprietary_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. -// * __incomplete_first_party_opensource_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are opensource. -// * __incomplete_third_party_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented. -// * __incomplete_third_party_proprietary_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. -// * __incomplete_third_party_opensource_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are opensource. -// * __unknown__ = The relationship may be complete or incomplete. This usually signifies a 'best-effort' to obtain constituent components, services, or dependencies but the completeness is inconclusive. -// * __not_specified__ = The relationship completeness is not specified. +// Example: pdf +type RunCompletedV2Alpha1Format string + +// RunCompletedV2Alpha1Status Always `completed` for this variant. // -// Example: complete -type SbomResultResponseCompositionsAggregate string +// Example: completed +type RunCompletedV2Alpha1Status string -// SbomResultResponseMetadataLifecycle The product lifecycle(s) that this BOM represents. +// RunErrorV2Alpha1 Why a run failed. Present if and only if the run's `status` is `failed`. // -// Example: post-build -type SbomResultResponseMetadataLifecycle string +// Same `type`, `message` and `details` as the API's error body, without `requestId`: a run is not tied to +// a single request, and the run's own `id` is the key to quote when reporting the failure. +type RunErrorV2Alpha1 struct { + // Details Further details of the failure, when available. + Details *[]struct { + // Message Detail message. + // + // Example: Panel 3 exceeded 300s + Message string `json:"message"` + } `json:"details,omitempty"` -// ScanResultResponse defines model for ScanResultResponse. -type ScanResultResponse struct { - // AssetType scan result asset type + // Message Human-readable description of the failure. // - // Example: containerImage - AssetType ScanResultResponseAssetType `json:"assetType"` + // Example: Query timed out + Message *string `json:"message,omitempty"` - // BaseImages Example: {"a3ee5e6b4b0d3255bf":{"pullStrings":["alpine:latest"]}} - BaseImages *map[string]BaseImage `json:"baseImages,omitempty"` + // Type Machine-readable failure category, so a client can decide whether retrying makes sense — for example + // `timeout` or `internal` may succeed on retry, while `permission_denied` or `invalid_request` will + // not. New values MAY be added in a future minor version: treat an unrecognised value as opaque. + // + // + // Example: timeout + Type *string `json:"type,omitempty"` +} - // Layers Example: {"f95aa9ae66563e7e808b":{"baseImagesRef":["a3ee5e6b4b0d3255bf"],"command":"COPY docker-entrypoint.sh","digest":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","size":50}} - Layers *map[string]Layer `json:"layers,omitempty"` +// RunFailedV2Alpha1 A run that ended without producing a file. +type RunFailedV2Alpha1 struct { + // Compression Compression applied to the produced file, echoing what the run was created with. Absent when the + // run records no compression at all — every run created through this API records one, so expect this + // only on older runs. + // + // Together with `format` this determines the produced file's extensions and media type, which + // `result` reports once the run has completed. + // + // + // Example: zip + Compression *RunFailedV2Alpha1Compression `json:"compression,omitempty"` - // Metadata metadata of the scan result - Metadata ScanResultResponse_Metadata `json:"metadata"` + // CreatedAt Timestamp when the run was created. + // + // Example: 2026-07-28T10:05:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // 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"` + // Error Why a run failed. Present if and only if the run's `status` is `failed`. + // + // Same `type`, `message` and `details` as the API's error body, without `requestId`: a run is not tied to + // a single request, and the run's own `id` is the key to quote when reporting the failure. + Error RunErrorV2Alpha1 `json:"error"` - // RiskAccepts Example: {"e6b4b0d3255bfef":{"context":[{"type":"imageName","value":"nginx:latest"}],"createdAt":"2024-01-22T08:51:46.016464Z","description":"description","entityType":"imageName","entityValue":"nginx:latest","expirationDate":"2021-07-01","id":"550e8400-e29b","reason":"RiskMitigated","status":"active","updatedAt":"2024-01-22T08:51:46.016464Z"}} - RiskAccepts *map[string]RiskAcceptanceDefinition `json:"riskAccepts,omitempty"` + // FileName The run's requested base name — the `fileName` sent on create, or the report/panel name when + // none was sent. **Not the name of the produced file:** the service appends a UTC timestamp and + // the format/compression extensions when it writes the file. The full name is `result.fileName`. + // + // + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` - // Stage scan result stage + // Filters The report-wide filters this run used — the scope recorded on the run itself. // - // Example: pipeline - Stage ScanResultResponseStage `json:"stage"` + // This is a **snapshot**, not a live view of the report: editing the report's filters afterwards does + // not change it, so a historical run stays an accurate record of what its file contains — the only + // way to tell what scope an already-produced file covers. + // + // A run created through this API always records its report's scope at the moment of creation. A run + // created in the Sysdig UI can be **narrower** than its report, because the UI sets scope per run — + // for example a run over one zone of a report scoped to two. Read this field as the truth about this + // run, not as a copy of the report. Absent on runs created before scope snapshots were recorded. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` - // Vulnerabilities Example: {"71af37c6a8f2772":{"cisaKev":{"dueDate":"2023-10-31","knownRansomwareCampaignUse":"false","publishDate":"2023-12-06"},"cvssScore":{"score":1,"vector":"AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"disclosureDate":"2021-01-02","exploit":{"links":["https://sysdig.com/exploits/12345"],"publicationDate":"2024-01-22T08:51:46.00Z"},"exploitable":true,"firstSeen":"2021-01-02","fixVersion":"1.2.3","mainProvider":"vulndb","name":"CVE-2021-1234","packageRef":"2772f8a6c73fa17","providersMetadata":{"nvd":{}},"riskAcceptRefs":["e6b4b0d3255bfef"],"severity":"high","solutionDate":"2021-01-02"}} - Vulnerabilities *map[string]Vulnerability `json:"vulnerabilities,omitempty"` -} + // FinishedAt Timestamp when the run finished (completed or failed). Present once the run has finished. + // + // Example: 2026-07-28T10:05:40Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` -// ScanResultResponseAssetType scan result asset type -// -// Example: containerImage -type ScanResultResponseAssetType string + // Format Output format. + // + // Example: pdf + Format *RunFailedV2Alpha1Format `json:"format,omitempty"` -// ScanResultResponse_Metadata metadata of the scan result -type ScanResultResponse_Metadata struct { - union json.RawMessage -} + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). + // + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` -// ScanResultResponseStage scan result stage -// -// Example: pipeline -type ScanResultResponseStage string + // PanelId For a per-panel export, the panel exported (a panel id assigned by the reporting service). Omitted for a whole-report run. + // + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` -// ScheduleResponse Schema for a scheduled report -type ScheduleResponse struct { - // Compression Compression format + // ReportId The report this run was generated from. Legacy integer id assigned by the reporting service (not UUIDv7). // - // Example: zip - Compression *string `json:"compression,omitempty"` + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` - // CreatedBy Email of the user who created the schedule + // ScheduleId The schedule that produced this run. Omitted for on-demand runs. Legacy id assigned by the reporting service. // - // Example: user@sysdig.com - CreatedBy string `json:"createdBy"` + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + ScheduleId *string `json:"scheduleId,omitempty"` - // CreatedOn Timestamp when the schedule was created + // StartedAt Timestamp when the run started executing. Present once the run has started. // - // Example: 2024-11-21T20:29:01.415528Z - CreatedOn time.Time `json:"createdOn"` + // Example: 2026-07-28T10:05:02Z + StartedAt *time.Time `json:"startedAt,omitempty"` - // CustomerId ID of the customer associated with the schedule + // Status Always `failed` for this variant. // - // Example: 121517 - CustomerId int64 `json:"customerId"` + // Example: failed + Status *RunFailedV2Alpha1Status `json:"status,omitempty"` - // Description Description of the schedule - // - // Example: - Description *string `json:"description,omitempty"` + // Timeframe The window this run covered, always as an absolute `startAt`/`endAt` range. A `preset` sent on + // create — or inherited from a schedule — is resolved to absolute instants when the run is created, + // so a run records the period it actually reported over rather than the relative expression that + // produced it. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` - // Enabled Indicates if the schedule is enabled + // Timezone The IANA timezone the produced file's dates were rendered in. `UTC` when none was requested. // - // Example: true - Enabled bool `json:"enabled"` + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` - // Id Unique identifier for the schedule + // Type Resource type, derived from the run's report. `report` is the only value returned today. New values + // MAY be added in a future minor version — treat an unrecognised value as opaque and carry on rather + // than failing on it. // - // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS - Id string `json:"id"` - - // IsReportTemplate Indicates if the report is a template // - // Example: true - IsReportTemplate bool `json:"isReportTemplate"` + // Example: report + Type *string `json:"type,omitempty"` +} - // LastCompletedOn Timestamp when the schedule was last completed - // - // Example: 2024-12-10T06:30:36.194531Z - LastCompletedOn *time.Time `json:"lastCompletedOn,omitempty"` +// RunFailedV2Alpha1Compression Compression applied to the produced file, echoing what the run was created with. Absent when the +// run records no compression at all — every run created through this API records one, so expect this +// only on older runs. +// +// Together with `format` this determines the produced file's extensions and media type, which +// `result` reports once the run has completed. +// +// Example: zip +type RunFailedV2Alpha1Compression string - // LastScheduledOn Timestamp when the schedule was last run +// RunFailedV2Alpha1Format Output format. +// +// Example: pdf +type RunFailedV2Alpha1Format string + +// RunFailedV2Alpha1Status Always `failed` for this variant. +// +// Example: failed +type RunFailedV2Alpha1Status string + +// RunPendingV2Alpha1 A run that is queued and has not started. +type RunPendingV2Alpha1 struct { + // Compression Compression applied to the produced file, echoing what the run was created with. Absent when the + // run records no compression at all — every run created through this API records one, so expect this + // only on older runs. // - // Example: 2024-12-10T06:30:05.472079Z - LastScheduledOn *time.Time `json:"lastScheduledOn,omitempty"` + // Together with `format` this determines the produced file's extensions and media type, which + // `result` reports once the run has completed. + // + // + // Example: zip + Compression *RunPendingV2Alpha1Compression `json:"compression,omitempty"` - // LastStartedOn Timestamp when the schedule was last started + // CreatedAt Timestamp when the run was created. // - // Example: 2024-12-10T06:30:05.472079Z - LastStartedOn *time.Time `json:"lastStartedOn,omitempty"` + // Example: 2026-07-28T10:05:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // ModifiedOn Timestamp when the schedule was last modified + // FileName The run's requested base name — the `fileName` sent on create, or the report/panel name when + // none was sent. **Not the name of the produced file:** the service appends a UTC timestamp and + // the format/compression extensions when it writes the file. The full name is `result.fileName`. // - // Example: 2024-11-22T04:40:17.3083Z - ModifiedOn *time.Time `json:"modifiedOn,omitempty"` + // + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` - // Name Name of the schedule + // Filters The report-wide filters this run used — the scope recorded on the run itself. // - // Example: test schedule password 1 - Name *string `json:"name,omitempty"` + // This is a **snapshot**, not a live view of the report: editing the report's filters afterwards does + // not change it, so a historical run stays an accurate record of what its file contains — the only + // way to tell what scope an already-produced file covers. + // + // A run created through this API always records its report's scope at the moment of creation. A run + // created in the Sysdig UI can be **narrower** than its report, because the UI sets scope per run — + // for example a run over one zone of a report scoped to two. Read this field as the truth about this + // run, not as a copy of the report. Absent on runs created before scope snapshots were recorded. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` - // NotificationChannels List of notification channels - NotificationChannels *[]NotificationChannel `json:"notificationChannels,omitempty"` + // FinishedAt Timestamp when the run finished (completed or failed). Present once the run has finished. + // + // Example: 2026-07-28T10:05:40Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` - // PasswordEnabled Indicates if password protection is enabled + // Format Output format. // - // Example: true - PasswordEnabled *bool `json:"passwordEnabled,omitempty"` + // Example: pdf + Format *RunPendingV2Alpha1Format `json:"format,omitempty"` - // Policies List of policy IDs - Policies *[]int64 `json:"policies,omitempty"` + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). + // + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` - // ReportFormat Format of the report + // PanelId For a per-panel export, the panel exported (a panel id assigned by the reporting service). Omitted for a whole-report run. // - // Example: pdf - ReportFormat string `json:"reportFormat"` + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` - // ReportId ID of the report + // ReportId The report this run was generated from. Legacy integer id assigned by the reporting service (not UUIDv7). // // Example: 26 - ReportId int64 `json:"reportId"` + ReportId *int64 `json:"reportId,omitempty"` - // ReportName Name of the report + // ScheduleId The schedule that produced this run. Omitted for on-demand runs. Legacy id assigned by the reporting service. // - // Example: Compliance Readiness Report - ReportName *string `json:"reportName,omitempty"` + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + ScheduleId *string `json:"scheduleId,omitempty"` - // Schedule Cron expression for the schedule + // StartedAt Timestamp when the run started executing. Present once the run has started. // - // Example: 00 30 06 * * * - Schedule string `json:"schedule"` + // Example: 2026-07-28T10:05:02Z + StartedAt *time.Time `json:"startedAt,omitempty"` - // TeamId ID of the team associated with the schedule + // Status Always `pending` for this variant. // - // Example: 2074112 - TeamId int64 `json:"teamId"` + // Example: pending + Status *RunPendingV2Alpha1Status `json:"status,omitempty"` - // Timezone Timezone for the schedule + // Timeframe The window this run covered, always as an absolute `startAt`/`endAt` range. A `preset` sent on + // create — or inherited from a schedule — is resolved to absolute instants when the run is created, + // so a run records the period it actually reported over rather than the relative expression that + // produced it. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` + + // Timezone The IANA timezone the produced file's dates were rendered in. `UTC` when none was requested. // - // Example: America/Chicago + // Example: America/New_York Timezone *string `json:"timezone,omitempty"` - // UpdatedBy Email of the user who last updated the schedule + // Type Resource type, derived from the run's report. `report` is the only value returned today. New values + // MAY be added in a future minor version — treat an unrecognised value as opaque and carry on rather + // than failing on it. // - // Example: user@sysdig.com - UpdatedBy *string `json:"updatedBy,omitempty"` - - // UserId ID of the user who created the schedule // - // Example: 2678526 - UserId int64 `json:"userId"` - - // Zones List of zone IDs - Zones []int64 `json:"zones"` + // Example: report + Type *string `json:"type,omitempty"` } -// Scope Scope labels that define the asset +// RunPendingV2Alpha1Compression Compression applied to the produced file, echoing what the run was created with. Absent when the +// run records no compression at all — every run created through this API records one, so expect this +// only on older runs. // -// Example: {"asset.type":"workload","kubernetes.cluster.name":"prod-cluster-00","kubernetes.namespace.name":"foo","kubernetes.workload.name":"bar","kubernetes.workload.type":"deployment"} -type Scope = map[string]interface{} +// Together with `format` this determines the produced file's extensions and media type, which +// `result` reports once the run has completed. +// +// Example: zip +type RunPendingV2Alpha1Compression string -// ScopeTypeV1 Example: PROMETHEUS_REMOTE_WRITE -type ScopeTypeV1 string +// RunPendingV2Alpha1Format Output format. +// +// Example: pdf +type RunPendingV2Alpha1Format string -// ScopeV1 defines model for ScopeV1. -type ScopeV1 struct { - // Expression Example: kubernetes.cluster.name in ("test-env") - Expression string `json:"expression"` +// RunPendingV2Alpha1Status Always `pending` for this variant. +// +// Example: pending +type RunPendingV2Alpha1Status string - // Type Example: PROMETHEUS_REMOTE_WRITE - Type ScopeTypeV1 `json:"type"` +// RunResponseV2Alpha1 A single report generation run (on-demand or produced by a schedule). Report generation is asynchronous: +// the run is a job, and `status` selects which fields it carries — `result`/`resultUri` once it has +// completed, `error` once it has failed. +type RunResponseV2Alpha1 struct { + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). + // + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` + + // Status Run (job) status, which selects the variant: `pending` and `running` while the file is being + // produced, then `completed` (with `result`) or `failed` (with `error`). `completed` covers a truncated + // result too — inspect `result.hasLimitedData` and `result.rowCount` to detect a capped run. + // + // There is no `cancelled` state and no `DELETE` on this resource: once a run is created it cannot be + // stopped, only waited out. + // + // + // Example: completed + Status RunResponseV2Alpha1Status `json:"status"` + union json.RawMessage } -// SecurePolicyId Policy ID +// RunResponseV2Alpha1Status Run (job) status, which selects the variant: `pending` and `running` while the file is being +// produced, then `completed` (with `result`) or `failed` (with `error`). `completed` covers a truncated +// result too — inspect `result.hasLimitedData` and `result.rowCount` to detect a capped run. // -// Example: 123456 -type SecurePolicyId = int64 - -// Sequence The sequence of events that occurred to trigger the event. -// The sequence is represented as a list of events, where each event is a map of key-value pairs. -type Sequence = []SequenceEvent +// There is no `cancelled` state and no `DELETE` on this resource: once a run is created it cannot be +// stopped, only waited out. +// +// Example: completed +type RunResponseV2Alpha1Status string -// SequenceEvent One of the events that occurred to trigger the stateful detection event. -type SequenceEvent struct { - // EventId The unique identifier of the log event. +// RunResultV2Alpha1 Summary of the file a completed run produced. Present if and only if the run's `status` is `completed`; +// the file itself is fetched from the run's `resultUri`. +type RunResultV2Alpha1 struct { + // ContentType Media type of the downloaded bytes. A compressed file is served as the archive type — + // `application/gzip` or `application/zip` — not as the inner format with a `Content-Encoding`, so a + // client saves the bytes as they arrive rather than having them decompressed in transit. // - // Example: 9aca10ca-481a-4ab7-b8fa-929c1ebf4c18 - EventId string `json:"eventId"` - - // EventName The name of the event. // - // Example: CreateUser - EventName string `json:"eventName"` + // Example: application/gzip + ContentType *string `json:"contentType,omitempty"` - // EventTime The time when the event occurred. + // ExpiresAt When the produced file stops being retained. After this instant the run no longer carries a + // `resultUri`, and a previously read one stops working. // - // Example: 2024-08-11T23:48:40Z - EventTime time.Time `json:"eventTime"` - - // IngestionId The unique identifier of the ingestion. // - // Example: 41157131027 - IngestionId string `json:"ingestionId"` + // Example: 2026-08-04T10:05:40Z + ExpiresAt *time.Time `json:"expiresAt,omitempty"` - // Region The region where the event occurred. + // FileName Name of the produced file, as sent in the download's `Content-Disposition`: the run's base name plus + // a UTC timestamp and the format and compression extensions. // - // Example: us-east-1 - Region string `json:"region"` - - // Source The source of the event. // - // Example: aws - Source string `json:"source"` + // Example: prod-runtime-vulns_2026-07-28T10_05_00.000Z.csv.gz + FileName *string `json:"fileName,omitempty"` - // SourceIpAddress The IP address of the source. + // HasLimitedData True when the output was truncated by the row limit; `rowCount` then states by how much. // - // Example: 1.1.1.1 - SourceIpAddress string `json:"sourceIpAddress"` + // Example: false + HasLimitedData *bool `json:"hasLimitedData,omitempty"` - // SubIngestionId The unique identifier of the sub ingestion. - // - // Example: us-east-1 - SubIngestionId string `json:"subIngestionId"` + // RowCount Row counts for a run, present when the run completed with limited data. + RowCount *RowCountV2Alpha1 `json:"rowCount,omitempty"` } -// SeriesResponseV1 defines model for SeriesResponseV1. -type SeriesResponseV1 struct { - // Data List of matching time series, each represented as a set of labels. +// RunRunningV2Alpha1 A run that is executing. +type RunRunningV2Alpha1 struct { + // Compression Compression applied to the produced file, echoing what the run was created with. Absent when the + // run records no compression at all — every run created through this API records one, so expect this + // only on older runs. // - // Example: [{"__name__":"up","instance":"localhost:9090","job":"prometheus"},{"__name__":"process_start_time_seconds","instance":"localhost:9090","job":"prometheus"}] - Data *[]map[string]interface{} `json:"data,omitempty"` - - // Infos A set of information messages attached to the response. Omitted when empty. + // Together with `format` this determines the produced file's extensions and media type, which + // `result` reports once the run has completed. // - // Example: [] - Infos *[]string `json:"infos,omitempty"` - - // Status Query status. // - // Example: success - Status *SeriesResponseV1Status `json:"status,omitempty"` + // Example: zip + Compression *RunRunningV2Alpha1Compression `json:"compression,omitempty"` - // Warnings A set of warning messages attached to the response. Omitted when empty. + // CreatedAt Timestamp when the run was created. // - // Example: [] - Warnings *[]string `json:"warnings,omitempty"` -} - -// SeriesResponseV1Status Query status. -// -// Example: success -type SeriesResponseV1Status string + // Example: 2026-07-28T10:05:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` -// ServerlessMetadata defines model for ServerlessMetadata. -type ServerlessMetadata struct { - // ArtifactsCount Number of artifacts (dependencies, libraries, packages) that compose the function + // FileName The run's requested base name — the `fileName` sent on create, or the report/panel name when + // none was sent. **Not the name of the produced file:** the service appends a UTC timestamp and + // the format/compression extensions when it writes the file. The full name is `result.fileName`. // - // Example: 0 - ArtifactsCount int32 `json:"artifactsCount"` - - // CreatedAt datetime of creation // - // Example: 2024-01-22T08:51:46.016464Z - CreatedAt CreatedAt `json:"createdAt"` + // Example: prod-runtime-vulns + FileName *string `json:"fileName,omitempty"` - // FuncId Unique identifier of the serverless function (e.g., AWS Lambda ARN, Azure Function ID) + // Filters The report-wide filters this run used — the scope recorded on the run itself. // - // Example: arn:aws:lambda:us-east-2:845151661675:function:test_delay_cloudwatch:$LATEST - FuncId string `json:"funcId"` - - // FuncName Name of the serverless function + // This is a **snapshot**, not a live view of the report: editing the report's filters afterwards does + // not change it, so a historical run stays an accurate record of what its file contains — the only + // way to tell what scope an already-produced file covers. // - // Example: my_test_function - FuncName string `json:"funcName"` + // A run created through this API always records its report's scope at the moment of creation. A run + // created in the Sysdig UI can be **narrower** than its report, because the UI sets scope per run — + // for example a run over one zone of a report scoped to two. Read this field as the truth about this + // run, not as a copy of the report. Absent on runs created before scope snapshots were recorded. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` - // Revision Version or revision identifier of the function deployment + // FinishedAt Timestamp when the run finished (completed or failed). Present once the run has finished. // - // Example: c837f302-0d56-4f43-8c91-e592c5449c4e - Revision string `json:"revision"` + // Example: 2026-07-28T10:05:40Z + FinishedAt *time.Time `json:"finishedAt,omitempty"` - // Type Type of serverless metadata + // Format Output format. // - // Example: runtime-based - Type *string `json:"type,omitempty"` -} + // Example: pdf + Format *RunRunningV2Alpha1Format `json:"format,omitempty"` -// ServiceAccountResponseV1 defines model for ServiceAccountResponseV1. -type ServiceAccountResponseV1 struct { - // DateCreated Date and time when the Service Account was created. + // Id Run identifier, assigned by the reporting service (legacy identifier format retained for compatibility; not UUIDv7). // - // Example: 2024-08-23T17:32:28Z - DateCreated *time.Time `json:"dateCreated,omitempty"` + // Example: 2feo8FR30cAOiYFPfT4cKGtOUnd + Id *string `json:"id,omitempty"` - // ExpirationDate Date and time when the Service Account API key expires. + // PanelId For a per-panel export, the panel exported (a panel id assigned by the reporting service). Omitted for a whole-report run. // - // Example: 2024-06-15T17:32:28Z - ExpirationDate *time.Time `json:"expirationDate,omitempty"` + // Example: 1 + PanelId *int64 `json:"panelId,omitempty"` - // Id + // ReportId The report this run was generated from. Legacy integer id assigned by the reporting service (not UUIDv7). // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` - // LastUpdated Date and time when the Service Account was last updated. + // ScheduleId The schedule that produced this run. Omitted for on-demand runs. Legacy id assigned by the reporting service. // - // Example: 2024-04-11T17:32:28Z - LastUpdated *time.Time `json:"lastUpdated,omitempty"` + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + ScheduleId *string `json:"scheduleId,omitempty"` - // LastUsed Date and time when the Service Account API key was last used. + // StartedAt Timestamp when the run started executing. Present once the run has started. // - // Example: 2024-06-15T17:32:28Z - LastUsed *time.Time `json:"lastUsed,omitempty"` + // Example: 2026-07-28T10:05:02Z + StartedAt *time.Time `json:"startedAt,omitempty"` - // Name Service Account display name. + // Status Always `running` for this variant. // - // Example: CI/CD service api key - Name *string `json:"name,omitempty"` + // Example: running + Status *RunRunningV2Alpha1Status `json:"status,omitempty"` - // SystemRoles Array of System roles assigned to the global service account. - SystemRoles *[]string `json:"systemRoles,omitempty"` + // Timeframe The window this run covered, always as an absolute `startAt`/`endAt` range. A `preset` sent on + // create — or inherited from a schedule — is resolved to absolute instants when the run is created, + // so a run records the period it actually reported over rather than the relative expression that + // produced it. + Timeframe *TimeframeV2Alpha1 `json:"timeframe,omitempty"` - // TeamId Team ID associated with the service account. - TeamId *UnlimitedLong `json:"teamId,omitempty"` + // Timezone The IANA timezone the produced file's dates were rendered in. `UTC` when none was requested. + // + // Example: America/New_York + Timezone *string `json:"timezone,omitempty"` - // TeamRole The predefined team role for a Service Account, or an ID of a custom role. + // Type Resource type, derived from the run's report. `report` is the only value returned today. New values + // MAY be added in a future minor version — treat an unrecognised value as opaque and carry on rather + // than failing on it. // - // Example: ROLE_TEAM_STANDARD - TeamRole *string `json:"teamRole,omitempty"` + // + // Example: report + Type *string `json:"type,omitempty"` } -// ServiceAccountWithKeyResponseV1 defines model for ServiceAccountWithKeyResponseV1. -type ServiceAccountWithKeyResponseV1 struct { - // ApiKey Service Account API key - // - // Example: 123ab45c-d67e-89fg-0hij-1k23456l7890-n1MO - ApiKey *string `json:"apiKey,omitempty"` +// RunRunningV2Alpha1Compression Compression applied to the produced file, echoing what the run was created with. Absent when the +// run records no compression at all — every run created through this API records one, so expect this +// only on older runs. +// +// Together with `format` this determines the produced file's extensions and media type, which +// `result` reports once the run has completed. +// +// Example: zip +type RunRunningV2Alpha1Compression string - // DateCreated Date and time when the Service Account was created. - // - // Example: 2024-08-23T17:32:28Z - DateCreated *time.Time `json:"dateCreated,omitempty"` +// RunRunningV2Alpha1Format Output format. +// +// Example: pdf +type RunRunningV2Alpha1Format string - // ExpirationDate Date and time when the Service Account API key expires. - // - // Example: 2024-06-15T17:32:28Z - ExpirationDate *time.Time `json:"expirationDate,omitempty"` +// RunRunningV2Alpha1Status Always `running` for this variant. +// +// Example: running +type RunRunningV2Alpha1Status string - // Id +// RuntimeResult Runtime result +type RuntimeResult struct { + // EndOfLifeDate The date and time when any component in the resource is no longer supported or maintained (end-of-life). Returns `null` if the value is not defined for any component. // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + // Example: 2020-04-21T16:08:08.845336507Z + EndOfLifeDate *time.Time `json:"endOfLifeDate,omitempty"` - // LastUpdated Date and time when the Service Account was last updated. + // IsRiskSpotlightEnabled Whether risk spotlight is enabled or not // - // Example: 2024-04-11T17:32:28Z - LastUpdated *time.Time `json:"lastUpdated,omitempty"` + // Example: true + IsRiskSpotlightEnabled *bool `json:"isRiskSpotlightEnabled,omitempty"` - // LastUsed Date and time when the Service Account API key was last used. + // MainAssetName Name of the scanned asset // - // Example: 2024-06-15T17:32:28Z - LastUsed *time.Time `json:"lastUsed,omitempty"` + // Example: nginx:latest + MainAssetName *string `json:"mainAssetName,omitempty"` - // Name Service Account display name. + // PolicyEvaluationResult Policy evaluation result // - // Example: CI/CD service api key - Name *string `json:"name,omitempty"` - - // SystemRoles Array of System roles assigned to the global service account. - SystemRoles *[]string `json:"systemRoles,omitempty"` - - // TeamId Team ID associated with the service account. - TeamId *UnlimitedLong `json:"teamId,omitempty"` + // Example: passed + PolicyEvaluationResult *PolicyEvaluationResult `json:"policyEvaluationResult,omitempty"` - // TeamRole The predefined team role for a Service Account, or an ID of a custom role. + // ResourceId Identifier of the scanned resource: it will be the image ID for container images or the host ID for hosts. // - // Example: ROLE_TEAM_STANDARD - TeamRole *string `json:"teamRole,omitempty"` -} - -// ServiceAccountsNotificationSettingsResponseV1 The base schema for the service accounts notification settings. -type ServiceAccountsNotificationSettingsResponseV1 = ServiceAccountsNotificationSettinsBase - -// ServiceAccountsNotificationSettinsBase The base schema for the service accounts notification settings. -type ServiceAccountsNotificationSettinsBase struct { - // DaysBeforeExpiry The number of days before the expiry of the service account when the notifications are to be sent. - DaysBeforeExpiry *[]int32 `json:"daysBeforeExpiry,omitempty"` + // Example: sha256:a1b2c3d4e5f6g7h8i9j0k1l2m3n4o5p6q7r8s9t0u1v2w3x4y5z6 + ResourceId *string `json:"resourceId,omitempty"` - // IsEnabled Whether the notification settings are enabled or not. + // ResultId Identifier of the scan result // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` - - // NotificationChannelIds The list of notification channel IDs to which the notifications are to be sent.\ - // \ - // Supported types are **EMAIL** and **SLACK**. - NotificationChannelIds *[]UnlimitedLong `json:"notificationChannelIds,omitempty"` -} + // Example: scan-1234 + ResultId *string `json:"resultId,omitempty"` -// Services Certificate registrations -type Services struct { - // CertificateId The certificate ID. - // - // Example: 12345 - CertificateId int64 `json:"certificateId"` + // RunningVulnTotalBySeverity total vulnerabilities by severity + RunningVulnTotalBySeverity *VulnTotalBySeverity `json:"runningVulnTotalBySeverity,omitempty"` - // RegisteredAt The timestamp the service was configured to use this certificate. + // SbomId Identifier of the sbom // - // Example: 1970-01-01T00:00:00.000000000Z - RegisteredAt time.Time `json:"registeredAt"` + // Example: sbom-1234 + SbomId *string `json:"sbomId,omitempty"` - // ServiceId The integration ID for the service owning the integration that uses the certificate. + // Scope Scope labels that define the asset // - // Example: 12345 - ServiceId string `json:"serviceId"` + // Example: {"asset.type":"workload","kubernetes.cluster.name":"prod-cluster-00","kubernetes.namespace.name":"foo","kubernetes.workload.name":"bar","kubernetes.workload.type":"deployment"} + Scope *Scope `json:"scope,omitempty"` - // ServiceType The service type. - // - // Example: EVENTS_FORWARDER - ServiceType ServicesServiceType `json:"serviceType"` + // VulnTotalBySeverity total vulnerabilities by severity + VulnTotalBySeverity *VulnTotalBySeverity `json:"vulnTotalBySeverity,omitempty"` } -// ServicesServiceType The service type. -// -// Example: EVENTS_FORWARDER -type ServicesServiceType string +// RuntimeResultsResponse runtime results response +type RuntimeResultsResponse struct { + Data *[]RuntimeResult `json:"data,omitempty"` -// ServicesResponse LedgersResponse -type ServicesResponse struct { - Data []Services `json:"data"` + // Page API paging response + Page *VulnerabilityManagementPage `json:"page,omitempty"` } -// Source Source of the event: -// - `syscall` - a syscall within a workload -// - `windows` - Windows event log -// - `profiling` - ML workload threat detections -// - `K8SAdmissionController` - Admission control request coming from the Kubernetes admission controller -// - `k8s_audit` - Kubernetes audit logs, if the category is `runtime`, otherwise Admission control request -// - `aws_cloudtrail` - AWS CloudTrail log, from CloudConnector -// - `awscloudtrail` - AWS CloudTrail log, agentless only -// - `agentless-aws-ml` - ML threat detections for AWS -// - `gcp_auditlog` - GCP Audit log -// - `azure_platformlogs` - Azure platform logs -// - `okta` - Okta System Logs -// - `agentless-okta-ml` - ML threat detections for Okta -// - `github` - Github organization logs -// -// Example: k8s_audit -type Source string +// SaveCaptureStorageConfigurationRequestV1 defines model for SaveCaptureStorageConfigurationRequestV1. +type SaveCaptureStorageConfigurationRequestV1 struct { + // Buckets The list of buckets where the captures are stored. Currently only one bucket is supported. + Buckets *[]BucketConfigurationV1 `json:"buckets,omitempty"` -// SourceDetails Additional details related to the Event source. -type SourceDetails struct { - // SubType A deeper particularization for the type of component that generated the raw event: - // - `auditlogs` - Audit logs of platforms/apps - // - `auditWebhooks` - Kubernetes Audit - // - `caas` - Container As A Service workload - // - `dynamicAdmissionControl` - Dynamic admission control - // - `host` - Non-containerized host - // - `container` - Container - // - `workforce` - Workforce type IAM - // + // EncryptionKey AES-256 encryption key to be used for server-side encryption (base64 encoded). // - // Example: host - SubType *string `json:"subType,omitempty"` + // Example: 23kA/KCxPktKXLijIIt91uB+sJ652w/ES9hZ3+eWadM= + EncryptionKey *string `json:"encryptionKey,omitempty"` - // Type The type of component that generated the raw event: - // - `cloud` - Cloud platform - // - `git` - Git platform - // - `iam` - Identity and Access Management platform - // - `kubernetes` - Kubernetes control plane - // - `workload` - Workload (from bare metal to *aaS compute) + // IsEnabled Specifies if capture storage is enabled. // + // Example: false + IsEnabled bool `json:"isEnabled"` + + // IsEncryptionWithProvidedKeyEnabled Specifies if server-side encryption with provided encryption key (SSE-C) is enabled. // - // Example: cloud - Type string `json:"type"` + // Example: false + IsEncryptionWithProvidedKeyEnabled *bool `json:"isEncryptionWithProvidedKeyEnabled,omitempty"` } -// SsoSettingsBaseSchemaV1 defines model for SsoSettingsBaseSchemaV1. -type SsoSettingsBaseSchemaV1 struct { - // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. - // - // Example: true - CreateUserOnLogin *bool `json:"createUserOnLogin,omitempty"` +// SaveTeamUserRequestV1 defines model for SaveTeamUserRequestV1. +type SaveTeamUserRequestV1 struct { + // CustomTeamRoleId The custom team role ID assigned for the user in this team. **Mutually exclusive with standardTeamRole**. + CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` - // GroupMappingAttributeName The group mapping attribute name. - // - // Example: groups - GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` + // StandardTeamRole The standard team role assigned for the user in this team. **Mutually exclusive with customTeamRoleId**.\ + // \ + // *ROLE_TEAM_SERVICE_MANAGER is only supported in Secure.* + StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` +} - // IntegrationName The name of this SSO config. +// SbomComponent defines model for SbomComponent. +type SbomComponent struct { + // BomRef An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref MUST be unique within the BOM. // - // Example: okta - IntegrationName *string `json:"integrationName,omitempty"` + // Example: 5581fa94-9052-4e55-8b28-750f16e183be + BomRef *string `json:"bom-ref,omitempty"` - // IsActive Flag to indicate if the SSO settings is active. + // Group The grouping name or identifier. This will often be a shortened, single name of the company or project that produced the component, or the source package or domain name. Whitespace and special characters should be avoided. Examples include: apache, org.apache.commons, and apache.org. // - // Example: true - IsActive *bool `json:"isActive,omitempty"` + // Example: com.acme + Group *string `json:"group,omitempty"` - // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. + // Name The name of the component. This will often be a shortened, single name of the component. Examples: commons-lang3 and jquery // - // Example: true - IsGroupMappingEnabled *bool `json:"isGroupMappingEnabled,omitempty"` + // Example: tomcat-catalina + Name string `json:"name"` - // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. + // Purl Specifies the package-url (purl). The purl, if specified, MUST be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec) // - // Example: true - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` + // Example: pkg:maven/com.acme/tomcat-catalina@9.0.14?packaging=jar + Purl *string `json:"purl,omitempty"` - // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. + // Type Specifies the type of component. For software components, classify as application if no more specific appropriate classification is available or cannot be determined for the component. Types include: // - // Example: true - IsSingleLogoutEnabled *bool `json:"isSingleLogoutEnabled,omitempty"` - - // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. - Product *Product `json:"product,omitempty"` -} - -// SsoSettingsCreateRequestBaseV1 Create Request SSO Settings Base Schema -type SsoSettingsCreateRequestBaseV1 struct { - // Type Supported SSO types + // * __application__ = A software application. Refer to [https://en.wikipedia.org/wiki/Application_software](https://en.wikipedia.org/wiki/Application_software) for information about applications. + // * __framework__ = A software framework. Refer to [https://en.wikipedia.org/wiki/Software_framework](https://en.wikipedia.org/wiki/Software_framework) for information on how frameworks vary slightly from libraries. + // * __library__ = A software library. Refer to [https://en.wikipedia.org/wiki/Library_(computing)](https://en.wikipedia.org/wiki/Library_(computing)) + // for information about libraries. All third-party and open source reusable components will likely be a library. If the library also has key features of a framework, then it should be classified as a framework. If not, or is unknown, then specifying library is RECOMMENDED. + // * __container__ = A packaging and/or runtime format, not specific to any particular technology, which isolates software inside the container from software outside of a container through virtualization technology. Refer to [https://en.wikipedia.org/wiki/OS-level_virtualization](https://en.wikipedia.org/wiki/OS-level_virtualization) + // * __platform__ = A runtime environment which interprets or executes software. This may include runtimes such as those that execute bytecode or low-code/no-code application platforms. + // * __operating-system__ = A software operating system without regard to deployment model (i.e. installed on physical hardware, virtual machine, image, etc) Refer to [https://en.wikipedia.org/wiki/Operating_system](https://en.wikipedia.org/wiki/Operating_system) + // * __device__ = A hardware device such as a processor, or chip-set. A hardware device containing firmware SHOULD include a component for the physical hardware itself, and another component of type 'firmware' or 'operating-system' (whichever is relevant), describing information about the software running on the device. + // See also the list of [known device properties](https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md). + // * __device-driver__ = A special type of software that operates or controls a particular type of device. Refer to [https://en.wikipedia.org/wiki/Device_driver](https://en.wikipedia.org/wiki/Device_driver) + // * __firmware__ = A special type of software that provides low-level control over a devices hardware. Refer to [https://en.wikipedia.org/wiki/Firmware](https://en.wikipedia.org/wiki/Firmware) + // * __file__ = A computer file. Refer to [https://en.wikipedia.org/wiki/Computer_file](https://en.wikipedia.org/wiki/Computer_file) for information about files. + // * __machine-learning-model__ = A model based on training data that can make predictions or decisions without being explicitly programmed to do so. + // * __data__ = A collection of discrete values that convey information. // - // Example: SAML - Type SsoTypeV1 `json:"type"` -} + // Example: library + Type string `json:"type"` -// SsoSettingsResponseBaseV1 Response SSO Settings Base Schema -type SsoSettingsResponseBaseV1 struct { - // Type Supported SSO types + // Version The component version. The version should ideally comply with semantic versioning but is not enforced. // - // Example: SAML - Type SsoTypeV1 `json:"type"` + // Example: 9.0.14 + Version *string `json:"version,omitempty"` } -// SsoSettingsResponseV1 defines model for SsoSettingsResponseV1. -type SsoSettingsResponseV1 struct { - // Config Response SSO Settings Base Schema - Config *SsoSettingsResponseBaseV1 `json:"config,omitempty"` - - // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. +// SbomResultResponse SBOM of the requested asset +type SbomResultResponse struct { + // BomFormat Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be "CycloneDX". // - // Example: true - CreateUserOnLogin *bool `json:"createUserOnLogin,omitempty"` + // Example: CycloneDX + BomFormat SbomResultResponseBomFormat `json:"bomFormat"` - // DateCreated The date (in ISO 8601 format) when this SSO config was created. + // Components A list of software and hardware components. + Components *[]SbomComponent `json:"components,omitempty"` + + // Compositions Compositions describe constituent parts (including components, services, and dependency relationships) and their completeness. The completeness of vulnerabilities expressed in a BOM may also be described. + Compositions *[]struct { + // Aggregate Specifies an aggregate type that describe how complete a relationship is. + // + // * __complete__ = The relationship is complete. No further relationships including constituent components, services, or dependencies are known to exist. + // * __incomplete__ = The relationship is incomplete. Additional relationships exist and may include constituent components, services, or dependencies. + // * __incomplete_first_party_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented. + // * __incomplete_first_party_proprietary_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. + // * __incomplete_first_party_opensource_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are opensource. + // * __incomplete_third_party_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented. + // * __incomplete_third_party_proprietary_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. + // * __incomplete_third_party_opensource_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are opensource. + // * __unknown__ = The relationship may be complete or incomplete. This usually signifies a 'best-effort' to obtain constituent components, services, or dependencies but the completeness is inconclusive. + // * __not_specified__ = The relationship completeness is not specified. + // + // + // Example: complete + Aggregate SbomResultResponseCompositionsAggregate `json:"aggregate"` + + // Assemblies The bom-ref identifiers of the components or services being described. Assemblies refer to nested relationships whereby a constituent part may include other constituent parts. References do not cascade to child parts. References are explicit for the specified constituent part only. + Assemblies *[]string `json:"assemblies,omitempty"` + + // Dependencies The bom-ref identifiers of the components or services being described. Assemblies refer to nested relationships whereby a constituent part may include other constituent parts. References do not cascade to child parts. References are explicit for the specified constituent part only. + Dependencies *[]string `json:"dependencies,omitempty"` + } `json:"compositions,omitempty"` + + // Dependencies Provides the ability to document dependency relationships. + Dependencies *[]struct { + // DependsOn The bom-ref identifiers of the components or services that are dependencies of this dependency object. + DependsOn *[]string `json:"dependsOn,omitempty"` + + // Ref References a component or service by its bom-ref attribute + // + // Example: 5581fa94-9052-4e55-8b28-750f16e183be + Ref string `json:"ref"` + } `json:"dependencies,omitempty"` + + // Metadata Provides additional information about a BOM. + Metadata *struct { + Component *SbomComponent `json:"component,omitempty"` + + // Lifecycle The product lifecycle(s) that this BOM represents. + // + // Example: post-build + Lifecycle *SbomResultResponseMetadataLifecycle `json:"lifecycle,omitempty"` + + // Timestamp The date and time (timestamp) when the BOM was created. + // + // Example: 2018-03-20T09:12:28Z + Timestamp *time.Time `json:"timestamp,omitempty"` + + // Tools The tool(s) used in the creation of the BOM. + Tools *map[string]interface{} `json:"tools,omitempty"` + } `json:"metadata,omitempty"` + + // SerialNumber Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number MUST conform to RFC-4122. Use of serial numbers are RECOMMENDED. // - // Example: 2017-07-21T17:32:28Z - DateCreated *time.Time `json:"dateCreated,omitempty"` + // Example: urn:uuid:3e671687-395b-41f5-a30f-a58921a69b79 + SerialNumber *string `json:"serialNumber,omitempty"` - // GroupMappingAttributeName The group mapping attribute name. + // SpecVersion The version of the CycloneDX specification a BOM conforms to (starting at version 1.2). // - // Example: groups - GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` + // Example: 1.5 + SpecVersion string `json:"specVersion"` - // Id + // Version Whenever an existing BOM is modified, either manually or through automated processes, the version of the BOM SHOULD be incremented by 1. When a system is presented with multiple BOMs with identical serial numbers, the system SHOULD use the most recent version of the BOM. The default version is '1'. // // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + Version *int32 `json:"version,omitempty"` +} - // IntegrationName The name of this SSO config. - // - // Example: okta - IntegrationName *string `json:"integrationName,omitempty"` +// SbomResultResponseBomFormat Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be "CycloneDX". +// +// Example: CycloneDX +type SbomResultResponseBomFormat string - // IsActive Flag to indicate if the SSO settings is active. - // - // Example: true - IsActive *bool `json:"isActive,omitempty"` +// SbomResultResponseCompositionsAggregate Specifies an aggregate type that describe how complete a relationship is. +// +// * __complete__ = The relationship is complete. No further relationships including constituent components, services, or dependencies are known to exist. +// * __incomplete__ = The relationship is incomplete. Additional relationships exist and may include constituent components, services, or dependencies. +// * __incomplete_first_party_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented. +// * __incomplete_first_party_proprietary_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. +// * __incomplete_first_party_opensource_only__ = The relationship is incomplete. Only relationships for first-party components, services, or their dependencies are represented, limited specifically to those that are opensource. +// * __incomplete_third_party_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented. +// * __incomplete_third_party_proprietary_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are proprietary. +// * __incomplete_third_party_opensource_only__ = The relationship is incomplete. Only relationships for third-party components, services, or their dependencies are represented, limited specifically to those that are opensource. +// * __unknown__ = The relationship may be complete or incomplete. This usually signifies a 'best-effort' to obtain constituent components, services, or dependencies but the completeness is inconclusive. +// * __not_specified__ = The relationship completeness is not specified. +// +// Example: complete +type SbomResultResponseCompositionsAggregate string - // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. - // - // Example: true - IsGroupMappingEnabled *bool `json:"isGroupMappingEnabled,omitempty"` +// SbomResultResponseMetadataLifecycle The product lifecycle(s) that this BOM represents. +// +// Example: post-build +type SbomResultResponseMetadataLifecycle string - // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. +// ScanResultResponse defines model for ScanResultResponse. +type ScanResultResponse struct { + // AssetType scan result asset type // - // Example: true - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` + // Example: containerImage + AssetType ScanResultResponseAssetType `json:"assetType"` - // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. - // - // Example: true - IsSingleLogoutEnabled *bool `json:"isSingleLogoutEnabled,omitempty"` + // BaseImages Example: {"a3ee5e6b4b0d3255bf":{"pullStrings":["alpine:latest"]}} + BaseImages *map[string]BaseImage `json:"baseImages,omitempty"` - // LastUpdated The date (in ISO 8601 format) when this SSO config was last updated. - // - // Example: 2017-07-21T17:32:28Z - LastUpdated *time.Time `json:"lastUpdated,omitempty"` + // Layers Example: {"f95aa9ae66563e7e808b":{"baseImagesRef":["a3ee5e6b4b0d3255bf"],"command":"COPY docker-entrypoint.sh","digest":"sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08","size":50}} + Layers *map[string]Layer `json:"layers,omitempty"` - // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. - Product *Product `json:"product,omitempty"` + // Metadata metadata of the scan result + Metadata ScanResultResponse_Metadata `json:"metadata"` - // Version - // - // Example: 1 - Version *UnlimitedLong `json:"version,omitempty"` -} + // 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"` -// SsoSettingsUpdateRequestBaseV1 Update Request SSO Settings Base Schema -type SsoSettingsUpdateRequestBaseV1 struct { - // Type Supported SSO types + // RiskAccepts Example: {"e6b4b0d3255bfef":{"context":[{"type":"imageName","value":"nginx:latest"}],"createdAt":"2024-01-22T08:51:46.016464Z","description":"description","entityType":"imageName","entityValue":"nginx:latest","expirationDate":"2021-07-01","id":"550e8400-e29b","reason":"RiskMitigated","status":"active","updatedAt":"2024-01-22T08:51:46.016464Z"}} + RiskAccepts *map[string]RiskAcceptanceDefinition `json:"riskAccepts,omitempty"` + + // Stage scan result stage // - // Example: SAML - Type SsoTypeV1 `json:"type"` + // Example: pipeline + Stage ScanResultResponseStage `json:"stage"` + + // Vulnerabilities Example: {"71af37c6a8f2772":{"cisaKev":{"dueDate":"2023-10-31","knownRansomwareCampaignUse":"false","publishDate":"2023-12-06"},"cvssScore":{"score":1,"vector":"AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"disclosureDate":"2021-01-02","exploit":{"links":["https://sysdig.com/exploits/12345"],"publicationDate":"2024-01-22T08:51:46.00Z"},"exploitable":true,"firstSeen":"2021-01-02","fixVersion":"1.2.3","mainProvider":"vulndb","name":"CVE-2021-1234","packageRef":"2772f8a6c73fa17","providersMetadata":{"nvd":{}},"riskAcceptRefs":["e6b4b0d3255bfef"],"severity":"high","solutionDate":"2021-01-02"}} + Vulnerabilities *map[string]Vulnerability `json:"vulnerabilities,omitempty"` } -// SsoTypeV1 Supported SSO types +// ScanResultResponseAssetType scan result asset type // -// Example: SAML -type SsoTypeV1 string - -// Stage defines model for Stage. -type Stage struct { - // Configuration Configurations for the stage. - Configuration *[]StageConfiguration `json:"configuration,omitempty"` +// Example: containerImage +type ScanResultResponseAssetType string - // Name stage name. - // - // Example: runtime - Name string `json:"name"` +// ScanResultResponse_Metadata metadata of the scan result +type ScanResultResponse_Metadata struct { + union json.RawMessage } -// StageConfiguration defines model for StageConfiguration. -type StageConfiguration struct { - // Behaviour Default behavior for the admission controller validator when no policy is matched. - // This value is ignored for other stages. Possible values are: - // - warn: allow the deployment but log a warning - // - reject: reject the deployment +// ScanResultResponseStage scan result stage +// +// Example: pipeline +type ScanResultResponseStage string + +// ScheduleRequestV2Alpha1 A schedule's settings. Embedded as-is in `POST /reports`, where the report is implicit. `POST /schedules` +// uses `CreateScheduleRequest`, which requires `reportId`; `PUT /schedules/{scheduleId}` uses +// `UpdateScheduleRequest`, which omits it. +// +// **A schedule describes only *when* and *in what form* a report is produced, never *what it covers*.** +// Scope is not part of this payload and cannot be set per schedule — to report on a different scope, create +// a second report. +// +// A schedule has **no scope of its own at all**. Every run covers the scope its report has **when the run +// fires**, so editing a report's `filters` changes what all of that report's existing schedules deliver, from +// their next run onwards — and nothing in this payload or in the schedule response reflects that change. Two +// schedules on the same report therefore always deliver the same scope as each other. +type ScheduleRequestV2Alpha1 struct { + // Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. + // On update an omitted value keeps the schedule's current compression rather than resetting it, so a + // password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot + // protect. `delivery.password` requires `zip`. + // Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request + // also removes the password — see `delivery.password`. // // - // Example: warn - Behaviour *string `json:"behaviour,omitempty"` + // Example: gzip + Compression *ScheduleRequestV2Alpha1Compression `json:"compression,omitempty"` - // Scope Scope to apply the policies for the given stage. An empty string or missing property implies the policies are always active. - // The scope is defined using a query language expression, which is a subset of the full metrics query language used in monitoring. + // Cron Cron expression defining the recurrence, as **six fields** — + // `second minute hour dayOfMonth month dayOfWeek`. The common five-field form is **not** accepted and is + // rejected with `422`. // + // Always evaluated in **UTC**, whatever `timezone` says. To fire at a local wall-clock time, convert it to + // UTC yourself before building the expression — the Sysdig UI does exactly this, which is why a schedule + // created here and one created there behave the same way. Converting means three things, and the second is + // the one that is easy to miss: // - // Example: kubernetes.cluster.name = "my-cluster" and kubernetes.namespace.name = "my-namespace" - Scope *string `json:"scope,omitempty"` - - // UnknownImageAction Action to take in the admission controller when an image is not found or has never been scanned before. - // This value is ignored for other stages. Possible values are: - // - warn: allow the deployment but log a warning - // - reject: reject the deployment - // - rejectAndScan: reject the deployment and trigger a scan for the image + // 1. Convert the local time to UTC; that gives `hour` and `minute`. + // 2. **If that conversion crosses midnight, shift the day as well.** Monday 22:00 in + // `America/New_York` is *Tuesday* 02:00 UTC, so `dayOfWeek` becomes `TUE` — a schedule that converts + // only the time fires on the wrong day. + // 3. Leave a `dayOfMonth` of `28-31` alone. That is the "last day of the month" form, and it is the one + // case where `timezone` affects firing: the service uses it to decide whether today is that month's + // last day. // + // Which `timeframe.preset` values are accepted depends on the recurrence this describes — see `timeframe`. // - // Example: reject - UnknownImageAction *string `json:"unknownImageAction,omitempty"` -} + // + // Example: 0 30 6 * * MON + Cron string `json:"cron"` -// StatefulDetectionsContent Stateful detections event content -type StatefulDetectionsContent struct { - Fields map[string]string `json:"fields"` + // Delivery How a scheduled report's output is delivered and protected. + // + // `isSecureDownload` and `password` are **two independent protections** and may be used separately or + // together: + // * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). + // * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. + Delivery *DeliveryV2Alpha1 `json:"delivery,omitempty"` - // Output Event output, generated after the configured rule + // Description Optional free-text note describing what this schedule is for and who consumes it. // - // Example: - Output string `json:"output"` + // Example: Weekly vulnerability summary for the platform team's Monday review. + Description *string `json:"description,omitempty"` - // PolicyId ID of the policy that generated the event + // Enabled Whether the schedule is active. Defaults to true. // - // Example: 2 - PolicyId PolicyId `json:"policyId"` + // Example: true + Enabled *bool `json:"enabled,omitempty"` - // PolicyNotificationChannelIds The list of notification channels where an alert is sent after event is generated. - // Doesn't account for aggregations and eventual thresholds. - PolicyNotificationChannelIds PolicyNotificationChannelIds `json:"policyNotificationChannelIds"` + // Format Output format of each generated run. **Not every format is valid for every report** — the + // permitted set is determined by the `kind` of the template the report was created from (see + // `Template.kind`):\ + // \ + // - `posture_v2` — `csv` only\ + // - `compliance` — `pdf` only\ + // - `vulnerability_management` — `csv`, `pdf` or `json`\ + // \ + // An unsupported combination is rejected with `422`.\ + // \ + // Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including + // panels that are charts rather than tables: they export each panel's underlying result rows. + // + // + // Example: pdf + Format ScheduleRequestV2Alpha1Format `json:"format"` - // PolicyOrigin The policy author: - // - `Sysdig` - default and managed policies - // - `Sysdig UI` - users interacting with Sysdig - // - `Tuner` - the automated tuner + // Name Optional schedule name (a report may have multiple named schedules). // + // Example: Weekly + Name *string `json:"name,omitempty"` + + // ReportId The report this schedule belongs to, as assigned by the reporting service. Required for `POST /schedules`; omit when embedded in `POST /reports`. // - // Example: Sysdig - PolicyOrigin PolicyOrigin `json:"policyOrigin"` + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` - // RuleName Name of the rule the event is generated after + // Timeframe Window each run reports over. Required: a schedule does not fall back to the report's + // `defaultTimeframe`, because which presets are accepted depends on `cron` (below). // - // Example: Create Security Group Rule Allowing SSH Ingress - RuleName RuleName `json:"ruleName"` + // **Which presets are accepted depends on `cron`:** a daily recurrence takes `1d`; a weekly one `1d` or + // `7d`; a monthly one `1d`, `7d` or `30d`; any other cron is unrestricted. A `cron`/`preset` combination + // outside that is rejected with `422`, naming `/timeframe/preset`. + Timeframe ScheduleTimeframeV2Alpha1 `json:"timeframe"` - // RuleTags The tags attached to the rule - RuleTags RuleTags `json:"ruleTags"` + // Timezone IANA timezone the `cron` expression was composed in — a record of the caller's intent, so a UI can + // render the schedule back as a local time. + // + // **It does not shift when the schedule fires.** `cron` is evaluated in UTC regardless, so convert a local + // wall-clock time to UTC yourself when building the expression. Its one effect on firing is for a cron + // whose day-of-month selects the end of the month (e.g. `28-31`), where it decides whether today is that + // month's last day in this zone. + // + // + // Example: America/New_York + Timezone string `json:"timezone"` +} - // RuleType Rule type: - // - 1 - List matching - process - // - 2 - List matching - container - // - 3 - List matching - file - // - 4 - List matching - network - // - 5 - List matching - syscall - // - 6 - Falco - // - 7 - Drift detection - // - 8 - Malware detection - // - 11 - ML - Cryptominer detection - // - 13 - ML - AWS anomalous login - // - 14 - ML - Okta anomalous login +// ScheduleRequestV2Alpha1Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. +// On update an omitted value keeps the schedule's current compression rather than resetting it, so a +// password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot +// protect. `delivery.password` requires `zip`. +// Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request +// also removes the password — see `delivery.password`. +// +// Example: gzip +type ScheduleRequestV2Alpha1Compression string + +// ScheduleRequestV2Alpha1Format Output format of each generated run. **Not every format is valid for every report** — the +// permitted set is determined by the `kind` of the template the report was created from (see +// `Template.kind`):\ +// \ +// - `posture_v2` — `csv` only\ +// - `compliance` — `pdf` only\ +// - `vulnerability_management` — `csv`, `pdf` or `json`\ +// \ +// An unsupported combination is rejected with `422`.\ +// \ +// Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including +// panels that are charts rather than tables: they export each panel's underlying result rows. +// +// Example: pdf +type ScheduleRequestV2Alpha1Format string + +// ScheduleResponse Schema for a scheduled report +type ScheduleResponse struct { + // Compression Compression format // + // Example: zip + Compression *string `json:"compression,omitempty"` + + // CreatedBy Email of the user who created the schedule // - // Example: 6 - RuleType RuleType `json:"ruleType"` + // Example: user@sysdig.com + CreatedBy string `json:"createdBy"` - // Sequence The sequence of events that occurred to trigger the event. - // The sequence is represented as a list of events, where each event is a map of key-value pairs. - Sequence *Sequence `json:"sequence,omitempty"` + // CreatedOn Timestamp when the schedule was created + // + // Example: 2024-11-21T20:29:01.415528Z + CreatedOn time.Time `json:"createdOn"` - // Stats An array representing the relevant APIs and how often they were called in the time window. - Stats *Stats `json:"stats,omitempty"` + // CustomerId ID of the customer associated with the schedule + // + // Example: 121517 + CustomerId int64 `json:"customerId"` - // Type The type of the event content. + // Description Description of the schedule // - // Example: workloadRuntimeDetection - Type EventContentType `json:"type"` -} + // Example: + Description *string `json:"description,omitempty"` -// Stats An array representing the relevant APIs and how often they were called in the time window. -type Stats = []struct { - // Api Example: DescribeInternetGateways - Api *string `json:"api,omitempty"` + // Enabled Indicates if the schedule is enabled + // + // Example: true + Enabled bool `json:"enabled"` - // Count Example: 1 - Count *int32 `json:"count,omitempty"` -} + // Id Unique identifier for the schedule + // + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + Id string `json:"id"` -// SubmitActionExecutionRequest The request for the execution of a Response Action. -type SubmitActionExecutionRequest struct { - // ActionType The name of the Response Action to execute. - // It may be one of the following: - // - KILL_PROCESS - // - KILL_CONTAINER - // - STOP_CONTAINER - // - PAUSE_CONTAINER - // - FILE_QUARANTINE - // - FILE_ACQUIRE - // - UNPAUSE_CONTAINER - // - FILE_UNQUARANTINE - // - START_CONTAINER - // - DELETE_POD - // - ROLLOUT_RESTART - // - KUBERNETES_VOLUME_SNAPSHOT - // - KUBERNETES_DELETE_VOLUME_SNAPSHOT - // - GET_LOGS - // - ISOLATE_NETWORK - // - DELETE_NETWORK_POLICY + // IsReportTemplate Indicates if the report is a template // - // The following actions serve as the undo for previous actions: - // - START_CONTAINER: undo for STOP_CONTAINER\ - // - UNPAUSE_CONTAINER: undo for PAUSE_CONTAINER\ - // - FILE_UNQUARANTINE: undo for FILE_QUARANTINE\ - // - KUBERNETES_DELETE_VOLUME_SNAPSHOT: undo for KUBERNETES_VOLUME_SNAPSHOT\ - // - DELETE_NETWORK_POLICY: undo for ISOLATE_NETWORK\ + // Example: true + IsReportTemplate bool `json:"isReportTemplate"` + + // LastCompletedOn Timestamp when the schedule was last completed // - // Do not use undo actions in [submitActionExecutionv1](#tag/Response-actions/operation/submitActionExecutionv1). + // Example: 2024-12-10T06:30:36.194531Z + LastCompletedOn *time.Time `json:"lastCompletedOn,omitempty"` + + // LastScheduledOn Timestamp when the schedule was last run // - // You can execute an undo actions using the service [undoActionExecutionV1](#tag/Response-actions/operation/undoActionExecutionV1). + // Example: 2024-12-10T06:30:05.472079Z + LastScheduledOn *time.Time `json:"lastScheduledOn,omitempty"` + + // LastStartedOn Timestamp when the schedule was last started // + // Example: 2024-12-10T06:30:05.472079Z + LastStartedOn *time.Time `json:"lastStartedOn,omitempty"` + + // ModifiedOn Timestamp when the schedule was last modified // - // Example: KILL_PROCESS - ActionType ResponseActionType `json:"actionType"` + // Example: 2024-11-22T04:40:17.3083Z + ModifiedOn *time.Time `json:"modifiedOn,omitempty"` - // CallerId The ID of the user that executed the Response action. + // Name Name of the schedule // - // Example: Mary-Response - CallerId *CallerId `json:"callerId,omitempty"` + // Example: test schedule password 1 + Name *string `json:"name,omitempty"` - // Parameters The parameters used to request the Response Action execution. - Parameters ActionExecutionParameters `json:"parameters"` -} + // NotificationChannels List of notification channels + NotificationChannels *[]NotificationChannel `json:"notificationChannels,omitempty"` -// SupportedFilter A supported field for filtering events. -type SupportedFilter struct { - // Id Attribute onto which filtering is supported. + // PasswordEnabled Indicates if password protection is enabled // - // Example: container.image.id - Id string `json:"id"` + // Example: true + PasswordEnabled *bool `json:"passwordEnabled,omitempty"` - // Operands The list of supported operands for filtering events. - Operands *[]Operand `json:"operands,omitempty"` + // Policies List of policy IDs + Policies *[]int64 `json:"policies,omitempty"` - // Type Data type for the attribute values. + // ReportFormat Format of the report // - // Example: string - Type SupportedFilterType `json:"type"` -} + // Example: pdf + ReportFormat string `json:"reportFormat"` -// SupportedFilterType Data type for the attribute values. -// -// Example: string -type SupportedFilterType string + // ReportId ID of the report + // + // Example: 26 + ReportId int64 `json:"reportId"` -// SupportedFiltersResponse The list of supported attributes for filtering events. -type SupportedFiltersResponse struct { - // Data The list of supported attributes for filtering events. - Data []SupportedFilter `json:"data"` -} + // ReportName Name of the report + // + // Example: Compliance Readiness Report + ReportName *string `json:"reportName,omitempty"` -// SysdigQueryLanguageFilter Query language expression for filtering results. -// The filter is the result of logical concatenations, -// using "and" and "or" binary operators and the "not" unary prefix operator (i.e. `pid = 1 and not ppid = 2`), -// of attribute comparisons. Attribute comparisons can be: -// - Scalar: Using `=`, `!=`, `>`, `>=`, `<` and `<=` comparison operators. For example, `pid = 1`. -// - Vector: Using `in` to check the equality among the values provided between parenthesis. For example, `pid in (1, 2)`. -// The operators available depends on the attribute. -// Values containing double-quotes `"` need escaping using backslash `\`, i.e. name = "sample \"quoted\" value". -// You can retrieve the list of supported attributes and related operators through the -// `/secure/activity-audit/v1/supported-filters` endpoint. -// `freeText` is available as an additional attribute to provide free-text search capabilities. -// `freeText` supports the operators `=` (match) and `!=` (does not match). -// -// EBNF: -// ``` -// attribute = ? all available attributes ? ; -// value = ? attribute value ? ; -// quoted_value = "\"", value, "\"" ; -// bin_operator = "and" | "or"; -// cmp_scalar_operator = "=" | "!=" | ">" | ">=" | "<" | "<=" ; -// cmp_vector_operator = "in"; -// cmp_scalar_operation = attribute, [" "], cmp_scalar_operator, [" "], quoted_value ; -// values_list = "(", quoted_value, { [" "], ",", quoted_value }, ")" ; -// cmp_vector_operation = attribute, " ", cmp_vector_operator, [" "], values_list ; -// freetext_operation = "freeText ", "=" | "!=", quoted_value ; -// element = ["not "], (cmp_scalar_operation | cmp_vector_operation | freetext_operation) ; -// filter = element, {" ", bin_operator, " ", element} ; -// ``` -// -// Example: container.id='abc123' -type SysdigQueryLanguageFilter = string + // Schedule Cron expression for the schedule + // + // Example: 00 30 06 * * * + Schedule string `json:"schedule"` -// TeamMapV1 Determines the teams to which a group is mapped. -type TeamMapV1 struct { - // IsForAllTeams If true, the group is mapped to all teams. + // TeamId ID of the team associated with the schedule // + // Example: 2074112 + TeamId int64 `json:"teamId"` + + // Timezone Timezone for the schedule // - // Example: false - IsForAllTeams *bool `json:"isForAllTeams,omitempty"` + // Example: America/Chicago + Timezone *string `json:"timezone,omitempty"` - // TeamIds The list of teams to which group is mapped. It is empty when 'isForAllTeams' is true, otherwise it should have at least 1 element. + // UpdatedBy Email of the user who last updated the schedule // + // Example: user@sysdig.com + UpdatedBy *string `json:"updatedBy,omitempty"` + + // UserId ID of the user who created the schedule // - // Example: [154,187] - TeamIds *[]UnlimitedLong `json:"teamIds,omitempty"` + // Example: 2678526 + UserId int64 `json:"userId"` + + // Zones List of zone IDs + Zones []int64 `json:"zones"` } -// TeamResponseV1 defines model for TeamResponseV1. -type TeamResponseV1 struct { - // AdditionalTeamPermissions Additional permissions available to the users of the team. - AdditionalTeamPermissions *AdditionalTeamPermissionsV1 `json:"additionalTeamPermissions,omitempty"` +// ScheduleResponseV2Alpha1 A recurring schedule that generates report runs. +type ScheduleResponseV2Alpha1 struct { + // Compression Compression of the produced file. + // + // Example: zip + Compression *ScheduleResponseV2Alpha1Compression `json:"compression,omitempty"` - // CustomTeamRoleId The custom team role assigned by default to users added to this team. Mutually exclusive with 'standardTeamRoleId'. - CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` + // CreatedAt Timestamp when the schedule was created. + // + // Example: 2026-07-20T09:00:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // DateCreated The date (in ISO 8601 format) when this team was created. + // CreatedBy Email of the user who created the schedule. // - // Example: 2017-07-21T17:32:28Z - DateCreated *time.Time `json:"dateCreated,omitempty"` + // Example: jane@acme.com + CreatedBy *string `json:"createdBy,omitempty"` - // Description A description of the team explaining what is it used for. + // Cron Cron expression defining the recurrence, as six fields — + // `second minute hour dayOfMonth month dayOfWeek`, evaluated in **UTC**. // - // Example: This team has access to scanning results - Description *string `json:"description,omitempty"` + // + // Example: 0 30 6 * * MON + Cron string `json:"cron"` - // Id + // Delivery How a scheduled report's output is delivered and protected. // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + // `isSecureDownload` and `password` are **two independent protections** and may be used separately or + // together: + // * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). + // * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. + Delivery *DeliveryV2Alpha1 `json:"delivery,omitempty"` - // IsAllZones 'True' if the users belonging to this team have access to all zones. Mutually exclusive with 'zoneIds'. + // Description Free-text note describing what this schedule is for and who consumes it. // + // Example: Weekly vulnerability summary for the platform team's Monday review. + Description *string `json:"description,omitempty"` + + // Enabled Whether the schedule is active (the user toggle). // - // Example: false - IsAllZones *bool `json:"isAllZones,omitempty"` + // Example: true + Enabled bool `json:"enabled"` - // IsDefaultTeam Specifies if the team is the default team. The default team is used to automatically assign new users to a team. + // Format Output format of each generated run. // - // Example: false - IsDefaultTeam *bool `json:"isDefaultTeam,omitempty"` + // Example: pdf + Format ScheduleResponseV2Alpha1Format `json:"format"` - // IsImmutableTeam Specifies if the team is immutable. This is true if the team was created by the system with full access. It cannot be modified. + // Id Schedule identifier. Legacy identifier format retained for compatibility (pre-existing-identifier exception). // - // Example: false - IsImmutableTeam *bool `json:"isImmutableTeam,omitempty"` + // Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS + Id *string `json:"id,omitempty"` - // LastUpdated The date (in ISO 8601 format) when this team was last updated. + // LastRunAt Timestamp of the last completed run. Omitted until the schedule has run once. // - // Example: 2017-07-21T17:32:28Z - LastUpdated *time.Time `json:"lastUpdated,omitempty"` + // Example: 2026-07-27T13:00:00Z + LastRunAt *time.Time `json:"lastRunAt,omitempty"` - // Name The name of the team. It must be unique. + // Name Schedule name. // - // Example: Scanning operations + // Example: Weekly Name *string `json:"name,omitempty"` - // Product The product to which the team is assigned to. - Product *Product `json:"product,omitempty"` - - // Scopes The scopes available to the users of this team. - Scopes *[]ScopeV1 `json:"scopes,omitempty"` - - // StandardTeamRole The standard team role assigned by default to users added to this team. Mutually exclusive with 'customTeamRoleId'. - StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` - - // UiSettings UI related settings. - UiSettings *UiSettingsV1 `json:"uiSettings,omitempty"` - - // Version + // ReportId The report this schedule belongs to, as assigned by the reporting service. Immutable: a schedule + // cannot be moved to another report, so `UpdateScheduleRequest` has no `reportId`. // - // Example: 1 - Version *UnlimitedLong `json:"version,omitempty"` - - // ZoneIds The list of zones that users assigned to this team will have access to. Mutually exclusive with 'allZones'. - ZoneIds *[]UnlimitedLong `json:"zoneIds,omitempty"` -} + // + // Example: 26 + ReportId *int64 `json:"reportId,omitempty"` -// TeamRoleV1 The standard team role provided by Sysdig. -// -// Example: ROLE_TEAM_READ -type TeamRoleV1 string + // Status Server-computed effective state of the schedule. Distinct from the `enabled` toggle: a schedule + // the user has enabled can still be `inactive` or `error`. + // + // `active_limited_data` means active **and** the most recent run was truncated by the row limit — + // the schedule is working, but its last delivery was capped. The per-run equivalent is + // `RunResponse.hasLimitedData`. This value tracks the latest run, so it can change between two reads + // without the schedule having been edited. + // + // + // Example: active + Status *ScheduleResponseV2Alpha1Status `json:"status,omitempty"` -// TeamUserResponseV1 defines model for TeamUserResponseV1. -type TeamUserResponseV1 struct { - CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` - StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` + // Timeframe Window each run of this schedule reports over. Omitted for the report kinds that do not take one — + // read it rather than assuming a window exists. + Timeframe *ScheduleTimeframeV2Alpha1 `json:"timeframe,omitempty"` - // TeamId + // Timezone IANA timezone the `cron` expression was composed in — a record of the caller's intent, so a UI can + // render the schedule back as a local time. // - // Example: 1 - TeamId *UnlimitedLong `json:"teamId,omitempty"` - - // UserId + // **It does not shift when the schedule fires.** `cron` is evaluated in UTC regardless, so convert a local + // wall-clock time to UTC yourself when building the expression. Its one effect on firing is for a cron + // whose day-of-month selects the end of the month (e.g. `28-31`), where it decides whether today is that + // month's last day in this zone. // - // Example: 1 - UserId *UnlimitedLong `json:"userId,omitempty"` -} + // + // Example: America/New_York + Timezone string `json:"timezone"` -// TimeFrame The start and end time of the request -type TimeFrame struct { - // From + // Type Resource type, derived from the schedule's report. `report` is the only value returned today. New + // values MAY be added in a future minor version — treat an unrecognised value as opaque and carry on + // rather than failing on it. // - // Example: 1 - From *UnlimitedLong `json:"from,omitempty"` + // Never accepted in a request body — supplying it is a `400`. + // + // + // Example: report + Type *string `json:"type,omitempty"` - // To + // UpdatedAt Timestamp when the schedule was last updated. // - // Example: 1 - To *UnlimitedLong `json:"to,omitempty"` + // Example: 2026-07-27T13:00:05Z + UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -// Timestamp Timestamp the audit event occured, expressed in nanoseconds. +// ScheduleResponseV2Alpha1Compression Compression of the produced file. // -// Example: 1546300800000000000 -type Timestamp = int64 +// Example: zip +type ScheduleResponseV2Alpha1Compression string -// To To, expressed in Unix nanoseconds timestamp. The difference between `from` and `to` cannot be greater than 2 weeks. -// If defined, `cursor` cannot be used. +// ScheduleResponseV2Alpha1Format Output format of each generated run. // -// Example: 1546300800000000000 -type To = int64 +// Example: pdf +type ScheduleResponseV2Alpha1Format string -// Types The entry types to filter. This query parameter can be set multiple times -// to filter for different entry types. +// ScheduleResponseV2Alpha1Status Server-computed effective state of the schedule. Distinct from the `enabled` toggle: a schedule +// the user has enabled can still be `inactive` or `error`. // -// Example: commands -type Types string - -// UiSettingsV1 UI related settings. -type UiSettingsV1 struct { - // EntryPoint The page you see after logging into Sysdig UI. It is defined by a Module and a Selection. - // **The Entry Point is not supported in Sysdig Secure.** - EntryPoint *EntryPointV1 `json:"entryPoint,omitempty"` +// `active_limited_data` means active **and** the most recent run was truncated by the row limit — +// the schedule is working, but its last delivery was capped. The per-run equivalent is +// `RunResponse.hasLimitedData`. This value tracks the latest run, so it can change between two reads +// without the schedule having been edited. +// +// Example: active +type ScheduleResponseV2Alpha1Status string - // Theme The color assigned to the team. +// ScheduleTimeframeV2Alpha1 Reporting window applied to each scheduled run — set on a schedule, or carried by a report's +// `defaultTimeframe`, which supplies the window for the runs created from that report when they do not +// state one of their own. **Relative only** — +// a scheduled run reports over the window ending at the moment it fires, so an absolute +// `startAt`/`endAt` range would make every run cover the same fixed period. Use `POST /runs` when you +// want an absolute range. +// +// **Not every report kind takes a window.** A compliance report reports on the current state of its +// policy rather than over a period, so no window applies to it: a compliance schedule accepts the +// `timeframe` its request requires but does not store it, and reads back without one, and a compliance +// report's `defaultTimeframe` is not applied to its runs. Every other kind takes a window. +// +// Presets are whole days, written `Nd` with N between 1 and 30 — e.g. `1d`, `7d`, `30d`. Over-30-day +// windows are not valid: `90d` is rejected. +// +// **The window is rolling and ends at the firing instant, in UTC** — it is not calendar-aligned. A +// schedule with `1d` firing at 06:00 covers 06:00 the previous day to 06:00 today, not yesterday +// midnight to midnight. So there is no `24h` preset and no need for one: `1d` **is** the rolling +// 24-hour window. Each run records the absolute range it resolved to in its own `timeframe`. +// +// **The set narrows with the recurrence** the schedule's `cron` describes, so that a window is never +// longer than it can be reported on meaningfully: +// +// - fires every day — `1d` +// - fires on a day of the week — `1d`, `7d` +// - fires on a day of the month — `1d`, `7d`, `30d` +// - any other recurrence — no restriction +// +// A preset outside the set its `cron` allows is rejected with `422`. The pattern below is the widest +// form; it cannot express this rule, which is why the check happens on the request. +type ScheduleTimeframeV2Alpha1 struct { + // Preset Relative window as whole days, `Nd` with 1 ≤ N ≤ 30 (e.g. `1d`, `7d`, `30d`). Values outside this + // pattern or range are rejected. // - // Example: #112233 - Theme *string `json:"theme,omitempty"` -} - -// UnitPricingV1 The unit pricing configuration used to compute costs. -type UnitPricingV1 struct { - // Cpu Hourly cost of one CPU. + // **The accepted subset depends on the schedule's `cron`:** `1d` for a daily recurrence; `1d` or `7d` + // for a weekly one; `1d`, `7d` or `30d` for a monthly one; unrestricted for any other cron. A preset + // the `cron` does not allow is rejected with `422`. // - // Example: 0.031611 - Cpu float32 `json:"cpu"` - - // Ram Hourly cost of one GB of RAM. // - // Example: 0.004237 - Ram float32 `json:"ram"` + // Example: 7d + Preset string `json:"preset"` +} - // SpotCpu Hourly cost of one CPU for a spot node. - SpotCpu *float32 `json:"spotCpu,omitempty"` +// Scope Scope labels that define the asset +// +// Example: {"asset.type":"workload","kubernetes.cluster.name":"prod-cluster-00","kubernetes.namespace.name":"foo","kubernetes.workload.name":"bar","kubernetes.workload.type":"deployment"} +type Scope = map[string]interface{} - // SpotRam Hourly cost of one GB of RAM for a spot node. - SpotRam *float32 `json:"spotRam,omitempty"` +// ScopeTypeV1 Example: PROMETHEUS_REMOTE_WRITE +type ScopeTypeV1 string - // Storage Hourly cost of one GB of storage. - // - // Example: 0.00005479452 - Storage float32 `json:"storage"` +// ScopeV1 defines model for ScopeV1. +type ScopeV1 struct { + // Expression Example: kubernetes.cluster.name in ("test-env") + Expression string `json:"expression"` + + // Type Example: PROMETHEUS_REMOTE_WRITE + Type ScopeTypeV1 `json:"type"` } -// UnlimitedLong +// SecurePolicyId Policy ID // -// Example: 1 -type UnlimitedLong = int64 +// Example: 123456 +type SecurePolicyId = int64 -// UnlimitedLongV2 -// -// Example: 1 -type UnlimitedLongV2 = int64 +// Sequence The sequence of events that occurred to trigger the event. +// The sequence is represented as a list of events, where each event is a map of key-value pairs. +type Sequence = []SequenceEvent -// UpdateAccessKeyRequestV1 Update access key request -type UpdateAccessKeyRequestV1 struct { - // AgentLimit Maximum number of agents that can be connected with the access key +// SequenceEvent One of the events that occurred to trigger the stateful detection event. +type SequenceEvent struct { + // EventId The unique identifier of the log event. // - // Example: 100 - AgentLimit *int32 `json:"agentLimit,omitempty"` + // Example: 9aca10ca-481a-4ab7-b8fa-929c1ebf4c18 + EventId string `json:"eventId"` - // AgentReservation Number of agents that are guaranteed to be available for the access key + // EventName The name of the event. // - // Example: 5 - AgentReservation *int32 `json:"agentReservation,omitempty"` + // Example: CreateUser + EventName string `json:"eventName"` - // IsEnabled Flag that indicates if the access key should be disabled or enabled + // EventTime The time when the event occurred. // - // Example: true - IsEnabled bool `json:"isEnabled"` - - // Metadata Access key metadata (maximum of 20 key-value pairs where key can be up to 25 characters long and value can be up to 50 characters long) - Metadata *map[string]string `json:"metadata,omitempty"` + // Example: 2024-08-11T23:48:40Z + EventTime time.Time `json:"eventTime"` - // TeamId ID of team that owns the access key + // IngestionId The unique identifier of the ingestion. // - // Example: 13 - TeamId *int32 `json:"teamId,omitempty"` -} + // Example: 41157131027 + IngestionId string `json:"ingestionId"` -// UpdateAmazonSqsIntegrationRequest Update Amazon SQS Integration Request -type UpdateAmazonSqsIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // Region The region where the event occurred. // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // AccessKey Access Key for authenticating on AWS to send data on the queue - // - // Example: myaccesskey - AccessKey *string `json:"accessKey,omitempty"` - - // AccessSecret Access Secret for authenticating on AWS to send data on the queue - // - // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY - AccessSecret *string `json:"accessSecret,omitempty"` - - // Delay Delay, in seconds, applied to the data - // - // Example: 1 - Delay *int64 `json:"delay,omitempty"` - - // Headers Extra headers to add to the payload. Each header mapping requires 2 keys: 'key' for the header key and 'value' for its value - Headers *[]KeyValueObject `json:"headers,omitempty"` - - // IsFifo If the queue is of FIFO type - // - // Example: false - IsFifo *bool `json:"isFifo,omitempty"` - - // OwnerAccount The AWS account ID of the account that created the queue - // - // Example: 123456789012 - OwnerAccount *string `json:"ownerAccount,omitempty"` - - // Queue Queue name - // - // Example: sysdig-efo-queue - Queue string `json:"queue"` - - // Region Region in which the SQS queue is hosted - // - // Example: us-east - Region string `json:"region"` - } `json:"connectionInfo"` + // Example: us-east-1 + Region string `json:"region"` - // IsEnabled If the forwarding should be enabled or not + // Source The source of the event. // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: aws + Source string `json:"source"` - // Name A descriptive name to give to the integration + // SourceIpAddress The IP address of the source. // - // Example: name - Name string `json:"name"` + // Example: 1.1.1.1 + SourceIpAddress string `json:"sourceIpAddress"` - // Type The platform to which data will be forwarded + // SubIngestionId The unique identifier of the sub ingestion. // - // Example: SYSLOG - Type IntegrationType `json:"type"` + // Example: us-east-1 + SubIngestionId string `json:"subIngestionId"` } -// UpdateAutomationRequestV1Alpha1 Request body to update an existing automation. -type UpdateAutomationRequestV1Alpha1 = AutomationWritableV1Alpha1 +// SeriesResponseV1 defines model for SeriesResponseV1. +type SeriesResponseV1 struct { + // Data List of matching time series, each represented as a set of labels. + // + // Example: [{"__name__":"up","instance":"localhost:9090","job":"prometheus"},{"__name__":"process_start_time_seconds","instance":"localhost:9090","job":"prometheus"}] + Data *[]map[string]interface{} `json:"data,omitempty"` -// UpdateAutomationResponseV1Alpha1 The updated automation. -type UpdateAutomationResponseV1Alpha1 = AutomationV1Alpha1 + // Infos A set of information messages attached to the response. Omitted when empty. + // + // Example: [] + Infos *[]string `json:"infos,omitempty"` -// UpdateChronicleIntegrationConnInfo Update Chronicle Integration Connection Info -type UpdateChronicleIntegrationConnInfo struct { - // ApiKey The Chronicle v2 API key + // Status Query status. // - // Example: jeequiedahtaiSh2uM0chigheekaego8 - ApiKey *string `json:"apiKey,omitempty"` + // Example: success + Status *SeriesResponseV1Status `json:"status,omitempty"` - // Region The target region + // Warnings A set of warning messages attached to the response. Omitted when empty. // - // Example: europe - Region *UpdateChronicleIntegrationConnInfoRegion `json:"region,omitempty"` + // Example: [] + Warnings *[]string `json:"warnings,omitempty"` } -// UpdateChronicleIntegrationConnInfoRegion The target region +// SeriesResponseV1Status Query status. // -// Example: europe -type UpdateChronicleIntegrationConnInfoRegion string +// Example: success +type SeriesResponseV1Status string -// UpdateChronicleIntegrationConnInfoV2 Update Chronicle Integration Connection V2 Info -type UpdateChronicleIntegrationConnInfoV2 struct { - // ChronicleCustomerId Unique identifier (UUID) corresponding to a particular Chronicle instance. The identifier is minted by Google Chronicle and used as supplied (https://cloud.google.com/chronicle/docs/reference/rest), so its UUID version is not controlled by Sysdig. +// ServerlessMetadata defines model for ServerlessMetadata. +type ServerlessMetadata struct { + // ArtifactsCount Number of artifacts (dependencies, libraries, packages) that compose the function // - // Example: 12345678-1234-1234-1234-123456789012 - ChronicleCustomerId string `json:"chronicleCustomerId"` + // Example: 0 + ArtifactsCount int32 `json:"artifactsCount"` - // CredentialsOAuth2 The Chronicle v2 OAuth2 credentials + // CreatedAt datetime of creation // - // Example: { "type": "service_account", "project_id": "malachite", "client_id": "1234567", } - CredentialsOAuth2 *string `json:"credentialsOAuth2,omitempty"` + // Example: 2024-01-22T08:51:46.016464Z + CreatedAt CreatedAt `json:"createdAt"` - // Namespace User-configured environment namespace to identify the data domain the logs originated from + // FuncId Unique identifier of the serverless function (e.g., AWS Lambda ARN, Azure Function ID) // - // Example: test - Namespace string `json:"namespace"` + // Example: arn:aws:lambda:us-east-2:845151661675:function:test_delay_cloudwatch:$LATEST + FuncId string `json:"funcId"` - // Region The target region + // FuncName Name of the serverless function // - // Example: europe - Region *UpdateChronicleIntegrationConnInfoV2Region `json:"region,omitempty"` -} - -// UpdateChronicleIntegrationConnInfoV2Region The target region -// -// Example: europe -type UpdateChronicleIntegrationConnInfoV2Region string + // Example: my_test_function + FuncName string `json:"funcName"` -// UpdateChronicleIntegrationRequest Update Chronicle Integration Request -type UpdateChronicleIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // Revision Version or revision identifier of the function deployment // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo UpdateChronicleIntegrationRequest_ConnectionInfo `json:"connectionInfo"` + // Example: c837f302-0d56-4f43-8c91-e592c5449c4e + Revision string `json:"revision"` - // IsEnabled If the forwarding should be enabled or not + // Type Type of serverless metadata // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: runtime-based + Type *string `json:"type,omitempty"` +} - // Name A descriptive name to give to the integration +// ServiceAccountResponseV1 defines model for ServiceAccountResponseV1. +type ServiceAccountResponseV1 struct { + // DateCreated Date and time when the Service Account was created. // - // Example: name - Name string `json:"name"` + // Example: 2024-08-23T17:32:28Z + DateCreated *time.Time `json:"dateCreated,omitempty"` - // Type The platform to which data will be forwarded + // ExpirationDate Date and time when the Service Account API key expires. // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // Example: 2024-06-15T17:32:28Z + ExpirationDate *time.Time `json:"expirationDate,omitempty"` -// UpdateChronicleIntegrationRequest_ConnectionInfo defines model for UpdateChronicleIntegrationRequest.ConnectionInfo. -type UpdateChronicleIntegrationRequest_ConnectionInfo struct { - union json.RawMessage -} + // Id + // + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` -// UpdateEfoIntegrationRequestV1 Update Integration Request -type UpdateEfoIntegrationRequestV1 struct { - union json.RawMessage -} + // LastUpdated Date and time when the Service Account was last updated. + // + // Example: 2024-04-11T17:32:28Z + LastUpdated *time.Time `json:"lastUpdated,omitempty"` -// UpdateElasticsearchIntegrationRequest Update Elasticsearch Integration Request -type UpdateElasticsearchIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // LastUsed Date and time when the Service Account API key was last used. // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // Auth Authentication method - // - // Example: BASIC_AUTH - Auth *UpdateElasticsearchIntegrationRequestConnectionInfoAuth `json:"auth,omitempty"` + // Example: 2024-06-15T17:32:28Z + LastUsed *time.Time `json:"lastUsed,omitempty"` - // Endpoint Elasticsearch instance endpoint URL - // - // Example: https://elastic.mydomain.com - Endpoint string `json:"endpoint"` + // Name Service Account display name. + // + // Example: CI/CD service api key + Name *string `json:"name,omitempty"` - // Format If specified, transforms `content.fields` and `labels` - // * `KV_PAIRS` - from objects (i.e. `{"foo": "bar", ...}`) to arrays of objects with "key" and "value" properties {i.e. `[{"key" : "foo", "value": "bar"}, ...]`) - // - // - // Example: KV_PAIRS - Format *UpdateElasticsearchIntegrationRequestConnectionInfoFormat `json:"format,omitempty"` + // SystemRoles Array of System roles assigned to the global service account. + SystemRoles *[]string `json:"systemRoles,omitempty"` - // Index Name of the index to store the data in - // - // Example: main - Index string `json:"index"` + // TeamId Team ID associated with the service account. + TeamId *UnlimitedLong `json:"teamId,omitempty"` - // IsInsecure Don't verify TLS certificate - // - // Example: false - IsInsecure *bool `json:"isInsecure,omitempty"` + // TeamRole The predefined team role for a Service Account, or an ID of a custom role. + // + // Example: ROLE_TEAM_STANDARD + TeamRole *string `json:"teamRole,omitempty"` +} - // Secret Authentication secret. To be set if auth is specified - // - // Example: Zm9vOiRhcHIxJE9GRzNYeWJwJGNrTDBGSERBa29YWUlsSDkuY3lzVDAK - Secret *string `json:"secret,omitempty"` - } `json:"connectionInfo"` +// ServiceAccountWithKeyResponseV1 defines model for ServiceAccountWithKeyResponseV1. +type ServiceAccountWithKeyResponseV1 struct { + // ApiKey Service Account API key + // + // Example: 123ab45c-d67e-89fg-0hij-1k23456l7890-n1MO + ApiKey *string `json:"apiKey,omitempty"` - // IsEnabled If the forwarding should be enabled or not + // DateCreated Date and time when the Service Account was created. // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 2024-08-23T17:32:28Z + DateCreated *time.Time `json:"dateCreated,omitempty"` - // Name A descriptive name to give to the integration + // ExpirationDate Date and time when the Service Account API key expires. // - // Example: name - Name string `json:"name"` + // Example: 2024-06-15T17:32:28Z + ExpirationDate *time.Time `json:"expirationDate,omitempty"` - // Type The platform to which data will be forwarded + // Id // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` -// UpdateElasticsearchIntegrationRequestConnectionInfoAuth Authentication method -// -// Example: BASIC_AUTH -type UpdateElasticsearchIntegrationRequestConnectionInfoAuth string + // LastUpdated Date and time when the Service Account was last updated. + // + // Example: 2024-04-11T17:32:28Z + LastUpdated *time.Time `json:"lastUpdated,omitempty"` -// UpdateElasticsearchIntegrationRequestConnectionInfoFormat If specified, transforms `content.fields` and `labels` -// * `KV_PAIRS` - from objects (i.e. `{"foo": "bar", ...}`) to arrays of objects with "key" and "value" properties {i.e. `[{"key" : "foo", "value": "bar"}, ...]`) -// -// Example: KV_PAIRS -type UpdateElasticsearchIntegrationRequestConnectionInfoFormat string + // LastUsed Date and time when the Service Account API key was last used. + // + // Example: 2024-06-15T17:32:28Z + LastUsed *time.Time `json:"lastUsed,omitempty"` -// UpdateGooglePubSubIntegrationRequest Update Google Pub/Sub Integration Request -type UpdateGooglePubSubIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // Name Service Account display name. // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // Attributes Extra headers to add to the request. Each header mapping requires 2 keys: "key" for the header key and "value" for its value - Attributes *[]KeyValueObject `json:"attributes,omitempty"` + // Example: CI/CD service api key + Name *string `json:"name,omitempty"` - // CredentialsJson JSON credentials for the service account Sysdig will use to send data - // - // Example: {"key":"value"} - CredentialsJson *string `json:"credentialsJson,omitempty"` + // SystemRoles Array of System roles assigned to the global service account. + SystemRoles *[]string `json:"systemRoles,omitempty"` - // OrderingKey The key to use to order the messages. Required to enable ordered delivery - // - // Example: key - OrderingKey *string `json:"orderingKey,omitempty"` + // TeamId Team ID associated with the service account. + TeamId *UnlimitedLong `json:"teamId,omitempty"` - // Project GCP project ID hosting the target pub/sub - // - // Example: myproject - Project string `json:"project"` + // TeamRole The predefined team role for a Service Account, or an ID of a custom role. + // + // Example: ROLE_TEAM_STANDARD + TeamRole *string `json:"teamRole,omitempty"` +} - // Topic pub/sub topic onto which publish the data - // - // Example: mytopic - Topic string `json:"topic"` - } `json:"connectionInfo"` +// ServiceAccountsNotificationSettingsResponseV1 The base schema for the service accounts notification settings. +type ServiceAccountsNotificationSettingsResponseV1 = ServiceAccountsNotificationSettinsBase - // IsEnabled If the forwarding should be enabled or not +// ServiceAccountsNotificationSettinsBase The base schema for the service accounts notification settings. +type ServiceAccountsNotificationSettinsBase struct { + // DaysBeforeExpiry The number of days before the expiry of the service account when the notifications are to be sent. + DaysBeforeExpiry *[]int32 `json:"daysBeforeExpiry,omitempty"` + + // IsEnabled Whether the notification settings are enabled or not. // // Example: true IsEnabled *bool `json:"isEnabled,omitempty"` - // Name A descriptive name to give to the integration + // NotificationChannelIds The list of notification channel IDs to which the notifications are to be sent.\ + // \ + // Supported types are **EMAIL** and **SLACK**. + NotificationChannelIds *[]UnlimitedLong `json:"notificationChannelIds,omitempty"` +} + +// Services Certificate registrations +type Services struct { + // CertificateId The certificate ID. // - // Example: name - Name string `json:"name"` + // Example: 12345 + CertificateId int64 `json:"certificateId"` - // Type The platform to which data will be forwarded + // RegisteredAt The timestamp the service was configured to use this certificate. // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // Example: 1970-01-01T00:00:00.000000000Z + RegisteredAt time.Time `json:"registeredAt"` -// UpdateGoogleSccIntegrationRequest Update Google SCC Integration Request -type UpdateGoogleSccIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // ServiceId The integration ID for the service owning the integration that uses the certificate. // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // CredentialsJson JSON credentials for the service account Sysdig will use to send data - // - // Example: {"key":"value"} - CredentialsJson *string `json:"credentialsJson,omitempty"` + // Example: 12345 + ServiceId string `json:"serviceId"` - // Organization ID of your GCP organization - // - // Example: myorg - Organization string `json:"organization"` - - // SecurityMarks additional annotations to add to assets or findings as they get forwarded to Security Command Center - SecurityMarks *[]KeyValueObject `json:"securityMarks,omitempty"` - } `json:"connectionInfo"` - - // IsEnabled If the forwarding should be enabled or not + // ServiceType The service type. // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: EVENTS_FORWARDER + ServiceType ServicesServiceType `json:"serviceType"` +} - // Name A descriptive name to give to the integration - // - // Example: name - Name string `json:"name"` +// ServicesServiceType The service type. +// +// Example: EVENTS_FORWARDER +type ServicesServiceType string - // Type The platform to which data will be forwarded - // - // Example: SYSLOG - Type IntegrationType `json:"type"` +// ServicesResponse LedgersResponse +type ServicesResponse struct { + Data []Services `json:"data"` } -// UpdateGroupMappingRequestV1 defines model for UpdateGroupMappingRequestV1. -type UpdateGroupMappingRequestV1 struct { - // CustomTeamRoleId The custom team role ID assigned for the user in this team. **Mutually exclusive with standardTeamRole**. - CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` +// Source Source of the event: +// - `syscall` - a syscall within a workload +// - `windows` - Windows event log +// - `profiling` - ML workload threat detections +// - `K8SAdmissionController` - Admission control request coming from the Kubernetes admission controller +// - `k8s_audit` - Kubernetes audit logs, if the category is `runtime`, otherwise Admission control request +// - `aws_cloudtrail` - AWS CloudTrail log, from CloudConnector +// - `awscloudtrail` - AWS CloudTrail log, agentless only +// - `agentless-aws-ml` - ML threat detections for AWS +// - `gcp_auditlog` - GCP Audit log +// - `azure_platformlogs` - Azure platform logs +// - `okta` - Okta System Logs +// - `agentless-okta-ml` - ML threat detections for Okta +// - `github` - Github organization logs +// +// Example: k8s_audit +type Source string - // GroupName The group name matching the external provider name. +// SourceDetails Additional details related to the Event source. +type SourceDetails struct { + // SubType A deeper particularization for the type of component that generated the raw event: + // - `auditlogs` - Audit logs of platforms/apps + // - `auditWebhooks` - Kubernetes Audit + // - `caas` - Container As A Service workload + // - `dynamicAdmissionControl` - Dynamic admission control + // - `host` - Non-containerized host + // - `container` - Container + // - `workforce` - Workforce type IAM // - // Example: Admins_Mapped_Group - GroupName string `json:"groupName"` - - // IsAdmin Flag that indicates if the group is an admin group. // - // Example: false - IsAdmin bool `json:"isAdmin"` - - // StandardTeamRole The standard team role assigned for the user in this team. **Mutually exclusive with customTeamRoleId**. - StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` - - // TeamMap Determines the teams to which a group is mapped. - TeamMap TeamMapV1 `json:"teamMap"` + // Example: host + SubType *string `json:"subType,omitempty"` - // Weight The weight of the group mapping that is used to determine the priority - a lower number has higher priority. + // Type The type of component that generated the raw event: + // - `cloud` - Cloud platform + // - `git` - Git platform + // - `iam` - Identity and Access Management platform + // - `kubernetes` - Kubernetes control plane + // - `workload` - Workload (from bare metal to *aaS compute) // - // Example: 2 - Weight int16 `json:"weight"` + // + // Example: cloud + Type string `json:"type"` } -// UpdateInhibitionRuleRequestV1 defines model for UpdateInhibitionRuleRequestV1. -type UpdateInhibitionRuleRequestV1 struct { - // Description Description of the inhibition rule. +// SsoSettingsBaseSchemaV1 defines model for SsoSettingsBaseSchemaV1. +type SsoSettingsBaseSchemaV1 struct { + // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. // - // Example: this is an example description - Description *string `json:"description,omitempty"` + // Example: true + CreateUserOnLogin *bool `json:"createUserOnLogin,omitempty"` - // Equal List of labels that must have an equal value in the source and target alert for the inhibition to take effect. - Equal *[]string `json:"equal,omitempty"` + // GroupMappingAttributeName The group mapping attribute name. + // + // Example: groups + GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` - // IsEnabled Indicates if the inhibition rule is enabled or not. + // IntegrationName The name of this SSO config. // - // Example: false - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: okta + IntegrationName *string `json:"integrationName,omitempty"` - // Name Name of the inhibition rule. If provided, must be unique. + // IsActive Flag to indicate if the SSO settings is active. // - // Example: this is an example name - Name *string `json:"name,omitempty"` + // Example: true + IsActive *bool `json:"isActive,omitempty"` - // SourceMatchers List of source matchers for which one or more alerts have to exist for the inhibition to take effect. - SourceMatchers []LabelMatcherV1 `json:"sourceMatchers"` + // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. + // + // Example: true + IsGroupMappingEnabled *bool `json:"isGroupMappingEnabled,omitempty"` - // TargetMatchers List of target matchers that have to be fulfilled by the target alerts to be muted. - TargetMatchers []LabelMatcherV1 `json:"targetMatchers"` + // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. + // + // Example: true + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` - // Version The current version of the resource. - Version UnlimitedLong `json:"version"` + // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. + // + // Example: true + IsSingleLogoutEnabled *bool `json:"isSingleLogoutEnabled,omitempty"` + + // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. + Product *Product `json:"product,omitempty"` } -// UpdateIntegrationRequest Update Integration Request -type UpdateIntegrationRequest struct { - union json.RawMessage +// SsoSettingsCreateRequestBaseV1 Create Request SSO Settings Base Schema +type SsoSettingsCreateRequestBaseV1 struct { + // Type Supported SSO types + // + // Example: SAML + Type SsoTypeV1 `json:"type"` } -// UpdateIntegrationRequestV1 defines model for UpdateIntegrationRequestV1. -type UpdateIntegrationRequestV1 struct { - // Name Integration name. +// SsoSettingsResponseBaseV1 Response SSO Settings Base Schema +type SsoSettingsResponseBaseV1 struct { + // Type Supported SSO types // - // Example: name - Name string `json:"name"` + // Example: SAML + Type SsoTypeV1 `json:"type"` +} - // IsEnabled Integration enabled status. +// SsoSettingsResponseV1 defines model for SsoSettingsResponseV1. +type SsoSettingsResponseV1 struct { + // Config Response SSO Settings Base Schema + Config *SsoSettingsResponseBaseV1 `json:"config,omitempty"` + + // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. // - // Example: false - IsEnabled *bool `json:"isEnabled"` + // Example: true + CreateUserOnLogin *bool `json:"createUserOnLogin,omitempty"` - // IsAllTeams If **true**, the integration will be enabled for all teams. - // If **false**, the integration will be enabled for the teams specified in the *teamIds* field. + // DateCreated The date (in ISO 8601 format) when this SSO config was created. // + // Example: 2017-07-21T17:32:28Z + DateCreated *time.Time `json:"dateCreated,omitempty"` + + // GroupMappingAttributeName The group mapping attribute name. // - // Example: false - IsAllTeams *bool `json:"isAllTeams"` + // Example: groups + GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` - // TeamIDs List of Sysdig's internal team ids for which the integration will be enabled. - // This field is required if *isAllTeams* is **false**. - TeamIDs []UnlimitedLong `json:"teamIds"` + // Id + // + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` - // JiraURL Customer's Jira URL. + // IntegrationName The name of this SSO config. // - // Example: https://atlassian-url.com - JiraURL string `json:"jiraUrl"` + // Example: okta + IntegrationName *string `json:"integrationName,omitempty"` - // JiraEmail The user email associated with the Jira account. + // IsActive Flag to indicate if the SSO settings is active. // - // Example: jira.user@email.com - JiraEmail openapi_types.Email `json:"jiraEmail"` + // Example: true + IsActive *bool `json:"isActive,omitempty"` - // JiraAccessToken Jira access token for the provided Jira account. + // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. // - // Example: jira-access-token - JiraAccessToken string `json:"jiraAccessToken"` + // Example: true + IsGroupMappingEnabled *bool `json:"isGroupMappingEnabled,omitempty"` - // JiraAssignee The default assignee Jira account ID for this integration. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-group-user-search "Jira user documentation") for more info. + // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. // + // Example: true + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` + + // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. // - // Example: 5b10ac8d82e05b22cc7d4ef5 - JiraAssignee *string `json:"jiraAssignee"` + // Example: true + IsSingleLogoutEnabled *bool `json:"isSingleLogoutEnabled,omitempty"` - // JiraLabels The list of Jira labels available for this integration. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/#api-group-labels "Jira labels documentation") for more info. - JiraLabels []string `json:"jiraLabels"` + // LastUpdated The date (in ISO 8601 format) when this SSO config was last updated. + // + // Example: 2017-07-21T17:32:28Z + LastUpdated *time.Time `json:"lastUpdated,omitempty"` - // ParentIssueTypeID Internal Sysdig's issue type id, which will act as a parent issue type for the integration. - ParentIssueTypeID *UnlimitedLong `json:"parentIssueTypeId,omitempty"` + // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. + Product *Product `json:"product,omitempty"` - // ChildIssueTypeID Internal Sysdig's issue type id, which will act as a child issue type for the integration. - ChildIssueTypeID *UnlimitedLong `json:"childIssueTypeId,omitempty"` + // Version + // + // Example: 1 + Version *UnlimitedLong `json:"version,omitempty"` } -// UpdateIpFilterV1 Request to update IP filter. -type UpdateIpFilterV1 struct { - // IpRange IP range in CIDR notation +// SsoSettingsUpdateRequestBaseV1 Update Request SSO Settings Base Schema +type SsoSettingsUpdateRequestBaseV1 struct { + // Type Supported SSO types // - // Example: 192.168.0.0/24 - IpRange string `json:"ipRange"` + // Example: SAML + Type SsoTypeV1 `json:"type"` +} - // IsEnabled Example: true - IsEnabled bool `json:"isEnabled"` +// SsoTypeV1 Supported SSO types +// +// Example: SAML +type SsoTypeV1 string - // Note Example: London Office - Note string `json:"note"` +// Stage defines model for Stage. +type Stage struct { + // Configuration Configurations for the stage. + Configuration *[]StageConfiguration `json:"configuration,omitempty"` + + // Name stage name. + // + // Example: runtime + Name string `json:"name"` } -// UpdateIssueTypeRequestV1 defines model for UpdateIssueTypeRequestV1. -type UpdateIssueTypeRequestV1 struct { - // JiraOpenStatusID Jira status id mapped to open status. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. +// StageConfiguration defines model for StageConfiguration. +type StageConfiguration struct { + // Behaviour Default behavior for the admission controller validator when no policy is matched. + // This value is ignored for other stages. Possible values are: + // - warn: allow the deployment but log a warning + // - reject: reject the deployment // // - // Example: 1000 - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - JiraOpenStatusID *string `json:"jiraOpenStatusId,omitempty"` + // Example: warn + Behaviour *string `json:"behaviour,omitempty"` - // JiraInProgressStatusID Jira status id mapped to in progress status. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. + // Scope Scope to apply the policies for the given stage. An empty string or missing property implies the policies are always active. + // The scope is defined using a query language expression, which is a subset of the full metrics query language used in monitoring. // // - // Example: 1001 - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - JiraInProgressStatusID *string `json:"jiraInProgressStatusId,omitempty"` + // Example: kubernetes.cluster.name = "my-cluster" and kubernetes.namespace.name = "my-namespace" + Scope *string `json:"scope,omitempty"` - // JiraClosedStatusID Jira status id mapped to closed status. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. + // UnknownImageAction Action to take in the admission controller when an image is not found or has never been scanned before. + // This value is ignored for other stages. Possible values are: + // - warn: allow the deployment but log a warning + // - reject: reject the deployment + // - rejectAndScan: reject the deployment and trigger a scan for the image // // - // Example: 1002 - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - JiraClosedStatusID *string `json:"jiraClosedStatusId,omitempty"` - - // CustomFieldIDs List of supported custom field ids for the issue type. - // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-get "Jira issue type fields documentation") for more info. - CustomFieldIDs []string `json:"customFieldIds"` + // Example: reject + UnknownImageAction *string `json:"unknownImageAction,omitempty"` } -// UpdateKafkaIntegrationRequest Update Kafka Integration Request -type UpdateKafkaIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type +// StatefulDetectionsContent Stateful detections event content +type StatefulDetectionsContent struct { + Fields map[string]string `json:"fields"` + + // Output Event output, generated after the configured rule // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo UpdateKafkaIntegrationRequest_ConnectionInfo `json:"connectionInfo"` + // Example: + Output string `json:"output"` - // IsEnabled If the forwarding should be enabled or not + // PolicyId ID of the policy that generated the event // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 2 + PolicyId PolicyId `json:"policyId"` - // Name A descriptive name to give to the integration + // PolicyNotificationChannelIds The list of notification channels where an alert is sent after event is generated. + // Doesn't account for aggregations and eventual thresholds. + PolicyNotificationChannelIds PolicyNotificationChannelIds `json:"policyNotificationChannelIds"` + + // PolicyOrigin The policy author: + // - `Sysdig` - default and managed policies + // - `Sysdig UI` - users interacting with Sysdig + // - `Tuner` - the automated tuner // - // Example: name - Name string `json:"name"` + // + // Example: Sysdig + PolicyOrigin PolicyOrigin `json:"policyOrigin"` - // Type The platform to which data will be forwarded + // RuleName Name of the rule the event is generated after // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // Example: Create Security Group Rule Allowing SSH Ingress + RuleName RuleName `json:"ruleName"` -// UpdateKafkaIntegrationRequest_ConnectionInfo defines model for UpdateKafkaIntegrationRequest.ConnectionInfo. -type UpdateKafkaIntegrationRequest_ConnectionInfo struct { - union json.RawMessage -} + // RuleTags The tags attached to the rule + RuleTags RuleTags `json:"ruleTags"` -// UpdateKafkaIntegrationRequestV1 Update Kafka Integration Request -type UpdateKafkaIntegrationRequestV1 struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // RuleType Rule type: + // - 1 - List matching - process + // - 2 - List matching - container + // - 3 - List matching - file + // - 4 - List matching - network + // - 5 - List matching - syscall + // - 6 - Falco + // - 7 - Drift detection + // - 8 - Malware detection + // - 11 - ML - Cryptominer detection + // - 13 - ML - AWS anomalous login + // - 14 - ML - Okta anomalous login // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo UpdateKafkaIntegrationRequestV1_ConnectionInfo `json:"connectionInfo"` - - // IsEnabled If the forwarding should be enabled or not // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 6 + RuleType RuleType `json:"ruleType"` - // Name A descriptive name to give to the integration - // - // Example: name - Name string `json:"name"` + // Sequence The sequence of events that occurred to trigger the event. + // The sequence is represented as a list of events, where each event is a map of key-value pairs. + Sequence *Sequence `json:"sequence,omitempty"` - // Type The platform to which data will be forwarded + // Stats An array representing the relevant APIs and how often they were called in the time window. + Stats *Stats `json:"stats,omitempty"` + + // Type The type of the event content. // - // Example: SYSLOG - Type IntegrationType `json:"type"` + // Example: workloadRuntimeDetection + Type EventContentType `json:"type"` } -// UpdateKafkaIntegrationRequestV1ConnectionInfoAuth The authentication method to optionally use. Currently supporting only GSSAPI -// -// Example: gssapi -type UpdateKafkaIntegrationRequestV1ConnectionInfoAuth string - -// UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer Algorithm that the client uses to multiplex data between the multiple Brokers. For compatibility with the Java client, Murmur2 is used as the default partitioner -// -// Example: roundrobin -type UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer string +// Stats An array representing the relevant APIs and how often they were called in the time window. +type Stats = []struct { + // Api Example: DescribeInternetGateways + Api *string `json:"api,omitempty"` -// UpdateKafkaIntegrationRequestV1ConnectionInfoCompression Compression standard used for the data -// -// Example: gzip -type UpdateKafkaIntegrationRequestV1ConnectionInfoCompression string + // Count Example: 1 + Count *int32 `json:"count,omitempty"` +} -// UpdateKafkaIntegrationRequestV1_ConnectionInfo defines model for UpdateKafkaIntegrationRequestV1.ConnectionInfo. -type UpdateKafkaIntegrationRequestV1_ConnectionInfo struct { - // Auth The authentication method to optionally use. Currently supporting only GSSAPI +// SubmitActionExecutionRequest The request for the execution of a Response Action. +type SubmitActionExecutionRequest struct { + // ActionType The name of the Response Action to execute. + // It may be one of the following: + // - KILL_PROCESS + // - KILL_CONTAINER + // - STOP_CONTAINER + // - PAUSE_CONTAINER + // - FILE_QUARANTINE + // - FILE_ACQUIRE + // - UNPAUSE_CONTAINER + // - FILE_UNQUARANTINE + // - START_CONTAINER + // - DELETE_POD + // - ROLLOUT_RESTART + // - KUBERNETES_VOLUME_SNAPSHOT + // - KUBERNETES_DELETE_VOLUME_SNAPSHOT + // - GET_LOGS + // - ISOLATE_NETWORK + // - DELETE_NETWORK_POLICY // - // Example: gssapi - Auth UpdateKafkaIntegrationRequestV1ConnectionInfoAuth `json:"auth"` - - // Balancer Algorithm that the client uses to multiplex data between the multiple Brokers. For compatibility with the Java client, Murmur2 is used as the default partitioner + // The following actions serve as the undo for previous actions: + // - START_CONTAINER: undo for STOP_CONTAINER\ + // - UNPAUSE_CONTAINER: undo for PAUSE_CONTAINER\ + // - FILE_UNQUARANTINE: undo for FILE_QUARANTINE\ + // - KUBERNETES_DELETE_VOLUME_SNAPSHOT: undo for KUBERNETES_VOLUME_SNAPSHOT\ + // - DELETE_NETWORK_POLICY: undo for ISOLATE_NETWORK\ // - // Example: roundrobin - Balancer *UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer `json:"balancer,omitempty"` - - // Brokers Kafka server endpoint. A Kafka cluster may provide several brokers; it follows the 'hostname: port' (without protocol scheme). - Brokers []string `json:"brokers"` - - // Compression Compression standard used for the data + // Do not use undo actions in [submitActionExecutionv1](#tag/Response-actions/operation/submitActionExecutionv1). // - // Example: gzip - Compression *UpdateKafkaIntegrationRequestV1ConnectionInfoCompression `json:"compression,omitempty"` - - // Keytab base64 encoded Kerberos keytab + // You can execute an undo actions using the service [undoActionExecutionV1](#tag/Response-actions/operation/undoActionExecutionV1). // - // Example: BQIAAAA3AAEAClNZU0RJRy5DT00ABnN5c2RpZwAAAAFlhdTkAQAXABCIRvfq7o+xF60Gvdgwt1hsAAAAAQ== - Keytab *string `json:"keytab,omitempty"` - - // Krb5 Kerberos krb5.conf file content for GSSAPI // - // Example: [libdefaults] - // default_realm = EXAMPLE.COM - // default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc - // default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc - // dns_lookup_kdc = true - // dns_lookup_realm = false - // [realms] - // EXAMPLE.COM = { - // kdc = kerberos.example.com - // kdc = kerberos-1.example.com - // kdc = kerberos-2.example.com:750 - // admin_server = kerberos.example.com - // master_kdc = kerberos.example.com - // default_domain = example.com - // } - // [domain_realm] - // .example.com = EXAMPLE.COM - // example.com = EXAMPLE.COM - // [logging] - // kdc = SYSLOG:INFO - // admin_server = FILE=/var/kadm5.log - Krb5 string `json:"krb5"` + // Example: KILL_PROCESS + ActionType ResponseActionType `json:"actionType"` - // Principal GSSAPI principal + // CallerId The ID of the user that executed the Response action. // - // Example: myprincipal - Principal string `json:"principal"` + // Example: Mary-Response + CallerId *CallerId `json:"callerId,omitempty"` - // Realm GSSAPI realm - // - // Example: myrealm - Realm string `json:"realm"` + // Parameters The parameters used to request the Response Action execution. + Parameters ActionExecutionParameters `json:"parameters"` +} - // Service GSSAPI Service name +// SupportedFilter A supported field for filtering events. +type SupportedFilter struct { + // Id Attribute onto which filtering is supported. // - // Example: myservice - Service string `json:"service"` + // Example: container.image.id + Id string `json:"id"` - // Topic Kafka topic where you want to store the forwarded data + // Operands The list of supported operands for filtering events. + Operands *[]Operand `json:"operands,omitempty"` + + // Type Data type for the attribute values. // - // Example: mytopic - Topic string `json:"topic"` - union json.RawMessage + // Example: string + Type SupportedFilterType `json:"type"` } -// UpdateKinesisDataStreamsIntegrationRequest Update Kinesis Data Streams Integration Request -type UpdateKinesisDataStreamsIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type - // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // AccessKey Access Key for authenticating on AWS to send data on the stream - // - // Example: AKIAIOSFODNN7EXAMPLE - AccessKey *string `json:"accessKey,omitempty"` - - // AccessSecret Access Secret for authenticating on AWS to send data on the stream - // - // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY - AccessSecret *string `json:"accessSecret,omitempty"` - - // MaxRecordSize Maximum record size in bytes - // - // Example: 1048576 - MaxRecordSize *int64 `json:"maxRecordSize,omitempty"` - - // OwnerAccount The AWS account ID of the account that created the stream - // - // Example: 123456789012 - OwnerAccount *string `json:"ownerAccount,omitempty"` +// SupportedFilterType Data type for the attribute values. +// +// Example: string +type SupportedFilterType string - // Region Region in which the stream is hosted - // - // Example: us-east-1 - Region string `json:"region"` +// SupportedFiltersResponse The list of supported attributes for filtering events. +type SupportedFiltersResponse struct { + // Data The list of supported attributes for filtering events. + Data []SupportedFilter `json:"data"` +} - // StreamName Stream name - // - // Example: sysdig-data-stream - StreamName string `json:"streamName"` - } `json:"connectionInfo"` +// SysdigQueryLanguageFilter Query language expression for filtering results. +// The filter is the result of logical concatenations, +// using "and" and "or" binary operators and the "not" unary prefix operator (i.e. `pid = 1 and not ppid = 2`), +// of attribute comparisons. Attribute comparisons can be: +// - Scalar: Using `=`, `!=`, `>`, `>=`, `<` and `<=` comparison operators. For example, `pid = 1`. +// - Vector: Using `in` to check the equality among the values provided between parenthesis. For example, `pid in (1, 2)`. +// The operators available depends on the attribute. +// Values containing double-quotes `"` need escaping using backslash `\`, i.e. name = "sample \"quoted\" value". +// You can retrieve the list of supported attributes and related operators through the +// `/secure/activity-audit/v1/supported-filters` endpoint. +// `freeText` is available as an additional attribute to provide free-text search capabilities. +// `freeText` supports the operators `=` (match) and `!=` (does not match). +// +// EBNF: +// ``` +// attribute = ? all available attributes ? ; +// value = ? attribute value ? ; +// quoted_value = "\"", value, "\"" ; +// bin_operator = "and" | "or"; +// cmp_scalar_operator = "=" | "!=" | ">" | ">=" | "<" | "<=" ; +// cmp_vector_operator = "in"; +// cmp_scalar_operation = attribute, [" "], cmp_scalar_operator, [" "], quoted_value ; +// values_list = "(", quoted_value, { [" "], ",", quoted_value }, ")" ; +// cmp_vector_operation = attribute, " ", cmp_vector_operator, [" "], values_list ; +// freetext_operation = "freeText ", "=" | "!=", quoted_value ; +// element = ["not "], (cmp_scalar_operation | cmp_vector_operation | freetext_operation) ; +// filter = element, {" ", bin_operator, " ", element} ; +// ``` +// +// Example: container.id='abc123' +type SysdigQueryLanguageFilter = string - // IsEnabled If the forwarding should be enabled or not +// TeamMapV1 Determines the teams to which a group is mapped. +type TeamMapV1 struct { + // IsForAllTeams If true, the group is mapped to all teams. // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` - - // Name A descriptive name to give to the integration // - // Example: name - Name string `json:"name"` + // Example: false + IsForAllTeams *bool `json:"isForAllTeams,omitempty"` - // Type The platform to which data will be forwarded + // TeamIds The list of teams to which group is mapped. It is empty when 'isForAllTeams' is true, otherwise it should have at least 1 element. // - // Example: SYSLOG - Type IntegrationType `json:"type"` + // + // Example: [154,187] + TeamIds *[]UnlimitedLong `json:"teamIds,omitempty"` } -// UpdateKinesisFirehoseIntegrationRequest Update Kinesis Firehose Integration Request -type UpdateKinesisFirehoseIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type - // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // AccessKey Access Key for authenticating on AWS to send data on the stream - // - // Example: AKIAIOSFODNN7EXAMPLE - AccessKey *string `json:"accessKey,omitempty"` +// TeamResponseV1 defines model for TeamResponseV1. +type TeamResponseV1 struct { + // AdditionalTeamPermissions Additional permissions available to the users of the team. + AdditionalTeamPermissions *AdditionalTeamPermissionsV1 `json:"additionalTeamPermissions,omitempty"` - // AccessSecret Access Secret for authenticating on AWS to send data on the stream - // - // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY - AccessSecret *string `json:"accessSecret,omitempty"` + // CustomTeamRoleId The custom team role assigned by default to users added to this team. Mutually exclusive with 'standardTeamRoleId'. + CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` - // Region Region in which the stream is hosted - // - // Example: us-east-1 - Region string `json:"region"` + // DateCreated The date (in ISO 8601 format) when this team was created. + // + // Example: 2017-07-21T17:32:28Z + DateCreated *time.Time `json:"dateCreated,omitempty"` - // StreamName Stream name - // - // Example: sysdig-firehose-stream - StreamName string `json:"streamName"` - } `json:"connectionInfo"` + // Description A description of the team explaining what is it used for. + // + // Example: This team has access to scanning results + Description *string `json:"description,omitempty"` - // IsEnabled If the forwarding should be enabled or not + // Id // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` - // Name A descriptive name to give to the integration + // IsAllZones 'True' if the users belonging to this team have access to all zones. Mutually exclusive with 'zoneIds'. // - // Example: name - Name string `json:"name"` + // + // Example: false + IsAllZones *bool `json:"isAllZones,omitempty"` - // Type The platform to which data will be forwarded + // IsDefaultTeam Specifies if the team is the default team. The default team is used to automatically assign new users to a team. // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // Example: false + IsDefaultTeam *bool `json:"isDefaultTeam,omitempty"` -// UpdateMcmIntegrationRequest Update IBM Multicloud Manager Integration Request -type UpdateMcmIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type + // IsImmutableTeam Specifies if the team is immutable. This is true if the team was created by the system with full access. It cannot be modified. // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // AccountId IBM Account ID - // - // Example: id-mycluster-account - AccountId *string `json:"accountId,omitempty"` + // Example: false + IsImmutableTeam *bool `json:"isImmutableTeam,omitempty"` - // ApiKey IBM Cloud API Key - // - // Example: dohch1OhPaewoo2edaifaefahphaoMee - ApiKey *string `json:"apiKey,omitempty"` + // LastUpdated The date (in ISO 8601 format) when this team was last updated. + // + // Example: 2017-07-21T17:32:28Z + LastUpdated *time.Time `json:"lastUpdated,omitempty"` - // Endpoint The URL, including protocol and port (if non standard), to your IBM Cloud Pak for Multicloud Management API endpoint - // - // Example: https://mcm.mydomain.com:8443 - Endpoint string `json:"endpoint"` + // Name The name of the team. It must be unique. + // + // Example: Scanning operations + Name *string `json:"name,omitempty"` - // IsInsecure Skip TLS certificate verification - // - // Example: false - IsInsecure *bool `json:"isInsecure,omitempty"` + // Product The product to which the team is assigned to. + Product *Product `json:"product,omitempty"` - // NoteName The note to use. If unspecified, a note with `policy-event` ID will be created and used - // - // Example: note-name - NoteName *string `json:"noteName,omitempty"` + // Scopes The scopes available to the users of this team. + Scopes *[]ScopeV1 `json:"scopes,omitempty"` - // ProviderId The provider the findings will be associated to - // - // Example: provider-id - ProviderId *string `json:"providerId,omitempty"` - } `json:"connectionInfo"` + // StandardTeamRole The standard team role assigned by default to users added to this team. Mutually exclusive with 'customTeamRoleId'. + StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` - // IsEnabled If the forwarding should be enabled or not - // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // UiSettings UI related settings. + UiSettings *UiSettingsV1 `json:"uiSettings,omitempty"` - // Name A descriptive name to give to the integration + // Version // - // Example: name - Name string `json:"name"` + // Example: 1 + Version *UnlimitedLong `json:"version,omitempty"` - // Type The platform to which data will be forwarded - // - // Example: SYSLOG - Type IntegrationType `json:"type"` + // ZoneIds The list of zones that users assigned to this team will have access to. Mutually exclusive with 'allZones'. + ZoneIds *[]UnlimitedLong `json:"zoneIds,omitempty"` } -// UpdateMicrosoftSentinelIntegrationRequest Update Microsoft Sentinel Integration Request -type UpdateMicrosoftSentinelIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type - // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo struct { - // Secret Log analytics primary key - // - // Example: b29qb29jdWIyd2F5N0FoWThzYWhuZzZhaWdoMWVlcmFoM3BoZXRvZURpZTdlaWJhCg== - Secret *string `json:"secret,omitempty"` +// TeamRoleV1 The standard team role provided by Sysdig. +// +// Example: ROLE_TEAM_READ +type TeamRoleV1 string - // WorkspaceId Log Analytics workspace ID. The identifier is minted by Microsoft Azure and used as supplied (https://learn.microsoft.com/azure/azure-monitor/logs/log-analytics-workspace-overview), so its UUID version is not controlled by Sysdig. - // - // Example: 578aef60-81be-4d38-a278-ec77925edcf0 - WorkspaceId string `json:"workspaceId"` - } `json:"connectionInfo"` +// TeamUserResponseV1 defines model for TeamUserResponseV1. +type TeamUserResponseV1 struct { + CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` + StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` - // IsEnabled If the forwarding should be enabled or not + // TeamId // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 1 + TeamId *UnlimitedLong `json:"teamId,omitempty"` - // Name A descriptive name to give to the integration + // UserId // - // Example: name - Name string `json:"name"` + // Example: 1 + UserId *UnlimitedLong `json:"userId,omitempty"` +} - // Type The platform to which data will be forwarded +// TemplateV2Alpha1 A report template (catalog entry). Read-only. Exposes identity, metadata, the filters a report +// created from it can use, and a minimal panel preview. Panel rendering internals are not exposed. +type TemplateV2Alpha1 struct { + // AvailableFilters Filters a report created from this template can apply **report-wide** — each affects every panel + // whose query supports it. The per-panel remainder is under `panels[].availableFilters`, and the two + // lists partition this template's filter surface: no key appears in both. // - // Example: SYSLOG - Type IntegrationType `json:"type"` -} + // **The split varies by template, so read it rather than assuming.** Most templates promote only + // `zone` here and leave the filterable keys on their panels. Others — typically the summary-style + // reports whose panels all aggregate the same dataset — promote most of their surface here, because a + // filter like severity is only meaningful applied to the whole document. Either arrangement is normal. + // + // **The split also varies between panels of the same template.** Promotion removes a key from every + // panel that declared it, so a panel whose query supports nothing beyond the promoted set comes back + // with an empty `availableFilters`, while a panel drawing on a richer query keeps the remainder. + // Expect one template to contain both kinds, and read each panel's own list. + AvailableFilters *[]AvailableFilterV2Alpha1 `json:"availableFilters,omitempty"` -// UpdateNotificationChannelRequestV1 defines model for UpdateNotificationChannelRequestV1. -type UpdateNotificationChannelRequestV1 struct { - // Type The type of the notification channel + // CreatedAt Timestamp when the template was created. // - // Example: EMAIL - Type NotificationChannelTypeV1 `json:"type"` + // Example: 2026-01-01T00:00:00Z + CreatedAt *time.Time `json:"createdAt,omitempty"` - // Version The current version of the resource. - Version *UnlimitedLong `json:"version,omitempty"` -} + // DefaultTimePreset Suggested default reporting window (advisory), in the same rolling `Nd` form a run or schedule + // accepts — see `Timeframe`. Empty when unset. + // + // + // Example: 7d + DefaultTimePreset *string `json:"defaultTimePreset,omitempty"` -// UpdateNotificationTemplateRequestV1 defines model for UpdateNotificationTemplateRequestV1. -type UpdateNotificationTemplateRequestV1 struct { - // Body Body content of the notification template. + // Description Template description. // - // Example: [Alert ID] - // {{ alert.rule.id }} + // Example: Vulnerabilities for running containers. + Description *string `json:"description,omitempty"` + + // Id Template identifier (stable slug). Referenced as `templateId` when creating a report. + // Legacy identifier format retained for compatibility (pre-existing-identifier exception). // - // [Alert description] - // {{ alert.rule.description }} // - // [Alert name] - // {{ alert.rule.name }} - Body string `json:"body"` + // Example: runtime_container_vulnerabilities + Id *string `json:"id,omitempty"` - // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. + // Kind Report category. // - // Example: pager_duty - ChannelType NotificationTemplateChannelTypeV1 `json:"channelType"` + // Example: vulnerability_management + Kind *TemplateV2Alpha1Kind `json:"kind,omitempty"` - // Description Description of the notification template. + // Name Human-readable template name. // - // Example: Sample description of the notification template - Description *string `json:"description,omitempty"` + // Example: Runtime Container Vulnerabilities + Name *string `json:"name,omitempty"` - // Name Name of the notification template. + // Panels Panel preview — identity, the filters each panel supports (`availableFilters`), and the panel's + // built-in default `filters`. Use these to decide what to send in a report's `panels`. // - // Example: Sample notification template - Name string `json:"name"` + // **An empty array is legitimate.** Some report kinds do not build their output from panels at all; + // for those the whole filter surface is at report level and this list is empty. It means the template + // has no panels, not that the preview was withheld. Two consequences: a report created from such a + // template accepts no `panels` on create or update, and its runs cannot use `panelId`, because there + // is no panel to target. + Panels *[]PanelSummaryV2Alpha1 `json:"panels,omitempty"` - // Title Title content of the notification template. + // TimePresets Suggested reporting-window options (advisory; not a hard constraint on runs/schedules), each in + // the rolling `Nd` form a run or schedule accepts. // - // Example: {{ alert.rule.name }} is {{ alert.occurrence.workflow_status }} - Title *string `json:"title,omitempty"` + // This list may be shorter than the equivalent picker in the Sysdig UI. The UI offers a rolling + // "24 h" option alongside a calendar-aligned "1 d"; because presets here are always rolling, both + // collapse to `1d` and the duplicate is dropped. A caller wanting the calendar-aligned variant + // sends `startAt`/`endAt` on a run instead. + TimePresets *[]string `json:"timePresets,omitempty"` - // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. + // Type Resource type. `report` is the only value returned today. New values MAY be added in a future + // minor version — treat an unrecognised value as opaque and carry on rather than failing on it. // - // Example: monitor_alert - UseCase NotificationTemplateUseCaseV1 `json:"useCase"` + // + // Example: report + Type *string `json:"type,omitempty"` - // Version The current version of the resource. - Version UnlimitedLongV2 `json:"version"` + // UpdatedAt Timestamp when the template was last updated. + // + // Example: 2026-01-01T00:00:00Z + UpdatedAt *time.Time `json:"updatedAt,omitempty"` } -// UpdatePricingRequestV1 defines model for UpdatePricingRequestV1. -type UpdatePricingRequestV1 struct { - // ClusterName The name of the cluster. Required when `type` is `CLUSTER`. - // - // Example: My pricing - ClusterName *string `json:"clusterName,omitempty"` +// TemplateV2Alpha1Kind Report category. +// +// Example: vulnerability_management +type TemplateV2Alpha1Kind string - // Name The name of the pricing profile. +// TimeFrame The start and end time of the request +type TimeFrame struct { + // From // - // Example: My pricing - Name string `json:"name"` + // Example: 1 + From *UnlimitedLong `json:"from,omitempty"` - // SpotLabel The name of a node label that is used to identify the node as a spot node. + // To // - // Example: cost-advisor-spot-node - SpotLabel *string `json:"spotLabel,omitempty"` + // Example: 1 + To *UnlimitedLong `json:"to,omitempty"` +} - // SpotLabelValue The value of the spot node label. +// TimeframeV2Alpha1 Reporting window for an on-demand run. Provide either a relative `preset` or an absolute +// `startAt`/`endAt` range, not both. Schedules use `ScheduleTimeframe` instead, which accepts a +// `preset` only — an absolute range there would pin every run to the same fixed period.\ +// \ +// **Not every report kind takes a window.** A compliance report reports on the current state of its +// policy rather than over a period, and the service rejects a timeframe supplied for one — so do not +// send this field when running a compliance report. Every other kind takes a window.\ +// \ +// Presets are **whole days only**, written `Nd` with N between 1 and 30 — e.g. `1d`, `7d`, `30d`. +// Over-30-day windows are rejected: `90d` is **not** a valid preset.\ +// \ +// **A preset is a rolling window ending at the moment the run is created**, not a calendar-aligned +// one: `1d` is the 24 hours up to now, `7d` the 168 hours up to now. It is resolved to absolute +// instants when the run is created, and the resolved range is echoed back in the run's `timeframe`. +// This matches how a schedule's preset is resolved when it fires.\ +// \ +// There is therefore no `24h` preset and no need for one — `1d` **is** the rolling 24-hour window. If +// you want a calendar-aligned window instead — yesterday midnight to midnight, or a whole month — +// compute the boundaries yourself and send `startAt`/`endAt`; presets cannot express one.\ +// \ +// **Absolute ranges cover recent history only.** Both `startAt` and `endAt` must fall within the +// current calendar month or the one immediately before it, and the range may span at most 31 days. +// A window that reaches further back is rejected with `422`, even if it is under 31 days — for +// example, on 2 September a request for 1–15 July is rejected, while 1 August – 1 September is +// accepted. Reporting keeps no long-tail window for on-demand generation; use a schedule if you +// need a report produced regularly over time. +type TimeframeV2Alpha1 struct { + // EndAt Absolute end of the window (RFC 3339). Runs only. Must fall inside the recency limit + // described above. // - // Example: true - SpotLabelValue *string `json:"spotLabelValue,omitempty"` - - // Type The type of the pricing. // - // Example: CLUSTER - Type PricingType `json:"type"` + // Example: 2026-07-28T23:59:59Z + EndAt *time.Time `json:"endAt,omitempty"` - // UnitPricing The unit pricing configuration used to compute costs. - UnitPricing UnitPricingV1 `json:"unitPricing"` + // Preset Relative window as whole days, `Nd` with 1 ≤ N ≤ 30 (e.g. `1d`, `7d`, `30d`). Values outside + // this pattern or range are rejected with `422`. + // + // Rolling, ending at the instant the run is created — `1d` is the last 24 hours, not yesterday. + // Use `startAt`/`endAt` for a calendar-aligned window. + // + // + // Example: 7d + Preset *string `json:"preset,omitempty"` - // Version The current version of the resource. - Version UnlimitedLong `json:"version"` + // StartAt Absolute start of the window (RFC 3339). Runs only. Must be no later than `endAt`, and must + // fall inside the recency limit described above. + // + // + // Example: 2026-07-28T00:00:00Z + StartAt *time.Time `json:"startAt,omitempty"` } -// UpdateQradarIntegrationRequest Save IBM QRadar Integration Request -type UpdateQradarIntegrationRequest struct { - // Channels Data types to forward. Must be compatible with the specified Integration type - // - // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo BaseConnectionInfoQradar `json:"connectionInfo"` +// Timestamp Timestamp the audit event occured, expressed in nanoseconds. +// +// Example: 1546300800000000000 +type Timestamp = int64 - // IsEnabled If the forwarding should be enabled or not - // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` +// To To, expressed in Unix nanoseconds timestamp. The difference between `from` and `to` cannot be greater than 2 weeks. +// If defined, `cursor` cannot be used. +// +// Example: 1546300800000000000 +type To = int64 - // Name A descriptive name to give to the integration - // - // Example: name - Name string `json:"name"` +// Types The entry types to filter. This query parameter can be set multiple times +// to filter for different entry types. +// +// Example: commands +type Types string - // Type The platform to which data will be forwarded +// UiSettingsV1 UI related settings. +type UiSettingsV1 struct { + // EntryPoint The page you see after logging into Sysdig UI. It is defined by a Module and a Selection. + // **The Entry Point is not supported in Sysdig Secure.** + EntryPoint *EntryPointV1 `json:"entryPoint,omitempty"` + + // Theme The color assigned to the team. // - // Example: SYSLOG - Type IntegrationType `json:"type"` + // Example: #112233 + Theme *string `json:"theme,omitempty"` } -// UpdateRiskAccepted defines model for UpdateRiskAccepted. -type UpdateRiskAccepted struct { - // Description Description of why the accepted risk was created +// UnitPricingV1 The unit pricing configuration used to compute costs. +type UnitPricingV1 struct { + // Cpu Hourly cost of one CPU. // - // Example: vulnerability cannot be removed manually - Description *string `json:"description,omitempty"` + // Example: 0.031611 + Cpu float32 `json:"cpu"` - // ExpirationDate Date when the accepted risk expires. Setting this to null will make the accepted risk never expire. - // + // Ram Hourly cost of one GB of RAM. // - // Example: 2024-02-27 - ExpirationDate *string `json:"expirationDate,omitempty"` + // Example: 0.004237 + Ram float32 `json:"ram"` - // Reason Reason for acceptance + // SpotCpu Hourly cost of one CPU for a spot node. + SpotCpu *float32 `json:"spotCpu,omitempty"` + + // SpotRam Hourly cost of one GB of RAM for a spot node. + SpotRam *float32 `json:"spotRam,omitempty"` + + // Storage Hourly cost of one GB of storage. // - // Example: RiskTransferred - Reason *UpdateRiskAcceptedReason `json:"reason,omitempty"` + // Example: 0.00005479452 + Storage float32 `json:"storage"` } -// UpdateRiskAcceptedReason Reason for acceptance +// UnlimitedLong // -// Example: RiskTransferred -type UpdateRiskAcceptedReason string +// Example: 1 +type UnlimitedLong = int64 -// UpdateServiceAccountsNotificationSettingsRequestV1 defines model for UpdateServiceAccountsNotificationSettingsRequestV1. -type UpdateServiceAccountsNotificationSettingsRequestV1 struct { - // DaysBeforeExpiry The number of days before the expiry of the service account when the notifications are to be sent. - DaysBeforeExpiry []int32 `json:"daysBeforeExpiry"` +// UnlimitedLongV2 +// +// Example: 1 +type UnlimitedLongV2 = int64 - // IsEnabled Whether the notification settings are enabled or not. +// UpdateAccessKeyRequestV1 Update access key request +type UpdateAccessKeyRequestV1 struct { + // AgentLimit Maximum number of agents that can be connected with the access key + // + // Example: 100 + AgentLimit *int32 `json:"agentLimit,omitempty"` + + // AgentReservation Number of agents that are guaranteed to be available for the access key + // + // Example: 5 + AgentReservation *int32 `json:"agentReservation,omitempty"` + + // IsEnabled Flag that indicates if the access key should be disabled or enabled // // Example: true IsEnabled bool `json:"isEnabled"` - // NotificationChannelIds The list of notification channel IDs to which the notifications are to be sent.\ - // \ - // Supported types are **EMAIL** and **SLACK**. - NotificationChannelIds []UnlimitedLong `json:"notificationChannelIds"` + // Metadata Access key metadata (maximum of 20 key-value pairs where key can be up to 25 characters long and value can be up to 50 characters long) + Metadata *map[string]string `json:"metadata,omitempty"` + + // TeamId ID of team that owns the access key + // + // Example: 13 + TeamId *int32 `json:"teamId,omitempty"` } -// UpdateSplunkIntegrationRequest Update Splunk Integration Request -type UpdateSplunkIntegrationRequest struct { +// UpdateAmazonSqsIntegrationRequest Update Amazon SQS Integration Request +type UpdateAmazonSqsIntegrationRequest struct { // Channels Data types to forward. Must be compatible with the specified Integration type // // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] Channels *IntegrationChannels `json:"channels,omitempty"` ConnectionInfo struct { - // CertificateId ID of a certificate stored in Sysdig's [Certificates Management tool](#tag/Certificates). Note that the RFC 5425 (TLS) protocol is required for you to see this field + // AccessKey Access Key for authenticating on AWS to send data on the queue // - // Example: 1 - CertificateId *int64 `json:"certificateId,omitempty"` + // Example: myaccesskey + AccessKey *string `json:"accessKey,omitempty"` - // Endpoint URL of the Splunk instance + // AccessSecret Access Secret for authenticating on AWS to send data on the queue // - // Example: https://splunk.mydomain.com:443/services/collector/event - Endpoint string `json:"endpoint"` + // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY + AccessSecret *string `json:"accessSecret,omitempty"` - // Index index to send data to. If unspecified, it will be used the index specified on the HTTP Event Collector configuration on Splunk + // Delay Delay, in seconds, applied to the data // - // Example: main - Index *string `json:"index,omitempty"` + // Example: 1 + Delay *int64 `json:"delay,omitempty"` - // IsInsecure Skip TLS certificate verification + // Headers Extra headers to add to the payload. Each header mapping requires 2 keys: 'key' for the header key and 'value' for its value + Headers *[]KeyValueObject `json:"headers,omitempty"` + + // IsFifo If the queue is of FIFO type // // Example: false - IsInsecure *bool `json:"isInsecure,omitempty"` + IsFifo *bool `json:"isFifo,omitempty"` - // SourceType Source type to override [Sysdig standard data type to source type mapping](https://docs.sysdig.com/en/forward-splunk#reference-data-categories-mapped-to-source-types) + // OwnerAccount The AWS account ID of the account that created the queue // - // Example: cisco_syslog - SourceType *string `json:"sourceType,omitempty"` + // Example: 123456789012 + OwnerAccount *string `json:"ownerAccount,omitempty"` - // Token HTTP Event Collector Token + // Queue Queue name // - // Example: eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MSIsInR0eXAiOiJzdGF0aWMifQ.eyJpc3MiOiJhZG1pbiBmcm9tIHNvMSIsInN1YiI6ImFkbWluIiwiYXVkIjoiVG9rZW50b3duIiwiaWRwIjoic3BsdW5rIiwianRpIjoiY2EwOGE2ODQyZDNlYzIxYjRkMTg1NDk3NTRlOGU4ZDc3YTM5MmQ3ZTE3ZGUyOGNmZGM3MWI3ODAwNWExNmU3OCIsImlhdCI6MTU1MTk5OTM0NiwiZXhwIjowLCJuYnIiOjE1NTE5OTkzNDZ9.RrZxe89qchfEtrEnG1PjTmJzO_JTtPX8xqSiSunYGylupG114KujO3-E88TtM-Tf51qtVpJydR3JSJpPfaf17w - Token *string `json:"token,omitempty"` + // Example: sysdig-efo-queue + Queue string `json:"queue"` + + // Region Region in which the SQS queue is hosted + // + // Example: us-east + Region string `json:"region"` } `json:"connectionInfo"` // IsEnabled If the forwarding should be enabled or not @@ -18617,63 +20766,65 @@ type UpdateSplunkIntegrationRequest struct { Type IntegrationType `json:"type"` } -// UpdateSsoSettingsRequestV1 defines model for UpdateSsoSettingsRequestV1. -type UpdateSsoSettingsRequestV1 struct { - // Config Update Request SSO Settings Base Schema - Config SsoSettingsUpdateRequestBaseV1 `json:"config"` +// UpdateAutomationRequestV1Alpha1 Request body to update an existing automation. +type UpdateAutomationRequestV1Alpha1 = AutomationWritableV1Alpha1 - // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. - // - // Example: true - CreateUserOnLogin bool `json:"createUserOnLogin"` +// UpdateAutomationResponseV1Alpha1 The updated automation. +type UpdateAutomationResponseV1Alpha1 = AutomationV1Alpha1 - // GroupMappingAttributeName The group mapping attribute name. +// UpdateChronicleIntegrationConnInfo Update Chronicle Integration Connection Info +type UpdateChronicleIntegrationConnInfo struct { + // ApiKey The Chronicle v2 API key // - // Example: groups - GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` + // Example: jeequiedahtaiSh2uM0chigheekaego8 + ApiKey *string `json:"apiKey,omitempty"` - // IntegrationName The name of this SSO config. + // Region The target region // - // Example: okta - IntegrationName *string `json:"integrationName,omitempty"` + // Example: europe + Region *UpdateChronicleIntegrationConnInfoRegion `json:"region,omitempty"` +} - // IsActive Flag to indicate if the SSO settings is active. - // - // Example: true - IsActive bool `json:"isActive"` +// UpdateChronicleIntegrationConnInfoRegion The target region +// +// Example: europe +type UpdateChronicleIntegrationConnInfoRegion string - // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. +// UpdateChronicleIntegrationConnInfoV2 Update Chronicle Integration Connection V2 Info +type UpdateChronicleIntegrationConnInfoV2 struct { + // ChronicleCustomerId Unique identifier (UUID) corresponding to a particular Chronicle instance. The identifier is minted by Google Chronicle and used as supplied (https://cloud.google.com/chronicle/docs/reference/rest), so its UUID version is not controlled by Sysdig. // - // Example: true - IsGroupMappingEnabled bool `json:"isGroupMappingEnabled"` + // Example: 12345678-1234-1234-1234-123456789012 + ChronicleCustomerId string `json:"chronicleCustomerId"` - // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. + // CredentialsOAuth2 The Chronicle v2 OAuth2 credentials // - // Example: true - // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set - IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` + // Example: { "type": "service_account", "project_id": "malachite", "client_id": "1234567", } + CredentialsOAuth2 *string `json:"credentialsOAuth2,omitempty"` - // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. + // Namespace User-configured environment namespace to identify the data domain the logs originated from // - // Example: true - IsSingleLogoutEnabled bool `json:"isSingleLogoutEnabled"` - - // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. - Product Product `json:"product"` + // Example: test + Namespace string `json:"namespace"` - // Version + // Region The target region // - // Example: 1 - Version UnlimitedLong `json:"version"` + // Example: europe + Region *UpdateChronicleIntegrationConnInfoV2Region `json:"region,omitempty"` } -// UpdateSyslogIntegrationRequest Update Syslog Integration Request -type UpdateSyslogIntegrationRequest struct { +// UpdateChronicleIntegrationConnInfoV2Region The target region +// +// Example: europe +type UpdateChronicleIntegrationConnInfoV2Region string + +// UpdateChronicleIntegrationRequest Update Chronicle Integration Request +type UpdateChronicleIntegrationRequest struct { // Channels Data types to forward. Must be compatible with the specified Integration type // // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] - Channels *IntegrationChannels `json:"channels,omitempty"` - ConnectionInfo BaseConnectionInfoSyslog `json:"connectionInfo"` + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo UpdateChronicleIntegrationRequest_ConnectionInfo `json:"connectionInfo"` // IsEnabled If the forwarding should be enabled or not // @@ -18691,155 +20842,149 @@ type UpdateSyslogIntegrationRequest struct { Type IntegrationType `json:"type"` } -// UpdateTeamRequestV1 defines model for UpdateTeamRequestV1. -type UpdateTeamRequestV1 struct { - // AdditionalTeamPermissions Additional permissions available to the users of the team. - AdditionalTeamPermissions AdditionalTeamPermissionsV1 `json:"additionalTeamPermissions"` +// UpdateChronicleIntegrationRequest_ConnectionInfo defines model for UpdateChronicleIntegrationRequest.ConnectionInfo. +type UpdateChronicleIntegrationRequest_ConnectionInfo struct { + union json.RawMessage +} - // CustomTeamRoleId The custom team role assigned by default to users added to this team. - CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` +// UpdateEfoIntegrationRequestV1 Update Integration Request +type UpdateEfoIntegrationRequestV1 struct { + union json.RawMessage +} - // Description A description of the team explaining what is it used for. +// UpdateElasticsearchIntegrationRequest Update Elasticsearch Integration Request +type UpdateElasticsearchIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type // - // Example: User Team description - Description *string `json:"description,omitempty"` + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // Auth Authentication method + // + // Example: BASIC_AUTH + Auth *UpdateElasticsearchIntegrationRequestConnectionInfoAuth `json:"auth,omitempty"` - // IsAllZones **True** if the users that are members of this team have access to all zones. **Mutually exclusive with zoneIds**.\ - // \ - // _Only supported in Secure features._ - // - // - // Example: false - IsAllZones *bool `json:"isAllZones,omitempty"` + // Endpoint Elasticsearch instance endpoint URL + // + // Example: https://elastic.mydomain.com + Endpoint string `json:"endpoint"` - // IsDefaultTeam Specifies if this is the default team. The default team is used to automatically assign new users to a team. - // - // Example: false - IsDefaultTeam bool `json:"isDefaultTeam"` + // Format If specified, transforms `content.fields` and `labels` + // * `KV_PAIRS` - from objects (i.e. `{"foo": "bar", ...}`) to arrays of objects with "key" and "value" properties {i.e. `[{"key" : "foo", "value": "bar"}, ...]`) + // + // + // Example: KV_PAIRS + Format *UpdateElasticsearchIntegrationRequestConnectionInfoFormat `json:"format,omitempty"` - // Name The name of the team. - // - // Example: User Team - Name string `json:"name"` + // Index Name of the index to store the data in + // + // Example: main + Index string `json:"index"` - // Scopes Scopes is a list of different scope types and filter values that will be applied to resources - // when accessed through the team. - Scopes []ScopeV1 `json:"scopes"` + // IsInsecure Don't verify TLS certificate + // + // Example: false + IsInsecure *bool `json:"isInsecure,omitempty"` - // StandardTeamRole The standard team role assigned by default to users added to this team. - StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` + // Secret Authentication secret. To be set if auth is specified + // + // Example: Zm9vOiRhcHIxJE9GRzNYeWJwJGNrTDBGSERBa29YWUlsSDkuY3lzVDAK + Secret *string `json:"secret,omitempty"` + } `json:"connectionInfo"` - // UiSettings UI related settings. - UiSettings UiSettingsV1 `json:"uiSettings"` + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` - // Version + // Name A descriptive name to give to the integration // - // Example: 1 - Version UnlimitedLong `json:"version"` + // Example: name + Name string `json:"name"` - // ZoneIds The list of zones that users assigned to this team will have access to. **Mutually exclusive with allZones**.\ - // \ - // _Only supported in Secure features._ - ZoneIds *[]UnlimitedLong `json:"zoneIds,omitempty"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// UpdateUserDeactivationConfigurationRequestV1 defines model for UpdateUserDeactivationConfigurationRequestV1. -type UpdateUserDeactivationConfigurationRequestV1 struct { - // IsEnabled Specifies if user deactivation is enabled for this customer. - // - // Example: false - IsEnabled bool `json:"isEnabled"` +// UpdateElasticsearchIntegrationRequestConnectionInfoAuth Authentication method +// +// Example: BASIC_AUTH +type UpdateElasticsearchIntegrationRequestConnectionInfoAuth string - // NumberDaysBeforeDeactivation Number of days before inactive users are deactivated. - NumberDaysBeforeDeactivation DaysInYearInt `json:"numberDaysBeforeDeactivation"` -} +// UpdateElasticsearchIntegrationRequestConnectionInfoFormat If specified, transforms `content.fields` and `labels` +// * `KV_PAIRS` - from objects (i.e. `{"foo": "bar", ...}`) to arrays of objects with "key" and "value" properties {i.e. `[{"key" : "foo", "value": "bar"}, ...]`) +// +// Example: KV_PAIRS +type UpdateElasticsearchIntegrationRequestConnectionInfoFormat string -// UpdateUserRequestV1 defines model for UpdateUserRequestV1. -type UpdateUserRequestV1 struct { - // BypassSsoEnforcement When **True**, the user can bypass SSO enforcement. - // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. - // If a field is omitted, its value will be left unchanged. - // +// UpdateGooglePubSubIntegrationRequest Update Google Pub/Sub Integration Request +type UpdateGooglePubSubIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type // - // Example: false - BypassSsoEnforcement *bool `json:"bypassSsoEnforcement,omitempty"` + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // Attributes Extra headers to add to the request. Each header mapping requires 2 keys: "key" for the header key and "value" for its value + Attributes *[]KeyValueObject `json:"attributes,omitempty"` - // FirstName The name of the user. - // - // - // Example: john - FirstName *string `json:"firstName,omitempty"` + // CredentialsJson JSON credentials for the service account Sysdig will use to send data + // + // Example: {"key":"value"} + CredentialsJson *string `json:"credentialsJson,omitempty"` - // IsAdmin **True** if the user has Administration permissions. - // - // When the admin permission is revoked (switched from True to False), the user will be removed from all teams except the default team(s) and assigned a default role in those team(s). - // - // - // Example: false - IsAdmin *bool `json:"isAdmin,omitempty"` + // OrderingKey The key to use to order the messages. Required to enable ordered delivery + // + // Example: key + OrderingKey *string `json:"orderingKey,omitempty"` - // IsEnabled When **True**, the user can bypass SSO enforcement. - // - // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. - // + // Project GCP project ID hosting the target pub/sub + // + // Example: myproject + Project string `json:"project"` + + // Topic pub/sub topic onto which publish the data + // + // Example: mytopic + Topic string `json:"topic"` + } `json:"connectionInfo"` + + // IsEnabled If the forwarding should be enabled or not // // Example: true IsEnabled *bool `json:"isEnabled,omitempty"` - // LastName The surname of the user. - // + // Name A descriptive name to give to the integration // - // Example: doe - LastName *string `json:"lastName,omitempty"` + // Example: name + Name string `json:"name"` - // Version The current version of the resource. - Version UnlimitedLong `json:"version"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// UpdateWebhookIntegrationRequest Update Webhook Integration Request -type UpdateWebhookIntegrationRequest struct { +// UpdateGoogleSccIntegrationRequest Update Google SCC Integration Request +type UpdateGoogleSccIntegrationRequest struct { // Channels Data types to forward. Must be compatible with the specified Integration type // // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] Channels *IntegrationChannels `json:"channels,omitempty"` ConnectionInfo struct { - // Auth Authentication method - // - // Example: BASIC_AUTH - Auth *UpdateWebhookIntegrationRequestConnectionInfoAuth `json:"auth,omitempty"` - - // CertificateId ID of a certificate stored in Sysdig's [Certificates Management tool](#tag/Certificates). Note that the RFC 5425 (TLS) protocol is required for you to see this field - // - // Example: 1 - CertificateId *int64 `json:"certificateId,omitempty"` - - // Endpoint Webhook endpoint following the schema protocol - // - // Example: https://endpoint.mydomain.com - Endpoint string `json:"endpoint"` - - // Headers Extra headers to add to the request. Each header mapping requires 2 keys: 'key' for the header key and 'value' for its value - Headers *[]KeyValueObject `json:"headers,omitempty"` - - // IsInsecure Skip TLS certificate verification - // - // Example: false - IsInsecure *bool `json:"isInsecure,omitempty"` - - // Output Payload format + // CredentialsJson JSON credentials for the service account Sysdig will use to send data // - // Example: ndjson - Output *UpdateWebhookIntegrationRequestConnectionInfoOutput `json:"output,omitempty"` + // Example: {"key":"value"} + CredentialsJson *string `json:"credentialsJson,omitempty"` - // Secret Secret to use, according to the "auth" value. + // Organization ID of your GCP organization // - // Example: eiMaimiYohrahbaeS6iaNgo8iu - Secret *string `json:"secret,omitempty"` + // Example: myorg + Organization string `json:"organization"` - // TimestampFormat The resolution of the "timestamp" field in the payload - // - // Example: seconds - TimestampFormat *UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat `json:"timestampFormat,omitempty"` + // SecurityMarks additional annotations to add to assets or findings as they get forwarded to Security Command Center + SecurityMarks *[]KeyValueObject `json:"securityMarks,omitempty"` } `json:"connectionInfo"` // IsEnabled If the forwarding should be enabled or not @@ -18858,4136 +21003,4084 @@ type UpdateWebhookIntegrationRequest struct { Type IntegrationType `json:"type"` } -// UpdateWebhookIntegrationRequestConnectionInfoAuth Authentication method -// -// Example: BASIC_AUTH -type UpdateWebhookIntegrationRequestConnectionInfoAuth string +// UpdateGroupMappingRequestV1 defines model for UpdateGroupMappingRequestV1. +type UpdateGroupMappingRequestV1 struct { + // CustomTeamRoleId The custom team role ID assigned for the user in this team. **Mutually exclusive with standardTeamRole**. + CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` -// UpdateWebhookIntegrationRequestConnectionInfoOutput Payload format -// -// Example: ndjson -type UpdateWebhookIntegrationRequestConnectionInfoOutput string + // GroupName The group name matching the external provider name. + // + // Example: Admins_Mapped_Group + GroupName string `json:"groupName"` -// UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat The resolution of the "timestamp" field in the payload -// -// Example: seconds -type UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat string + // IsAdmin Flag that indicates if the group is an admin group. + // + // Example: false + IsAdmin bool `json:"isAdmin"` -// UpdatedAt datetime of last update -// -// Example: 2024-01-22T08:51:46.016464Z -type UpdatedAt = string + // StandardTeamRole The standard team role assigned for the user in this team. **Mutually exclusive with customTeamRoleId**. + StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` -// UploadCertificateRequest Certificate to be uploaded -type UploadCertificateRequest struct { - // CertificateFileName The certificate file to be uploaded - // - // Example: Content-Disposition: form-data; name="certificateFileName"; filename="cert.pem" - // -----BEGIN CERTIFICATE----- - // MIIDXTCCAkWgAwIBAgIJAJC1HiIAZAiIMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV - // BAYTAkFUMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX - // aWRnaXRzIFB0eSBMdGQwHhcNMTYxMjMxMTQ3NDI4WhcNNDgwNjMxMTQ3NDI4WjBF - // MQswCQYDVQQGEwJBVzERMAsGA1UECAwESmFuaTETMBEGA1UECgwKRGFuaWVsIENv - // LjEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOC - // AQ8AMIIBCgKCAQEAr0Ij7X2VeAn7vqqzq+5rSHZD2G5YjsMm0gtF8gfdG0h7om6D - // 5sbY18UWoVgF8Zp8v4+yzFP+YHqQa0S3pJI5p2hbiT2GhRwaUpT+0Lg+SIa+Gt5k - // sjuZb2GKZ47QnqMtKuT3aNRmJIJ0I3eJ8P3hvs+BUjxY3O9y8JxW1j3hLhF+n2Im - // klP8xuhpYtagLy6qxFhoSqzM9wQbHOlC4qCF76x8djC0Bg+ROe3Wkb8bV5ZElgvZ - // r64Ny7ffOQdc/zUi+J9j2ijJAgMBAAGjUDBOMB0GA1UdDgQWBBQxL9aji2MKEMD+ - // Rm9eJiEH4M0a/DAfBgNVHSMEGDAWgBQxL9aji2MKEMD+Rm9eJiEH4M0a/DAMBgNV - // HRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB1hUK75CdDtJeLsQe08Lw0M9kP - // 5wqzj4HAnfKy29G/BJaGcYc4G7qnvl6hdC4jFPm9HXYEa7xQp6kt2e5R4t4OZSKg - // Ai5p5MeCh2ecdPN7otrF8+iO9XJEeuOQrqC6OVAKgLNCIVnXLPXp9i9b7gjFJeTT - // BNwE3rDJAkSnhk6Bhep4+JL1TyQ72DQ3HW4d/27To4v7NjP6r+K2eK5smVz9HSPD - // A8qJ31+ajNQMYWXFCR+HA4C/v1uYfY2/WMy2nw2/X7gJ0iAf3GtWPo/jYH6jhkDO - // i+3hFh9SIN2evhZV/BY6Uj+W3O3hLJA0ZgTXkZfMMz4/w9f3TyJ3oXxZqvzS - // -----END CERTIFICATE----- - CertificateFileName openapi_types.File `json:"certificateFileName"` + // TeamMap Determines the teams to which a group is mapped. + TeamMap TeamMapV1 `json:"teamMap"` - // Name The name of the certificate that is being uploaded + // Weight The weight of the group mapping that is used to determine the priority - a lower number has higher priority. // - // Example: foo - Name string `json:"name"` + // Example: 2 + Weight int16 `json:"weight"` } -// User The full representation of a User -type User struct { - // Groups Example: ["system:masters","system:authenticated"] - Groups *[]string `json:"groups,omitempty"` - - // Username The username of the User +// UpdateInhibitionRuleRequestV1 defines model for UpdateInhibitionRuleRequestV1. +type UpdateInhibitionRuleRequestV1 struct { + // Description Description of the inhibition rule. // - // Example: kubernetes-admin - Username *string `json:"username,omitempty"` -} + // Example: this is an example description + Description *string `json:"description,omitempty"` -// UserDeactivationConfigurationResponseV1 defines model for UserDeactivationConfigurationResponseV1. -type UserDeactivationConfigurationResponseV1 struct { - // CustomerId The customer Id. - CustomerId *UnlimitedLong `json:"customerId,omitempty"` + // Equal List of labels that must have an equal value in the source and target alert for the inhibition to take effect. + Equal *[]string `json:"equal,omitempty"` - // IsEnabled Specifies if user deactivation is enabled for this customer. + // IsEnabled Indicates if the inhibition rule is enabled or not. // // Example: false IsEnabled *bool `json:"isEnabled,omitempty"` - // NumberDaysBeforeDeactivation Number of days before inactive users are deactivated. - NumberDaysBeforeDeactivation *DaysInYearInt `json:"numberDaysBeforeDeactivation,omitempty"` + // Name Name of the inhibition rule. If provided, must be unique. + // + // Example: this is an example name + Name *string `json:"name,omitempty"` + + // SourceMatchers List of source matchers for which one or more alerts have to exist for the inhibition to take effect. + SourceMatchers []LabelMatcherV1 `json:"sourceMatchers"` + + // TargetMatchers List of target matchers that have to be fulfilled by the target alerts to be muted. + TargetMatchers []LabelMatcherV1 `json:"targetMatchers"` + + // Version The current version of the resource. + Version UnlimitedLong `json:"version"` } -// UserResponseV1 defines model for UserResponseV1. -type UserResponseV1 struct { - // ActivationStatus The current activation status of the user. - // +// UpdateIntegrationRequest Update Integration Request +type UpdateIntegrationRequest struct { + union json.RawMessage +} + +// UpdateIntegrationRequestV1 defines model for UpdateIntegrationRequestV1. +type UpdateIntegrationRequestV1 struct { + // Name Integration name. // - // Example: confirmed - ActivationStatus *string `json:"activationStatus,omitempty"` + // Example: name + Name string `json:"name"` - // BypassSsoEnforcement When **True**, the user can bypass SSO enforcement. + // IsEnabled Integration enabled status. // - // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. + // Example: false + IsEnabled *bool `json:"isEnabled"` + + // IsAllTeams If **true**, the integration will be enabled for all teams. + // If **false**, the integration will be enabled for the teams specified in the *teamIds* field. // // // Example: false - BypassSsoEnforcement *bool `json:"bypassSsoEnforcement,omitempty"` + IsAllTeams *bool `json:"isAllTeams"` - // DateCreated The date and time when the user was created. - // + // TeamIDs List of Sysdig's internal team ids for which the integration will be enabled. + // This field is required if *isAllTeams* is **false**. + TeamIDs []UnlimitedLong `json:"teamIds"` + + // JiraURL Customer's Jira URL. // - // Example: 2017-07-21T17:32:28Z - DateCreated *time.Time `json:"dateCreated,omitempty"` + // Example: https://atlassian-url.com + JiraURL string `json:"jiraUrl"` - // Email The email address of the user. + // JiraEmail The user email associated with the Jira account. // + // Example: jira.user@email.com + JiraEmail openapi_types.Email `json:"jiraEmail"` + + // JiraAccessToken Jira access token for the provided Jira account. // - // Example: john.doe@nomail.cc - Email *string `json:"email,omitempty"` + // Example: jira-access-token + JiraAccessToken string `json:"jiraAccessToken"` - // FirstName The name of the user. + // JiraAssignee The default assignee Jira account ID for this integration. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/#api-group-user-search "Jira user documentation") for more info. // // - // Example: john - FirstName *string `json:"firstName,omitempty"` + // Example: 5b10ac8d82e05b22cc7d4ef5 + JiraAssignee *string `json:"jiraAssignee"` - // Id - // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + // JiraLabels The list of Jira labels available for this integration. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-labels/#api-group-labels "Jira labels documentation") for more info. + JiraLabels []string `json:"jiraLabels"` - // IsAdmin **True** if the user has Administration permissions. - // + // ParentIssueTypeID Internal Sysdig's issue type id, which will act as a parent issue type for the integration. + ParentIssueTypeID *UnlimitedLong `json:"parentIssueTypeId,omitempty"` + + // ChildIssueTypeID Internal Sysdig's issue type id, which will act as a child issue type for the integration. + ChildIssueTypeID *UnlimitedLong `json:"childIssueTypeId,omitempty"` +} + +// UpdateIpFilterV1 Request to update IP filter. +type UpdateIpFilterV1 struct { + // IpRange IP range in CIDR notation // - // Example: false - IsAdmin *bool `json:"isAdmin,omitempty"` + // Example: 192.168.0.0/24 + IpRange string `json:"ipRange"` - // IsEnabled **True** if the user is enabled. + // IsEnabled Example: true + IsEnabled bool `json:"isEnabled"` + + // Note Example: London Office + Note string `json:"note"` +} + +// UpdateIssueTypeRequestV1 defines model for UpdateIssueTypeRequestV1. +type UpdateIssueTypeRequestV1 struct { + // JiraOpenStatusID Jira status id mapped to open status. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. // // - // Example: true - IsEnabled *bool `json:"isEnabled,omitempty"` + // Example: 1000 + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + JiraOpenStatusID *string `json:"jiraOpenStatusId,omitempty"` - // LastName The last name of the user. + // JiraInProgressStatusID Jira status id mapped to in progress status. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. // // - // Example: doe - LastName *string `json:"lastName,omitempty"` + // Example: 1001 + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + JiraInProgressStatusID *string `json:"jiraInProgressStatusId,omitempty"` - // LastUpdated The date and time when the user was last updated. + // JiraClosedStatusID Jira status id mapped to closed status. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-status/#api-group-status "Jira status documentation") for more info. // // - // Example: 2017-07-21T17:32:28Z - LastUpdated *time.Time `json:"lastUpdated,omitempty"` - - // Version The current version of the resource. - Version *UnlimitedLong `json:"version,omitempty"` -} + // Example: 1002 + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + JiraClosedStatusID *string `json:"jiraClosedStatusId,omitempty"` -// ValueV2 Value for filter expressions. -// - operator "in" -> array required -// - all other operators -> single string -type ValueV2 struct { - union json.RawMessage + // CustomFieldIDs List of supported custom field ids for the issue type. + // Please refer to the [Jira documentation](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-createmeta-get "Jira issue type fields documentation") for more info. + CustomFieldIDs []string `json:"customFieldIds"` } -// ValueV20 defines model for ValueV2.0. -type ValueV20 = []string - -// ValueV21 Example: production -type ValueV21 = string - -// VulnAge Predicate expressing "the Vulnerability is older than days" -type VulnAge struct { - Extra struct { - // Age The age of the vulnerability in days. - // - // Example: 30 - Age *int32 `json:"age,omitempty"` - } `json:"extra"` - - // Type Example: vulnAge - Type VulnAgeType `json:"type"` -} +// UpdateKafkaIntegrationRequest Update Kafka Integration Request +type UpdateKafkaIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo UpdateKafkaIntegrationRequest_ConnectionInfo `json:"connectionInfo"` -// VulnAgeType Example: vulnAge -type VulnAgeType string + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// VulnCvss Predicate expressing "the Vulnerability CVSS Score is higher than " -type VulnCvss struct { - Extra struct { - // Value The threshold for greater-than-or-equal comparison with CVSS Score. - // - // Example: 4 - Value *float32 `json:"value,omitempty"` - } `json:"extra"` + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` - // Type Example: vulnCVSS - Type VulnCvssType `json:"type"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// VulnCvssType Example: vulnCVSS -type VulnCvssType string - -// VulnCvssEquals Predicate expressing "the Vulnerability CVSS Score is exactly equal to " -type VulnCvssEquals struct { - Extra struct { - // Value The threshold for equality comparison with the CVSS Score. - // - // Example: 4 - Value *float32 `json:"value,omitempty"` - } `json:"extra"` - - // Type Example: vulnCVSSEquals - Type VulnCvssEqualsType `json:"type"` +// UpdateKafkaIntegrationRequest_ConnectionInfo defines model for UpdateKafkaIntegrationRequest.ConnectionInfo. +type UpdateKafkaIntegrationRequest_ConnectionInfo struct { + union json.RawMessage } -// VulnCvssEqualsType Example: vulnCVSSEquals -type VulnCvssEqualsType string +// UpdateKafkaIntegrationRequestV1 Update Kafka Integration Request +type UpdateKafkaIntegrationRequestV1 struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo UpdateKafkaIntegrationRequestV1_ConnectionInfo `json:"connectionInfo"` -// VulnDisclosureRange The start and end dates (inclusive) when vulnerabilities were disclosed. -type VulnDisclosureRange struct { - Extra struct { - // EndDate The end date (inclusive) of disclosed vulnerabilities. - // - // Example: 2024-05-22 - EndDate *openapi_types.Date `json:"endDate,omitempty"` + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` - // StartDate The start date (inclusive) of disclosed vulnerabilities. - // - // Example: 2024-02-27 - StartDate *openapi_types.Date `json:"startDate,omitempty"` - } `json:"extra"` + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` - // Type Example: vulnDisclosureRange - Type VulnDisclosureRangeType `json:"type"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// VulnDisclosureRangeType Example: vulnDisclosureRange -type VulnDisclosureRangeType string - -// VulnEpssPercentileGte The EPSS percentile score that is greater than or equal to the specified value. -type VulnEpssPercentileGte struct { - Extra struct { - // Percentile Percentile value to compare. - // - // Example: 30 - Percentile *int32 `json:"percentile,omitempty"` - } `json:"extra"` +// UpdateKafkaIntegrationRequestV1ConnectionInfoAuth The authentication method to optionally use. Currently supporting only GSSAPI +// +// Example: gssapi +type UpdateKafkaIntegrationRequestV1ConnectionInfoAuth string - // Type Example: vulnEpssPercentileGte - Type VulnEpssPercentileGteType `json:"type"` -} +// UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer Algorithm that the client uses to multiplex data between the multiple Brokers. For compatibility with the Java client, Murmur2 is used as the default partitioner +// +// Example: roundrobin +type UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer string -// VulnEpssPercentileGteType Example: vulnEpssPercentileGte -type VulnEpssPercentileGteType string +// UpdateKafkaIntegrationRequestV1ConnectionInfoCompression Compression standard used for the data +// +// Example: gzip +type UpdateKafkaIntegrationRequestV1ConnectionInfoCompression string -// VulnEpssScoreGte The EPSS score that meets or exceeds the specified threshold value. -type VulnEpssScoreGte struct { - Extra struct { - // Score Score value to compare. - // - // Example: 30 - Score *int32 `json:"score,omitempty"` - } `json:"extra"` +// UpdateKafkaIntegrationRequestV1_ConnectionInfo defines model for UpdateKafkaIntegrationRequestV1.ConnectionInfo. +type UpdateKafkaIntegrationRequestV1_ConnectionInfo struct { + // Auth The authentication method to optionally use. Currently supporting only GSSAPI + // + // Example: gssapi + Auth UpdateKafkaIntegrationRequestV1ConnectionInfoAuth `json:"auth"` - // Type Example: vulnEpssScoreGte - Type VulnEpssScoreGteType `json:"type"` -} + // Balancer Algorithm that the client uses to multiplex data between the multiple Brokers. For compatibility with the Java client, Murmur2 is used as the default partitioner + // + // Example: roundrobin + Balancer *UpdateKafkaIntegrationRequestV1ConnectionInfoBalancer `json:"balancer,omitempty"` -// VulnEpssScoreGteType Example: vulnEpssScoreGte -type VulnEpssScoreGteType string + // Brokers Kafka server endpoint. A Kafka cluster may provide several brokers; it follows the 'hostname: port' (without protocol scheme). + Brokers []string `json:"brokers"` -// VulnExploitable Predicate expressing "the Vulnerability is exploitable". -type VulnExploitable struct { - // Type Example: vulnExploitable - Type VulnExploitableType `json:"type"` -} + // Compression Compression standard used for the data + // + // Example: gzip + Compression *UpdateKafkaIntegrationRequestV1ConnectionInfoCompression `json:"compression,omitempty"` -// VulnExploitableType Example: vulnExploitable -type VulnExploitableType string + // Keytab base64 encoded Kerberos keytab + // + // Example: BQIAAAA3AAEAClNZU0RJRy5DT00ABnN5c2RpZwAAAAFlhdTkAQAXABCIRvfq7o+xF60Gvdgwt1hsAAAAAQ== + Keytab *string `json:"keytab,omitempty"` -// VulnExploitableNoAdmin Predicate expressing "the Vulnerability is exploitable and the exploit does not. require admin privileges" -type VulnExploitableNoAdmin struct { - // Type Example: vulnExploitableNoAdmin - Type VulnExploitableNoAdminType `json:"type"` -} + // Krb5 Kerberos krb5.conf file content for GSSAPI + // + // Example: [libdefaults] + // default_realm = EXAMPLE.COM + // default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc + // default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc + // dns_lookup_kdc = true + // dns_lookup_realm = false + // [realms] + // EXAMPLE.COM = { + // kdc = kerberos.example.com + // kdc = kerberos-1.example.com + // kdc = kerberos-2.example.com:750 + // admin_server = kerberos.example.com + // master_kdc = kerberos.example.com + // default_domain = example.com + // } + // [domain_realm] + // .example.com = EXAMPLE.COM + // example.com = EXAMPLE.COM + // [logging] + // kdc = SYSLOG:INFO + // admin_server = FILE=/var/kadm5.log + Krb5 string `json:"krb5"` -// VulnExploitableNoAdminType Example: vulnExploitableNoAdmin -type VulnExploitableNoAdminType string + // Principal GSSAPI principal + // + // Example: myprincipal + Principal string `json:"principal"` -// VulnExploitableNoUser Predicate expressing "the Vulnerability is exploitable and the exploit does not. require user interaction" -type VulnExploitableNoUser struct { - // Type Example: vulnExploitableNoUser - Type VulnExploitableNoUserType `json:"type"` -} + // Realm GSSAPI realm + // + // Example: myrealm + Realm string `json:"realm"` -// VulnExploitableNoUserType Example: vulnExploitableNoUser -type VulnExploitableNoUserType string + // Service GSSAPI Service name + // + // Example: myservice + Service string `json:"service"` -// VulnExploitableViaNetwork Predicate expressing "the Vulnerability is exploitable via network". -type VulnExploitableViaNetwork struct { - // Type Example: vulnExploitableViaNetwork - Type VulnExploitableViaNetworkType `json:"type"` + // Topic Kafka topic where you want to store the forwarded data + // + // Example: mytopic + Topic string `json:"topic"` + union json.RawMessage } -// VulnExploitableViaNetworkType Example: vulnExploitableViaNetwork -type VulnExploitableViaNetworkType string - -// VulnExploitableWithAge Predicate expressing "the Vulnerability is exploitable and the exploit is older. than days" -type VulnExploitableWithAge struct { - Extra struct { - // Age The age of the exploit in days +// UpdateKinesisDataStreamsIntegrationRequest Update Kinesis Data Streams Integration Request +type UpdateKinesisDataStreamsIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // AccessKey Access Key for authenticating on AWS to send data on the stream // - // Example: 30 - Age *int32 `json:"age,omitempty"` - } `json:"extra"` + // Example: AKIAIOSFODNN7EXAMPLE + AccessKey *string `json:"accessKey,omitempty"` - // Type Example: vulnExploitableWithAge - Type VulnExploitableWithAgeType `json:"type"` -} + // AccessSecret Access Secret for authenticating on AWS to send data on the stream + // + // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY + AccessSecret *string `json:"accessSecret,omitempty"` -// VulnExploitableWithAgeType Example: vulnExploitableWithAge -type VulnExploitableWithAgeType string + // MaxRecordSize Maximum record size in bytes + // + // Example: 1048576 + MaxRecordSize *int64 `json:"maxRecordSize,omitempty"` -// VulnIsFixable Predicate expressing "the Vulnerability is Fixable". -type VulnIsFixable struct { - // Type Example: vulnIsFixable - Type VulnIsFixableType `json:"type"` -} + // OwnerAccount The AWS account ID of the account that created the stream + // + // Example: 123456789012 + OwnerAccount *string `json:"ownerAccount,omitempty"` -// VulnIsFixableType Example: vulnIsFixable -type VulnIsFixableType string + // Region Region in which the stream is hosted + // + // Example: us-east-1 + Region string `json:"region"` -// VulnIsFixableWithAge Predicate expressing "the Vulnerability is Fixable and its fix is older than days". -type VulnIsFixableWithAge struct { - Extra struct { - // Age The age of the fix in days + // StreamName Stream name // - // Example: 30 - Age *int32 `json:"age,omitempty"` - } `json:"extra"` + // Example: sysdig-data-stream + StreamName string `json:"streamName"` + } `json:"connectionInfo"` - // Type Example: vulnIsFixableWithAge - Type VulnIsFixableWithAgeType `json:"type"` -} + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// VulnIsFixableWithAgeType Example: vulnIsFixableWithAge -type VulnIsFixableWithAgeType string + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` -// VulnIsInUse The vulnerable resources currently in use. -type VulnIsInUse struct { - // Type Example: vulnIsInUse - Type VulnIsInUseType `json:"type"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// VulnIsInUseType Example: vulnIsInUse -type VulnIsInUseType string - -// VulnPkgType Predicate expressing "the Vulnerability is related to a package of ". -type VulnPkgType struct { - Extra struct { - // PkgType The package type, either OS or non-OS. There is no enforcement on the value for future extensibility. +// UpdateKinesisFirehoseIntegrationRequest Update Kinesis Firehose Integration Request +type UpdateKinesisFirehoseIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // AccessKey Access Key for authenticating on AWS to send data on the stream // + // Example: AKIAIOSFODNN7EXAMPLE + AccessKey *string `json:"accessKey,omitempty"` + + // AccessSecret Access Secret for authenticating on AWS to send data on the stream // - // Example: os - PkgType VulnPkgTypeExtraPkgType `json:"pkgType"` - } `json:"extra"` + // Example: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY + AccessSecret *string `json:"accessSecret,omitempty"` - // Type Example: vulnPkgType - Type VulnPkgTypeType `json:"type"` -} + // Region Region in which the stream is hosted + // + // Example: us-east-1 + Region string `json:"region"` -// VulnPkgTypeExtraPkgType The package type, either OS or non-OS. There is no enforcement on the value for future extensibility. -// -// Example: os -type VulnPkgTypeExtraPkgType string + // StreamName Stream name + // + // Example: sysdig-firehose-stream + StreamName string `json:"streamName"` + } `json:"connectionInfo"` -// VulnPkgTypeType Example: vulnPkgType -type VulnPkgTypeType string + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// VulnSeverity Predicate expressing "the Vulnerability Severity is or higher". -type VulnSeverity struct { - Extra struct { - // Level Example: critical - Level *VulnSeverityExtraLevel `json:"level,omitempty"` - } `json:"extra"` + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` - // Type Example: vulnSeverity - Type VulnSeverityType `json:"type"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// VulnSeverityExtraLevel Example: critical -type VulnSeverityExtraLevel string - -// VulnSeverityType Example: vulnSeverity -type VulnSeverityType string - -// VulnSeverityEquals Predicate expressing "the Vulnerability Severity is exactly ". -type VulnSeverityEquals struct { - Extra struct { - // Level Example: critical - Level *VulnSeverityEqualsExtraLevel `json:"level,omitempty"` - } `json:"extra"` +// UpdateMcmIntegrationRequest Update IBM Multicloud Manager Integration Request +type UpdateMcmIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // AccountId IBM Account ID + // + // Example: id-mycluster-account + AccountId *string `json:"accountId,omitempty"` - // Type Example: vulnSeverityEquals - Type VulnSeverityEqualsType `json:"type"` -} + // ApiKey IBM Cloud API Key + // + // Example: dohch1OhPaewoo2edaifaefahphaoMee + ApiKey *string `json:"apiKey,omitempty"` -// VulnSeverityEqualsExtraLevel Example: critical -type VulnSeverityEqualsExtraLevel string + // Endpoint The URL, including protocol and port (if non standard), to your IBM Cloud Pak for Multicloud Management API endpoint + // + // Example: https://mcm.mydomain.com:8443 + Endpoint string `json:"endpoint"` -// VulnSeverityEqualsType Example: vulnSeverityEquals -type VulnSeverityEqualsType string + // IsInsecure Skip TLS certificate verification + // + // Example: false + IsInsecure *bool `json:"isInsecure,omitempty"` -// VulnTotalBySeverity total vulnerabilities by severity -type VulnTotalBySeverity struct { - // Critical number of critical vulnerabilities - // - // Example: 12345 - Critical *int `json:"critical,omitempty"` + // NoteName The note to use. If unspecified, a note with `policy-event` ID will be created and used + // + // Example: note-name + NoteName *string `json:"noteName,omitempty"` - // High number of high severity vulnerabilities - // - // Example: 12345 - High *int `json:"high,omitempty"` + // ProviderId The provider the findings will be associated to + // + // Example: provider-id + ProviderId *string `json:"providerId,omitempty"` + } `json:"connectionInfo"` - // Low number of low severity vulnerabilities + // IsEnabled If the forwarding should be enabled or not // - // Example: 12345 - Low *int `json:"low,omitempty"` + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` - // Medium number of medium severity vulnerabilities + // Name A descriptive name to give to the integration // - // Example: 12345 - Medium *int `json:"medium,omitempty"` + // Example: name + Name string `json:"name"` - // Negligible number of negligible severity vulnerabilities + // Type The platform to which data will be forwarded // - // Example: 12345 - Negligible *int `json:"negligible,omitempty"` + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// Vulnerability defines model for Vulnerability. -type Vulnerability struct { - // CisaKev Example: {"dueDate":"2023-10-31","knownRansomwareCampaignUse":"false","publishDate":"2023-12-06"} - CisaKev *map[string]interface{} `json:"cisaKev,omitempty"` - CvssScore CvssScore `json:"cvssScore"` - - // DisclosureDate Example: 2021-01-02 - DisclosureDate *openapi_types.Date `json:"disclosureDate,omitempty"` - Exploit *Exploit `json:"exploit,omitempty"` - - // Exploitable Example: true - Exploitable bool `json:"exploitable"` - - // FirstSeen Example: 2021-01-02 - FirstSeen *openapi_types.Date `json:"firstSeen,omitempty"` +// UpdateMicrosoftSentinelIntegrationRequest Update Microsoft Sentinel Integration Request +type UpdateMicrosoftSentinelIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // Secret Log analytics primary key + // + // Example: b29qb29jdWIyd2F5N0FoWThzYWhuZzZhaWdoMWVlcmFoM3BoZXRvZURpZTdlaWJhCg== + Secret *string `json:"secret,omitempty"` - // FixVersion Example: 1.2.3 - FixVersion *string `json:"fixVersion,omitempty"` + // WorkspaceId Log Analytics workspace ID. The identifier is minted by Microsoft Azure and used as supplied (https://learn.microsoft.com/azure/azure-monitor/logs/log-analytics-workspace-overview), so its UUID version is not controlled by Sysdig. + // + // Example: 578aef60-81be-4d38-a278-ec77925edcf0 + WorkspaceId string `json:"workspaceId"` + } `json:"connectionInfo"` - // Fpkev true when the vulnerability is listed in FlashPoint VulnDB KEV + // IsEnabled If the forwarding should be enabled or not // // Example: true - Fpkev *bool `json:"fpkev,omitempty"` - - // MainProvider Example: vulndb - MainProvider *string `json:"mainProvider,omitempty"` + IsEnabled *bool `json:"isEnabled,omitempty"` - // Name Example: CVE-2021-1234 + // Name A descriptive name to give to the integration + // + // Example: name Name string `json:"name"` - // PackageRef reference to the affected package + // Type The platform to which data will be forwarded // - // Example: 2772f8a6c73fa17 - PackageRef *string `json:"packageRef,omitempty"` + // Example: SYSLOG + Type IntegrationType `json:"type"` +} - // ProvidersMetadata Example: {"first.org":{"epssScore":{"percentile":0.05089,"score":0.00042,"timestamp":"2024-12-04T00:00:00Z"}},"nvd":{"cvssScore":{"score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"publicationDate":"2024-09-04T19:15:30.77Z","severity":"medium"},"rhel":{"cvssScore":{"score":5.5,"vector":"AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"severity":"medium"}} - ProvidersMetadata *map[string]interface{} `json:"providersMetadata,omitempty"` - RiskAcceptRefs *[]string `json:"riskAcceptRefs,omitempty"` +// UpdateNotificationChannelRequestV1 defines model for UpdateNotificationChannelRequestV1. +type UpdateNotificationChannelRequestV1 struct { + // Type The type of the notification channel + // + // Example: EMAIL + Type NotificationChannelTypeV1 `json:"type"` - // Severity Example: critical - Severity VulnerabilitySeverity `json:"severity"` + // Version The current version of the resource. + Version *UnlimitedLong `json:"version,omitempty"` +} - // SolutionDate Example: 2021-01-02 - SolutionDate *openapi_types.Date `json:"solutionDate,omitempty"` -} - -// VulnerabilitySeverity Example: critical -type VulnerabilitySeverity string - -// VulnerabilityManagementPage API paging response -type VulnerabilityManagementPage struct { - // Next Next cursor for pagination +// UpdateNotificationTemplateRequestV1 defines model for UpdateNotificationTemplateRequestV1. +type UpdateNotificationTemplateRequestV1 struct { + // Body Body content of the notification template. // - // Example: MTI0MjM0Cg== - Next *string `json:"next,omitempty"` - - // Total Total of scans + // Example: [Alert ID] + // {{ alert.rule.id }} // - // Example: 1 - Total *int `json:"total,omitempty"` -} - -// VulnerabilitySummary Vulnerability summary of a resource -type VulnerabilitySummary struct { - // CriticalSeverityCount Number of critical severity vulnerabilities + // [Alert description] + // {{ alert.rule.description }} // - // Example: 1 - CriticalSeverityCount int32 `json:"criticalSeverityCount"` + // [Alert name] + // {{ alert.rule.name }} + Body string `json:"body"` - // HasExploit Indicates if a resource has an exploit + // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. // - // Example: true - HasExploit bool `json:"hasExploit"` + // Example: pager_duty + ChannelType NotificationTemplateChannelTypeV1 `json:"channelType"` - // HighSeverityCount Number of high severity vulnerabilities + // Description Description of the notification template. // - // Example: 2 - HighSeverityCount int32 `json:"highSeverityCount"` + // Example: Sample description of the notification template + Description *string `json:"description,omitempty"` - // LowSeverityCount Number of low severity vulnerabilities + // Name Name of the notification template. // - // Example: 4 - LowSeverityCount int32 `json:"lowSeverityCount"` + // Example: Sample notification template + Name string `json:"name"` - // MediumSeverityCount Number of medium severity vulnerabilities + // Title Title content of the notification template. // - // Example: 3 - MediumSeverityCount int32 `json:"mediumSeverityCount"` + // Example: {{ alert.rule.name }} is {{ alert.occurrence.workflow_status }} + Title *string `json:"title,omitempty"` - // NegligibleSeverityCount Number of negligible severity vulnerabilities + // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. // - // Example: 5 - NegligibleSeverityCount int32 `json:"negligibleSeverityCount"` + // Example: monitor_alert + UseCase NotificationTemplateUseCaseV1 `json:"useCase"` + + // Version The current version of the resource. + Version UnlimitedLongV2 `json:"version"` } -// WastedWorkloadDataRequest defines model for WastedWorkloadDataRequest. -type WastedWorkloadDataRequest struct { - DateRange struct { - // EndDate The end of the date range. - // - // Example: 2025-02-19 - EndDate openapi_types.Date `json:"endDate"` +// UpdatePricingRequestV1 defines model for UpdatePricingRequestV1. +type UpdatePricingRequestV1 struct { + // ClusterName The name of the cluster. Required when `type` is `CLUSTER`. + // + // Example: My pricing + ClusterName *string `json:"clusterName,omitempty"` - // StartDate The beginning of the date range. - // - // Example: 2025-02-17 - StartDate openapi_types.Date `json:"startDate"` - } `json:"dateRange"` + // Name The name of the pricing profile. + // + // Example: My pricing + Name string `json:"name"` - // GroupBy Specifies Prometheus labels to group the report data by. - // By default, the following labels will always be included: - // - kube_cluster_name - // - kube_namespace_name - // - kube_workload_name - // A maximum of 7 additional custom labels can be specified. - GroupBy *[]PrometheusLabel `json:"groupBy,omitempty"` + // SpotLabel The name of a node label that is used to identify the node as a spot node. + // + // Example: cost-advisor-spot-node + SpotLabel *string `json:"spotLabel,omitempty"` - // Scope A list of PromQL-style filters - Scope *[]PromqlMatcher `json:"scope,omitempty"` -} + // SpotLabelValue The value of the spot node label. + // + // Example: true + SpotLabelValue *string `json:"spotLabelValue,omitempty"` -// WastedWorkloadSpendDataResponse Aggregated and grouped cost data representing Wasted Workload Spend over a specific date range. -type WastedWorkloadSpendDataResponse struct { - // GroupByData Grouped cost data for each combination of Prometheus label values. - GroupByData *[]struct { - // Accrued Accrued cost for this group. - // - // Example: 26.59 - Accrued *float64 `json:"accrued,omitempty"` + // Type The type of the pricing. + // + // Example: CLUSTER + Type PricingType `json:"type"` - // Estimated Estimated cost for this group. - // - // Example: 3.6 - Estimated *float64 `json:"estimated,omitempty"` + // UnitPricing The unit pricing configuration used to compute costs. + UnitPricing UnitPricingV1 `json:"unitPricing"` - // Group Key-value pairs representing grouping labels. - Group *map[string]string `json:"group,omitempty"` + // Version The current version of the resource. + Version UnlimitedLong `json:"version"` +} - // Wasted Wasted cost for this group. - // - // Example: 22.99 - Wasted *float64 `json:"wasted,omitempty"` - } `json:"groupByData,omitempty"` +// UpdateQradarIntegrationRequest Save IBM QRadar Integration Request +type UpdateQradarIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo BaseConnectionInfoQradar `json:"connectionInfo"` - // Total Aggregated cost values for the specified time range. - Total *struct { - // Accrued Total cost accrued during the reporting period. - // - // Example: 31.59 - Accrued *float64 `json:"accrued,omitempty"` + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` - // Estimated Estimated efficient cost during the reporting period. - // - // Example: 5.6 - Estimated *float64 `json:"estimated,omitempty"` + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` - // Wasted Difference between accrued and estimated cost. - // - // Example: 25.73 - Wasted *float64 `json:"wasted,omitempty"` - } `json:"total,omitempty"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// WorkloadCostTrendsDataRequest defines model for WorkloadCostTrendsDataRequest. -type WorkloadCostTrendsDataRequest struct { - // Date The reference date used to define the time window for cost trend calculation. - // When combined with `trendRangeInDays`, this date represents the inclusive upper bound - // of the time range — the trend is calculated from (`date - trendRangeInDays`). - // For example, if `date` is 2025-02-12 and `trendRangeInDays` is 10, the time range - // used for calculation is from 2025-02-03 to 2025-02-12 (inclusive). - // Must be in YYYY-MM-DD format. - // +// UpdateReportRequestV2Alpha1 Update a report's mutable fields. `templateId` and `kind` are immutable. +type UpdateReportRequestV2Alpha1 struct { + // DefaultTimeframe The report's default reporting window. Omitted resets it to the template's `defaultTimePreset`, + // as with every other mutable field on a `PUT`. + // `preset` must be one of the template's `timePresets`; any other value is rejected with `422`. + DefaultTimeframe *ScheduleTimeframeV2Alpha1 `json:"defaultTimeframe,omitempty"` + + // Description Report description. // - // Example: 2025-02-12 - Date openapi_types.Date `json:"date"` - GroupBy *[]PrometheusLabel `json:"groupBy,omitempty"` + // Example: Weekly critical/high in prod. + Description *string `json:"description,omitempty"` - // Scope A list of PromQL-style filters - Scope *[]PromqlMatcher `json:"scope,omitempty"` + // Filters Report-wide filters, validated against the template's report-level `availableFilters`. Each applies + // to every panel whose query supports that key. Keys the template leaves per-panel go in `panels` + // instead; the two sets never overlap, and a report-level key sent under `panels` is rejected with + // `422`. + // + // A compliance report takes exactly one `zone` and one `policy`; any other number is rejected with `422`. + Filters *[]ReportFilterV2Alpha1 `json:"filters,omitempty"` - // TrendRangeInDays Specifies the number of days used to calculate and extract cost data. - // Must be a positive integer. + // Name Report name. Leading and trailing whitespace is trimmed; a name that is empty once trimmed is rejected. // + // Example: Prod runtime vulns + Name string `json:"name"` + + // Panels Per-panel filters. Sparse — list only the panels you want to change; omitted panels keep their + // current filters. Panels cannot be added, removed, or reordered. // - // Example: 10 - TrendRangeInDays float32 `json:"trendRangeInDays"` + // Omitting `panels` altogether is the same as listing every panel with an empty `filters`: each + // panel's optional filters are cleared, and its required filters keep their current values. + Panels *[]PanelFilterAssignmentV2Alpha1 `json:"panels,omitempty"` } -// WorkloadCostTrendsDataResponse Cost trends observed between two consecutive time periods in the past. -type WorkloadCostTrendsDataResponse struct { - CurrentRange *struct { - // EndDate The end of the date range. - // - // Example: 2025-02-19 - EndDate openapi_types.Date `json:"endDate"` - - // StartDate The beginning of the date range. - // - // Example: 2025-02-17 - StartDate openapi_types.Date `json:"startDate"` - } `json:"currentRange,omitempty"` - - // GroupByData Grouped cost data for each combination of label values. - GroupByData *[]struct { - // Change The difference in cost between current and previous ranges for this group. - // - // Example: -0.6091442129 - Change *float64 `json:"change,omitempty"` +// UpdateRiskAccepted defines model for UpdateRiskAccepted. +type UpdateRiskAccepted struct { + // Description Description of why the accepted risk was created + // + // Example: vulnerability cannot be removed manually + Description *string `json:"description,omitempty"` - // Current The cost for the current range within this group. - // - // Example: 33.754530610617486 - Current *float64 `json:"current,omitempty"` + // ExpirationDate Date when the accepted risk expires. Setting this to null will make the accepted risk never expire. + // + // + // Example: 2024-02-27 + ExpirationDate *string `json:"expirationDate,omitempty"` - // Group Key-value pairs representing the grouping labels. - Group *map[string]string `json:"group,omitempty"` + // Reason Reason for acceptance + // + // Example: RiskTransferred + Reason *UpdateRiskAcceptedReason `json:"reason,omitempty"` +} - // Previous The cost for the previous range within this group. - // - // Example: 34.36367482352418 - Previous *float64 `json:"previous,omitempty"` - } `json:"groupByData,omitempty"` - PreviousRange *struct { - // EndDate The end of the date range. - // - // Example: 2025-02-19 - EndDate openapi_types.Date `json:"endDate"` +// UpdateRiskAcceptedReason Reason for acceptance +// +// Example: RiskTransferred +type UpdateRiskAcceptedReason string - // StartDate The beginning of the date range. - // - // Example: 2025-02-17 - StartDate openapi_types.Date `json:"startDate"` - } `json:"previousRange,omitempty"` +// UpdateScheduleRequestV2Alpha1 Payload for `PUT /schedules/{scheduleId}`, which replaces the schedule's mutable fields. `reportId` is +// immutable and is not part of this payload — a schedule cannot be moved to another report. +// +// `enabled` is required here, unlike on create: a replacement must state whether the schedule runs, so +// that editing a paused schedule never resumes it by omission. +type UpdateScheduleRequestV2Alpha1 struct { + // Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. + // On update an omitted value keeps the schedule's current compression rather than resetting it, so a + // password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot + // protect. `delivery.password` requires `zip`. + // Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request + // also removes the password — see `delivery.password`. + // + // + // Example: gzip + Compression *UpdateScheduleRequestV2Alpha1Compression `json:"compression,omitempty"` - // Total Aggregated cost values for the current and previous ranges. - Total *struct { - // Change The difference between the current and the previous cost periods expressed in percentages. - // - // Example: -1.77 - Change *float64 `json:"change,omitempty"` + // Cron Cron expression defining the recurrence, as **six fields** — + // `second minute hour dayOfMonth month dayOfWeek`. The common five-field form is **not** accepted and is + // rejected with `422`. + // + // Always evaluated in **UTC**, whatever `timezone` says. To fire at a local wall-clock time, convert it to + // UTC yourself before building the expression — the Sysdig UI does exactly this, which is why a schedule + // created here and one created there behave the same way. Converting means three things, and the second is + // the one that is easy to miss: + // + // 1. Convert the local time to UTC; that gives `hour` and `minute`. + // 2. **If that conversion crosses midnight, shift the day as well.** Monday 22:00 in + // `America/New_York` is *Tuesday* 02:00 UTC, so `dayOfWeek` becomes `TUE` — a schedule that converts + // only the time fires on the wrong day. + // 3. Leave a `dayOfMonth` of `28-31` alone. That is the "last day of the month" form, and it is the one + // case where `timezone` affects firing: the service uses it to decide whether today is that month's + // last day. + // + // Which `timeframe.preset` values are accepted depends on the recurrence this describes — see `timeframe`. + // + // + // Example: 0 30 6 * * MON + Cron string `json:"cron"` - // Current The total cost for the current range. - // - // Example: 33.754530610617486 - Current *float64 `json:"current,omitempty"` + // Delivery How a scheduled report's output is delivered and protected. + // + // `isSecureDownload` and `password` are **two independent protections** and may be used separately or + // together: + // * `isSecureDownload` gates *who may fetch the file* (a Sysdig login is required). + // * `password` encrypts *the file itself* (zip password). `isPasswordProtected` reports whether one is set. + Delivery *DeliveryV2Alpha1 `json:"delivery,omitempty"` - // Previous The total cost for the previous range. - // - // Example: 34.36367482352418 - Previous *float64 `json:"previous,omitempty"` - } `json:"total,omitempty"` -} + // Description Optional free-text note describing what this schedule is for and who consumes it. + // + // Example: Weekly vulnerability summary for the platform team's Monday review. + Description *string `json:"description,omitempty"` -// WorkloadMlRuntimeDetectionContent Workload ML event content -type WorkloadMlRuntimeDetectionContent struct { - // Command The command name + // Enabled Whether the schedule runs. Set `false` to pause it without deleting it. // - // Example: bash - Command string `json:"command"` + // Example: true + Enabled bool `json:"enabled"` - // DetectedClassProbability The detected class probability (confidence score) + // Format Output format of each generated run. **Not every format is valid for every report** — the + // permitted set is determined by the `kind` of the template the report was created from (see + // `Template.kind`):\ + // \ + // - `posture_v2` — `csv` only\ + // - `compliance` — `pdf` only\ + // - `vulnerability_management` — `csv`, `pdf` or `json`\ + // \ + // An unsupported combination is rejected with `422`.\ + // \ + // Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including + // panels that are charts rather than tables: they export each panel's underlying result rows. // - // Example: 0.8 - DetectedClassProbability float32 `json:"detectedClassProbability"` + // + // Example: pdf + Format UpdateScheduleRequestV2Alpha1Format `json:"format"` - // Exe The command path + // Name Optional schedule name (a report may have multiple named schedules). // - // Example: /bin/bash - Exe string `json:"exe"` + // Example: Weekly + Name *string `json:"name,omitempty"` - // PolicyId ID of the policy that generated the event + // Timeframe Window each run reports over. Required: a schedule does not fall back to the report's + // `defaultTimeframe`, because which presets are accepted depends on `cron` (below). // - // Example: 2 - PolicyId PolicyId `json:"policyId"` + // **Which presets are accepted depends on `cron`:** a daily recurrence takes `1d`; a weekly one `1d` or + // `7d`; a monthly one `1d`, `7d` or `30d`; any other cron is unrestricted. A `cron`/`preset` combination + // outside that is rejected with `422`, naming `/timeframe/preset`. + Timeframe ScheduleTimeframeV2Alpha1 `json:"timeframe"` - // Type The type of the event content. + // Timezone IANA timezone the `cron` expression was composed in — a record of the caller's intent, so a UI can + // render the schedule back as a local time. // - // Example: workloadRuntimeDetection - Type EventContentType `json:"type"` + // **It does not shift when the schedule fires.** `cron` is evaluated in UTC regardless, so convert a local + // wall-clock time to UTC yourself when building the expression. Its one effect on firing is for a cron + // whose day-of-month selects the end of the month (e.g. `28-31`), where it decides whether today is that + // month's last day in this zone. + // + // + // Example: America/New_York + Timezone string `json:"timezone"` } -// WorkloadRightsizingDataRequest defines model for WorkloadRightsizingDataRequest. -type WorkloadRightsizingDataRequest struct { - // Algorithm Aggregation algorithm used for rightsizing analysis. Currently supported values are: - // - AVG - // - P95 - // - MAX - // This field is case-sensitive and may support more values in the future. - Algorithm string `json:"algorithm"` - DateRange struct { - // EndDate The end of the date range. - // - // Example: 2025-02-19 - EndDate openapi_types.Date `json:"endDate"` +// UpdateScheduleRequestV2Alpha1Compression Compression of the produced file. Defaults to `gzip` on create, which is what the Sysdig UI sends. +// On update an omitted value keeps the schedule's current compression rather than resetting it, so a +// password-protected `zip` schedule is not silently turned into a `gzip` one its password cannot +// protect. `delivery.password` requires `zip`. +// Changing a password-protected schedule to `gzip` is rejected with `422` unless the same request +// also removes the password — see `delivery.password`. +// +// Example: gzip +type UpdateScheduleRequestV2Alpha1Compression string - // StartDate The beginning of the date range. - // - // Example: 2025-02-17 - StartDate openapi_types.Date `json:"startDate"` - } `json:"dateRange"` +// UpdateScheduleRequestV2Alpha1Format Output format of each generated run. **Not every format is valid for every report** — the +// permitted set is determined by the `kind` of the template the report was created from (see +// `Template.kind`):\ +// \ +// - `posture_v2` — `csv` only\ +// - `compliance` — `pdf` only\ +// - `vulnerability_management` — `csv`, `pdf` or `json`\ +// \ +// An unsupported combination is rejected with `422`.\ +// \ +// Where a report's kind permits `csv` or `json`, that holds whatever its panels look like — including +// panels that are charts rather than tables: they export each panel's underlying result rows. +// +// Example: pdf +type UpdateScheduleRequestV2Alpha1Format string - // Scope A list of PromQL-style filters - Scope *[]PromqlMatcher `json:"scope,omitempty"` +// UpdateServiceAccountsNotificationSettingsRequestV1 defines model for UpdateServiceAccountsNotificationSettingsRequestV1. +type UpdateServiceAccountsNotificationSettingsRequestV1 struct { + // DaysBeforeExpiry The number of days before the expiry of the service account when the notifications are to be sent. + DaysBeforeExpiry []int32 `json:"daysBeforeExpiry"` + + // IsEnabled Whether the notification settings are enabled or not. + // + // Example: true + IsEnabled bool `json:"isEnabled"` + + // NotificationChannelIds The list of notification channel IDs to which the notifications are to be sent.\ + // \ + // Supported types are **EMAIL** and **SLACK**. + NotificationChannelIds []UnlimitedLong `json:"notificationChannelIds"` } -// WorkloadRightsizingDataResponse Cost data representing Workload Rightsizing over a specific date range. -type WorkloadRightsizingDataResponse struct { - // GroupByData Grouped workload rightsizing data by cluster, namespace, workload, and container. - GroupByData *[]struct { - // Group Key-value pairs representing the logical grouping keys. - // - // The data is grouped by the following dimensions: - // - cluster - // - namespace - // - workload - // - container - // +// UpdateSplunkIntegrationRequest Update Splunk Integration Request +type UpdateSplunkIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // CertificateId ID of a certificate stored in Sysdig's [Certificates Management tool](#tag/Certificates). Note that the RFC 5425 (TLS) protocol is required for you to see this field // - // Example: {"cluster":"test-cluster","container":"web-api-container","namespace":"prod","workload":"web-api"} - Group *map[string]string `json:"group,omitempty"` + // Example: 1 + CertificateId *int64 `json:"certificateId,omitempty"` - // MonthlyCost Estimated current monthly cost in USD. + // Endpoint URL of the Splunk instance // - // Example: 10.02 - MonthlyCost *float64 `json:"monthlyCost,omitempty"` + // Example: https://splunk.mydomain.com:443/services/collector/event + Endpoint string `json:"endpoint"` - // MonthlyPotentialSavings Estimated potential monthly savings in USD. + // Index index to send data to. If unspecified, it will be used the index specified on the HTTP Event Collector configuration on Splunk // - // Example: 2 - MonthlyPotentialSavings *float64 `json:"monthlyPotentialSavings,omitempty"` + // Example: main + Index *string `json:"index,omitempty"` - // NumberOfPods Number of pods currently running in the workload. + // IsInsecure Skip TLS certificate verification // - // Example: 1 - NumberOfPods *int32 `json:"numberOfPods,omitempty"` + // Example: false + IsInsecure *bool `json:"isInsecure,omitempty"` - // RequestedCpu CPU requested by the container (in milicores). + // SourceType Source type to override [Sysdig standard data type to source type mapping](https://docs.sysdig.com/en/forward-splunk#reference-data-categories-mapped-to-source-types) // - // Example: 120 - RequestedCpu *float64 `json:"requestedCpu,omitempty"` + // Example: cisco_syslog + SourceType *string `json:"sourceType,omitempty"` - // RequestedMemory Memory requested by the container (in MiB). + // Token HTTP Event Collector Token // - // Example: 2048 - RequestedMemory *float64 `json:"requestedMemory,omitempty"` + // Example: eyJraWQiOiJzcGx1bmsuc2VjcmV0IiwiYWxnIjoiSFM1MTIiLCJ2ZXIiOiJ2MSIsInR0eXAiOiJzdGF0aWMifQ.eyJpc3MiOiJhZG1pbiBmcm9tIHNvMSIsInN1YiI6ImFkbWluIiwiYXVkIjoiVG9rZW50b3duIiwiaWRwIjoic3BsdW5rIiwianRpIjoiY2EwOGE2ODQyZDNlYzIxYjRkMTg1NDk3NTRlOGU4ZDc3YTM5MmQ3ZTE3ZGUyOGNmZGM3MWI3ODAwNWExNmU3OCIsImlhdCI6MTU1MTk5OTM0NiwiZXhwIjowLCJuYnIiOjE1NTE5OTkzNDZ9.RrZxe89qchfEtrEnG1PjTmJzO_JTtPX8xqSiSunYGylupG114KujO3-E88TtM-Tf51qtVpJydR3JSJpPfaf17w + Token *string `json:"token,omitempty"` + } `json:"connectionInfo"` - // SuggestedCpu Suggested CPU allocation (in milicores). - // - // Example: 100 - SuggestedCpu *float64 `json:"suggestedCpu,omitempty"` + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` - // SuggestedMemory Suggested memory allocation (in MiB). - // - // Example: 1024 - SuggestedMemory *float64 `json:"suggestedMemory,omitempty"` + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` - // WorkloadType Type of Kubernetes workload. - // Possible values include: - // - Deployment - // - StatefulSet - // - DaemonSet - // - Job - // - CronJob - // - ReplicaSet - // - ReplicationController - // - // - // Example: Deployment - WorkloadType *string `json:"workloadType,omitempty"` - } `json:"groupByData,omitempty"` + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// WorkloadRuntimeDetectionContent Policy Event -type WorkloadRuntimeDetectionContent struct { - Fields map[string]string `json:"fields"` +// UpdateSsoSettingsRequestV1 defines model for UpdateSsoSettingsRequestV1. +type UpdateSsoSettingsRequestV1 struct { + // Config Update Request SSO Settings Base Schema + Config SsoSettingsUpdateRequestBaseV1 `json:"config"` - // Origin The policy author: - // - `Sysdig` - default and managed policies - // - `Sysdig UI` - users interacting with Sysdig - // - `Tuner` - the automated tuner + // CreateUserOnLogin Flag to indicate if the user will be created automatically if not found in the system. // + // Example: true + CreateUserOnLogin bool `json:"createUserOnLogin"` + + // GroupMappingAttributeName The group mapping attribute name. // - // Example: Sysdig - Origin *PolicyOrigin `json:"origin,omitempty"` + // Example: groups + GroupMappingAttributeName *string `json:"groupMappingAttributeName,omitempty"` - // Output Event output, generated after the configured rule + // IntegrationName The name of this SSO config. // - // Example: File below a known binary directory opened for writing... - Output string `json:"output"` + // Example: okta + IntegrationName *string `json:"integrationName,omitempty"` - // PolicyId ID of the policy that generated the event + // IsActive Flag to indicate if the SSO settings is active. // - // Example: 2 - PolicyId PolicyId `json:"policyId"` + // Example: true + IsActive bool `json:"isActive"` - // RuleName Name of the rule the event is generated after + // IsGroupMappingEnabled Flag to indicate if group mapping support is enabled. // - // Example: Create Security Group Rule Allowing SSH Ingress - RuleName RuleName `json:"ruleName"` + // Example: true + IsGroupMappingEnabled bool `json:"isGroupMappingEnabled"` - // RuleSubType Rule subtype: - // - 1 - List matching - network - inbound - // - 2 - List matching - network - outbound - // - 3 - List matching - network - listening - // - 4 - List matching - file - readwrite - // - 5 - List matching - file - read only + // IsPasswordLoginEnabled Flag to indicate if the user will be able to login with password. Deprecated: use the API endpoint `/platform/v1/global-sso-settings` for this functionality. This is now a global setting: if this flag is defined here and this SSO setting is set to be active, the setting will be applied at global level. // + // Example: true + // Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set + IsPasswordLoginEnabled *bool `json:"isPasswordLoginEnabled,omitempty"` + + // IsSingleLogoutEnabled Flag to indicate if the single logout support is enabled. // - // Example: 1 - RuleSubType RuleSubType `json:"ruleSubType"` + // Example: true + IsSingleLogoutEnabled bool `json:"isSingleLogoutEnabled"` - // RuleTags The tags attached to the rule - RuleTags RuleTags `json:"ruleTags"` + // Product The product to which SSO settings is applied to. SSO settings are configured per specific product. + Product Product `json:"product"` - // RuleType Rule type: - // - 1 - List matching - process - // - 2 - List matching - container - // - 3 - List matching - file - // - 4 - List matching - network - // - 5 - List matching - syscall - // - 6 - Falco - // - 7 - Drift detection - // - 8 - Malware detection - // - 11 - ML - Cryptominer detection - // - 13 - ML - AWS anomalous login - // - 14 - ML - Okta anomalous login - // + // Version // - // Example: 6 - RuleType RuleType `json:"ruleType"` + // Example: 1 + Version UnlimitedLong `json:"version"` +} - // RunBook The runbook URL as configured in the policy. +// UpdateSyslogIntegrationRequest Update Syslog Integration Request +type UpdateSyslogIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type // - // Example: https://www.mycompany.com/our-runbook-link - RunBook *string `json:"runBook,omitempty"` + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo BaseConnectionInfoSyslog `json:"connectionInfo"` - // Type The type of the event content. + // IsEnabled If the forwarding should be enabled or not // - // Example: workloadRuntimeDetection - Type EventContentType `json:"type"` -} + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// Zone A collection of scopes representing business areas. -type Zone struct { - // ZoneId Zone ID + // Name A descriptive name to give to the integration // - // Example: 1234 - ZoneId *ZoneId `json:"zoneId,omitempty"` + // Example: name + Name string `json:"name"` - // ZoneName Zone name + // Type The platform to which data will be forwarded // - // Example: Zone example - ZoneName string `json:"zoneName"` -} - -// ZoneId Zone ID -// -// Example: 1234 -type ZoneId = int64 - -// ZonePolicyAssociationRequest Request body for associating policies with a zone -type ZonePolicyAssociationRequest struct { - // PolicyIds List of policy IDs to associate with the zone - PolicyIds []SecurePolicyId `json:"policyIds"` + // Example: SYSLOG + Type IntegrationType `json:"type"` } -// ZonePolicyAssociationResponse Response containing the policies associated with a zone -type ZonePolicyAssociationResponse struct { - // PolicyIds List of policy IDs associated with the zone - PolicyIds *[]SecurePolicyId `json:"policyIds,omitempty"` - - // ZoneId Zone ID - // - // Example: 1234 - ZoneId *ZoneId `json:"zoneId,omitempty"` -} +// UpdateTeamRequestV1 defines model for UpdateTeamRequestV1. +type UpdateTeamRequestV1 struct { + // AdditionalTeamPermissions Additional permissions available to the users of the team. + AdditionalTeamPermissions AdditionalTeamPermissionsV1 `json:"additionalTeamPermissions"` -// ZoneResponseV1 defines model for ZoneResponseV1. -type ZoneResponseV1 struct { - // Author Email of the user who created this Zone - // - // Example: Sysdig - Author *string `json:"author,omitempty"` + // CustomTeamRoleId The custom team role assigned by default to users added to this team. + CustomTeamRoleId *UnlimitedLong `json:"customTeamRoleId,omitempty"` - // Description The description of the Zone + // Description A description of the team explaining what is it used for. // - // Example: Production Environment + // Example: User Team description Description *string `json:"description,omitempty"` - // Id + // IsAllZones **True** if the users that are members of this team have access to all zones. **Mutually exclusive with zoneIds**.\ + // \ + // _Only supported in Secure features._ // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` + // + // Example: false + IsAllZones *bool `json:"isAllZones,omitempty"` - // IsSystem Boolean value indicating if the Zone is a *System* one + // IsDefaultTeam Specifies if this is the default team. The default team is used to automatically assign new users to a team. // // Example: false - IsSystem *bool `json:"isSystem,omitempty"` + IsDefaultTeam bool `json:"isDefaultTeam"` - // LastModifiedBy Email of the user who last modified the Zone + // Name The name of the team. // - // Example: john_doe@sysdig.com - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` + // Example: User Team + Name string `json:"name"` - // LastUpdated Timestamp indicating the moment the Zone has been last updated.\ - // It is expressed in milliseconds elapsed since January 1, 1970 UTC. - LastUpdated *UnlimitedLong `json:"lastUpdated,omitempty"` + // Scopes Scopes is a list of different scope types and filter values that will be applied to resources + // when accessed through the team. + Scopes []ScopeV1 `json:"scopes"` - // Name The name of the Zone + // StandardTeamRole The standard team role assigned by default to users added to this team. + StandardTeamRole *TeamRoleV1 `json:"standardTeamRole,omitempty"` + + // UiSettings UI related settings. + UiSettings UiSettingsV1 `json:"uiSettings"` + + // Version // - // Example: Production - Name *string `json:"name,omitempty"` + // Example: 1 + Version UnlimitedLong `json:"version"` - // Scopes Attached Zone Scopes - Scopes *[]ZoneScope `json:"scopes,omitempty"` + // ZoneIds The list of zones that users assigned to this team will have access to. **Mutually exclusive with allZones**.\ + // \ + // _Only supported in Secure features._ + ZoneIds *[]UnlimitedLong `json:"zoneIds,omitempty"` } -// ZoneResponseV2 Representation of a Zone as returned by the API. Includes identifying -// metadata (id, name, description), audit fields (author, lastModifiedBy, -// lastUpdated) and the attached `scopes` which determine which resources -// belong to this Zone. -type ZoneResponseV2 struct { - // Author Email of the user who created this Zone +// UpdateUserDeactivationConfigurationRequestV1 defines model for UpdateUserDeactivationConfigurationRequestV1. +type UpdateUserDeactivationConfigurationRequestV1 struct { + // IsEnabled Specifies if user deactivation is enabled for this customer. // - // Example: Sysdig - Author *string `json:"author,omitempty"` + // Example: false + IsEnabled bool `json:"isEnabled"` - // Description The description of the Zone - // - // Example: Production Environment - Description *string `json:"description,omitempty"` + // NumberDaysBeforeDeactivation Number of days before inactive users are deactivated. + NumberDaysBeforeDeactivation DaysInYearInt `json:"numberDaysBeforeDeactivation"` +} - // Id Zone ID +// UpdateUserRequestV1 defines model for UpdateUserRequestV1. +type UpdateUserRequestV1 struct { + // BypassSsoEnforcement When **True**, the user can bypass SSO enforcement. + // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. + // If a field is omitted, its value will be left unchanged. // - // Example: 1234 - Id ZoneId `json:"id"` - - // IsSystem Boolean value indicating if the Zone is a *System* one // // Example: false - IsSystem *bool `json:"isSystem,omitempty"` + BypassSsoEnforcement *bool `json:"bypassSsoEnforcement,omitempty"` - // LastModifiedBy Email of the user who last modified the Zone + // FirstName The name of the user. // - // Example: john_doe@sysdig.com - LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - - // LastUpdated Timestamp indicating the moment the Zone has been last updated.\ - // It is expressed in milliseconds elapsed since January 1, 1970 UTC. - LastUpdated *UnlimitedLong `json:"lastUpdated,omitempty"` - - // Name The name of the Zone // - // Example: Production - Name string `json:"name"` - - // Scopes Attached Zone Scopes - Scopes []ResourceScopeV2Response `json:"scopes"` -} + // Example: john + FirstName *string `json:"firstName,omitempty"` -// ZoneScope defines model for ZoneScope. -type ZoneScope struct { - // Id + // IsAdmin **True** if the user has Administration permissions. // - // Example: 1 - Id *UnlimitedLong `json:"id,omitempty"` - - // Rules Scoping rules to be applied + // When the admin permission is revoked (switched from True to False), the user will be removed from all teams except the default team(s) and assigned a default role in those team(s). // - // Example: clusterId in ( "test" ) - Rules *string `json:"rules,omitempty"` - - // TargetType The target type of the Scope // - // Example: target - TargetType string `json:"targetType"` -} - -// AccessKeyIdPath -// -// Example: 1 -type AccessKeyIdPath = UnlimitedLong - -// ActionExecutionId Example: 1234567890123456789012345678901234567890123456789012345678901234 -type ActionExecutionId = string - -// AutomationExecutionID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 -type AutomationExecutionID = openapi_types.UUID + // Example: false + IsAdmin *bool `json:"isAdmin,omitempty"` -// AutomationExecutionSort Example: startedAt:asc -type AutomationExecutionSort string + // IsEnabled When **True**, the user can bypass SSO enforcement. + // + // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. + // + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// AutomationExecutionStatus Example: done -type AutomationExecutionStatus string + // LastName The surname of the user. + // + // + // Example: doe + LastName *string `json:"lastName,omitempty"` -// AutomationID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 -type AutomationID = openapi_types.UUID + // Version The current version of the resource. + Version UnlimitedLong `json:"version"` +} -// AutomationsCursor Example: LTltNGUybXIwdWkzZThhMjE1bjRn -type AutomationsCursor = string +// UpdateWebhookIntegrationRequest Update Webhook Integration Request +type UpdateWebhookIntegrationRequest struct { + // Channels Data types to forward. Must be compatible with the specified Integration type + // + // Example: ["SECURE_EVENTS_POLICIES","ACTIVITY_AUDIT"] + Channels *IntegrationChannels `json:"channels,omitempty"` + ConnectionInfo struct { + // Auth Authentication method + // + // Example: BASIC_AUTH + Auth *UpdateWebhookIntegrationRequestConnectionInfoAuth `json:"auth,omitempty"` -// AutomationsEnabled Example: true -type AutomationsEnabled = bool + // CertificateId ID of a certificate stored in Sysdig's [Certificates Management tool](#tag/Certificates). Note that the RFC 5425 (TLS) protocol is required for you to see this field + // + // Example: 1 + CertificateId *int64 `json:"certificateId,omitempty"` -// AutomationsGroup Example: production -type AutomationsGroup = string + // Endpoint Webhook endpoint following the schema protocol + // + // Example: https://endpoint.mydomain.com + Endpoint string `json:"endpoint"` -// AutomationsIfMatch Example: "334181ea7fe6d58180cf6b4e9d1bf524" -type AutomationsIfMatch = string + // Headers Extra headers to add to the request. Each header mapping requires 2 keys: 'key' for the header key and 'value' for its value + Headers *[]KeyValueObject `json:"headers,omitempty"` -// AutomationsLimit Example: 100 -type AutomationsLimit = int32 + // IsInsecure Skip TLS certificate verification + // + // Example: false + IsInsecure *bool `json:"isInsecure,omitempty"` -// AutomationsSearch Example: high-cpu -type AutomationsSearch = string + // Output Payload format + // + // Example: ndjson + Output *UpdateWebhookIntegrationRequestConnectionInfoOutput `json:"output,omitempty"` -// AutomationsSort Example: name:asc -type AutomationsSort string + // Secret Secret to use, according to the "auth" value. + // + // Example: eiMaimiYohrahbaeS6iaNgo8iu + Secret *string `json:"secret,omitempty"` -// AutomationsTriggerOn Example: new_risk -type AutomationsTriggerOn = string + // TimestampFormat The resolution of the "timestamp" field in the payload + // + // Example: seconds + TimestampFormat *UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat `json:"timestampFormat,omitempty"` + } `json:"connectionInfo"` -// Enabled Example: false -type Enabled = bool + // IsEnabled If the forwarding should be enabled or not + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// EventId Example: 179854fbe16a1279f2ebeb558f1ebe99 -type EventId = string + // Name A descriptive name to give to the integration + // + // Example: name + Name string `json:"name"` -// Filter Example: name:filter -type Filter = string + // Type The platform to which data will be forwarded + // + // Example: SYSLOG + Type IntegrationType `json:"type"` +} -// GroupMappingIdPath +// UpdateWebhookIntegrationRequestConnectionInfoAuth Authentication method // -// Example: 1 -type GroupMappingIdPath = UnlimitedLong - -// IdempotencyKey Example: 01913d2e-2c8a-7a4e-b9c2-3f5e8a1d9b00 -type IdempotencyKey = openapi_types.UUID +// Example: BASIC_AUTH +type UpdateWebhookIntegrationRequestConnectionInfoAuth string -// InhibitionRulePath +// UpdateWebhookIntegrationRequestConnectionInfoOutput Payload format // -// Example: 1 -type InhibitionRulePath = UnlimitedLong - -// IntegrationId defines model for IntegrationId. -type IntegrationId = int64 +// Example: ndjson +type UpdateWebhookIntegrationRequestConnectionInfoOutput string -// IpFilterIdPath +// UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat The resolution of the "timestamp" field in the payload // -// Example: 1 -type IpFilterIdPath = UnlimitedLong +// Example: seconds +type UpdateWebhookIntegrationRequestConnectionInfoTimestampFormat string -// IssueTypeID +// UpdatedAt datetime of last update // -// Example: 1 -type IssueTypeID = UnlimitedLong +// Example: 2024-01-22T08:51:46.016464Z +type UpdatedAt = string -// IntegrationID -// -// Example: 1 -type IntegrationID = UnlimitedLong +// UploadCertificateRequest Certificate to be uploaded +type UploadCertificateRequest struct { + // CertificateFileName The certificate file to be uploaded + // + // Example: Content-Disposition: form-data; name="certificateFileName"; filename="cert.pem" + // -----BEGIN CERTIFICATE----- + // MIIDXTCCAkWgAwIBAgIJAJC1HiIAZAiIMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNV + // BAYTAkFUMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBX + // aWRnaXRzIFB0eSBMdGQwHhcNMTYxMjMxMTQ3NDI4WhcNNDgwNjMxMTQ3NDI4WjBF + // MQswCQYDVQQGEwJBVzERMAsGA1UECAwESmFuaTETMBEGA1UECgwKRGFuaWVsIENv + // LjEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOC + // AQ8AMIIBCgKCAQEAr0Ij7X2VeAn7vqqzq+5rSHZD2G5YjsMm0gtF8gfdG0h7om6D + // 5sbY18UWoVgF8Zp8v4+yzFP+YHqQa0S3pJI5p2hbiT2GhRwaUpT+0Lg+SIa+Gt5k + // sjuZb2GKZ47QnqMtKuT3aNRmJIJ0I3eJ8P3hvs+BUjxY3O9y8JxW1j3hLhF+n2Im + // klP8xuhpYtagLy6qxFhoSqzM9wQbHOlC4qCF76x8djC0Bg+ROe3Wkb8bV5ZElgvZ + // r64Ny7ffOQdc/zUi+J9j2ijJAgMBAAGjUDBOMB0GA1UdDgQWBBQxL9aji2MKEMD+ + // Rm9eJiEH4M0a/DAfBgNVHSMEGDAWgBQxL9aji2MKEMD+Rm9eJiEH4M0a/DAMBgNV + // HRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQB1hUK75CdDtJeLsQe08Lw0M9kP + // 5wqzj4HAnfKy29G/BJaGcYc4G7qnvl6hdC4jFPm9HXYEa7xQp6kt2e5R4t4OZSKg + // Ai5p5MeCh2ecdPN7otrF8+iO9XJEeuOQrqC6OVAKgLNCIVnXLPXp9i9b7gjFJeTT + // BNwE3rDJAkSnhk6Bhep4+JL1TyQ72DQ3HW4d/27To4v7NjP6r+K2eK5smVz9HSPD + // A8qJ31+ajNQMYWXFCR+HA4C/v1uYfY2/WMy2nw2/X7gJ0iAf3GtWPo/jYH6jhkDO + // i+3hFh9SIN2evhZV/BY6Uj+W3O3hLJA0ZgTXkZfMMz4/w9f3TyJ3oXxZqvzS + // -----END CERTIFICATE----- + CertificateFileName openapi_types.File `json:"certificateFileName"` -// JobNamePath Example: my-custom-job -type JobNamePath = string + // Name The name of the certificate that is being uploaded + // + // Example: foo + Name string `json:"name"` +} -// LabelNamePath defines model for LabelNamePath. -type LabelNamePath = string +// User The full representation of a User +type User struct { + // Groups Example: ["system:masters","system:authenticated"] + Groups *[]string `json:"groups,omitempty"` -// Limit Example: 25 -type Limit = int32 + // Username The username of the User + // + // Example: kubernetes-admin + Username *string `json:"username,omitempty"` +} -// LimitLabelValues -// -// Example: 1 -type LimitLabelValues = UnlimitedLong +// UserDeactivationConfigurationResponseV1 defines model for UserDeactivationConfigurationResponseV1. +type UserDeactivationConfigurationResponseV1 struct { + // CustomerId The customer Id. + CustomerId *UnlimitedLong `json:"customerId,omitempty"` -// LimitMetrics -// -// Example: 1 -type LimitMetrics = UnlimitedLong + // IsEnabled Specifies if user deactivation is enabled for this customer. + // + // Example: false + IsEnabled *bool `json:"isEnabled,omitempty"` -// LimitPerMetricUnsupported -// -// Example: 1 -type LimitPerMetricUnsupported = UnlimitedLong + // NumberDaysBeforeDeactivation Number of days before inactive users are deactivated. + NumberDaysBeforeDeactivation *DaysInYearInt `json:"numberDaysBeforeDeactivation,omitempty"` +} -// LimitQuery -// -// Example: 1 -type LimitQuery = UnlimitedLong +// UserResponseV1 defines model for UserResponseV1. +type UserResponseV1 struct { + // ActivationStatus The current activation status of the user. + // + // + // Example: confirmed + ActivationStatus *string `json:"activationStatus,omitempty"` -// LimitSeries -// -// Example: 1 -type LimitSeries = UnlimitedLong + // BypassSsoEnforcement When **True**, the user can bypass SSO enforcement. + // + // **Warning:** This allows the user to log in without SSO even when username and password login is disabled. + // + // + // Example: false + BypassSsoEnforcement *bool `json:"bypassSsoEnforcement,omitempty"` -// MatchLabelNames defines model for MatchLabelNames. -type MatchLabelNames = []string + // DateCreated The date and time when the user was created. + // + // + // Example: 2017-07-21T17:32:28Z + DateCreated *time.Time `json:"dateCreated,omitempty"` -// MatchLabelValues defines model for MatchLabelValues. -type MatchLabelValues = []string + // Email The email address of the user. + // + // + // Example: john.doe@nomail.cc + Email *string `json:"email,omitempty"` -// MatchSeries defines model for MatchSeries. -type MatchSeries = []string + // FirstName The name of the user. + // + // + // Example: john + FirstName *string `json:"firstName,omitempty"` -// MetricName Example: up -type MetricName = string + // Id + // + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` -// MultiFilter defines model for MultiFilter. -type MultiFilter = []string + // IsAdmin **True** if the user has Administration permissions. + // + // + // Example: false + IsAdmin *bool `json:"isAdmin,omitempty"` -// MultiOrderBy defines model for MultiOrderBy. -type MultiOrderBy = []string + // IsEnabled **True** if the user is enabled. + // + // + // Example: true + IsEnabled *bool `json:"isEnabled,omitempty"` -// NotificationChannelID -// -// Example: 1 -type NotificationChannelID = UnlimitedLong + // LastName The last name of the user. + // + // + // Example: doe + LastName *string `json:"lastName,omitempty"` -// NotificationTemplateChannelTypeQueryOptional Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. -// -// Example: pager_duty -type NotificationTemplateChannelTypeQueryOptional = NotificationTemplateChannelTypeV1 + // LastUpdated The date and time when the user was last updated. + // + // + // Example: 2017-07-21T17:32:28Z + LastUpdated *time.Time `json:"lastUpdated,omitempty"` -// NotificationTemplateChannelTypeQueryRequired Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. -// -// Example: pager_duty -type NotificationTemplateChannelTypeQueryRequired = NotificationTemplateChannelTypeV1 + // Version The current version of the resource. + Version *UnlimitedLong `json:"version,omitempty"` +} -// NotificationTemplateIdPath -// -// Example: 1 -type NotificationTemplateIdPath = UnlimitedLongV2 +// ValueV2 Value for filter expressions. +// - operator "in" -> array required +// - all other operators -> single string +type ValueV2 struct { + union json.RawMessage +} -// NotificationTemplateUseCaseQueryOptional Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. -// -// Example: monitor_alert -type NotificationTemplateUseCaseQueryOptional = NotificationTemplateUseCaseV1 +// ValueV20 defines model for ValueV2.0. +type ValueV20 = []string -// NotificationTemplateUseCaseQueryRequired Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. -// -// Example: monitor_alert -type NotificationTemplateUseCaseQueryRequired = NotificationTemplateUseCaseV1 +// ValueV21 Example: production +type ValueV21 = string -// Offset Example: 30 -type Offset = int32 +// VulnAge Predicate expressing "the Vulnerability is older than days" +type VulnAge struct { + Extra struct { + // Age The age of the vulnerability in days. + // + // Example: 30 + Age *int32 `json:"age,omitempty"` + } `json:"extra"` -// OrderBy Example: name:asc -type OrderBy = string + // Type Example: vulnAge + Type VulnAgeType `json:"type"` +} -// PathCertificateId defines model for PathCertificateId. -type PathCertificateId = string +// VulnAgeType Example: vulnAge +type VulnAgeType string -// PermissionsFilter Example: products:SDS -type PermissionsFilter = string +// VulnCvss Predicate expressing "the Vulnerability CVSS Score is higher than " +type VulnCvss struct { + Extra struct { + // Value The threshold for greater-than-or-equal comparison with CVSS Score. + // + // Example: 4 + Value *float32 `json:"value,omitempty"` + } `json:"extra"` -// PricingIdPath -// -// Example: 1 -type PricingIdPath = UnlimitedLong + // Type Example: vulnCVSS + Type VulnCvssType `json:"type"` +} -// Query Example: up -type Query = string +// VulnCvssType Example: vulnCVSS +type VulnCvssType string -// RoleDisplayNamePath Example: View Only -type RoleDisplayNamePath string +// VulnCvssEquals Predicate expressing "the Vulnerability CVSS Score is exactly equal to " +type VulnCvssEquals struct { + Extra struct { + // Value The threshold for equality comparison with the CVSS Score. + // + // Example: 4 + Value *float32 `json:"value,omitempty"` + } `json:"extra"` -// RoleIdPath -// -// Example: 1 -type RoleIdPath = UnlimitedLong + // Type Example: vulnCVSSEquals + Type VulnCvssEqualsType `json:"type"` +} -// ServiceAccountIdPath -// -// Example: 1 -type ServiceAccountIdPath = UnlimitedLong +// VulnCvssEqualsType Example: vulnCVSSEquals +type VulnCvssEqualsType string -// SsoProductIdPath Example: secure -type SsoProductIdPath string +// VulnDisclosureRange The start and end dates (inclusive) when vulnerabilities were disclosed. +type VulnDisclosureRange struct { + Extra struct { + // EndDate The end date (inclusive) of disclosed vulnerabilities. + // + // Example: 2024-05-22 + EndDate *openapi_types.Date `json:"endDate,omitempty"` -// SsoSettingsIdPath -// -// Example: 1 -type SsoSettingsIdPath = UnlimitedLong + // StartDate The start date (inclusive) of disclosed vulnerabilities. + // + // Example: 2024-02-27 + StartDate *openapi_types.Date `json:"startDate,omitempty"` + } `json:"extra"` -// Step defines model for Step. -type Step struct { - union json.RawMessage + // Type Example: vulnDisclosureRange + Type VulnDisclosureRangeType `json:"type"` } -// TeamIdPath -// -// Example: 1 -type TeamIdPath = UnlimitedLong +// VulnDisclosureRangeType Example: vulnDisclosureRange +type VulnDisclosureRangeType string -// Time Time defined as RFC3339 or a unix timestamp -type Time = QueryTime +// VulnEpssPercentileGte The EPSS percentile score that is greater than or equal to the specified value. +type VulnEpssPercentileGte struct { + Extra struct { + // Percentile Percentile value to compare. + // + // Example: 30 + Percentile *int32 `json:"percentile,omitempty"` + } `json:"extra"` -// TimeEndQuery Time defined as RFC3339 or a unix timestamp -type TimeEndQuery = QueryTime + // Type Example: vulnEpssPercentileGte + Type VulnEpssPercentileGteType `json:"type"` +} -// TimeEndSeries Time defined as RFC3339 or a unix timestamp -type TimeEndSeries = QueryTime +// VulnEpssPercentileGteType Example: vulnEpssPercentileGte +type VulnEpssPercentileGteType string -// TimeEndUnsupported Time defined as RFC3339 or a unix timestamp -type TimeEndUnsupported = QueryTime +// VulnEpssScoreGte The EPSS score that meets or exceeds the specified threshold value. +type VulnEpssScoreGte struct { + Extra struct { + // Score Score value to compare. + // + // Example: 30 + Score *int32 `json:"score,omitempty"` + } `json:"extra"` -// TimeStartQuery Time defined as RFC3339 or a unix timestamp -type TimeStartQuery = QueryTime + // Type Example: vulnEpssScoreGte + Type VulnEpssScoreGteType `json:"type"` +} -// TimeStartSeries Time defined as RFC3339 or a unix timestamp -type TimeStartSeries = QueryTime +// VulnEpssScoreGteType Example: vulnEpssScoreGte +type VulnEpssScoreGteType string -// TimeStartUnsupported Time defined as RFC3339 or a unix timestamp -type TimeStartUnsupported = QueryTime +// VulnExploitable Predicate expressing "the Vulnerability is exploitable". +type VulnExploitable struct { + // Type Example: vulnExploitable + Type VulnExploitableType `json:"type"` +} -// Timeout Time defined as a Golang-style duration type -// -// Example: 1m30s -type Timeout = Duration +// VulnExploitableType Example: vulnExploitable +type VulnExploitableType string -// UserIdPath -// -// Example: 1 -type UserIdPath = UnlimitedLong +// VulnExploitableNoAdmin Predicate expressing "the Vulnerability is exploitable and the exploit does not. require admin privileges" +type VulnExploitableNoAdmin struct { + // Type Example: vulnExploitableNoAdmin + Type VulnExploitableNoAdminType `json:"type"` +} -// AcceptedRiskID Example: 17af8bade67c9a208e632df001fcea2c -type AcceptedRiskID = string +// VulnExploitableNoAdminType Example: vulnExploitableNoAdmin +type VulnExploitableNoAdminType string -// Order Example: asc -type Order string +// VulnExploitableNoUser Predicate expressing "the Vulnerability is exploitable and the exploit does not. require user interaction" +type VulnExploitableNoUser struct { + // Type Example: vulnExploitableNoUser + Type VulnExploitableNoUserType `json:"type"` +} -// VulnerabilityCursor Example: MTI0MjM0Cg== -type VulnerabilityCursor = string +// VulnExploitableNoUserType Example: vulnExploitableNoUser +type VulnExploitableNoUserType string -// VulnerabilityFilter Example: freeText in ("postgres") and status = "expired" -type VulnerabilityFilter = string +// VulnExploitableViaNetwork Predicate expressing "the Vulnerability is exploitable via network". +type VulnExploitableViaNetwork struct { + // Type Example: vulnExploitableViaNetwork + Type VulnExploitableViaNetworkType `json:"type"` +} -// BadRequest defines model for BadRequest. -type BadRequest = Error +// VulnExploitableViaNetworkType Example: vulnExploitableViaNetwork +type VulnExploitableViaNetworkType string -// BadRequestPrometheus defines model for BadRequestPrometheus. -type BadRequestPrometheus = PrometheusError +// VulnExploitableWithAge Predicate expressing "the Vulnerability is exploitable and the exploit is older. than days" +type VulnExploitableWithAge struct { + Extra struct { + // Age The age of the exploit in days + // + // Example: 30 + Age *int32 `json:"age,omitempty"` + } `json:"extra"` -// BadRequestV2 defines model for BadRequestV2. -type BadRequestV2 = ErrorV2 + // Type Example: vulnExploitableWithAge + Type VulnExploitableWithAgeType `json:"type"` +} -// Conflict defines model for Conflict. -type Conflict = Error +// VulnExploitableWithAgeType Example: vulnExploitableWithAge +type VulnExploitableWithAgeType string -// ConflictV2 defines model for ConflictV2. -type ConflictV2 = ErrorV2 +// VulnIsFixable Predicate expressing "the Vulnerability is Fixable". +type VulnIsFixable struct { + // Type Example: vulnIsFixable + Type VulnIsFixableType `json:"type"` +} -// CveCatalogInternalServerErrorV2 defines model for CveCatalogInternalServerErrorV2. -type CveCatalogInternalServerErrorV2 = ErrorV2 +// VulnIsFixableType Example: vulnIsFixable +type VulnIsFixableType string -// Forbidden defines model for Forbidden. -type Forbidden = Error +// VulnIsFixableWithAge Predicate expressing "the Vulnerability is Fixable and its fix is older than days". +type VulnIsFixableWithAge struct { + Extra struct { + // Age The age of the fix in days + // + // Example: 30 + Age *int32 `json:"age,omitempty"` + } `json:"extra"` -// ForbiddenV2 defines model for ForbiddenV2. -type ForbiddenV2 = ErrorV2 + // Type Example: vulnIsFixableWithAge + Type VulnIsFixableWithAgeType `json:"type"` +} -// GonePrometheus defines model for GonePrometheus. -type GonePrometheus = PrometheusError +// VulnIsFixableWithAgeType Example: vulnIsFixableWithAge +type VulnIsFixableWithAgeType string -// InternalServerError defines model for InternalServerError. -type InternalServerError = Error +// VulnIsInUse The vulnerable resources currently in use. +type VulnIsInUse struct { + // Type Example: vulnIsInUse + Type VulnIsInUseType `json:"type"` +} -// InternalServerErrorPrometheus defines model for InternalServerErrorPrometheus. -type InternalServerErrorPrometheus = PrometheusError +// VulnIsInUseType Example: vulnIsInUse +type VulnIsInUseType string -// InternalServerErrorV2 defines model for InternalServerErrorV2. -type InternalServerErrorV2 = ErrorV2 +// VulnPkgType Predicate expressing "the Vulnerability is related to a package of ". +type VulnPkgType struct { + Extra struct { + // PkgType The package type, either OS or non-OS. There is no enforcement on the value for future extensibility. + // + // + // Example: os + PkgType VulnPkgTypeExtraPkgType `json:"pkgType"` + } `json:"extra"` -// NotFound defines model for NotFound. -type NotFound = Error + // Type Example: vulnPkgType + Type VulnPkgTypeType `json:"type"` +} -// NotFoundPrometheus Error message indicating that the requested page was not found. +// VulnPkgTypeExtraPkgType The package type, either OS or non-OS. There is no enforcement on the value for future extensibility. // -// Example: 404 page not found -type NotFoundPrometheus = string +// Example: os +type VulnPkgTypeExtraPkgType string -// NotFoundV2 defines model for NotFoundV2. -type NotFoundV2 = ErrorV2 +// VulnPkgTypeType Example: vulnPkgType +type VulnPkgTypeType string -// TooManyRequests defines model for TooManyRequests. -type TooManyRequests = Error +// VulnSeverity Predicate expressing "the Vulnerability Severity is or higher". +type VulnSeverity struct { + Extra struct { + // Level Example: critical + Level *VulnSeverityExtraLevel `json:"level,omitempty"` + } `json:"extra"` -// TooManyRequestsV2 defines model for TooManyRequestsV2. -type TooManyRequestsV2 = ErrorV2 + // Type Example: vulnSeverity + Type VulnSeverityType `json:"type"` +} -// Unauthorized defines model for Unauthorized. -type Unauthorized = Error +// VulnSeverityExtraLevel Example: critical +type VulnSeverityExtraLevel string -// UnauthorizedPrometheus defines model for UnauthorizedPrometheus. -type UnauthorizedPrometheus struct { - // Error A human-readable error message. +// VulnSeverityType Example: vulnSeverity +type VulnSeverityType string + +// VulnSeverityEquals Predicate expressing "the Vulnerability Severity is exactly ". +type VulnSeverityEquals struct { + Extra struct { + // Level Example: critical + Level *VulnSeverityEqualsExtraLevel `json:"level,omitempty"` + } `json:"extra"` + + // Type Example: vulnSeverityEquals + Type VulnSeverityEqualsType `json:"type"` +} + +// VulnSeverityEqualsExtraLevel Example: critical +type VulnSeverityEqualsExtraLevel string + +// VulnSeverityEqualsType Example: vulnSeverityEquals +type VulnSeverityEqualsType string + +// VulnTotalBySeverity total vulnerabilities by severity +type VulnTotalBySeverity struct { + // Critical number of critical vulnerabilities // - // Example: Unauthorized - Error string `json:"error"` + // Example: 12345 + Critical *int `json:"critical,omitempty"` - // Path The requested endpoint path that triggered the error. + // High number of high severity vulnerabilities // - // Example: /ext/auth/prometheus/api/v1/query - Path string `json:"path"` + // Example: 12345 + High *int `json:"high,omitempty"` - // Status HTTP status code of the response. + // Low number of low severity vulnerabilities // - // Example: 401 - Status int32 `json:"status"` + // Example: 12345 + Low *int `json:"low,omitempty"` - // Timestamp Epoch timestamp (milliseconds) when the error occurred. + // Medium number of medium severity vulnerabilities // - // Example: 1743154268491 - Timestamp int64 `json:"timestamp"` + // Example: 12345 + Medium *int `json:"medium,omitempty"` + + // Negligible number of negligible severity vulnerabilities + // + // Example: 12345 + Negligible *int `json:"negligible,omitempty"` } -// UnauthorizedV2 defines model for UnauthorizedV2. -type UnauthorizedV2 = ErrorV2 +// Vulnerability defines model for Vulnerability. +type Vulnerability struct { + // CisaKev Example: {"dueDate":"2023-10-31","knownRansomwareCampaignUse":"false","publishDate":"2023-12-06"} + CisaKev *map[string]interface{} `json:"cisaKev,omitempty"` + CvssScore CvssScore `json:"cvssScore"` -// UnprocessableEntity defines model for UnprocessableEntity. -type UnprocessableEntity = Error + // DisclosureDate Example: 2021-01-02 + DisclosureDate *openapi_types.Date `json:"disclosureDate,omitempty"` + Exploit *Exploit `json:"exploit,omitempty"` -// UnprocessableEntityPrometheus defines model for UnprocessableEntityPrometheus. -type UnprocessableEntityPrometheus = PrometheusError + // Exploitable Example: true + Exploitable bool `json:"exploitable"` -// UnprocessableEntityV2 defines model for UnprocessableEntityV2. -type UnprocessableEntityV2 = ErrorV2 + // FirstSeen Example: 2021-01-02 + FirstSeen *openapi_types.Date `json:"firstSeen,omitempty"` -// UnsupportedMediaType defines model for UnsupportedMediaType. -type UnsupportedMediaType = Error + // FixVersion Example: 1.2.3 + FixVersion *string `json:"fixVersion,omitempty"` -// UnsupportedMediaTypeV2 defines model for UnsupportedMediaTypeV2. -type UnsupportedMediaTypeV2 = ErrorV2 + // Fpkev true when the vulnerability is listed in FlashPoint VulnDB KEV + // + // Example: true + Fpkev *bool `json:"fpkev,omitempty"` -// GetQueryResultParams defines parameters for GetQueryResult. -type GetQueryResultParams struct { - // Q The SysQL statement. - Q string `form:"q" json:"q"` - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` - Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` - DeterministicOrder *bool `form:"deterministic_order,omitempty" json:"deterministic_order,omitempty"` - IncludeReversed *bool `form:"include_reversed,omitempty" json:"include_reversed,omitempty"` + // MainProvider Example: vulndb + MainProvider *string `json:"mainProvider,omitempty"` - // QueryMode Controls the shape of the result set returned by the query engine. Defaults to `Table` when omitted. - QueryMode *QueryMode `form:"query_mode,omitempty" json:"query_mode,omitempty"` + // Name Example: CVE-2021-1234 + Name string `json:"name"` - // ZoneIds Restrict the query to the given list of zone IDs. When omitted, the query runs across all zones the - // caller has access to. - ZoneIds *[]int64 `form:"zone_ids,omitempty" json:"zone_ids,omitempty"` + // PackageRef reference to the affected package + // + // Example: 2772f8a6c73fa17 + PackageRef *string `json:"packageRef,omitempty"` - // GlobalId Optional caller-supplied identifier used to correlate the query with traces or audit logs. The identifier - // is echoed back in the response and surfaced in observability tooling. - GlobalId *string `form:"global_id,omitempty" json:"global_id,omitempty"` + // ProvidersMetadata Example: {"first.org":{"epssScore":{"percentile":0.05089,"score":0.00042,"timestamp":"2024-12-04T00:00:00Z"}},"nvd":{"cvssScore":{"score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"publicationDate":"2024-09-04T19:15:30.77Z","severity":"medium"},"rhel":{"cvssScore":{"score":5.5,"vector":"AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"severity":"medium"}} + ProvidersMetadata *map[string]interface{} `json:"providersMetadata,omitempty"` + RiskAcceptRefs *[]string `json:"riskAcceptRefs,omitempty"` + + // Severity Example: critical + Severity VulnerabilitySeverity `json:"severity"` + + // SolutionDate Example: 2021-01-02 + SolutionDate *openapi_types.Date `json:"solutionDate,omitempty"` } -// PostQueryResultJSONBody defines parameters for PostQueryResult. -type PostQueryResultJSONBody struct { - // DeterministicOrder The deterministic_order parameter controls whether consistent ordering is enforced in the result set. - // Ordering is implicitly applied when pagination options, such as limit and offset, are specified in the - // request. This is an optional parameter. - // - // - // Example: true - DeterministicOrder *bool `json:"deterministic_order,omitempty"` +// VulnerabilitySeverity Example: critical +type VulnerabilitySeverity string - // GlobalId Optional caller-supplied identifier used to correlate the query with traces or audit logs. The - // identifier is echoed back in the response and surfaced in observability tooling. - // +// VulnerabilityManagementPage API paging response +type VulnerabilityManagementPage struct { + // Next Next cursor for pagination // - // Example: ui-explorer-search-1 - GlobalId *string `json:"global_id,omitempty"` + // Example: MTI0MjM0Cg== + Next *string `json:"next,omitempty"` - // IncludeReversed When true, relationships are also traversed in their reverse direction. Use with care: enabling - // reverse traversal can substantially increase the result set size. - // + // Total Total of scans // - // Example: false - IncludeReversed *bool `json:"include_reversed,omitempty"` + // Example: 1 + Total *int `json:"total,omitempty"` +} - // Limit The limit parameter defines the maximum number of items returned in the result set, specifically - // within the items array in the response. - // - // This parameter is optional. The recommended approach is to define the limit directly in the SysQL - // statement using the LIMIT clause. If specified in the request body, it will override the limit set - // in the statement. If not specified, a default limit of 50 will be applied. - // +// VulnerabilitySummary Vulnerability summary of a resource +type VulnerabilitySummary struct { + // CriticalSeverityCount Number of critical severity vulnerabilities // - // Example: 100 - Limit *int32 `json:"limit,omitempty"` + // Example: 1 + CriticalSeverityCount int32 `json:"criticalSeverityCount"` - // Offset The offset parameter specifies how many result set objects to skip in a MATCH statement. Use it when - // you want to ignore the first few items in the result set. - // - // This parameter is optional. The recommended approach is to set the offset directly in the SysQL - // statement using the OFFSET clause. If specified in the request body, it will override the offset - // in the statement. If not specified, a default offset of 0 will be applied. - // - // Use limit and offset together in SysQL to paginate results, splitting them into pages with a defined - // number of items for display. + // HasExploit Indicates if a resource has an exploit // + // Example: true + HasExploit bool `json:"hasExploit"` + + // HighSeverityCount Number of high severity vulnerabilities // - // Example: 0 - Offset *int32 `json:"offset,omitempty"` + // Example: 2 + HighSeverityCount int32 `json:"highSeverityCount"` - // Q The SysQL statement. + // LowSeverityCount Number of low severity vulnerabilities // - // Example: MATCH IAMUser AS a WHERE a.customerId = 1234567890 RETURN a.name AS name, a.arn AS arn; - Q string `json:"q"` + // Example: 4 + LowSeverityCount int32 `json:"lowSeverityCount"` - // QueryMode Controls the result shape returned by the SysQL engine. + // MediumSeverityCount Number of medium severity vulnerabilities // - // Example: Table - QueryMode *QueryMode `json:"query_mode,omitempty"` + // Example: 3 + MediumSeverityCount int32 `json:"mediumSeverityCount"` - // ZoneIds Restrict the query to the given list of zone IDs. When omitted, the query runs across all zones the - // caller has access to. - ZoneIds *[]int64 `json:"zone_ids,omitempty"` + // NegligibleSeverityCount Number of negligible severity vulnerabilities + // + // Example: 5 + NegligibleSeverityCount int32 `json:"negligibleSeverityCount"` } -// GetInhibitionRulesParams defines parameters for GetInhibitionRules. -type GetInhibitionRulesParams struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// WastedWorkloadDataRequest defines model for WastedWorkloadDataRequest. +type WastedWorkloadDataRequest struct { + DateRange struct { + // EndDate The end of the date range. + // + // Example: 2025-02-19 + EndDate openapi_types.Date `json:"endDate"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // StartDate The beginning of the date range. + // + // Example: 2025-02-17 + StartDate openapi_types.Date `json:"startDate"` + } `json:"dateRange"` + + // GroupBy Specifies Prometheus labels to group the report data by. + // By default, the following labels will always be included: + // - kube_cluster_name + // - kube_namespace_name + // - kube_workload_name + // A maximum of 7 additional custom labels can be specified. + GroupBy *[]PrometheusLabel `json:"groupBy,omitempty"` + + // Scope A list of PromQL-style filters + Scope *[]PromqlMatcher `json:"scope,omitempty"` } -// GetPricingV1Params defines parameters for GetPricingV1. -type GetPricingV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// WastedWorkloadSpendDataResponse Aggregated and grouped cost data representing Wasted Workload Spend over a specific date range. +type WastedWorkloadSpendDataResponse struct { + // GroupByData Grouped cost data for each combination of Prometheus label values. + GroupByData *[]struct { + // Accrued Accrued cost for this group. + // + // Example: 26.59 + Accrued *float64 `json:"accrued,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // Estimated Estimated cost for this group. + // + // Example: 3.6 + Estimated *float64 `json:"estimated,omitempty"` - // ClusterName The name of the Kubernetes cluster for which you want to retrive the pricing. - ClusterName *string `form:"clusterName,omitempty" json:"clusterName,omitempty"` + // Group Key-value pairs representing grouping labels. + Group *map[string]string `json:"group,omitempty"` - // Type The type of pricing to find. - Type *PricingType `form:"type,omitempty" json:"type,omitempty"` -} - -// GetPricingProjectedCostsV1Params defines parameters for GetPricingProjectedCostsV1. -type GetPricingProjectedCostsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Wasted Wasted cost for this group. + // + // Example: 22.99 + Wasted *float64 `json:"wasted,omitempty"` + } `json:"groupByData,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -} + // Total Aggregated cost values for the specified time range. + Total *struct { + // Accrued Total cost accrued during the reporting period. + // + // Example: 31.59 + Accrued *float64 `json:"accrued,omitempty"` -// GetMonitorEventsV1Params defines parameters for GetMonitorEventsV1. -type GetMonitorEventsV1Params struct { - From *MonitorEventsFrom `form:"from,omitempty" json:"from,omitempty"` - To *MonitorEventsTo `form:"to,omitempty" json:"to,omitempty"` - Cursor *MonitorEventsCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - Filter *MonitorEventsFilter `form:"filter,omitempty" json:"filter,omitempty"` + // Estimated Estimated efficient cost during the reporting period. + // + // Example: 5.6 + Estimated *float64 `json:"estimated,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // Wasted Difference between accrued and estimated cost. + // + // Example: 25.73 + Wasted *float64 `json:"wasted,omitempty"` + } `json:"total,omitempty"` } -// GetDisabledMetricsByJobV1Params defines parameters for GetDisabledMetricsByJobV1. -type GetDisabledMetricsByJobV1Params struct { - // JobName The name of the Prometheus Job whose excluded metrics are to be listed. - JobName *string `form:"jobName,omitempty" json:"jobName,omitempty"` - - // MetricName The exact name of the metric to be filtered. - MetricName *string `form:"metricName,omitempty" json:"metricName,omitempty"` -} +// WorkloadCostTrendsDataRequest defines model for WorkloadCostTrendsDataRequest. +type WorkloadCostTrendsDataRequest struct { + // Date The reference date used to define the time window for cost trend calculation. + // When combined with `trendRangeInDays`, this date represents the inclusive upper bound + // of the time range — the trend is calculated from (`date - trendRangeInDays`). + // For example, if `date` is 2025-02-12 and `trendRangeInDays` is 10, the time range + // used for calculation is from 2025-02-03 to 2025-02-12 (inclusive). + // Must be in YYYY-MM-DD format. + // + // + // Example: 2025-02-12 + Date openapi_types.Date `json:"date"` + GroupBy *[]PrometheusLabel `json:"groupBy,omitempty"` -// GetCustomPrometheusJobsV1Params defines parameters for GetCustomPrometheusJobsV1. -type GetCustomPrometheusJobsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Scope A list of PromQL-style filters + Scope *[]PromqlMatcher `json:"scope,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // TrendRangeInDays Specifies the number of days used to calculate and extract cost data. + // Must be a positive integer. + // + // + // Example: 10 + TrendRangeInDays float32 `json:"trendRangeInDays"` } -// GetJiraIntegrationsV1Params defines parameters for GetJiraIntegrationsV1. -type GetJiraIntegrationsV1Params struct { - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Enabled Enabled status of the integration - Enabled *Enabled `form:"enabled,omitempty" json:"enabled,omitempty"` -} +// WorkloadCostTrendsDataResponse Cost trends observed between two consecutive time periods in the past. +type WorkloadCostTrendsDataResponse struct { + CurrentRange *struct { + // EndDate The end of the date range. + // + // Example: 2025-02-19 + EndDate openapi_types.Date `json:"endDate"` -// ListJobsV1Params defines parameters for ListJobsV1. -type ListJobsV1Params struct { - // ScheduleId ID of the Schedule - ScheduleId string `form:"scheduleId" json:"scheduleId"` + // StartDate The beginning of the date range. + // + // Example: 2025-02-17 + StartDate openapi_types.Date `json:"startDate"` + } `json:"currentRange,omitempty"` - // ReportId ID of the Report - ReportId *int64 `form:"reportId,omitempty" json:"reportId,omitempty"` + // GroupByData Grouped cost data for each combination of label values. + GroupByData *[]struct { + // Change The difference in cost between current and previous ranges for this group. + // + // Example: -0.6091442129 + Change *float64 `json:"change,omitempty"` - // IsReportTemplate Indicates whether the report is a template. - IsReportTemplate *ListJobsV1ParamsIsReportTemplate `form:"isReportTemplate,omitempty" json:"isReportTemplate,omitempty"` + // Current The cost for the current range within this group. + // + // Example: 33.754530610617486 + Current *float64 `json:"current,omitempty"` - // CompletedOn Date the job was completed in epoch milliseconds. - CompletedOn *UnlimitedLong `form:"completedOn,omitempty" json:"completedOn,omitempty"` + // Group Key-value pairs representing the grouping labels. + Group *map[string]string `json:"group,omitempty"` - // JobType Type of the job. - JobType *ListJobsV1ParamsJobType `form:"jobType,omitempty" json:"jobType,omitempty"` + // Previous The cost for the previous range within this group. + // + // Example: 34.36367482352418 + Previous *float64 `json:"previous,omitempty"` + } `json:"groupByData,omitempty"` + PreviousRange *struct { + // EndDate The end of the date range. + // + // Example: 2025-02-19 + EndDate openapi_types.Date `json:"endDate"` - // Status Status of the job. - Status *ListJobsV1ParamsStatus `form:"status,omitempty" json:"status,omitempty"` + // StartDate The beginning of the date range. + // + // Example: 2025-02-17 + StartDate openapi_types.Date `json:"startDate"` + } `json:"previousRange,omitempty"` - // Kind Kind of the report. - Kind *ListJobsV1ParamsKind `form:"kind,omitempty" json:"kind,omitempty"` + // Total Aggregated cost values for the current and previous ranges. + Total *struct { + // Change The difference between the current and the previous cost periods expressed in percentages. + // + // Example: -1.77 + Change *float64 `json:"change,omitempty"` - // Policies List of policy IDs in string format. - Policies *string `form:"policies,omitempty" json:"policies,omitempty"` + // Current The total cost for the current range. + // + // Example: 33.754530610617486 + Current *float64 `json:"current,omitempty"` - // Zones List of zone IDs in string format. - Zones *string `form:"zones,omitempty" json:"zones,omitempty"` + // Previous The total cost for the previous range. + // + // Example: 34.36367482352418 + Previous *float64 `json:"previous,omitempty"` + } `json:"total,omitempty"` } -// ListJobsV1ParamsIsReportTemplate defines parameters for ListJobsV1. -type ListJobsV1ParamsIsReportTemplate string +// WorkloadMlRuntimeDetectionContent Workload ML event content +type WorkloadMlRuntimeDetectionContent struct { + // Command The command name + // + // Example: bash + Command string `json:"command"` -// ListJobsV1ParamsJobType defines parameters for ListJobsV1. -type ListJobsV1ParamsJobType string + // DetectedClassProbability The detected class probability (confidence score) + // + // Example: 0.8 + DetectedClassProbability float32 `json:"detectedClassProbability"` -// ListJobsV1ParamsStatus defines parameters for ListJobsV1. -type ListJobsV1ParamsStatus string + // Exe The command path + // + // Example: /bin/bash + Exe string `json:"exe"` -// ListJobsV1ParamsKind defines parameters for ListJobsV1. -type ListJobsV1ParamsKind string + // PolicyId ID of the policy that generated the event + // + // Example: 2 + PolicyId PolicyId `json:"policyId"` -// GetAccessKeysV1Params defines parameters for GetAccessKeysV1. -type GetAccessKeysV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Type The type of the event content. + // + // Example: workloadRuntimeDetection + Type EventContentType `json:"type"` +} - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// WorkloadRightsizingDataRequest defines model for WorkloadRightsizingDataRequest. +type WorkloadRightsizingDataRequest struct { + // Algorithm Aggregation algorithm used for rightsizing analysis. Currently supported values are: + // - AVG + // - P95 + // - MAX + // This field is case-sensitive and may support more values in the future. + Algorithm string `json:"algorithm"` + DateRange struct { + // EndDate The end of the date range. + // + // Example: 2025-02-19 + EndDate openapi_types.Date `json:"endDate"` - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` + // StartDate The beginning of the date range. + // + // Example: 2025-02-17 + StartDate openapi_types.Date `json:"startDate"` + } `json:"dateRange"` - // Filter Filters to apply in the form of `key:value`.\ - // Multiple filters can be applied by repeating the `filter` parameter:\ - // `&filter=key1:value1&filter=key2:value2` - Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` + // Scope A list of PromQL-style filters + Scope *[]PromqlMatcher `json:"scope,omitempty"` } -// GetDefaultNotificationTemplateV1Params defines parameters for GetDefaultNotificationTemplateV1. -type GetDefaultNotificationTemplateV1Params struct { - // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. - ChannelType NotificationTemplateChannelTypeQueryRequired `form:"channelType" json:"channelType"` +// WorkloadRightsizingDataResponse Cost data representing Workload Rightsizing over a specific date range. +type WorkloadRightsizingDataResponse struct { + // GroupByData Grouped workload rightsizing data by cluster, namespace, workload, and container. + GroupByData *[]struct { + // Group Key-value pairs representing the logical grouping keys. + // + // The data is grouped by the following dimensions: + // - cluster + // - namespace + // - workload + // - container + // + // + // Example: {"cluster":"test-cluster","container":"web-api-container","namespace":"prod","workload":"web-api"} + Group *map[string]string `json:"group,omitempty"` - // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. - UseCase NotificationTemplateUseCaseQueryRequired `form:"useCase" json:"useCase"` -} + // MonthlyCost Estimated current monthly cost in USD. + // + // Example: 10.02 + MonthlyCost *float64 `json:"monthlyCost,omitempty"` -// GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName defines parameters for GetDefaultRoleByDisplayNameV1. -type GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName string + // MonthlyPotentialSavings Estimated potential monthly savings in USD. + // + // Example: 2 + MonthlyPotentialSavings *float64 `json:"monthlyPotentialSavings,omitempty"` -// GetGlobalSsoSettingsV1ParamsSsoProductId defines parameters for GetGlobalSsoSettingsV1. -type GetGlobalSsoSettingsV1ParamsSsoProductId string + // NumberOfPods Number of pods currently running in the workload. + // + // Example: 1 + NumberOfPods *int32 `json:"numberOfPods,omitempty"` -// UpdateGlobalSsoSettingsV1ParamsSsoProductId defines parameters for UpdateGlobalSsoSettingsV1. -type UpdateGlobalSsoSettingsV1ParamsSsoProductId string + // RequestedCpu CPU requested by the container (in milicores). + // + // Example: 120 + RequestedCpu *float64 `json:"requestedCpu,omitempty"` -// GetGroupMappingsV1Params defines parameters for GetGroupMappingsV1. -type GetGroupMappingsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // RequestedMemory Memory requested by the container (in MiB). + // + // Example: 2048 + RequestedMemory *float64 `json:"requestedMemory,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // SuggestedCpu Suggested CPU allocation (in milicores). + // + // Example: 100 + SuggestedCpu *float64 `json:"suggestedCpu,omitempty"` - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` + // SuggestedMemory Suggested memory allocation (in MiB). + // + // Example: 1024 + SuggestedMemory *float64 `json:"suggestedMemory,omitempty"` - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` + // WorkloadType Type of Kubernetes workload. + // Possible values include: + // - Deployment + // - StatefulSet + // - DaemonSet + // - Job + // - CronJob + // - ReplicaSet + // - ReplicationController + // + // + // Example: Deployment + WorkloadType *string `json:"workloadType,omitempty"` + } `json:"groupByData,omitempty"` } -// GetIpFiltersV1Params defines parameters for GetIpFiltersV1. -type GetIpFiltersV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// WorkloadRuntimeDetectionContent Policy Event +type WorkloadRuntimeDetectionContent struct { + Fields map[string]string `json:"fields"` - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` -} + // Origin The policy author: + // - `Sysdig` - default and managed policies + // - `Sysdig UI` - users interacting with Sysdig + // - `Tuner` - the automated tuner + // + // + // Example: Sysdig + Origin *PolicyOrigin `json:"origin,omitempty"` -// GetNotificationChannelsParams defines parameters for GetNotificationChannels. -type GetNotificationChannelsParams struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Output Event output, generated after the configured rule + // + // Example: File below a known binary directory opened for writing... + Output string `json:"output"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -} + // PolicyId ID of the policy that generated the event + // + // Example: 2 + PolicyId PolicyId `json:"policyId"` -// GetNotificationTemplatesV1Params defines parameters for GetNotificationTemplatesV1. -type GetNotificationTemplatesV1Params struct { - // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. - ChannelType *NotificationTemplateChannelTypeQueryOptional `form:"channelType,omitempty" json:"channelType,omitempty"` + // RuleName Name of the rule the event is generated after + // + // Example: Create Security Group Rule Allowing SSH Ingress + RuleName RuleName `json:"ruleName"` - // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. - UseCase *NotificationTemplateUseCaseQueryOptional `form:"useCase,omitempty" json:"useCase,omitempty"` + // RuleSubType Rule subtype: + // - 1 - List matching - network - inbound + // - 2 - List matching - network - outbound + // - 3 - List matching - network - listening + // - 4 - List matching - file - readwrite + // - 5 - List matching - file - read only + // + // + // Example: 1 + RuleSubType RuleSubType `json:"ruleSubType"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // RuleTags The tags attached to the rule + RuleTags RuleTags `json:"ruleTags"` - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -} + // RuleType Rule type: + // - 1 - List matching - process + // - 2 - List matching - container + // - 3 - List matching - file + // - 4 - List matching - network + // - 5 - List matching - syscall + // - 6 - Falco + // - 7 - Drift detection + // - 8 - Malware detection + // - 11 - ML - Cryptominer detection + // - 13 - ML - AWS anomalous login + // - 14 - ML - Okta anomalous login + // + // + // Example: 6 + RuleType RuleType `json:"ruleType"` -// GetPermissionsV1Params defines parameters for GetPermissionsV1. -type GetPermissionsV1Params struct { - // Filter Filter by products when getting permissions for custom roles.\ - // Avaliable products are: SDS, SDC.\ - // You can specify a single product or a list of products separated by commas.\ - // Product names are case-sensitive.\ - // If not specified, all permissions are returned. - Filter *PermissionsFilter `form:"filter,omitempty" json:"filter,omitempty"` -} + // RunBook The runbook URL as configured in the policy. + // + // Example: https://www.mycompany.com/our-runbook-link + RunBook *string `json:"runBook,omitempty"` -// GetPlatformAuditEventsV1Params defines parameters for GetPlatformAuditEventsV1. -type GetPlatformAuditEventsV1Params struct { - From From `form:"from" json:"from"` - To To `form:"to" json:"to"` - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - Filter *AuditEventsFeedFilter `form:"filter,omitempty" json:"filter,omitempty"` - Limit *AuditEventsFeedLimit `form:"limit,omitempty" json:"limit,omitempty"` + // Type The type of the event content. + // + // Example: workloadRuntimeDetection + Type EventContentType `json:"type"` } -// GetRolesV1Params defines parameters for GetRolesV1. -type GetRolesV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// Zone A collection of scopes representing business areas. +type Zone struct { + // ZoneId Zone ID + // + // Example: 1234 + ZoneId *ZoneId `json:"zoneId,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // ZoneName Zone name + // + // Example: Zone example + ZoneName string `json:"zoneName"` +} - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` +// ZoneId Zone ID +// +// Example: 1234 +type ZoneId = int64 - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +// ZonePolicyAssociationRequest Request body for associating policies with a zone +type ZonePolicyAssociationRequest struct { + // PolicyIds List of policy IDs to associate with the zone + PolicyIds []SecurePolicyId `json:"policyIds"` } -// GetGlobalServiceAccountsV1Params defines parameters for GetGlobalServiceAccountsV1. -type GetGlobalServiceAccountsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// ZonePolicyAssociationResponse Response containing the policies associated with a zone +type ZonePolicyAssociationResponse struct { + // PolicyIds List of policy IDs associated with the zone + PolicyIds *[]SecurePolicyId `json:"policyIds,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // ZoneId Zone ID + // + // Example: 1234 + ZoneId *ZoneId `json:"zoneId,omitempty"` +} - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` +// ZoneResponseV1 defines model for ZoneResponseV1. +type ZoneResponseV1 struct { + // Author Email of the user who created this Zone + // + // Example: Sysdig + Author *string `json:"author,omitempty"` - // Filter Filters to apply in the form of `key:value`.\ - // Multiple filters can be applied by repeating the `filter` parameter:\ - // `&filter=key1:value1&filter=key2:value2` - Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` -} + // Description The description of the Zone + // + // Example: Production Environment + Description *string `json:"description,omitempty"` -// GetSsoSettingsV1Params defines parameters for GetSsoSettingsV1. -type GetSsoSettingsV1Params struct { - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` -} + // Id + // + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` -// GetSystemSsoSettingsV1Params defines parameters for GetSystemSsoSettingsV1. -type GetSystemSsoSettingsV1Params struct { - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` -} + // IsSystem Boolean value indicating if the Zone is a *System* one + // + // Example: false + IsSystem *bool `json:"isSystem,omitempty"` -// GetTeamsV1Params defines parameters for GetTeamsV1. -type GetTeamsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // LastModifiedBy Email of the user who last modified the Zone + // + // Example: john_doe@sysdig.com + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // LastUpdated Timestamp indicating the moment the Zone has been last updated.\ + // It is expressed in milliseconds elapsed since January 1, 1970 UTC. + LastUpdated *UnlimitedLong `json:"lastUpdated,omitempty"` - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` + // Name The name of the Zone + // + // Example: Production + Name *string `json:"name,omitempty"` - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` + // Scopes Attached Zone Scopes + Scopes *[]ZoneScope `json:"scopes,omitempty"` } -// GetTeamServiceAccountsV1Params defines parameters for GetTeamServiceAccountsV1. -type GetTeamServiceAccountsV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// ZoneResponseV2 Representation of a Zone as returned by the API. Includes identifying +// metadata (id, name, description), audit fields (author, lastModifiedBy, +// lastUpdated) and the attached `scopes` which determine which resources +// belong to this Zone. +type ZoneResponseV2 struct { + // Author Email of the user who created this Zone + // + // Example: Sysdig + Author *string `json:"author,omitempty"` - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` + // Description The description of the Zone + // + // Example: Production Environment + Description *string `json:"description,omitempty"` - // Filter Filters to apply in the form of `key:value`.\ - // Multiple filters can be applied by repeating the `filter` parameter:\ - // `&filter=key1:value1&filter=key2:value2` - Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` -} + // Id Zone ID + // + // Example: 1234 + Id ZoneId `json:"id"` -// GetTeamUsersV1Params defines parameters for GetTeamUsersV1. -type GetTeamUsersV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // IsSystem Boolean value indicating if the Zone is a *System* one + // + // Example: false + IsSystem *bool `json:"isSystem,omitempty"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // LastModifiedBy Email of the user who last modified the Zone + // + // Example: john_doe@sysdig.com + LastModifiedBy *string `json:"lastModifiedBy,omitempty"` - // WithAdminUsers Include admin users in the response. - WithAdminUsers *bool `form:"withAdminUsers,omitempty" json:"withAdminUsers,omitempty"` -} + // LastUpdated Timestamp indicating the moment the Zone has been last updated.\ + // It is expressed in milliseconds elapsed since January 1, 1970 UTC. + LastUpdated *UnlimitedLong `json:"lastUpdated,omitempty"` -// GetUsersV1Params defines parameters for GetUsersV1. -type GetUsersV1Params struct { - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + // Name The name of the Zone + // + // Example: Production + Name string `json:"name"` - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + // Scopes Attached Zone Scopes + Scopes []ResourceScopeV2Response `json:"scopes"` +} - // Orderby The order by field separated by a colon for the direction - Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` +// ZoneScope defines model for ZoneScope. +type ZoneScope struct { + // Id + // + // Example: 1 + Id *UnlimitedLong `json:"id,omitempty"` - // Filter The filter by field separated by a colon for the filter value - Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` -} + // Rules Scoping rules to be applied + // + // Example: clusterId in ( "test" ) + Rules *string `json:"rules,omitempty"` -// CreateUserV1Params defines parameters for CreateUserV1. -type CreateUserV1Params struct { - // ActivationFlow The activation flow is used to send an invitation email to the user that is being created.\ - // \ - // **NOTE: it is required to set at least one product in the payload in order to send the appropriate email.** - ActivationFlow *bool `form:"activationFlow,omitempty" json:"activationFlow,omitempty"` + // TargetType The target type of the Scope + // + // Example: target + TargetType string `json:"targetType"` } -// ListZonesV1Params defines parameters for ListZonesV1. -type ListZonesV1Params struct { - // Filter Filters to apply in the form of `key:value`.\ - // Multiple filters can be applied by repeating the `filter` parameter:\ - // `&filter=key1:value1&filter=key2:value2` - Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` +// AccessKeyIdPath +// +// Example: 1 +type AccessKeyIdPath = UnlimitedLong - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// ActionExecutionId Example: 1234567890123456789012345678901234567890123456789012345678901234 +type ActionExecutionId = string - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// AutomationExecutionID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 +type AutomationExecutionID = openapi_types.UUID - // Orderby Ordering to apply in the form of `field:direction` where `direction` can either be `asc` or `desc`.\ - // Multiple orderings can be applied by repeating the `orderby` parameter:\ - // `&orderby=key1:direction1&orderby=key2:direction2` - Orderby *MultiOrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -} +// AutomationExecutionSort Example: startedAt:asc +type AutomationExecutionSort string -// 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"` +// AutomationExecutionStatus Example: done +type AutomationExecutionStatus string - // Limit The maximum number of automations to return in a single page. - Limit *AutomationsLimit `form:"limit,omitempty" json:"limit,omitempty"` +// AutomationID Example: 0191a8b0-3001-7a4e-8b3c-1f2e3d4c5b01 +type AutomationID = openapi_types.UUID - // 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"` +// AutomationsCursor Example: LTltNGUybXIwdWkzZThhMjE1bjRn +type AutomationsCursor = string - // Status Filters automations with a given status. - Status *ListAutomationExecutionsParamsStatus `form:"status,omitempty" json:"status,omitempty"` +// AutomationsEnabled Example: true +type AutomationsEnabled = bool - // 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"` -} +// AutomationsGroup Example: production +type AutomationsGroup = string -// ListAutomationExecutionsParamsSort defines parameters for ListAutomationExecutions. -type ListAutomationExecutionsParamsSort string +// AutomationsIfMatch Example: "334181ea7fe6d58180cf6b4e9d1bf524" +type AutomationsIfMatch = string -// ListAutomationExecutionsParamsStatus defines parameters for ListAutomationExecutions. -type ListAutomationExecutionsParamsStatus string +// AutomationsLimit Example: 100 +type AutomationsLimit = int32 -// 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"` +// AutomationsSearch Example: high-cpu +type AutomationsSearch = string - // Group Filters automations belonging to the given group. - Group *AutomationsGroup `form:"group,omitempty" json:"group,omitempty"` +// AutomationsSort Example: name:asc +type AutomationsSort string - // 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"` +// AutomationsTriggerOn Example: new_risk +type AutomationsTriggerOn = string - // Search Free-text term used to filter automations by name or description. - Search *AutomationsSearch `form:"search,omitempty" json:"search,omitempty"` +// Enabled Example: false +type Enabled = bool - // TriggerOn Filters automations by the event type they are triggered on. - TriggerOn *AutomationsTriggerOn `form:"triggerOn,omitempty" json:"triggerOn,omitempty"` +// EventId Example: 179854fbe16a1279f2ebeb558f1ebe99 +type EventId = string - // Limit The maximum number of automations to return in a single page. - Limit *AutomationsLimit `form:"limit,omitempty" json:"limit,omitempty"` +// Filter Example: name:filter +type Filter = string - // 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"` -} +// GroupMappingIdPath +// +// Example: 1 +type GroupMappingIdPath = UnlimitedLong -// ListAutomationsParamsSort defines parameters for ListAutomations. -type ListAutomationsParamsSort string +// IdempotencyKey Example: 01913d2e-2c8a-7a4e-b9c2-3f5e8a1d9b00 +type IdempotencyKey = openapi_types.UUID -// 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"` -} +// IfMatchHeader Example: "7" +type IfMatchHeader = string -// 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"` -} +// IfMatchHeaderOptional Example: "7" +type IfMatchHeaderOptional = string -// 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"` -} +// InhibitionRulePath +// +// Example: 1 +type InhibitionRulePath = UnlimitedLong -// ListZonesV2Params defines parameters for ListZonesV2. -type ListZonesV2Params struct { - // Filter Filters to apply in the form of `key:value`.\ - // Multiple filters can be applied by repeating the `filter` parameter:\ - // `&filter=key1:value1&filter=key2:value2` - Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` +// IntegrationId defines model for IntegrationId. +type IntegrationId = int64 - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// IpFilterIdPath +// +// Example: 1 +type IpFilterIdPath = UnlimitedLong - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +// IssueTypeID +// +// Example: 1 +type IssueTypeID = UnlimitedLong - // Orderby Ordering to apply in the form of `field:direction` where `direction` can either be `asc` or `desc`.\ - // Multiple orderings can be applied by repeating the `orderby` parameter:\ - // `&orderby=key1:direction1&orderby=key2:direction2` - Orderby *MultiOrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -} +// IntegrationID +// +// Example: 1 +type IntegrationID = UnlimitedLong -// GetLabelValuesV1Params defines parameters for GetLabelValuesV1. -type GetLabelValuesV1Params struct { - // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. - Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` +// JobNamePath Example: my-custom-job +type JobNamePath = string - // End UNSUPPORTED - Sysdig does not support this parameter. - End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` +// LabelNamePath defines model for LabelNamePath. +type LabelNamePath = string - // Match A repeated series selector argument that specifies the series from which to read the label values. - Match *MatchLabelValues `form:"match[],omitempty" json:"match[],omitempty"` +// Limit Example: 25 +type Limit = int32 - // Limit The maximum number of returned labels. This is 5,000 by default. To disable the limit, set the value to 0. - Limit *LimitLabelValues `form:"limit,omitempty" json:"limit,omitempty"` -} +// LimitLabelValues +// +// Example: 1 +type LimitLabelValues = UnlimitedLong -// GetLabelsV1Params defines parameters for GetLabelsV1. -type GetLabelsV1Params struct { - // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. - Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` +// LimitMetrics +// +// Example: 1 +type LimitMetrics = UnlimitedLong - // End UNSUPPORTED - Sysdig does not support this parameter. - End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` +// LimitPerMetricUnsupported +// +// Example: 1 +type LimitPerMetricUnsupported = UnlimitedLong - // Match A repeated series selector argument that specifies the series from which to read the label names. - Match *MatchLabelNames `form:"match[],omitempty" json:"match[],omitempty"` +// LimitQuery +// +// Example: 1 +type LimitQuery = UnlimitedLong - // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. - Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` -} +// LimitSeries +// +// Example: 1 +type LimitSeries = UnlimitedLong -// PostLabelsV1Params defines parameters for PostLabelsV1. -type PostLabelsV1Params struct { - // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. - Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` +// MatchLabelNames defines model for MatchLabelNames. +type MatchLabelNames = []string - // End UNSUPPORTED - Sysdig does not support this parameter. - End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` +// MatchLabelValues defines model for MatchLabelValues. +type MatchLabelValues = []string - // Match A repeated series selector argument that specifies the series from which to read the label names. - Match *MatchLabelNames `form:"match[],omitempty" json:"match[],omitempty"` +// MatchSeries defines model for MatchSeries. +type MatchSeries = []string - // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. - Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` -} +// MetricName Example: up +type MetricName = string -// GetMetadataV1Params defines parameters for GetMetadataV1. -type GetMetadataV1Params struct { - // LimitPerMetric UNSUPPORTED - Sysdig does not support this parameter. - LimitPerMetric *LimitPerMetricUnsupported `form:"limit_per_metric,omitempty" json:"limit_per_metric,omitempty"` +// MultiFilter defines model for MultiFilter. +type MultiFilter = []string - // Limit The maximum number of metrics to return. To disable the limit, set the value to 0. - Limit *LimitMetrics `form:"limit,omitempty" json:"limit,omitempty"` +// MultiOrderBy defines model for MultiOrderBy. +type MultiOrderBy = []string - // Metric A specific metric name to filter metadata for. If omitted, metadata for all metrics is retrieved. - Metric *MetricName `form:"metric,omitempty" json:"metric,omitempty"` -} +// NotificationChannelID +// +// Example: 1 +type NotificationChannelID = UnlimitedLong -// GetQueryV1Params defines parameters for GetQueryV1. -type GetQueryV1Params struct { - // Query The Prometheus expression query string. - Query Query `form:"query" json:"query"` +// NotificationTemplateChannelTypeQueryOptional Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. +// +// Example: pager_duty +type NotificationTemplateChannelTypeQueryOptional = NotificationTemplateChannelTypeV1 - // Time The evaluation timestamp as RFC3339 or a unix timestamp. If omitted, the current server time is used. - Time *Time `form:"time,omitempty" json:"time,omitempty"` +// NotificationTemplateChannelTypeQueryRequired Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. +// +// Example: pager_duty +type NotificationTemplateChannelTypeQueryRequired = NotificationTemplateChannelTypeV1 - // Timeout The evaluation timeout. The default is 2 minutes. - Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` +// NotificationTemplateIdPath +// +// Example: 1 +type NotificationTemplateIdPath = UnlimitedLongV2 - // Limit The maximum number of returned series. To disable the limit, set the value to 0. - Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` -} +// NotificationTemplateUseCaseQueryOptional Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. +// +// Example: monitor_alert +type NotificationTemplateUseCaseQueryOptional = NotificationTemplateUseCaseV1 -// PostQueryV1Params defines parameters for PostQueryV1. -type PostQueryV1Params struct { - // Query The Prometheus expression query string. - Query Query `form:"query" json:"query"` +// NotificationTemplateUseCaseQueryRequired Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. +// +// Example: monitor_alert +type NotificationTemplateUseCaseQueryRequired = NotificationTemplateUseCaseV1 - // Time The evaluation timestamp as RFC3339 or a unix timestamp. If omitted, the current server time is used. - Time *Time `form:"time,omitempty" json:"time,omitempty"` +// Offset Example: 30 +type Offset = int32 - // Timeout The evaluation timeout. The default is 2 minutes. - Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` +// OrderBy Example: name:asc +type OrderBy = string - // Limit The maximum number of returned series. To disable the limit, set the value to 0. - Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` -} +// PathCertificateId defines model for PathCertificateId. +type PathCertificateId = string -// GetQueryRangeV1Params defines parameters for GetQueryRangeV1. -type GetQueryRangeV1Params struct { - // Query The Prometheus expression query string. - Query Query `form:"query" json:"query"` +// PermissionsFilter Example: products:SDS +type PermissionsFilter = string - // Start The inclusive start timestamp of the query range as RFC3339 or a unix timestamp. - Start TimeStartQuery `form:"start" json:"start"` +// PricingIdPath +// +// Example: 1 +type PricingIdPath = UnlimitedLong - // End The inclusive end timestamp of the query range as RFC3339 or a unix timestamp. - End TimeEndQuery `form:"end" json:"end"` +// Query Example: up +type Query = string - // Step The query resolution step width, specified as a duration or a floating-point number of seconds. - Step Step `form:"step" json:"step"` +// ReportID Example: 26 +type ReportID = int64 - // Timeout The evaluation timeout. The default is 2 minutes. - Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` +// ReportIdQuery Example: 26 +type ReportIdQuery = int64 - // Limit The maximum number of returned series. To disable the limit, set the value to 0. - Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` -} +// RoleDisplayNamePath Example: View Only +type RoleDisplayNamePath string -// PostQueryRangeV1Params defines parameters for PostQueryRangeV1. -type PostQueryRangeV1Params struct { - // Query The Prometheus expression query string. - Query Query `form:"query" json:"query"` +// RoleIdPath +// +// Example: 1 +type RoleIdPath = UnlimitedLong - // Start The inclusive start timestamp of the query range as RFC3339 or a unix timestamp. - Start TimeStartQuery `form:"start" json:"start"` +// RunID Example: 2feo8FR30cAOiYFPfT4cKGtOUnd +type RunID = string - // End The inclusive end timestamp of the query range as RFC3339 or a unix timestamp. - End TimeEndQuery `form:"end" json:"end"` +// RunStatusQuery Example: completed +type RunStatusQuery string - // Step The query resolution step width, specified as a duration or a floating-point number of seconds. - Step Step `form:"step" json:"step"` +// RunTriggerQuery Example: on_demand +type RunTriggerQuery string - // Timeout The evaluation timeout. The default is 2 minutes. - Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` +// ScheduleID Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS +type ScheduleID = string - // Limit The maximum number of returned series. To disable the limit, set the value to 0. - Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` -} +// ScheduleIdQuery Example: 2pAtvxUMOXjoZlA1WJkkoCL6SeS +type ScheduleIdQuery = string -// GetRulesV1Params defines parameters for GetRulesV1. -type GetRulesV1Params struct { - // Type This endpoint only returns alerting rules (`type=alert`). When absent or empty, only alerting rules are returned. - Type *GetRulesV1ParamsType `form:"type,omitempty" json:"type,omitempty"` +// ServiceAccountIdPath +// +// Example: 1 +type ServiceAccountIdPath = UnlimitedLong - // RuleName Only return rules with the given rule name. If repeated, rules with any of the provided names are returned. - RuleName *[]string `form:"rule_name[],omitempty" json:"rule_name[],omitempty"` +// SinceAtQuery Example: 2026-09-01T00:00:00Z +type SinceAtQuery = time.Time - // RuleGroup Only return rules with the given rule group name. If repeated, rules with any of the provided group names are returned. - RuleGroup *[]string `form:"rule_group[],omitempty" json:"rule_group[],omitempty"` +// SsoProductIdPath Example: secure +type SsoProductIdPath string - // File UNSUPPORTED - Sysdig does not support this parameter. - File *[]string `form:"file[],omitempty" json:"file[],omitempty"` +// SsoSettingsIdPath +// +// Example: 1 +type SsoSettingsIdPath = UnlimitedLong - // ExcludeAlerts This endpoint supports only returning alerting rules (`exclude_alerts=true`). - ExcludeAlerts *bool `form:"exclude_alerts,omitempty" json:"exclude_alerts,omitempty"` +// Step defines model for Step. +type Step struct { + union json.RawMessage +} - // Match Only return rules with configured labels that satisfy the label selectors. - Match *[]string `form:"match[],omitempty" json:"match[],omitempty"` +// TeamIdPath +// +// Example: 1 +type TeamIdPath = UnlimitedLong - // GroupLimit Limit the number of rule groups returned in a single response. - GroupLimit *UnlimitedLong `form:"group_limit,omitempty" json:"group_limit,omitempty"` +// TemplateID Example: runtime_container_vulnerabilities +type TemplateID = string - // GroupNextToken UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. - GroupNextToken *string `form:"group_next_token,omitempty" json:"group_next_token,omitempty"` -} +// Time Time defined as RFC3339 or a unix timestamp +type Time = QueryTime -// GetRulesV1ParamsType defines parameters for GetRulesV1. -type GetRulesV1ParamsType string +// TimeEndQuery Time defined as RFC3339 or a unix timestamp +type TimeEndQuery = QueryTime -// GetSeriesV1Params defines parameters for GetSeriesV1. -type GetSeriesV1Params struct { - // Match A repeated series selector argument that specifies the series to return. You must provide at least one match[] parameter. - Match MatchSeries `form:"match[]" json:"match[]"` +// TimeEndSeries Time defined as RFC3339 or a unix timestamp +type TimeEndSeries = QueryTime - // Start The inclusive start timestamp of the series query as RFC3339 or a unix timestamp. - Start *TimeStartSeries `form:"start,omitempty" json:"start,omitempty"` +// TimeEndUnsupported Time defined as RFC3339 or a unix timestamp +type TimeEndUnsupported = QueryTime - // End The inclusive end timestamp of the series query as RFC3339 or a unix timestamp. - End *TimeEndSeries `form:"end,omitempty" json:"end,omitempty"` +// TimeStartQuery Time defined as RFC3339 or a unix timestamp +type TimeStartQuery = QueryTime - // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. - Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` -} +// TimeStartSeries Time defined as RFC3339 or a unix timestamp +type TimeStartSeries = QueryTime -// PostSeriesV1Params defines parameters for PostSeriesV1. -type PostSeriesV1Params struct { - // Match A repeated series selector argument that specifies the series to return. You must provide at least one match[] parameter. - Match MatchSeries `form:"match[]" json:"match[]"` +// TimeStartUnsupported Time defined as RFC3339 or a unix timestamp +type TimeStartUnsupported = QueryTime - // Start The inclusive start timestamp of the series query as RFC3339 or a unix timestamp. - Start *TimeStartSeries `form:"start,omitempty" json:"start,omitempty"` +// Timeout Time defined as a Golang-style duration type +// +// Example: 1m30s +type Timeout = Duration - // End The inclusive end timestamp of the series query as RFC3339 or a unix timestamp. - End *TimeEndSeries `form:"end,omitempty" json:"end,omitempty"` +// UserIdPath +// +// Example: 1 +type UserIdPath = UnlimitedLong - // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. - Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` -} +// AcceptedRiskID Example: 17af8bade67c9a208e632df001fcea2c +type AcceptedRiskID = string -// GetActivityAuditEntriesV1Params defines parameters for GetActivityAuditEntriesV1. -type GetActivityAuditEntriesV1Params struct { - From *From `form:"from,omitempty" json:"from,omitempty"` - To *To `form:"to,omitempty" json:"to,omitempty"` - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - Zones *[]ZoneId `form:"zones,omitempty" json:"zones,omitempty"` - Filter *SysdigQueryLanguageFilter `form:"filter,omitempty" json:"filter,omitempty"` +// Order Example: asc +type Order string - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - Types *Types `form:"types,omitempty" json:"types,omitempty"` -} +// VulnerabilityCursor Example: MTI0MjM0Cg== +type VulnerabilityCursor = string -// UploadCertificateV1400JSONResponseBodyMessage defines parameters for UploadCertificateV1. -type UploadCertificateV1400JSONResponseBodyMessage string +// VulnerabilityFilter Example: freeText in ("postgres") and status = "expired" +type VulnerabilityFilter = string -// UploadCertificateV1400JSONResponseBodyType defines parameters for UploadCertificateV1. -type UploadCertificateV1400JSONResponseBodyType string +// BadRequest defines model for BadRequest. +type BadRequest = Error -// ListEFOChannelsByIntegrationV1Params defines parameters for ListEFOChannelsByIntegrationV1. -type ListEFOChannelsByIntegrationV1Params struct { - // Type the Events Forwarder Integration Type - Type IntegrationType `form:"type" json:"type"` -} +// BadRequestPrometheus defines model for BadRequestPrometheus. +type BadRequestPrometheus = PrometheusError -// ListEFOChannelsByIntegrationV2Params defines parameters for ListEFOChannelsByIntegrationV2. -type ListEFOChannelsByIntegrationV2Params struct { - // Type the Events Forwarder Integration Type - Type IntegrationType `form:"type" json:"type"` -} +// BadRequestV2 defines model for BadRequestV2. +type BadRequestV2 = ErrorV2 -// GetEventsV1Params defines parameters for GetEventsV1. -type GetEventsV1Params struct { - From *From `form:"from,omitempty" json:"from,omitempty"` - To *To `form:"to,omitempty" json:"to,omitempty"` - Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` - Zones *[]ZoneId `form:"zones,omitempty" json:"zones,omitempty"` - Filter *EventsFeedFilter `form:"filter,omitempty" json:"filter,omitempty"` - Limit *EventsFeedLimit `form:"limit,omitempty" json:"limit,omitempty"` -} +// Conflict defines model for Conflict. +type Conflict = Error -// GetResourcesParams defines parameters for GetResources. -type GetResourcesParams struct { - // Filter Query language expression for filtering results. - // Operators: - // - `and` and `not` logical operators - // - `=`, `!=` - // - `in` - // - `contains` and `startsWith` to check partial values of attributes - // - `exists` to check if a field exists and not empty - // - // List of supported fields: - // - `account` - // - Type: string - // - Example: `account in ("285211435247")` - // - Description: DEPRECATED. The account that will be included in the results. - // - `accountName` - // - Type: string - // - Example: `accountName in ("some-account-name")` - // - Description: The account name that will be included in the results. - // - `accountId` - // - Type: string - // - Example: `accountId in ("345224567")` - // - Description: The account id that will be included in the results. - // - `cluster` - // - Type: string - // - Example: `cluster in ("cluster1")` - // - Description: The kubernetes cluster that will be included in the results. - // - `externalDNS` - // - Type: string - // - Example: `externalDNS in ("ec2-102-34-15-23.compute-1.amazonaws.com")` - // - Description: The external DNS that will be included in the results. - // - `distribution` - // - Type: string - // - Example: `distribution in ("gke", "vanilla")` - // - Description: The kubernetes distribution that will be included in the results. - // - `integrationName` - // - Type: string - // - Example: `integrationName = "github-integration"` - // - Description: The name of the integration an IaC resource belongs to. - // - `labels` - // - Type: string - // - Example: `not labels exists` - // - Description: The resource labels that will be included in the results. - // - `location` - // - Type: string - // - Example: `location starts with "https://bitbucket.org/organizations-workspace/teams-repository/src"` - // - Description: The web address of an IaC Manifest. - // - `name` - // - Type: string - // - Example: `name starts with "acl"` - // - Description: The names that will be included in the results. - // - `namespace` - // - Type: string - // - Example: `namespace contains "production"` - // - Description: The namespace that will be included in the results. - // - `nodeType` - // - Type: string - // - Example: `nodeType="Worker"` - // - Description: The nodeType that will be included in the results. - // - `osName` - // - Type: string - // - Example: `osName != "linux"` - // - Description: The operating system that will be included in the results. - // - `osImage` - // - Type: string - // - Example: `osImage = "Ubuntu 18.04.6 LTS"` - // - Description: The operating system image that will be included in the results. - // - `organization` - // - Type: string - // - Example: `organization = "s-xqe92dwe61"` - // - Description: The organization that will be included in the results. - // - `platform` - // - Type: string - // - Example: `platform = "AWS"` - // - Description: The platform that will be included in the results. - // - `control.accepted` - // - Type: boolean - // - Example: `control.accepted exists` - // - Description: Include (or Exclude) only resources with accepted results. Supported operators: exists and not exists. - // - `policy` - // - Type: string - // - Example: `policy in ("CIS Docker Benchmark")` - // - Description: Include resources that applied the selected policies. Supported operators: in, not in, exists, not exists. - // - `control.severity` - // - Type: string - // - Example: `control.severity in ("High")` - // - Description: Include resources that have violated risks in the selected severities. Supported operators: in, not in. - // - `control.failed` - // - Type: string - // - Example: `control.failed in ("/etc/default/docker owned by root:root")` - // - Description: Include resources that have violated the selected risks. Supported operators: in, not in, exists, not exists. - // - `policy.failed` - // - Type: string - // - Example: `policy.failed in ("PCI DSS (Payment Card Industry Data Security Standard) v3.2.1")` - // - Description: Include resources that failed the selected policies. Supported operators: in, not in, exists, not exists. - // - `policy.passed` in ("CIS Kubernetes V1.20 Benchmark") - // - Type: string - // - Example: `policy.passed in ("CIS Kubernetes V1.20 Benchmark")` - // - Description: Include resources that passed the selected policies. Supported operators: in, not in, exists, not exists. - // - `project` - // - Type: string - // - Example: `project = "project1"` - // - Description: DEPRECATED. The project that will be included in the results. - // - `projectName` - // - Type: string - // - Example: `projectName = "project123"` - // - Description: The project name that will be included in the results. - // - `projectId` - // - Type: string - // - Example: `projectId = "1235495521"` - // - Description: The project id that will be included in the results. - // - `region` - // - Type: string - // - Example: `region in ("europe-west1")` - // - Description: The regions that will be included in the results. - // - `repository` - // - Type: string - // - Example: `repository in ("e2e-repo")` - // - Description: The Repository an IaC resource belongs to. - // - `resourceOrigin` - // - Type: string - // - Example: `resourceOrigin = "Code"` - // - Description: Origin of the resource. Supported values: Code, Deployed. - // - `type` - // - Type: string - // - Example: `type = "Account"` - // - Description: The resource types that will be included in the results. - // - `subscription` - // - Type: string - // - Example: `subscription = "Azure subscription 1"` - // - Description: DEPRECATED. The Azure subscription that will be included in the results. - // - `subscriptionName` - // - Type: string - // - Example: `subscriptionName = "subscription abc"` - // - Description: The Azure subscription name that will be included in the results. - // - `subscriptionId` - // - Type: string - // - Example: `subscriptionId = "568634664353"` - // - Description: The Azure subscription id that will be included in the results. - // - `sourceType` - // - Type: string - // - Example: `sourceType = "YAML"` - // - Description: The source type of an IaC resource. Supported values: YAML, Kustomize, Terraform, Helm. - // - `version` - // - Type: string - // - Example: `version = "1.1"` - // - Description: OCP Cluster versions that will be included in the results. - // - `zone` - // - Type: string - // - Example: `zone in ("zone1")` - // - Description: The zones that will be included in the results. - // - `category` - // - Type: string - // - Example: `category in ("Compute", "IAM")` - // - Description: The category that will be included in the results. Supported operators: in, not in. - // - `isExposed` - // - Type: boolean - // - Example: `isExposed exists` - // - Description - Specifies whether the resource to return is exposed to the internet. Supported operators: exists and not exists. - // - `validatedExposure` - // - Type: boolean - // - Example: `validatedExposure exists` - // - Description - Specifies whether the resource to return is exposed to the internet and could be reach by our network exposure validator. Supported operators: exists and not exists. - // - `arn` - // - Type: string - // - Example: `arn in ("arn:aws:ec2:eu-central-1:843232641625:instance/i-0c1dedd325e71138d")` - // - Description - The AWS ARN of the resource. - // - `resourceId` - // - Type: string - // - Example: `resourceId = "//compute.googleapis.com/projects/project1/global/routes/default-route-192ae83214caddd"` - // - Description - The Azure or GCP Resource Identifier of the resource. - // - `container.name` - // - Type: string - // - Example: `container.name in ("sysdig-container")` - // - Description - Filters the resource by a container. - // - `architecture` - // - Type: string - // - Example: `architecture = "arm64"` - // - Description - Image architecture. - // - `baseOS` - // - Type: string - // - Example: `baseOS = "debian 11.6"` - // - Description - Image Base OS. - // - `digest` - // - Type: string - // - Example: `digest = "sha256:21829f4f033ac2805aa43a412bcdf60e98eee4124d565a06dee184c97efff6091"` - // - Description - Image Digest. - // - `imageId` - // - Type: string - // - Example: `imageId in ("sha256:3768ff6176e29a35ce1354622977a1e5c013045cbc4f30754ef3459218be8ac")` - // - Description - Image Id. - // - `os` - // - Type: string - // - Example: `os = "linux"` - // - Description - Image OS. - // - `container.imageName` - // - Type: string - // - Example: `container.imageName in ("registry.k8s.io/kube-image:v1.2.4")` - // - Description - Image Pullstring. - // - `image.registry` - // - Type: string - // - Example: `image.registry = "quay.io"` - // - Description - Image Registry. - // - `image.tag` - // - Type: string - // - Example: `image.tag in ("tag1")` - // - Description - Image tag. - // - `package.inUse` - // - Type: boolean - // - Example: `package.inUse exists` - // - Description - Package in use filter. Supported operators: exists and not exists. - // - `package.info` - // - Type: string - // - Example: `package.info in ("github.com/golang/protobuf - v1.5.2")` - // - Description - Filters by a package using the format [packge name] - [version]. - // - `package.path` - // - Type: string - // - Example: `package.path in ("/app")` - // - Description - Filters by package path. - // - `package.type` - // - Type: string - // - Example: `package.type in ("Golang")` - // - Description - Package type. - // - `vuln.cvssScore` - // - Type: string - // - Example: `vuln.cvssScore >= "3"` - // - Description - Filter by vulnerability CVSS. Supported operators: `=` and `>=`. - // - `vuln.hasExploit` - // - Type: boolean - // - Example: `vuln.hasExploit exists` - // - Description - Filters resources by the existence of vulnerabilities with exploits. Supported operators: exists and not exists. - // - `vuln.hasFix` - // - Type: boolean - // - Example: `vuln.hasFix exists` - // - Description - Filters resources by the existence of vulnerabilities with fixes. Supported operators: exists and not exists. - // - `vuln.name` - // - Type: string - // - Example: `vuln.name in ("CVE-2023-0049")` - // - Description - Filter by vulnerability name. - // - `vuln.severity` - // - Type: string - // - Example: `vuln.severity in ("Critical")` - // - Description - Filter by vulnerability severity. Supported operators: in, not in, exists and not exists. - // - `machineImage` - // - Type: string - // - Example: `machineImage = "ami-0b22b359fdfabe1b5"` - // - Description - Filter by host machine image. - // - // **Note**: Whenever you filter for values with special characters, ensure that you encode the values. - // If the special characters are " or \, use the escape character \ and then encode the values. - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` +// ConflictV2 defines model for ConflictV2. +type ConflictV2 = ErrorV2 - // PageNumber Page number. Defaults to 1. - PageNumber *int32 `form:"pageNumber,omitempty" json:"pageNumber,omitempty"` +// CveCatalogInternalServerErrorV2 defines model for CveCatalogInternalServerErrorV2. +type CveCatalogInternalServerErrorV2 = ErrorV2 - // PageSize Page size. Defaults to 20. - PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` +// Forbidden defines model for Forbidden. +type Forbidden = Error - // WithEnrichedContainers If true then for kubernetes workload resources additional container information will be included. - WithEnrichedContainers *bool `form:"withEnrichedContainers,omitempty" json:"withEnrichedContainers,omitempty"` -} +// ForbiddenV2 defines model for ForbiddenV2. +type ForbiddenV2 = ErrorV2 -// GetActionExecutionsv1Params defines parameters for GetActionExecutionsv1. -type GetActionExecutionsv1Params struct { - CallerId *CallerId `form:"callerId,omitempty" json:"callerId,omitempty"` - Filter *SysdigQueryLanguageFilter `form:"filter,omitempty" json:"filter,omitempty"` +// GonePrometheus defines model for GonePrometheus. +type GonePrometheus = PrometheusError - // Limit The number of items to return - Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +// InternalServerError defines model for InternalServerError. +type InternalServerError = Error - // Offset The offset number of items to start with - Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - From *From `form:"from,omitempty" json:"from,omitempty"` - To *To `form:"to,omitempty" json:"to,omitempty"` -} +// InternalServerErrorPrometheus defines model for InternalServerErrorPrometheus. +type InternalServerErrorPrometheus = PrometheusError -// GetActionExecutionsv1400JSONResponseBodyMessage defines parameters for GetActionExecutionsv1. -type GetActionExecutionsv1400JSONResponseBodyMessage string +// InternalServerErrorV2 defines model for InternalServerErrorV2. +type InternalServerErrorV2 = ErrorV2 -// GetActionExecutionsv1400JSONResponseBodyType defines parameters for GetActionExecutionsv1. -type GetActionExecutionsv1400JSONResponseBodyType string +// NotFound defines model for NotFound. +type NotFound = Error -// UndoActionExecutionV1Params defines parameters for UndoActionExecutionV1. -type UndoActionExecutionV1Params struct { - CallerId *CallerId `form:"callerId,omitempty" json:"callerId,omitempty"` -} +// NotFoundPrometheus Error message indicating that the requested page was not found. +// +// Example: 404 page not found +type NotFoundPrometheus = string -// GetActionsV1Params defines parameters for GetActionsV1. -type GetActionsV1Params struct { - Context *ExecutionContext `form:"context,omitempty" json:"context,omitempty"` -} +// NotFoundV2 defines model for NotFoundV2. +type NotFoundV2 = ErrorV2 -// GetSecureVulnerabilityV1BundlesParams defines parameters for GetSecureVulnerabilityV1Bundles. -type GetSecureVulnerabilityV1BundlesParams struct { - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +// PreconditionFailedV2Alpha1 defines model for PreconditionFailedV2Alpha1. +type PreconditionFailedV2Alpha1 = ErrorV2 - // Limit Limit for pagination - Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` -} +// PreconditionRequiredV2Alpha1 defines model for PreconditionRequiredV2Alpha1. +type PreconditionRequiredV2Alpha1 = ErrorV2 -// GetSecureVulnerabilityV1PipelineResultsParams defines parameters for GetSecureVulnerabilityV1PipelineResults. -type GetSecureVulnerabilityV1PipelineResultsParams struct { - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +// TooManyRequests defines model for TooManyRequests. +type TooManyRequests = Error - // Limit Limit for pagination - Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` +// TooManyRequestsV2 defines model for TooManyRequestsV2. +type TooManyRequestsV2 = ErrorV2 - // Filter Query language expression for filtering results. It is a subset of - // the full metrics query language used in monitoring. +// Unauthorized defines model for Unauthorized. +type Unauthorized = Error + +// UnauthorizedPrometheus defines model for UnauthorizedPrometheus. +type UnauthorizedPrometheus struct { + // Error A human-readable error message. // - // Only the freeText parameter is supported: - // - `freeText` as string value (note that it will search on the full image name) - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` + // Example: Unauthorized + Error string `json:"error"` + + // Path The requested endpoint path that triggered the error. + // + // Example: /ext/auth/prometheus/api/v1/query + Path string `json:"path"` + + // Status HTTP status code of the response. + // + // Example: 401 + Status int32 `json:"status"` + + // Timestamp Epoch timestamp (milliseconds) when the error occurred. + // + // Example: 1743154268491 + Timestamp int64 `json:"timestamp"` } -// GetSecureVulnerabilityV1PoliciesParams defines parameters for GetSecureVulnerabilityV1Policies. -type GetSecureVulnerabilityV1PoliciesParams struct { - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +// UnauthorizedV2 defines model for UnauthorizedV2. +type UnauthorizedV2 = ErrorV2 - // Limit Limit for pagination - Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` +// UnprocessableEntity defines model for UnprocessableEntity. +type UnprocessableEntity = Error - // Name Filter policies by name - Name *string `form:"name,omitempty" json:"name,omitempty"` +// UnprocessableEntityPrometheus defines model for UnprocessableEntityPrometheus. +type UnprocessableEntityPrometheus = PrometheusError - // Stages Filter policies by applied stages - Stages *[]GetSecureVulnerabilityV1PoliciesParamsStages `form:"stages,omitempty" json:"stages,omitempty"` -} +// UnprocessableEntityV2 defines model for UnprocessableEntityV2. +type UnprocessableEntityV2 = ErrorV2 -// GetSecureVulnerabilityV1PoliciesParamsStages defines parameters for GetSecureVulnerabilityV1Policies. -type GetSecureVulnerabilityV1PoliciesParamsStages string +// UnsupportedMediaType defines model for UnsupportedMediaType. +type UnsupportedMediaType = Error -// ScannerAPIServiceListRegistryResultsParams defines parameters for ScannerAPIServiceListRegistryResults. -type ScannerAPIServiceListRegistryResultsParams struct { - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` +// UnsupportedMediaTypeV2 defines model for UnsupportedMediaTypeV2. +type UnsupportedMediaTypeV2 = ErrorV2 - // Limit Limit for pagination - Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` +// GetQueryResultParams defines parameters for GetQueryResult. +type GetQueryResultParams struct { + // Q The SysQL statement. + Q string `form:"q" json:"q"` + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` + Offset *int32 `form:"offset,omitempty" json:"offset,omitempty"` + DeterministicOrder *bool `form:"deterministic_order,omitempty" json:"deterministic_order,omitempty"` + IncludeReversed *bool `form:"include_reversed,omitempty" json:"include_reversed,omitempty"` - // Filter Query language expression for filtering results. It is a subset of - // the full metrics query language used in monitoring. + // QueryMode Controls the shape of the result set returned by the query engine. Defaults to `Table` when omitted. + QueryMode *QueryMode `form:"query_mode,omitempty" json:"query_mode,omitempty"` + + // ZoneIds Restrict the query to the given list of zone IDs. When omitted, the query runs across all zones the + // caller has access to. + ZoneIds *[]int64 `form:"zone_ids,omitempty" json:"zone_ids,omitempty"` + + // GlobalId Optional caller-supplied identifier used to correlate the query with traces or audit logs. The identifier + // is echoed back in the response and surfaced in observability tooling. + GlobalId *string `form:"global_id,omitempty" json:"global_id,omitempty"` +} + +// PostQueryResultJSONBody defines parameters for PostQueryResult. +type PostQueryResultJSONBody struct { + // DeterministicOrder The deterministic_order parameter controls whether consistent ordering is enforced in the result set. + // Ordering is implicitly applied when pagination options, such as limit and offset, are specified in the + // request. This is an optional parameter. // - // Operators: - // - `and`, `or` logical operators (i.e. - // `freeText = "alpine:latest" and vendor = "docker"`) // - // - `=` and `!=` comparison operators (i.e. - // `vendor = "ecr"`) + // Example: true + DeterministicOrder *bool `json:"deterministic_order,omitempty"` + + // GlobalId Optional caller-supplied identifier used to correlate the query with traces or audit logs. The + // identifier is echoed back in the response and surfaced in observability tooling. // - // This query language does not support the full set of metrics - // supported in the monitor query language, but instead supports a set of fields - // proper to each Scan Result type. // - // The supported fields are: `freeText`, `vendor`. - // - `vendor` as string value - // - `freeText` as string value (note that it will search on the full image name) - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` -} + // Example: ui-explorer-search-1 + GlobalId *string `json:"global_id,omitempty"` -// ScannerAPIServiceListRuntimeResultsParams defines parameters for ScannerAPIServiceListRuntimeResults. -type ScannerAPIServiceListRuntimeResultsParams struct { - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` + // IncludeReversed When true, relationships are also traversed in their reverse direction. Use with care: enabling + // reverse traversal can substantially increase the result set size. + // + // + // Example: false + IncludeReversed *bool `json:"include_reversed,omitempty"` - // Limit Limit for pagination - Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` + // Limit The limit parameter defines the maximum number of items returned in the result set, specifically + // within the items array in the response. + // + // This parameter is optional. The recommended approach is to define the limit directly in the SysQL + // statement using the LIMIT clause. If specified in the request body, it will override the limit set + // in the statement. If not specified, a default limit of 50 will be applied. + // + // + // Example: 100 + Limit *int32 `json:"limit,omitempty"` - // Filter Query language expression for filtering results. It is a subset of - // the full metrics query language used in monitoring. + // Offset The offset parameter specifies how many result set objects to skip in a MATCH statement. Use it when + // you want to ignore the first few items in the result set. // - // Operators: - // - `and`, `or` logical operators (i.e. - // `kubernetes.cluster.name="production" and kubernetes.pod.container.name = "docker.internal.sysdig.tools"`) + // This parameter is optional. The recommended approach is to set the offset directly in the SysQL + // statement using the OFFSET clause. If specified in the request body, it will override the offset + // in the statement. If not specified, a default offset of 0 will be applied. // - // - `=` and `!=` comparison operators (i.e. - // `kubernetes.cluster.name="staging"`) + // Use limit and offset together in SysQL to paginate results, splitting them into pages with a defined + // number of items for display. // - // This query language does not support the full set of metrics - // supported in the monitor query language, but instead supports a set of fields - // proper to each Scan Result type. // - // The supported fields are the all the fields of the `Scope`, plus: `freeText`, `hasRunningVulns` and `hasRunningVulns`. - Filter *string `form:"filter,omitempty" json:"filter,omitempty"` + // Example: 0 + Offset *int32 `json:"offset,omitempty"` - // Sort Field used to sort the results - // vulnTotalBySeverity: sort by total number of running vulnerabilities weighted by severity - // runningVulnTotalBySeverity: sort by total number of running vulnerabilities weighted by severity for running assets - Sort *ScannerAPIServiceListRuntimeResultsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` + // Q The SysQL statement. + // + // Example: MATCH IAMUser AS a WHERE a.customerId = 1234567890 RETURN a.name AS name, a.arn AS arn; + Q string `json:"q"` - // Order Ordering of the results for the sort field - Order *ScannerAPIServiceListRuntimeResultsParamsOrder `form:"order,omitempty" json:"order,omitempty"` + // QueryMode Controls the result shape returned by the SysQL engine. + // + // Example: Table + QueryMode *QueryMode `json:"query_mode,omitempty"` + + // ZoneIds Restrict the query to the given list of zone IDs. When omitted, the query runs across all zones the + // caller has access to. + ZoneIds *[]int64 `json:"zone_ids,omitempty"` } -// ScannerAPIServiceListRuntimeResultsParamsSort defines parameters for ScannerAPIServiceListRuntimeResults. -type ScannerAPIServiceListRuntimeResultsParamsSort string +// GetInhibitionRulesParams defines parameters for GetInhibitionRules. +type GetInhibitionRulesParams struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// ScannerAPIServiceListRuntimeResultsParamsOrder defines parameters for ScannerAPIServiceListRuntimeResults. -type ScannerAPIServiceListRuntimeResultsParamsOrder string + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +} -// GetAcceptedRisksV1Params defines parameters for GetAcceptedRisksV1. -type GetAcceptedRisksV1Params struct { - // Filter The filtering string in secure-querylang syntax. - Filter *VulnerabilityFilter `form:"filter,omitempty" json:"filter,omitempty"` +// GetPricingV1Params defines parameters for GetPricingV1. +type GetPricingV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` - // Order The sorting order - Order *GetAcceptedRisksV1ParamsOrder `form:"order,omitempty" json:"order,omitempty"` + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. - Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` + // ClusterName The name of the Kubernetes cluster for which you want to retrive the pricing. + ClusterName *string `form:"clusterName,omitempty" json:"clusterName,omitempty"` + + // Type The type of pricing to find. + Type *PricingType `form:"type,omitempty" json:"type,omitempty"` +} + +// GetPricingProjectedCostsV1Params defines parameters for GetPricingProjectedCostsV1. +type GetPricingProjectedCostsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` // Limit The number of items to return Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - - // Sort The sorting string - Sort *GetAcceptedRisksV1ParamsSort `form:"sort,omitempty" json:"sort,omitempty"` } -// GetAcceptedRisksV1ParamsOrder defines parameters for GetAcceptedRisksV1. -type GetAcceptedRisksV1ParamsOrder string +// GetMonitorEventsV1Params defines parameters for GetMonitorEventsV1. +type GetMonitorEventsV1Params struct { + From *MonitorEventsFrom `form:"from,omitempty" json:"from,omitempty"` + To *MonitorEventsTo `form:"to,omitempty" json:"to,omitempty"` + Cursor *MonitorEventsCursor `form:"cursor,omitempty" json:"cursor,omitempty"` + Filter *MonitorEventsFilter `form:"filter,omitempty" json:"filter,omitempty"` -// GetAcceptedRisksV1ParamsSort defines parameters for GetAcceptedRisksV1. -type GetAcceptedRisksV1ParamsSort string + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +} -// 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"` +// GetDisabledMetricsByJobV1Params defines parameters for GetDisabledMetricsByJobV1. +type GetDisabledMetricsByJobV1Params struct { + // JobName The name of the Prometheus Job whose excluded metrics are to be listed. + JobName *string `form:"jobName,omitempty" json:"jobName,omitempty"` - // ComponentName Restrict results to CVEs affecting a component with exactly this name. - ComponentName *string `form:"componentName,omitempty" json:"componentName,omitempty"` + // MetricName The exact name of the metric to be filtered. + MetricName *string `form:"metricName,omitempty" json:"metricName,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"` +// GetCustomPrometheusJobsV1Params defines parameters for GetCustomPrometheusJobsV1. +type GetCustomPrometheusJobsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,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"` + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,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"` +// GetJiraIntegrationsV1Params defines parameters for GetJiraIntegrationsV1. +type GetJiraIntegrationsV1Params struct { + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,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"` + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,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"` + // Enabled Enabled status of the integration + Enabled *Enabled `form:"enabled,omitempty" json:"enabled,omitempty"` +} - // HasExploit Restrict results to CVEs with (`true`) or without (`false`) a known public exploit. - HasExploit *bool `form:"hasExploit,omitempty" json:"hasExploit,omitempty"` +// ListJobsV1Params defines parameters for ListJobsV1. +type ListJobsV1Params struct { + // ScheduleId ID of the Schedule + ScheduleId string `form:"scheduleId" json:"scheduleId"` - // 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"` + // ReportId ID of the Report + ReportId *int64 `form:"reportId,omitempty" json:"reportId,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"` + // IsReportTemplate Indicates whether the report is a template. + IsReportTemplate *ListJobsV1ParamsIsReportTemplate `form:"isReportTemplate,omitempty" json:"isReportTemplate,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"` + // CompletedOn Date the job was completed in epoch milliseconds. + CompletedOn *UnlimitedLong `form:"completedOn,omitempty" json:"completedOn,omitempty"` - // Limit The maximum number of CVEs to return in a single page. - Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` -} + // JobType Type of the job. + JobType *ListJobsV1ParamsJobType `form:"jobType,omitempty" json:"jobType,omitempty"` -// ListCveCatalogV1beta1ParamsSeverity defines parameters for ListCveCatalogV1beta1. -type ListCveCatalogV1beta1ParamsSeverity string + // Status Status of the job. + Status *ListJobsV1ParamsStatus `form:"status,omitempty" json:"status,omitempty"` -// 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 - // Provide this with assetType if not providing bomIdentifier - AssetId *string `form:"assetId,omitempty" json:"assetId,omitempty"` + // Kind Kind of the report. + Kind *ListJobsV1ParamsKind `form:"kind,omitempty" json:"kind,omitempty"` - // AssetType The type of the asset for which we want to retrieve the SBOM. Provide this with assetId if not providing bomIdentifier - AssetType *GetSBOMV1beta1ParamsAssetType `form:"assetType,omitempty" json:"assetType,omitempty"` + // Policies List of policy IDs in string format. + Policies *string `form:"policies,omitempty" json:"policies,omitempty"` - // BomIdentifier The ID of a single SBOM. Either provide this or both assetId and assetType - BomIdentifier *string `form:"bomIdentifier,omitempty" json:"bomIdentifier,omitempty"` + // Zones List of zone IDs in string format. + Zones *string `form:"zones,omitempty" json:"zones,omitempty"` } -// GetSBOMV1beta1ParamsAssetType defines parameters for GetSBOMV1beta1. -type GetSBOMV1beta1ParamsAssetType string +// ListJobsV1ParamsIsReportTemplate defines parameters for ListJobsV1. +type ListJobsV1ParamsIsReportTemplate string -// CreateZonePolicyAssociationJSONRequestBody defines body for CreateZonePolicyAssociation for application/json ContentType. -type CreateZonePolicyAssociationJSONRequestBody = ZonePolicyAssociationRequest +// ListJobsV1ParamsJobType defines parameters for ListJobsV1. +type ListJobsV1ParamsJobType string -// UpdateZonePolicyAssociationJSONRequestBody defines body for UpdateZonePolicyAssociation for application/json ContentType. -type UpdateZonePolicyAssociationJSONRequestBody = ZonePolicyAssociationRequest +// ListJobsV1ParamsStatus defines parameters for ListJobsV1. +type ListJobsV1ParamsStatus string -// PostQueryResultJSONRequestBody defines body for PostQueryResult for application/json ContentType. -type PostQueryResultJSONRequestBody PostQueryResultJSONBody +// ListJobsV1ParamsKind defines parameters for ListJobsV1. +type ListJobsV1ParamsKind string -// CreateInhibitionRuleJSONRequestBody defines body for CreateInhibitionRule for application/json ContentType. -type CreateInhibitionRuleJSONRequestBody = CreateInhibitionRuleRequestV1 +// DeleteReportV2Alpha1Params defines parameters for DeleteReportV2Alpha1. +type DeleteReportV2Alpha1Params struct { + // IfMatch Optional optimistic-concurrency guard. Supply the `ETag` returned by a previous `GET`, `PUT`, or + // `PATCH` of this report to delete it only if it has not changed since you read it; a stale value is + // rejected with `412` and the report is left in place.\ + // \ + // Unlike `PUT` and `PATCH`, this header is **not required** here — an unconditional delete is + // accepted. Supply it when you are deleting on the strength of a report state you read earlier and a + // concurrent edit should abort the delete. + IfMatch *IfMatchHeaderOptional `json:"If-Match,omitempty"` +} -// UpdateInhibitionRuleJSONRequestBody defines body for UpdateInhibitionRule for application/json ContentType. -type UpdateInhibitionRuleJSONRequestBody = UpdateInhibitionRuleRequestV1 +// PatchReportV2Alpha1Params defines parameters for PatchReportV2Alpha1. +type PatchReportV2Alpha1Params struct { + // IfMatch Optimistic-concurrency guard, **required** on report writes. Supply the `ETag` returned by a previous + // `GET`, `PUT`, or `PATCH` of this report; the write is applied only if the report has not changed since.\ + // \ + // A stale value is rejected with `412` and no change is made — re-read the report, reapply your change to + // the fresh state, and retry with the new `ETag`. **Omitting the header is rejected with `428`** — the write + // must be conditional — while a malformed value is rejected with `400`. The header is declared optional only + // so that omitting it produces `428` rather than a generic parameter-validation `400`.\ + // \ + // Reports are the only versioned resource in this API; schedules and runs accept unconditional writes and + // do not take this header. + IfMatch *IfMatchHeader `json:"If-Match,omitempty"` +} -// CreatePricingV1JSONRequestBody defines body for CreatePricingV1 for application/json ContentType. -type CreatePricingV1JSONRequestBody = CreatePricingRequestV1 +// UpdateReportV2Alpha1Params defines parameters for UpdateReportV2Alpha1. +type UpdateReportV2Alpha1Params struct { + // IfMatch Optimistic-concurrency guard, **required** on report writes. Supply the `ETag` returned by a previous + // `GET`, `PUT`, or `PATCH` of this report; the write is applied only if the report has not changed since.\ + // \ + // A stale value is rejected with `412` and no change is made — re-read the report, reapply your change to + // the fresh state, and retry with the new `ETag`. **Omitting the header is rejected with `428`** — the write + // must be conditional — while a malformed value is rejected with `400`. The header is declared optional only + // so that omitting it produces `428` rather than a generic parameter-validation `400`.\ + // \ + // Reports are the only versioned resource in this API; schedules and runs accept unconditional writes and + // do not take this header. + IfMatch *IfMatchHeader `json:"If-Match,omitempty"` +} -// UpdatePricingByIdV1JSONRequestBody defines body for UpdatePricingByIdV1 for application/json ContentType. -type UpdatePricingByIdV1JSONRequestBody = UpdatePricingRequestV1 +// ListRunsV2Alpha1Params defines parameters for ListRunsV2Alpha1. +type ListRunsV2Alpha1Params struct { + // ReportId Filter results to the given report identifier. + ReportId *ReportIdQuery `form:"reportId,omitempty" json:"reportId,omitempty"` -// GetWastedWorkloadDataJSONRequestBody defines body for GetWastedWorkloadData for application/json ContentType. -type GetWastedWorkloadDataJSONRequestBody = WastedWorkloadDataRequest + // ScheduleId Filter results to the given schedule identifier. + ScheduleId *ScheduleIdQuery `form:"scheduleId,omitempty" json:"scheduleId,omitempty"` -// GetWorkloadCostDataV1JSONRequestBody defines body for GetWorkloadCostDataV1 for application/json ContentType. -type GetWorkloadCostDataV1JSONRequestBody = WorkloadCostTrendsDataRequest + // Trigger Return only runs started this way: + // + // * `on_demand` — runs created directly via `POST /runs`. These are the runs a `scheduleId` filter + // cannot reach, since they have none. + // * `schedule` — runs produced by any schedule. + // + // Omitted returns both. Combining `trigger=on_demand` with `scheduleId` is rejected with `400`, since + // the two can never both hold. `trigger=schedule` with a `scheduleId` is accepted but redundant. + Trigger *ListRunsV2Alpha1ParamsTrigger `form:"trigger,omitempty" json:"trigger,omitempty"` -// GetWorkloadRightsizingDataJSONRequestBody defines body for GetWorkloadRightsizingData for application/json ContentType. -type GetWorkloadRightsizingDataJSONRequestBody = WorkloadRightsizingDataRequest + // Status Filter runs by status. + Status *ListRunsV2Alpha1ParamsStatus `form:"status,omitempty" json:"status,omitempty"` -// PostDisabledMetricsV1JSONRequestBody defines body for PostDisabledMetricsV1 for application/json ContentType. -type PostDisabledMetricsV1JSONRequestBody = RequestBodyDisabledMetricsV1 + // SinceAt Return only runs with activity at or after this instant (RFC 3339) — i.e. runs that **finished** + // at/after it, plus runs that **started** at/after it (so in-flight and failed runs are included). + // Intended for incremental polling: pass the timestamp of your previous poll to fetch only what has + // changed since.\ + // \ + // The name deliberately does not commit to one timestamp: a run matches on either of its two, so + // neither `finishedAt` nor `startedAt` would describe the filter correctly.\ + // \ + // A run that has not started yet has no activity, so it is not returned until it starts. For the same + // reason `sinceAt` cannot be combined with `status=pending` or `status=running`: either combination + // returns `400`. + SinceAt *SinceAtQuery `form:"sinceAt,omitempty" json:"sinceAt,omitempty"` +} -// UpdateCustomPrometheusJobEnablementV1JSONRequestBody defines body for UpdateCustomPrometheusJobEnablementV1 for application/json ContentType. -type UpdateCustomPrometheusJobEnablementV1JSONRequestBody = CustomJobsEnablementV1 +// ListRunsV2Alpha1ParamsTrigger defines parameters for ListRunsV2Alpha1. +type ListRunsV2Alpha1ParamsTrigger string -// CreateJiraIntegrationV1JSONRequestBody defines body for CreateJiraIntegrationV1 for application/json ContentType. -type CreateJiraIntegrationV1JSONRequestBody = CreateIntegrationRequestV1 +// ListRunsV2Alpha1ParamsStatus defines parameters for ListRunsV2Alpha1. +type ListRunsV2Alpha1ParamsStatus string -// UpdateJiraIntegrationV1JSONRequestBody defines body for UpdateJiraIntegrationV1 for application/json ContentType. -type UpdateJiraIntegrationV1JSONRequestBody = UpdateIntegrationRequestV1 +// ListSchedulesV2Alpha1Params defines parameters for ListSchedulesV2Alpha1. +type ListSchedulesV2Alpha1Params struct { + // ReportId Filter results to the given report identifier. + ReportId *ReportIdQuery `form:"reportId,omitempty" json:"reportId,omitempty"` +} -// CreateJiraIssueTypeV1JSONRequestBody defines body for CreateJiraIssueTypeV1 for application/json ContentType. -type CreateJiraIssueTypeV1JSONRequestBody = CreateIssueTypeRequestV1 +// GetAccessKeysV1Params defines parameters for GetAccessKeysV1. +type GetAccessKeysV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// UpdateJiraIssueTypeV1JSONRequestBody defines body for UpdateJiraIssueTypeV1 for application/json ContentType. -type UpdateJiraIssueTypeV1JSONRequestBody = UpdateIssueTypeRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// CreateAccessKeyV1JSONRequestBody defines body for CreateAccessKeyV1 for application/json ContentType. -type CreateAccessKeyV1JSONRequestBody = CreateAccessKeyRequestV1 + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// UpdateAccessKeyByIdV1JSONRequestBody defines body for UpdateAccessKeyByIdV1 for application/json ContentType. -type UpdateAccessKeyByIdV1JSONRequestBody = UpdateAccessKeyRequestV1 + // Filter Filters to apply in the form of `key:value`.\ + // Multiple filters can be applied by repeating the `filter` parameter:\ + // `&filter=key1:value1&filter=key2:value2` + Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` +} -// UpdateCaptureStorageConfigurationV1JSONRequestBody defines body for UpdateCaptureStorageConfigurationV1 for application/json ContentType. -type UpdateCaptureStorageConfigurationV1JSONRequestBody = SaveCaptureStorageConfigurationRequestV1 +// GetDefaultNotificationTemplateV1Params defines parameters for GetDefaultNotificationTemplateV1. +type GetDefaultNotificationTemplateV1Params struct { + // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. + ChannelType NotificationTemplateChannelTypeQueryRequired `form:"channelType" json:"channelType"` -// UpdateUserDeactivationConfigurationByIdV1JSONRequestBody defines body for UpdateUserDeactivationConfigurationByIdV1 for application/json ContentType. -type UpdateUserDeactivationConfigurationByIdV1JSONRequestBody = UpdateUserDeactivationConfigurationRequestV1 + // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. + UseCase NotificationTemplateUseCaseQueryRequired `form:"useCase" json:"useCase"` +} -// UpdateGlobalSsoSettingsV1JSONRequestBody defines body for UpdateGlobalSsoSettingsV1 for application/json ContentType. -type UpdateGlobalSsoSettingsV1JSONRequestBody = GlobalSsoSettingsRequestV1 +// GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName defines parameters for GetDefaultRoleByDisplayNameV1. +type GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName string -// CreateGroupMappingV1JSONRequestBody defines body for CreateGroupMappingV1 for application/json ContentType. -type CreateGroupMappingV1JSONRequestBody = CreateGroupMappingRequestV1 +// GetGlobalSsoSettingsV1ParamsSsoProductId defines parameters for GetGlobalSsoSettingsV1. +type GetGlobalSsoSettingsV1ParamsSsoProductId string -// SaveGroupMappingSettingsV1JSONRequestBody defines body for SaveGroupMappingSettingsV1 for application/json ContentType. -type SaveGroupMappingSettingsV1JSONRequestBody = GroupMappingSettingsV1 +// UpdateGlobalSsoSettingsV1ParamsSsoProductId defines parameters for UpdateGlobalSsoSettingsV1. +type UpdateGlobalSsoSettingsV1ParamsSsoProductId string -// UpdateGroupMappingByIdV1JSONRequestBody defines body for UpdateGroupMappingByIdV1 for application/json ContentType. -type UpdateGroupMappingByIdV1JSONRequestBody = UpdateGroupMappingRequestV1 +// GetGroupMappingsV1Params defines parameters for GetGroupMappingsV1. +type GetGroupMappingsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// CreateIpFilterV1JSONRequestBody defines body for CreateIpFilterV1 for application/json ContentType. -type CreateIpFilterV1JSONRequestBody = CreateIpFilterV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// SaveIpFiltersSettingsV1JSONRequestBody defines body for SaveIpFiltersSettingsV1 for application/json ContentType. -type SaveIpFiltersSettingsV1JSONRequestBody = IpFiltersSettingsV1 + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// UpdateIpFilterV1JSONRequestBody defines body for UpdateIpFilterV1 for application/json ContentType. -type UpdateIpFilterV1JSONRequestBody = UpdateIpFilterV1 + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType. -type CreateNotificationChannelJSONRequestBody = CreateNotificationChannelRequestV1 +// GetIpFiltersV1Params defines parameters for GetIpFiltersV1. +type GetIpFiltersV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// UpdateNotificationChannelByIdJSONRequestBody defines body for UpdateNotificationChannelById for application/json ContentType. -type UpdateNotificationChannelByIdJSONRequestBody = UpdateNotificationChannelRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// CreateNotificationTemplateV1JSONRequestBody defines body for CreateNotificationTemplateV1 for application/json ContentType. -type CreateNotificationTemplateV1JSONRequestBody = CreateNotificationTemplateRequestV1 + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// UpdateNotificationTemplateByIdV1JSONRequestBody defines body for UpdateNotificationTemplateByIdV1 for application/json ContentType. -type UpdateNotificationTemplateByIdV1JSONRequestBody = UpdateNotificationTemplateRequestV1 +// GetNotificationChannelsParams defines parameters for GetNotificationChannels. +type GetNotificationChannelsParams struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// CreateRoleV1JSONRequestBody defines body for CreateRoleV1 for application/json ContentType. -type CreateRoleV1JSONRequestBody = RoleRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` +} -// UpdateRoleByIdV1JSONRequestBody defines body for UpdateRoleByIdV1 for application/json ContentType. -type UpdateRoleByIdV1JSONRequestBody = RoleRequestV1 +// GetNotificationTemplatesV1Params defines parameters for GetNotificationTemplatesV1. +type GetNotificationTemplatesV1Params struct { + // ChannelType Notification channel type that the notification template is rendered for. New values may be added in a minor version. Currently supported values: pager_duty. + ChannelType *NotificationTemplateChannelTypeQueryOptional `form:"channelType,omitempty" json:"channelType,omitempty"` -// CreateGlobalServiceAccountV1JSONRequestBody defines body for CreateGlobalServiceAccountV1 for application/json ContentType. -type CreateGlobalServiceAccountV1JSONRequestBody = CreateGlobalServiceAccountRequestV1 + // UseCase Use case that the notification template is rendered for. New values may be added in a minor version. Currently supported values: monitor_alert. + UseCase *NotificationTemplateUseCaseQueryOptional `form:"useCase,omitempty" json:"useCase,omitempty"` -// CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody defines body for CreateGlobalServiceAccountsNotificationSettingsV1 for application/json ContentType. -type CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody = CreateServiceAccountsNotificationSettingsRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody defines body for UpdateGlobalServiceAccountsNotificationSettingsV1 for application/json ContentType. -type UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody = UpdateServiceAccountsNotificationSettingsRequestV1 + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` +} -// CreateSsoSettingsV1JSONRequestBody defines body for CreateSsoSettingsV1 for application/json ContentType. -type CreateSsoSettingsV1JSONRequestBody = CreateSsoSettingsRequestV1 +// GetPermissionsV1Params defines parameters for GetPermissionsV1. +type GetPermissionsV1Params struct { + // Filter Filter by products when getting permissions for custom roles.\ + // Avaliable products are: SDS, SDC.\ + // You can specify a single product or a list of products separated by commas.\ + // Product names are case-sensitive.\ + // If not specified, all permissions are returned. + Filter *PermissionsFilter `form:"filter,omitempty" json:"filter,omitempty"` +} -// UpdateSsoSettingsByIdV1JSONRequestBody defines body for UpdateSsoSettingsByIdV1 for application/json ContentType. -type UpdateSsoSettingsByIdV1JSONRequestBody = UpdateSsoSettingsRequestV1 +// GetPlatformAuditEventsV1Params defines parameters for GetPlatformAuditEventsV1. +type GetPlatformAuditEventsV1Params struct { + From From `form:"from" json:"from"` + To To `form:"to" json:"to"` + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + Filter *AuditEventsFeedFilter `form:"filter,omitempty" json:"filter,omitempty"` + Limit *AuditEventsFeedLimit `form:"limit,omitempty" json:"limit,omitempty"` +} -// CreateSystemSsoSettingsV1JSONRequestBody defines body for CreateSystemSsoSettingsV1 for application/json ContentType. -type CreateSystemSsoSettingsV1JSONRequestBody = CreateSsoSettingsRequestV1 +// GetRolesV1Params defines parameters for GetRolesV1. +type GetRolesV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// UpdateSystemSsoSettingsByIdV1JSONRequestBody defines body for UpdateSystemSsoSettingsByIdV1 for application/json ContentType. -type UpdateSystemSsoSettingsByIdV1JSONRequestBody = UpdateSsoSettingsRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// CreateTeamV1JSONRequestBody defines body for CreateTeamV1 for application/json ContentType. -type CreateTeamV1JSONRequestBody = CreateTeamRequestV1 + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// UpdateTeamByIdV1JSONRequestBody defines body for UpdateTeamByIdV1 for application/json ContentType. -type UpdateTeamByIdV1JSONRequestBody = UpdateTeamRequestV1 + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// CreateTeamServiceAccountV1JSONRequestBody defines body for CreateTeamServiceAccountV1 for application/json ContentType. -type CreateTeamServiceAccountV1JSONRequestBody = CreateTeamServiceAccountRequestV1 +// GetGlobalServiceAccountsV1Params defines parameters for GetGlobalServiceAccountsV1. +type GetGlobalServiceAccountsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// CreateServiceAccountsNotificationSettingsV1JSONRequestBody defines body for CreateServiceAccountsNotificationSettingsV1 for application/json ContentType. -type CreateServiceAccountsNotificationSettingsV1JSONRequestBody = CreateServiceAccountsNotificationSettingsRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// UpdateServiceAccountsNotificationSettingsV1JSONRequestBody defines body for UpdateServiceAccountsNotificationSettingsV1 for application/json ContentType. -type UpdateServiceAccountsNotificationSettingsV1JSONRequestBody = UpdateServiceAccountsNotificationSettingsRequestV1 + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// SaveTeamUserV1JSONRequestBody defines body for SaveTeamUserV1 for application/json ContentType. -type SaveTeamUserV1JSONRequestBody = SaveTeamUserRequestV1 + // Filter Filters to apply in the form of `key:value`.\ + // Multiple filters can be applied by repeating the `filter` parameter:\ + // `&filter=key1:value1&filter=key2:value2` + Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` +} -// CreateUserV1JSONRequestBody defines body for CreateUserV1 for application/json ContentType. -type CreateUserV1JSONRequestBody = CreateUserRequestV1 +// GetSsoSettingsV1Params defines parameters for GetSsoSettingsV1. +type GetSsoSettingsV1Params struct { + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// UpdateUserV1JSONRequestBody defines body for UpdateUserV1 for application/json ContentType. -type UpdateUserV1JSONRequestBody = UpdateUserRequestV1 +// GetSystemSsoSettingsV1Params defines parameters for GetSystemSsoSettingsV1. +type GetSystemSsoSettingsV1Params struct { + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// CreateZoneV1JSONRequestBody defines body for CreateZoneV1 for application/json ContentType. -// -// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set -type CreateZoneV1JSONRequestBody = CreateZoneRequestV1 +// GetTeamsV1Params defines parameters for GetTeamsV1. +type GetTeamsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// EditZoneV1JSONRequestBody defines body for EditZoneV1 for application/json ContentType. -// -// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set -type EditZoneV1JSONRequestBody = CreateZoneRequestV1 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// CreateAutomationJSONRequestBody defines body for CreateAutomation for application/json ContentType. -type CreateAutomationJSONRequestBody = CreateAutomationRequestV1Alpha1 + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// UpdateAutomationJSONRequestBody defines body for UpdateAutomation for application/json ContentType. -type UpdateAutomationJSONRequestBody = UpdateAutomationRequestV1Alpha1 + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// CreateZoneV2JSONRequestBody defines body for CreateZoneV2 for application/json ContentType. -type CreateZoneV2JSONRequestBody = CreateZoneRequestV2 +// GetTeamServiceAccountsV1Params defines parameters for GetTeamServiceAccountsV1. +type GetTeamServiceAccountsV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// EditZoneV2JSONRequestBody defines body for EditZoneV2 for application/json ContentType. -type EditZoneV2JSONRequestBody = CreateZoneRequestV2 + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// UploadCertificateV1MultipartRequestBody defines body for UploadCertificateV1 for multipart/form-data ContentType. -type UploadCertificateV1MultipartRequestBody = UploadCertificateRequest + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// CreateEFOIntegrationV1JSONRequestBody defines body for CreateEFOIntegrationV1 for application/json ContentType. -// -// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set -type CreateEFOIntegrationV1JSONRequestBody = CreateEfoIntegrationRequestV1 + // Filter Filters to apply in the form of `key:value`.\ + // Multiple filters can be applied by repeating the `filter` parameter:\ + // `&filter=key1:value1&filter=key2:value2` + Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` +} -// UpdateEFOIntegrationByIdV1JSONRequestBody defines body for UpdateEFOIntegrationByIdV1 for application/json ContentType. -// -// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set -type UpdateEFOIntegrationByIdV1JSONRequestBody = UpdateEfoIntegrationRequestV1 +// GetTeamUsersV1Params defines parameters for GetTeamUsersV1. +type GetTeamUsersV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// CreateEFOIntegrationV2JSONRequestBody defines body for CreateEFOIntegrationV2 for application/json ContentType. -type CreateEFOIntegrationV2JSONRequestBody = CreateIntegrationRequest + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// UpdateEFOIntegrationByIdV2JSONRequestBody defines body for UpdateEFOIntegrationByIdV2 for application/json ContentType. -type UpdateEFOIntegrationByIdV2JSONRequestBody = UpdateIntegrationRequest + // WithAdminUsers Include admin users in the response. + WithAdminUsers *bool `form:"withAdminUsers,omitempty" json:"withAdminUsers,omitempty"` +} -// SubmitActionExecutionv1JSONRequestBody defines body for SubmitActionExecutionv1 for application/json ContentType. -type SubmitActionExecutionv1JSONRequestBody = SubmitActionExecutionRequest +// GetUsersV1Params defines parameters for GetUsersV1. +type GetUsersV1Params struct { + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// PostSecureVulnerabilityV1BundlesJSONRequestBody defines body for PostSecureVulnerabilityV1Bundles for application/json ContentType. -type PostSecureVulnerabilityV1BundlesJSONRequestBody = CreateBundleRequest + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody defines body for PutSecureVulnerabilityV1BundlesBundleId for application/json ContentType. -type PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody = CreateBundleRequest + // Orderby The order by field separated by a colon for the direction + Orderby *OrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` -// PostSecureVulnerabilityV1PoliciesJSONRequestBody defines body for PostSecureVulnerabilityV1Policies for application/json ContentType. -type PostSecureVulnerabilityV1PoliciesJSONRequestBody = CreatePolicyRequest + // Filter The filter by field separated by a colon for the filter value + Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"` +} -// PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody defines body for PutSecureVulnerabilityV1PoliciesPolicyId for application/json ContentType. -type PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody = CreatePolicyRequest +// CreateUserV1Params defines parameters for CreateUserV1. +type CreateUserV1Params struct { + // ActivationFlow The activation flow is used to send an invitation email to the user that is being created.\ + // \ + // **NOTE: it is required to set at least one product in the payload in order to send the appropriate email.** + ActivationFlow *bool `form:"activationFlow,omitempty" json:"activationFlow,omitempty"` +} -// PostAcceptedRiskV1JSONRequestBody defines body for PostAcceptedRiskV1 for application/json ContentType. -type PostAcceptedRiskV1JSONRequestBody = CreateRiskAcceptedRequest +// ListZonesV1Params defines parameters for ListZonesV1. +type ListZonesV1Params struct { + // Filter Filters to apply in the form of `key:value`.\ + // Multiple filters can be applied by repeating the `filter` parameter:\ + // `&filter=key1:value1&filter=key2:value2` + Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` -// UpdateAcceptedRiskV1JSONRequestBody defines body for UpdateAcceptedRiskV1 for application/json ContentType. -type UpdateAcceptedRiskV1JSONRequestBody = UpdateRiskAccepted + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// AsCaptureAction returns the union data inside the Action as a CaptureAction -func (t Action) AsCaptureAction() (CaptureAction, error) { - var body CaptureAction - err := json.Unmarshal(t.union, &body) - return body, err -} + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// FromCaptureAction overwrites any union data inside the Action as the provided CaptureAction -func (t *Action) FromCaptureAction(v CaptureAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"capture"}`)) - t.union = b - return err + // Orderby Ordering to apply in the form of `field:direction` where `direction` can either be `asc` or `desc`.\ + // Multiple orderings can be applied by repeating the `orderby` parameter:\ + // `&orderby=key1:direction1&orderby=key2:direction2` + Orderby *MultiOrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` } -// MergeCaptureAction performs a merge with any union data inside the Action, using the provided CaptureAction -func (t *Action) MergeCaptureAction(v CaptureAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"capture"}`)) - if err != nil { - return err - } +// 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"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Limit The maximum number of automations to return in a single page. + Limit *AutomationsLimit `form:"limit,omitempty" json:"limit,omitempty"` -// AsContainerPausedAction returns the union data inside the Action as a ContainerPausedAction -func (t Action) AsContainerPausedAction() (ContainerPausedAction, error) { - var body ContainerPausedAction - err := json.Unmarshal(t.union, &body) - return body, err -} + // 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"` -// FromContainerPausedAction overwrites any union data inside the Action as the provided ContainerPausedAction -func (t *Action) FromContainerPausedAction(v ContainerPausedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_paused"}`)) - t.union = b - return err + // 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"` } -// MergeContainerPausedAction performs a merge with any union data inside the Action, using the provided ContainerPausedAction -func (t *Action) MergeContainerPausedAction(v ContainerPausedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_paused"}`)) - if err != nil { - return err - } +// ListAutomationExecutionsParamsSort defines parameters for ListAutomationExecutions. +type ListAutomationExecutionsParamsSort string - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// ListAutomationExecutionsParamsStatus defines parameters for ListAutomationExecutions. +type ListAutomationExecutionsParamsStatus string -// AsContainerStoppedAction returns the union data inside the Action as a ContainerStoppedAction -func (t Action) AsContainerStoppedAction() (ContainerStoppedAction, error) { - var body ContainerStoppedAction - err := json.Unmarshal(t.union, &body) - return body, err -} +// 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"` -// FromContainerStoppedAction overwrites any union data inside the Action as the provided ContainerStoppedAction -func (t *Action) FromContainerStoppedAction(v ContainerStoppedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_stopped"}`)) - t.union = b - return err -} + // Group Filters automations belonging to the given group. + Group *AutomationsGroup `form:"group,omitempty" json:"group,omitempty"` -// MergeContainerStoppedAction performs a merge with any union data inside the Action, using the provided ContainerStoppedAction -func (t *Action) MergeContainerStoppedAction(v ContainerStoppedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_stopped"}`)) - if err != nil { - return err - } + // 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"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Search Free-text term used to filter automations by name or description. + Search *AutomationsSearch `form:"search,omitempty" json:"search,omitempty"` -// AsContainerKilledAction returns the union data inside the Action as a ContainerKilledAction -func (t Action) AsContainerKilledAction() (ContainerKilledAction, error) { - var body ContainerKilledAction - err := json.Unmarshal(t.union, &body) - return body, err -} + // TriggerOn Filters automations by the event type they are triggered on. + TriggerOn *AutomationsTriggerOn `form:"triggerOn,omitempty" json:"triggerOn,omitempty"` -// FromContainerKilledAction overwrites any union data inside the Action as the provided ContainerKilledAction -func (t *Action) FromContainerKilledAction(v ContainerKilledAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_killed"}`)) - t.union = b - return err + // 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"` } -// MergeContainerKilledAction performs a merge with any union data inside the Action, using the provided ContainerKilledAction -func (t *Action) MergeContainerKilledAction(v ContainerKilledAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"container_killed"}`)) - if err != nil { - return err - } +// ListAutomationsParamsSort defines parameters for ListAutomations. +type ListAutomationsParamsSort string - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err +// 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"` } -// AsDriftPreventedAction returns the union data inside the Action as a DriftPreventedAction -func (t Action) AsDriftPreventedAction() (DriftPreventedAction, error) { - var body DriftPreventedAction - err := json.Unmarshal(t.union, &body) - return body, err +// 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"` } -// FromDriftPreventedAction overwrites any union data inside the Action as the provided DriftPreventedAction -func (t *Action) FromDriftPreventedAction(v DriftPreventedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"drift_prevented"}`)) - t.union = b - return err +// 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"` } -// MergeDriftPreventedAction performs a merge with any union data inside the Action, using the provided DriftPreventedAction -func (t *Action) MergeDriftPreventedAction(v DriftPreventedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"drift_prevented"}`)) - if err != nil { - return err - } +// ListZonesV2Params defines parameters for ListZonesV2. +type ListZonesV2Params struct { + // Filter Filters to apply in the form of `key:value`.\ + // Multiple filters can be applied by repeating the `filter` parameter:\ + // `&filter=key1:value1&filter=key2:value2` + Filter *MultiFilter `form:"filter,omitempty" json:"filter,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` -// AsMalwarePreventedAction returns the union data inside the Action as a MalwarePreventedAction -func (t Action) AsMalwarePreventedAction() (MalwarePreventedAction, error) { - var body MalwarePreventedAction - err := json.Unmarshal(t.union, &body) - return body, err -} + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` -// FromMalwarePreventedAction overwrites any union data inside the Action as the provided MalwarePreventedAction -func (t *Action) FromMalwarePreventedAction(v MalwarePreventedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"malware_prevented"}`)) - t.union = b - return err + // Orderby Ordering to apply in the form of `field:direction` where `direction` can either be `asc` or `desc`.\ + // Multiple orderings can be applied by repeating the `orderby` parameter:\ + // `&orderby=key1:direction1&orderby=key2:direction2` + Orderby *MultiOrderBy `form:"orderby,omitempty" json:"orderby,omitempty"` } -// MergeMalwarePreventedAction performs a merge with any union data inside the Action, using the provided MalwarePreventedAction -func (t *Action) MergeMalwarePreventedAction(v MalwarePreventedAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"malware_prevented"}`)) - if err != nil { - return err - } +// GetLabelValuesV1Params defines parameters for GetLabelValuesV1. +type GetLabelValuesV1Params struct { + // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. + Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // End UNSUPPORTED - Sysdig does not support this parameter. + End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` -// AsProcessKilledAction returns the union data inside the Action as a ProcessKilledAction -func (t Action) AsProcessKilledAction() (ProcessKilledAction, error) { - var body ProcessKilledAction - err := json.Unmarshal(t.union, &body) - return body, err -} + // Match A repeated series selector argument that specifies the series from which to read the label values. + Match *MatchLabelValues `form:"match[],omitempty" json:"match[],omitempty"` -// FromProcessKilledAction overwrites any union data inside the Action as the provided ProcessKilledAction -func (t *Action) FromProcessKilledAction(v ProcessKilledAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"process_killed"}`)) - t.union = b - return err + // Limit The maximum number of returned labels. This is 5,000 by default. To disable the limit, set the value to 0. + Limit *LimitLabelValues `form:"limit,omitempty" json:"limit,omitempty"` } -// MergeProcessKilledAction performs a merge with any union data inside the Action, using the provided ProcessKilledAction -func (t *Action) MergeProcessKilledAction(v ProcessKilledAction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"process_killed"}`)) - if err != nil { - return err - } +// GetLabelsV1Params defines parameters for GetLabelsV1. +type GetLabelsV1Params struct { + // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. + Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // End UNSUPPORTED - Sysdig does not support this parameter. + End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` -func (t Action) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err -} + // Match A repeated series selector argument that specifies the series from which to read the label names. + Match *MatchLabelNames `form:"match[],omitempty" json:"match[],omitempty"` -func (t Action) ValueByDiscriminator() (interface{}, error) { - discriminator, err := t.Discriminator() - if err != nil { - return nil, err - } - switch discriminator { - case "capture": - return t.AsCaptureAction() - case "container_killed": - return t.AsContainerKilledAction() - case "container_paused": - return t.AsContainerPausedAction() - case "container_stopped": - return t.AsContainerStoppedAction() - case "drift_prevented": - return t.AsDriftPreventedAction() - case "malware_prevented": - return t.AsMalwarePreventedAction() - case "process_killed": - return t.AsProcessKilledAction() - default: - return nil, errors.New("unknown discriminator value: " + discriminator) - } + // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. + Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` } -func (t Action) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} +// PostLabelsV1Params defines parameters for PostLabelsV1. +type PostLabelsV1Params struct { + // Start UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. + Start *TimeStartUnsupported `form:"start,omitempty" json:"start,omitempty"` -func (t *Action) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} + // End UNSUPPORTED - Sysdig does not support this parameter. + End *TimeEndUnsupported `form:"end,omitempty" json:"end,omitempty"` -// AsActionExecutionStringParameterValue returns the union data inside the ActionExecutionParameterValue as a ActionExecutionStringParameterValue -func (t ActionExecutionParameterValue) AsActionExecutionStringParameterValue() (ActionExecutionStringParameterValue, error) { - var body ActionExecutionStringParameterValue - err := json.Unmarshal(t.union, &body) - return body, err -} + // Match A repeated series selector argument that specifies the series from which to read the label names. + Match *MatchLabelNames `form:"match[],omitempty" json:"match[],omitempty"` -// FromActionExecutionStringParameterValue overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionStringParameterValue -func (t *ActionExecutionParameterValue) FromActionExecutionStringParameterValue(v ActionExecutionStringParameterValue) error { - b, err := json.Marshal(v) - t.union = b - return err + // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. + Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` } -// MergeActionExecutionStringParameterValue performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionStringParameterValue -func (t *ActionExecutionParameterValue) MergeActionExecutionStringParameterValue(v ActionExecutionStringParameterValue) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// GetMetadataV1Params defines parameters for GetMetadataV1. +type GetMetadataV1Params struct { + // LimitPerMetric UNSUPPORTED - Sysdig does not support this parameter. + LimitPerMetric *LimitPerMetricUnsupported `form:"limit_per_metric,omitempty" json:"limit_per_metric,omitempty"` -// AsActionExecutionIntParameterValue returns the union data inside the ActionExecutionParameterValue as a ActionExecutionIntParameterValue -func (t ActionExecutionParameterValue) AsActionExecutionIntParameterValue() (ActionExecutionIntParameterValue, error) { - var body ActionExecutionIntParameterValue - err := json.Unmarshal(t.union, &body) - return body, err -} + // Limit The maximum number of metrics to return. To disable the limit, set the value to 0. + Limit *LimitMetrics `form:"limit,omitempty" json:"limit,omitempty"` -// FromActionExecutionIntParameterValue overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionIntParameterValue -func (t *ActionExecutionParameterValue) FromActionExecutionIntParameterValue(v ActionExecutionIntParameterValue) error { - b, err := json.Marshal(v) - t.union = b - return err + // Metric A specific metric name to filter metadata for. If omitted, metadata for all metrics is retrieved. + Metric *MetricName `form:"metric,omitempty" json:"metric,omitempty"` } -// MergeActionExecutionIntParameterValue performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionIntParameterValue -func (t *ActionExecutionParameterValue) MergeActionExecutionIntParameterValue(v ActionExecutionIntParameterValue) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// GetQueryV1Params defines parameters for GetQueryV1. +type GetQueryV1Params struct { + // Query The Prometheus expression query string. + Query Query `form:"query" json:"query"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Time The evaluation timestamp as RFC3339 or a unix timestamp. If omitted, the current server time is used. + Time *Time `form:"time,omitempty" json:"time,omitempty"` -// AsActionExecutionParameterValue2 returns the union data inside the ActionExecutionParameterValue as a ActionExecutionParameterValue2 -func (t ActionExecutionParameterValue) AsActionExecutionParameterValue2() (ActionExecutionParameterValue2, error) { - var body ActionExecutionParameterValue2 - err := json.Unmarshal(t.union, &body) - return body, err -} + // Timeout The evaluation timeout. The default is 2 minutes. + Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` -// FromActionExecutionParameterValue2 overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionParameterValue2 -func (t *ActionExecutionParameterValue) FromActionExecutionParameterValue2(v ActionExecutionParameterValue2) error { - b, err := json.Marshal(v) - t.union = b - return err + // Limit The maximum number of returned series. To disable the limit, set the value to 0. + Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` } -// MergeActionExecutionParameterValue2 performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionParameterValue2 -func (t *ActionExecutionParameterValue) MergeActionExecutionParameterValue2(v ActionExecutionParameterValue2) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// PostQueryV1Params defines parameters for PostQueryV1. +type PostQueryV1Params struct { + // Query The Prometheus expression query string. + Query Query `form:"query" json:"query"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Time The evaluation timestamp as RFC3339 or a unix timestamp. If omitted, the current server time is used. + Time *Time `form:"time,omitempty" json:"time,omitempty"` -func (t ActionExecutionParameterValue) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} + // Timeout The evaluation timeout. The default is 2 minutes. + Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` -func (t *ActionExecutionParameterValue) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err + // Limit The maximum number of returned series. To disable the limit, set the value to 0. + Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` } -// AsApiGraphUnion returns the union data inside the ApiGraphDefinition as a ApiGraphUnion -func (t ApiGraphDefinition) AsApiGraphUnion() (ApiGraphUnion, error) { - var body ApiGraphUnion - err := json.Unmarshal(t.union, &body) - return body, err -} +// GetQueryRangeV1Params defines parameters for GetQueryRangeV1. +type GetQueryRangeV1Params struct { + // Query The Prometheus expression query string. + Query Query `form:"query" json:"query"` -// FromApiGraphUnion overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphUnion -func (t *ApiGraphDefinition) FromApiGraphUnion(v ApiGraphUnion) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Union"}`)) - t.union = b - return err -} + // Start The inclusive start timestamp of the query range as RFC3339 or a unix timestamp. + Start TimeStartQuery `form:"start" json:"start"` -// MergeApiGraphUnion performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphUnion -func (t *ApiGraphDefinition) MergeApiGraphUnion(v ApiGraphUnion) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Union"}`)) - if err != nil { - return err - } + // End The inclusive end timestamp of the query range as RFC3339 or a unix timestamp. + End TimeEndQuery `form:"end" json:"end"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Step The query resolution step width, specified as a duration or a floating-point number of seconds. + Step Step `form:"step" json:"step"` -// AsApiGraphQuery returns the union data inside the ApiGraphDefinition as a ApiGraphQuery -func (t ApiGraphDefinition) AsApiGraphQuery() (ApiGraphQuery, error) { - var body ApiGraphQuery - err := json.Unmarshal(t.union, &body) - return body, err -} + // Timeout The evaluation timeout. The default is 2 minutes. + Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` -// FromApiGraphQuery overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphQuery -func (t *ApiGraphDefinition) FromApiGraphQuery(v ApiGraphQuery) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Query"}`)) - t.union = b - return err + // Limit The maximum number of returned series. To disable the limit, set the value to 0. + Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` } -// MergeApiGraphQuery performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphQuery -func (t *ApiGraphDefinition) MergeApiGraphQuery(v ApiGraphQuery) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Query"}`)) - if err != nil { - return err - } +// PostQueryRangeV1Params defines parameters for PostQueryRangeV1. +type PostQueryRangeV1Params struct { + // Query The Prometheus expression query string. + Query Query `form:"query" json:"query"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Start The inclusive start timestamp of the query range as RFC3339 or a unix timestamp. + Start TimeStartQuery `form:"start" json:"start"` -// AsApiGraphEntity returns the union data inside the ApiGraphDefinition as a ApiGraphEntity -func (t ApiGraphDefinition) AsApiGraphEntity() (ApiGraphEntity, error) { - var body ApiGraphEntity - err := json.Unmarshal(t.union, &body) - return body, err -} + // End The inclusive end timestamp of the query range as RFC3339 or a unix timestamp. + End TimeEndQuery `form:"end" json:"end"` -// FromApiGraphEntity overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphEntity -func (t *ApiGraphDefinition) FromApiGraphEntity(v ApiGraphEntity) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Entity"}`)) - t.union = b - return err -} + // Step The query resolution step width, specified as a duration or a floating-point number of seconds. + Step Step `form:"step" json:"step"` -// MergeApiGraphEntity performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphEntity -func (t *ApiGraphDefinition) MergeApiGraphEntity(v ApiGraphEntity) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Entity"}`)) - if err != nil { - return err - } + // Timeout The evaluation timeout. The default is 2 minutes. + Timeout *Timeout `form:"timeout,omitempty" json:"timeout,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err + // Limit The maximum number of returned series. To disable the limit, set the value to 0. + Limit *LimitQuery `form:"limit,omitempty" json:"limit,omitempty"` } -// AsApiGraphField returns the union data inside the ApiGraphDefinition as a ApiGraphField -func (t ApiGraphDefinition) AsApiGraphField() (ApiGraphField, error) { - var body ApiGraphField - err := json.Unmarshal(t.union, &body) - return body, err -} +// GetRulesV1Params defines parameters for GetRulesV1. +type GetRulesV1Params struct { + // Type This endpoint only returns alerting rules (`type=alert`). When absent or empty, only alerting rules are returned. + Type *GetRulesV1ParamsType `form:"type,omitempty" json:"type,omitempty"` -// FromApiGraphField overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphField -func (t *ApiGraphDefinition) FromApiGraphField(v ApiGraphField) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Field"}`)) - t.union = b - return err -} + // RuleName Only return rules with the given rule name. If repeated, rules with any of the provided names are returned. + RuleName *[]string `form:"rule_name[],omitempty" json:"rule_name[],omitempty"` -// MergeApiGraphField performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphField -func (t *ApiGraphDefinition) MergeApiGraphField(v ApiGraphField) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Field"}`)) - if err != nil { - return err - } + // RuleGroup Only return rules with the given rule group name. If repeated, rules with any of the provided group names are returned. + RuleGroup *[]string `form:"rule_group[],omitempty" json:"rule_group[],omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // File UNSUPPORTED - Sysdig does not support this parameter. + File *[]string `form:"file[],omitempty" json:"file[],omitempty"` -// AsApiGraphRelationship returns the union data inside the ApiGraphDefinition as a ApiGraphRelationship -func (t ApiGraphDefinition) AsApiGraphRelationship() (ApiGraphRelationship, error) { - var body ApiGraphRelationship - err := json.Unmarshal(t.union, &body) - return body, err -} + // ExcludeAlerts This endpoint supports only returning alerting rules (`exclude_alerts=true`). + ExcludeAlerts *bool `form:"exclude_alerts,omitempty" json:"exclude_alerts,omitempty"` -// FromApiGraphRelationship overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphRelationship -func (t *ApiGraphDefinition) FromApiGraphRelationship(v ApiGraphRelationship) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Relationship"}`)) - t.union = b - return err -} + // Match Only return rules with configured labels that satisfy the label selectors. + Match *[]string `form:"match[],omitempty" json:"match[],omitempty"` -// MergeApiGraphRelationship performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphRelationship -func (t *ApiGraphDefinition) MergeApiGraphRelationship(v ApiGraphRelationship) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Relationship"}`)) - if err != nil { - return err - } + // GroupLimit Limit the number of rule groups returned in a single response. + GroupLimit *UnlimitedLong `form:"group_limit,omitempty" json:"group_limit,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err + // GroupNextToken UNSUPPORTED - This parameter is not supported due to the Sysdig's specific implementation. + GroupNextToken *string `form:"group_next_token,omitempty" json:"group_next_token,omitempty"` } -// AsApiGraphFunction returns the union data inside the ApiGraphDefinition as a ApiGraphFunction -func (t ApiGraphDefinition) AsApiGraphFunction() (ApiGraphFunction, error) { - var body ApiGraphFunction - err := json.Unmarshal(t.union, &body) - return body, err -} +// GetRulesV1ParamsType defines parameters for GetRulesV1. +type GetRulesV1ParamsType string -// FromApiGraphFunction overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphFunction -func (t *ApiGraphDefinition) FromApiGraphFunction(v ApiGraphFunction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Function"}`)) - t.union = b - return err -} +// GetSeriesV1Params defines parameters for GetSeriesV1. +type GetSeriesV1Params struct { + // Match A repeated series selector argument that specifies the series to return. You must provide at least one match[] parameter. + Match MatchSeries `form:"match[]" json:"match[]"` -// MergeApiGraphFunction performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphFunction -func (t *ApiGraphDefinition) MergeApiGraphFunction(v ApiGraphFunction) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Function"}`)) - if err != nil { - return err - } + // Start The inclusive start timestamp of the series query as RFC3339 or a unix timestamp. + Start *TimeStartSeries `form:"start,omitempty" json:"start,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // End The inclusive end timestamp of the series query as RFC3339 or a unix timestamp. + End *TimeEndSeries `form:"end,omitempty" json:"end,omitempty"` -func (t ApiGraphDefinition) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"def_type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err + // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. + Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` } -func (t ApiGraphDefinition) ValueByDiscriminator() (interface{}, error) { - discriminator, err := t.Discriminator() - if err != nil { - return nil, err - } - switch discriminator { - case "Entity": - return t.AsApiGraphEntity() - case "Field": - return t.AsApiGraphField() - case "Function": - return t.AsApiGraphFunction() - case "Query": - return t.AsApiGraphQuery() - case "Relationship": - return t.AsApiGraphRelationship() - case "Union": - return t.AsApiGraphUnion() - default: - return nil, errors.New("unknown discriminator value: " + discriminator) - } -} +// PostSeriesV1Params defines parameters for PostSeriesV1. +type PostSeriesV1Params struct { + // Match A repeated series selector argument that specifies the series to return. You must provide at least one match[] parameter. + Match MatchSeries `form:"match[]" json:"match[]"` -func (t ApiGraphDefinition) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} + // Start The inclusive start timestamp of the series query as RFC3339 or a unix timestamp. + Start *TimeStartSeries `form:"start,omitempty" json:"start,omitempty"` -func (t *ApiGraphDefinition) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} + // End The inclusive end timestamp of the series query as RFC3339 or a unix timestamp. + End *TimeEndSeries `form:"end,omitempty" json:"end,omitempty"` -// AsKafkaPlaintextV1 returns the union data inside the AuthenticatedConnectionInfoKafkaV1 as a KafkaPlaintextV1 -func (t AuthenticatedConnectionInfoKafkaV1) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { - var body KafkaPlaintextV1 - err := json.Unmarshal(t.union, &body) - return body, err + // Limit The maximum number of returned series. The limit is capped at 10,000. To disable the limit, set the value to 0. + Limit *LimitSeries `form:"limit,omitempty" json:"limit,omitempty"` } -// FromKafkaPlaintextV1 overwrites any union data inside the AuthenticatedConnectionInfoKafkaV1 as the provided KafkaPlaintextV1 -func (t *AuthenticatedConnectionInfoKafkaV1) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { - b, err := json.Marshal(v) - t.union = b - return err +// GetActivityAuditEntriesV1Params defines parameters for GetActivityAuditEntriesV1. +type GetActivityAuditEntriesV1Params struct { + From *From `form:"from,omitempty" json:"from,omitempty"` + To *To `form:"to,omitempty" json:"to,omitempty"` + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + Zones *[]ZoneId `form:"zones,omitempty" json:"zones,omitempty"` + Filter *SysdigQueryLanguageFilter `form:"filter,omitempty" json:"filter,omitempty"` + + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` + Types *Types `form:"types,omitempty" json:"types,omitempty"` } -// MergeKafkaPlaintextV1 performs a merge with any union data inside the AuthenticatedConnectionInfoKafkaV1, using the provided KafkaPlaintextV1 -func (t *AuthenticatedConnectionInfoKafkaV1) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// UploadCertificateV1400JSONResponseBodyMessage defines parameters for UploadCertificateV1. +type UploadCertificateV1400JSONResponseBodyMessage string - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// UploadCertificateV1400JSONResponseBodyType defines parameters for UploadCertificateV1. +type UploadCertificateV1400JSONResponseBodyType string -// AsKafkaTlsEncryptedV1 returns the union data inside the AuthenticatedConnectionInfoKafkaV1 as a KafkaTlsEncryptedV1 -func (t AuthenticatedConnectionInfoKafkaV1) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { - var body KafkaTlsEncryptedV1 - err := json.Unmarshal(t.union, &body) - return body, err +// ListEFOChannelsByIntegrationV1Params defines parameters for ListEFOChannelsByIntegrationV1. +type ListEFOChannelsByIntegrationV1Params struct { + // Type the Events Forwarder Integration Type + Type IntegrationType `form:"type" json:"type"` } -// FromKafkaTlsEncryptedV1 overwrites any union data inside the AuthenticatedConnectionInfoKafkaV1 as the provided KafkaTlsEncryptedV1 -func (t *AuthenticatedConnectionInfoKafkaV1) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { - b, err := json.Marshal(v) - t.union = b - return err +// ListEFOChannelsByIntegrationV2Params defines parameters for ListEFOChannelsByIntegrationV2. +type ListEFOChannelsByIntegrationV2Params struct { + // Type the Events Forwarder Integration Type + Type IntegrationType `form:"type" json:"type"` } -// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the AuthenticatedConnectionInfoKafkaV1, using the provided KafkaTlsEncryptedV1 -func (t *AuthenticatedConnectionInfoKafkaV1) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err +// GetEventsV1Params defines parameters for GetEventsV1. +type GetEventsV1Params struct { + From *From `form:"from,omitempty" json:"from,omitempty"` + To *To `form:"to,omitempty" json:"to,omitempty"` + Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"` + Zones *[]ZoneId `form:"zones,omitempty" json:"zones,omitempty"` + Filter *EventsFeedFilter `form:"filter,omitempty" json:"filter,omitempty"` + Limit *EventsFeedLimit `form:"limit,omitempty" json:"limit,omitempty"` } -func (t AuthenticatedConnectionInfoKafkaV1) 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 - } - } +// GetResourcesParams defines parameters for GetResources. +type GetResourcesParams struct { + // Filter Query language expression for filtering results. + // Operators: + // - `and` and `not` logical operators + // - `=`, `!=` + // - `in` + // - `contains` and `startsWith` to check partial values of attributes + // - `exists` to check if a field exists and not empty + // + // List of supported fields: + // - `account` + // - Type: string + // - Example: `account in ("285211435247")` + // - Description: DEPRECATED. The account that will be included in the results. + // - `accountName` + // - Type: string + // - Example: `accountName in ("some-account-name")` + // - Description: The account name that will be included in the results. + // - `accountId` + // - Type: string + // - Example: `accountId in ("345224567")` + // - Description: The account id that will be included in the results. + // - `cluster` + // - Type: string + // - Example: `cluster in ("cluster1")` + // - Description: The kubernetes cluster that will be included in the results. + // - `externalDNS` + // - Type: string + // - Example: `externalDNS in ("ec2-102-34-15-23.compute-1.amazonaws.com")` + // - Description: The external DNS that will be included in the results. + // - `distribution` + // - Type: string + // - Example: `distribution in ("gke", "vanilla")` + // - Description: The kubernetes distribution that will be included in the results. + // - `integrationName` + // - Type: string + // - Example: `integrationName = "github-integration"` + // - Description: The name of the integration an IaC resource belongs to. + // - `labels` + // - Type: string + // - Example: `not labels exists` + // - Description: The resource labels that will be included in the results. + // - `location` + // - Type: string + // - Example: `location starts with "https://bitbucket.org/organizations-workspace/teams-repository/src"` + // - Description: The web address of an IaC Manifest. + // - `name` + // - Type: string + // - Example: `name starts with "acl"` + // - Description: The names that will be included in the results. + // - `namespace` + // - Type: string + // - Example: `namespace contains "production"` + // - Description: The namespace that will be included in the results. + // - `nodeType` + // - Type: string + // - Example: `nodeType="Worker"` + // - Description: The nodeType that will be included in the results. + // - `osName` + // - Type: string + // - Example: `osName != "linux"` + // - Description: The operating system that will be included in the results. + // - `osImage` + // - Type: string + // - Example: `osImage = "Ubuntu 18.04.6 LTS"` + // - Description: The operating system image that will be included in the results. + // - `organization` + // - Type: string + // - Example: `organization = "s-xqe92dwe61"` + // - Description: The organization that will be included in the results. + // - `platform` + // - Type: string + // - Example: `platform = "AWS"` + // - Description: The platform that will be included in the results. + // - `control.accepted` + // - Type: boolean + // - Example: `control.accepted exists` + // - Description: Include (or Exclude) only resources with accepted results. Supported operators: exists and not exists. + // - `policy` + // - Type: string + // - Example: `policy in ("CIS Docker Benchmark")` + // - Description: Include resources that applied the selected policies. Supported operators: in, not in, exists, not exists. + // - `control.severity` + // - Type: string + // - Example: `control.severity in ("High")` + // - Description: Include resources that have violated risks in the selected severities. Supported operators: in, not in. + // - `control.failed` + // - Type: string + // - Example: `control.failed in ("/etc/default/docker owned by root:root")` + // - Description: Include resources that have violated the selected risks. Supported operators: in, not in, exists, not exists. + // - `policy.failed` + // - Type: string + // - Example: `policy.failed in ("PCI DSS (Payment Card Industry Data Security Standard) v3.2.1")` + // - Description: Include resources that failed the selected policies. Supported operators: in, not in, exists, not exists. + // - `policy.passed` in ("CIS Kubernetes V1.20 Benchmark") + // - Type: string + // - Example: `policy.passed in ("CIS Kubernetes V1.20 Benchmark")` + // - Description: Include resources that passed the selected policies. Supported operators: in, not in, exists, not exists. + // - `project` + // - Type: string + // - Example: `project = "project1"` + // - Description: DEPRECATED. The project that will be included in the results. + // - `projectName` + // - Type: string + // - Example: `projectName = "project123"` + // - Description: The project name that will be included in the results. + // - `projectId` + // - Type: string + // - Example: `projectId = "1235495521"` + // - Description: The project id that will be included in the results. + // - `region` + // - Type: string + // - Example: `region in ("europe-west1")` + // - Description: The regions that will be included in the results. + // - `repository` + // - Type: string + // - Example: `repository in ("e2e-repo")` + // - Description: The Repository an IaC resource belongs to. + // - `resourceOrigin` + // - Type: string + // - Example: `resourceOrigin = "Code"` + // - Description: Origin of the resource. Supported values: Code, Deployed. + // - `type` + // - Type: string + // - Example: `type = "Account"` + // - Description: The resource types that will be included in the results. + // - `subscription` + // - Type: string + // - Example: `subscription = "Azure subscription 1"` + // - Description: DEPRECATED. The Azure subscription that will be included in the results. + // - `subscriptionName` + // - Type: string + // - Example: `subscriptionName = "subscription abc"` + // - Description: The Azure subscription name that will be included in the results. + // - `subscriptionId` + // - Type: string + // - Example: `subscriptionId = "568634664353"` + // - Description: The Azure subscription id that will be included in the results. + // - `sourceType` + // - Type: string + // - Example: `sourceType = "YAML"` + // - Description: The source type of an IaC resource. Supported values: YAML, Kustomize, Terraform, Helm. + // - `version` + // - Type: string + // - Example: `version = "1.1"` + // - Description: OCP Cluster versions that will be included in the results. + // - `zone` + // - Type: string + // - Example: `zone in ("zone1")` + // - Description: The zones that will be included in the results. + // - `category` + // - Type: string + // - Example: `category in ("Compute", "IAM")` + // - Description: The category that will be included in the results. Supported operators: in, not in. + // - `isExposed` + // - Type: boolean + // - Example: `isExposed exists` + // - Description - Specifies whether the resource to return is exposed to the internet. Supported operators: exists and not exists. + // - `validatedExposure` + // - Type: boolean + // - Example: `validatedExposure exists` + // - Description - Specifies whether the resource to return is exposed to the internet and could be reach by our network exposure validator. Supported operators: exists and not exists. + // - `arn` + // - Type: string + // - Example: `arn in ("arn:aws:ec2:eu-central-1:843232641625:instance/i-0c1dedd325e71138d")` + // - Description - The AWS ARN of the resource. + // - `resourceId` + // - Type: string + // - Example: `resourceId = "//compute.googleapis.com/projects/project1/global/routes/default-route-192ae83214caddd"` + // - Description - The Azure or GCP Resource Identifier of the resource. + // - `container.name` + // - Type: string + // - Example: `container.name in ("sysdig-container")` + // - Description - Filters the resource by a container. + // - `architecture` + // - Type: string + // - Example: `architecture = "arm64"` + // - Description - Image architecture. + // - `baseOS` + // - Type: string + // - Example: `baseOS = "debian 11.6"` + // - Description - Image Base OS. + // - `digest` + // - Type: string + // - Example: `digest = "sha256:21829f4f033ac2805aa43a412bcdf60e98eee4124d565a06dee184c97efff6091"` + // - Description - Image Digest. + // - `imageId` + // - Type: string + // - Example: `imageId in ("sha256:3768ff6176e29a35ce1354622977a1e5c013045cbc4f30754ef3459218be8ac")` + // - Description - Image Id. + // - `os` + // - Type: string + // - Example: `os = "linux"` + // - Description - Image OS. + // - `container.imageName` + // - Type: string + // - Example: `container.imageName in ("registry.k8s.io/kube-image:v1.2.4")` + // - Description - Image Pullstring. + // - `image.registry` + // - Type: string + // - Example: `image.registry = "quay.io"` + // - Description - Image Registry. + // - `image.tag` + // - Type: string + // - Example: `image.tag in ("tag1")` + // - Description - Image tag. + // - `package.inUse` + // - Type: boolean + // - Example: `package.inUse exists` + // - Description - Package in use filter. Supported operators: exists and not exists. + // - `package.info` + // - Type: string + // - Example: `package.info in ("github.com/golang/protobuf - v1.5.2")` + // - Description - Filters by a package using the format [packge name] - [version]. + // - `package.path` + // - Type: string + // - Example: `package.path in ("/app")` + // - Description - Filters by package path. + // - `package.type` + // - Type: string + // - Example: `package.type in ("Golang")` + // - Description - Package type. + // - `vuln.cvssScore` + // - Type: string + // - Example: `vuln.cvssScore >= "3"` + // - Description - Filter by vulnerability CVSS. Supported operators: `=` and `>=`. + // - `vuln.hasExploit` + // - Type: boolean + // - Example: `vuln.hasExploit exists` + // - Description - Filters resources by the existence of vulnerabilities with exploits. Supported operators: exists and not exists. + // - `vuln.hasFix` + // - Type: boolean + // - Example: `vuln.hasFix exists` + // - Description - Filters resources by the existence of vulnerabilities with fixes. Supported operators: exists and not exists. + // - `vuln.name` + // - Type: string + // - Example: `vuln.name in ("CVE-2023-0049")` + // - Description - Filter by vulnerability name. + // - `vuln.severity` + // - Type: string + // - Example: `vuln.severity in ("Critical")` + // - Description - Filter by vulnerability severity. Supported operators: in, not in, exists and not exists. + // - `machineImage` + // - Type: string + // - Example: `machineImage = "ami-0b22b359fdfabe1b5"` + // - Description - Filter by host machine image. + // + // **Note**: Whenever you filter for values with special characters, ensure that you encode the values. + // If the special characters are " or \, use the escape character \ and then encode the values. + Filter *string `form:"filter,omitempty" json:"filter,omitempty"` - object["auth"], err = json.Marshal(t.Auth) - if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) - } + // PageNumber Page number. Defaults to 1. + PageNumber *int32 `form:"pageNumber,omitempty" json:"pageNumber,omitempty"` - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } - } + // PageSize Page size. Defaults to 20. + PageSize *int32 `form:"pageSize,omitempty" json:"pageSize,omitempty"` - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } - } - - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } + // WithEnrichedContainers If true then for kubernetes workload resources additional container information will be included. + WithEnrichedContainers *bool `form:"withEnrichedContainers,omitempty" json:"withEnrichedContainers,omitempty"` +} - object["keytab"], err = json.Marshal(t.Keytab) - if err != nil { - return nil, fmt.Errorf("error marshaling 'keytab': %w", err) - } +// GetActionExecutionsv1Params defines parameters for GetActionExecutionsv1. +type GetActionExecutionsv1Params struct { + CallerId *CallerId `form:"callerId,omitempty" json:"callerId,omitempty"` + Filter *SysdigQueryLanguageFilter `form:"filter,omitempty" json:"filter,omitempty"` - object["krb5"], err = json.Marshal(t.Krb5) - if err != nil { - return nil, fmt.Errorf("error marshaling 'krb5': %w", err) - } + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - object["principal"], err = json.Marshal(t.Principal) - if err != nil { - return nil, fmt.Errorf("error marshaling 'principal': %w", err) - } + // Offset The offset number of items to start with + Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"` + From *From `form:"from,omitempty" json:"from,omitempty"` + To *To `form:"to,omitempty" json:"to,omitempty"` +} - object["realm"], err = json.Marshal(t.Realm) - if err != nil { - return nil, fmt.Errorf("error marshaling 'realm': %w", err) - } +// GetActionExecutionsv1400JSONResponseBodyMessage defines parameters for GetActionExecutionsv1. +type GetActionExecutionsv1400JSONResponseBodyMessage string - object["service"], err = json.Marshal(t.Service) - if err != nil { - return nil, fmt.Errorf("error marshaling 'service': %w", err) - } +// GetActionExecutionsv1400JSONResponseBodyType defines parameters for GetActionExecutionsv1. +type GetActionExecutionsv1400JSONResponseBodyType string - object["topic"], err = json.Marshal(t.Topic) - if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) - } +// UndoActionExecutionV1Params defines parameters for UndoActionExecutionV1. +type UndoActionExecutionV1Params struct { + CallerId *CallerId `form:"callerId,omitempty" json:"callerId,omitempty"` +} - b, err = json.Marshal(object) - return b, err +// GetActionsV1Params defines parameters for GetActionsV1. +type GetActionsV1Params struct { + Context *ExecutionContext `form:"context,omitempty" json:"context,omitempty"` } -func (t *AuthenticatedConnectionInfoKafkaV1) 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 - } +// GetSecureVulnerabilityV1BundlesParams defines parameters for GetSecureVulnerabilityV1Bundles. +type GetSecureVulnerabilityV1BundlesParams struct { + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - if raw, found := object["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } + // Limit Limit for pagination + Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` +} - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } +// GetSecureVulnerabilityV1PipelineResultsParams defines parameters for GetSecureVulnerabilityV1PipelineResults. +type GetSecureVulnerabilityV1PipelineResultsParams struct { + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } - } + // Limit Limit for pagination + Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } - } + // Filter Query language expression for filtering results. It is a subset of + // the full metrics query language used in monitoring. + // + // Only the freeText parameter is supported: + // - `freeText` as string value (note that it will search on the full image name) + Filter *string `form:"filter,omitempty" json:"filter,omitempty"` +} - if raw, found := object["keytab"]; found { - err = json.Unmarshal(raw, &t.Keytab) - if err != nil { - return fmt.Errorf("error reading 'keytab': %w", err) - } - } +// GetSecureVulnerabilityV1PoliciesParams defines parameters for GetSecureVulnerabilityV1Policies. +type GetSecureVulnerabilityV1PoliciesParams struct { + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - if raw, found := object["krb5"]; found { - err = json.Unmarshal(raw, &t.Krb5) - if err != nil { - return fmt.Errorf("error reading 'krb5': %w", err) - } - } + // Limit Limit for pagination + Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` - if raw, found := object["principal"]; found { - err = json.Unmarshal(raw, &t.Principal) - if err != nil { - return fmt.Errorf("error reading 'principal': %w", err) - } - } + // Name Filter policies by name + Name *string `form:"name,omitempty" json:"name,omitempty"` - if raw, found := object["realm"]; found { - err = json.Unmarshal(raw, &t.Realm) - if err != nil { - return fmt.Errorf("error reading 'realm': %w", err) - } - } + // Stages Filter policies by applied stages + Stages *[]GetSecureVulnerabilityV1PoliciesParamsStages `form:"stages,omitempty" json:"stages,omitempty"` +} - if raw, found := object["service"]; found { - err = json.Unmarshal(raw, &t.Service) - if err != nil { - return fmt.Errorf("error reading 'service': %w", err) - } - } +// GetSecureVulnerabilityV1PoliciesParamsStages defines parameters for GetSecureVulnerabilityV1Policies. +type GetSecureVulnerabilityV1PoliciesParamsStages string - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } - } +// ScannerAPIServiceListRegistryResultsParams defines parameters for ScannerAPIServiceListRegistryResults. +type ScannerAPIServiceListRegistryResultsParams struct { + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - return err -} + // Limit Limit for pagination + Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` -// 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 + // Filter Query language expression for filtering results. It is a subset of + // the full metrics query language used in monitoring. + // + // Operators: + // - `and`, `or` logical operators (i.e. + // `freeText = "alpine:latest" and vendor = "docker"`) + // + // - `=` and `!=` comparison operators (i.e. + // `vendor = "ecr"`) + // + // This query language does not support the full set of metrics + // supported in the monitor query language, but instead supports a set of fields + // proper to each Scan Result type. + // + // The supported fields are: `freeText`, `vendor`. + // - `vendor` as string value + // - `freeText` as string value (note that it will search on the full image name) + Filter *string `form:"filter,omitempty" json:"filter,omitempty"` } -// 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 -} +// ScannerAPIServiceListRuntimeResultsParams defines parameters for ScannerAPIServiceListRuntimeResults. +type ScannerAPIServiceListRuntimeResultsParams struct { + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` -// 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 - } + // Limit Limit for pagination + Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // Filter Query language expression for filtering results. It is a subset of + // the full metrics query language used in monitoring. + // + // Operators: + // - `and`, `or` logical operators (i.e. + // `kubernetes.cluster.name="production" and kubernetes.pod.container.name = "docker.internal.sysdig.tools"`) + // + // - `=` and `!=` comparison operators (i.e. + // `kubernetes.cluster.name="staging"`) + // + // This query language does not support the full set of metrics + // supported in the monitor query language, but instead supports a set of fields + // proper to each Scan Result type. + // + // The supported fields are the all the fields of the `Scope`, plus: `freeText`, `hasRunningVulns` and `hasRunningVulns`. + Filter *string `form:"filter,omitempty" json:"filter,omitempty"` -// 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 -} + // Sort Field used to sort the results + // vulnTotalBySeverity: sort by total number of running vulnerabilities weighted by severity + // runningVulnTotalBySeverity: sort by total number of running vulnerabilities weighted by severity for running assets + Sort *ScannerAPIServiceListRuntimeResultsParamsSort `form:"sort,omitempty" json:"sort,omitempty"` -// 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 + // Order Ordering of the results for the sort field + Order *ScannerAPIServiceListRuntimeResultsParamsOrder `form:"order,omitempty" json:"order,omitempty"` } -// 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 - } +// ScannerAPIServiceListRuntimeResultsParamsSort defines parameters for ScannerAPIServiceListRuntimeResults. +type ScannerAPIServiceListRuntimeResultsParamsSort string - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// ScannerAPIServiceListRuntimeResultsParamsOrder defines parameters for ScannerAPIServiceListRuntimeResults. +type ScannerAPIServiceListRuntimeResultsParamsOrder string -func (t AutomationNodeV1Alpha1) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err -} +// GetAcceptedRisksV1Params defines parameters for GetAcceptedRisksV1. +type GetAcceptedRisksV1Params struct { + // Filter The filtering string in secure-querylang syntax. + Filter *VulnerabilityFilter `form:"filter,omitempty" json:"filter,omitempty"` -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) - } -} + // Order The sorting order + Order *GetAcceptedRisksV1ParamsOrder `form:"order,omitempty" json:"order,omitempty"` -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 - } - } + // Cursor Cursor is a string used to retrieve a particular page of data. It is an opaque structure, and should not be mangled. It could be retrieved in the body of each request. If a response does not contain a cursor, it means that it's the last page. + Cursor *VulnerabilityCursor `form:"cursor,omitempty" json:"cursor,omitempty"` - object["type"], err = json.Marshal(t.Type) - if err != nil { - return nil, fmt.Errorf("error marshaling 'type': %w", err) - } + // Limit The number of items to return + Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"` - b, err = json.Marshal(object) - return b, err + // Sort The sorting string + Sort *GetAcceptedRisksV1ParamsSort `form:"sort,omitempty" json:"sort,omitempty"` } -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 - } +// GetAcceptedRisksV1ParamsOrder defines parameters for GetAcceptedRisksV1. +type GetAcceptedRisksV1ParamsOrder string - if raw, found := object["type"]; found { - err = json.Unmarshal(raw, &t.Type) - if err != nil { - return fmt.Errorf("error reading 'type': %w", err) - } - } +// GetAcceptedRisksV1ParamsSort defines parameters for GetAcceptedRisksV1. +type GetAcceptedRisksV1ParamsSort string - return err -} +// 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"` -// AsKafkaPlaintext returns the union data inside the BaseConnectionInfoKafka as a KafkaPlaintext -func (t BaseConnectionInfoKafka) AsKafkaPlaintext() (KafkaPlaintext, error) { - var body KafkaPlaintext - err := json.Unmarshal(t.union, &body) - return body, err -} + // ComponentName Restrict results to CVEs affecting a component with exactly this name. + ComponentName *string `form:"componentName,omitempty" json:"componentName,omitempty"` -// FromKafkaPlaintext overwrites any union data inside the BaseConnectionInfoKafka as the provided KafkaPlaintext -func (t *BaseConnectionInfoKafka) FromKafkaPlaintext(v KafkaPlaintext) error { - b, err := json.Marshal(v) - t.union = b - return err -} + // 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"` -// MergeKafkaPlaintext performs a merge with any union data inside the BaseConnectionInfoKafka, using the provided KafkaPlaintext -func (t *BaseConnectionInfoKafka) MergeKafkaPlaintext(v KafkaPlaintext) error { - b, err := json.Marshal(v) - if err != nil { - return err - } + // 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"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // 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"` -// AsKafkaTlsEncrypted returns the union data inside the BaseConnectionInfoKafka as a KafkaTlsEncrypted -func (t BaseConnectionInfoKafka) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { - var body KafkaTlsEncrypted - err := json.Unmarshal(t.union, &body) - return body, err -} + // 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"` -// FromKafkaTlsEncrypted overwrites any union data inside the BaseConnectionInfoKafka as the provided KafkaTlsEncrypted -func (t *BaseConnectionInfoKafka) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { - b, err := json.Marshal(v) - t.union = b - return err -} + // 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"` -// MergeKafkaTlsEncrypted performs a merge with any union data inside the BaseConnectionInfoKafka, using the provided KafkaTlsEncrypted -func (t *BaseConnectionInfoKafka) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { - b, err := json.Marshal(v) - if err != nil { - return err - } + // HasExploit Restrict results to CVEs with (`true`) or without (`false`) a known public exploit. + HasExploit *bool `form:"hasExploit,omitempty" json:"hasExploit,omitempty"` - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} + // 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"` -func (t BaseConnectionInfoKafka) 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 - } - } + // HasFix Restrict results to CVEs that do (`true`) or do not (`false`) have a known fix. + HasFix *bool `form:"hasFix,omitempty" json:"hasFix,omitempty"` - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } - } + // 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"` - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } - } + // Limit The maximum number of CVEs to return in a single page. + Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"` +} - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } +// ListCveCatalogV1beta1ParamsSeverity defines parameters for ListCveCatalogV1beta1. +type ListCveCatalogV1beta1ParamsSeverity string - object["topic"], err = json.Marshal(t.Topic) - if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) - } +// 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 + // Provide this with assetType if not providing bomIdentifier + AssetId *string `form:"assetId,omitempty" json:"assetId,omitempty"` - b, err = json.Marshal(object) - return b, err + // AssetType The type of the asset for which we want to retrieve the SBOM. Provide this with assetId if not providing bomIdentifier + AssetType *GetSBOMV1beta1ParamsAssetType `form:"assetType,omitempty" json:"assetType,omitempty"` + + // BomIdentifier The ID of a single SBOM. Either provide this or both assetId and assetType + BomIdentifier *string `form:"bomIdentifier,omitempty" json:"bomIdentifier,omitempty"` } -func (t *BaseConnectionInfoKafka) 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 - } +// GetSBOMV1beta1ParamsAssetType defines parameters for GetSBOMV1beta1. +type GetSBOMV1beta1ParamsAssetType string - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } +// CreateZonePolicyAssociationJSONRequestBody defines body for CreateZonePolicyAssociation for application/json ContentType. +type CreateZonePolicyAssociationJSONRequestBody = ZonePolicyAssociationRequest - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } - } +// UpdateZonePolicyAssociationJSONRequestBody defines body for UpdateZonePolicyAssociation for application/json ContentType. +type UpdateZonePolicyAssociationJSONRequestBody = ZonePolicyAssociationRequest - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } - } +// PostQueryResultJSONRequestBody defines body for PostQueryResult for application/json ContentType. +type PostQueryResultJSONRequestBody PostQueryResultJSONBody - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } - } +// CreateInhibitionRuleJSONRequestBody defines body for CreateInhibitionRule for application/json ContentType. +type CreateInhibitionRuleJSONRequestBody = CreateInhibitionRuleRequestV1 - return err -} +// UpdateInhibitionRuleJSONRequestBody defines body for UpdateInhibitionRule for application/json ContentType. +type UpdateInhibitionRuleJSONRequestBody = UpdateInhibitionRuleRequestV1 -// AsKafkaPlaintextV1 returns the union data inside the BaseConnectionInfoKafkaV1 as a KafkaPlaintextV1 -func (t BaseConnectionInfoKafkaV1) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { - var body KafkaPlaintextV1 - err := json.Unmarshal(t.union, &body) - return body, err -} +// CreatePricingV1JSONRequestBody defines body for CreatePricingV1 for application/json ContentType. +type CreatePricingV1JSONRequestBody = CreatePricingRequestV1 -// FromKafkaPlaintextV1 overwrites any union data inside the BaseConnectionInfoKafkaV1 as the provided KafkaPlaintextV1 -func (t *BaseConnectionInfoKafkaV1) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { - b, err := json.Marshal(v) - t.union = b - return err -} +// UpdatePricingByIdV1JSONRequestBody defines body for UpdatePricingByIdV1 for application/json ContentType. +type UpdatePricingByIdV1JSONRequestBody = UpdatePricingRequestV1 -// MergeKafkaPlaintextV1 performs a merge with any union data inside the BaseConnectionInfoKafkaV1, using the provided KafkaPlaintextV1 -func (t *BaseConnectionInfoKafkaV1) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// GetWastedWorkloadDataJSONRequestBody defines body for GetWastedWorkloadData for application/json ContentType. +type GetWastedWorkloadDataJSONRequestBody = WastedWorkloadDataRequest - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// GetWorkloadCostDataV1JSONRequestBody defines body for GetWorkloadCostDataV1 for application/json ContentType. +type GetWorkloadCostDataV1JSONRequestBody = WorkloadCostTrendsDataRequest -// AsKafkaTlsEncryptedV1 returns the union data inside the BaseConnectionInfoKafkaV1 as a KafkaTlsEncryptedV1 -func (t BaseConnectionInfoKafkaV1) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { - var body KafkaTlsEncryptedV1 - err := json.Unmarshal(t.union, &body) - return body, err -} +// GetWorkloadRightsizingDataJSONRequestBody defines body for GetWorkloadRightsizingData for application/json ContentType. +type GetWorkloadRightsizingDataJSONRequestBody = WorkloadRightsizingDataRequest -// FromKafkaTlsEncryptedV1 overwrites any union data inside the BaseConnectionInfoKafkaV1 as the provided KafkaTlsEncryptedV1 -func (t *BaseConnectionInfoKafkaV1) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { - b, err := json.Marshal(v) - t.union = b - return err -} +// PostDisabledMetricsV1JSONRequestBody defines body for PostDisabledMetricsV1 for application/json ContentType. +type PostDisabledMetricsV1JSONRequestBody = RequestBodyDisabledMetricsV1 -// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the BaseConnectionInfoKafkaV1, using the provided KafkaTlsEncryptedV1 -func (t *BaseConnectionInfoKafkaV1) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// UpdateCustomPrometheusJobEnablementV1JSONRequestBody defines body for UpdateCustomPrometheusJobEnablementV1 for application/json ContentType. +type UpdateCustomPrometheusJobEnablementV1JSONRequestBody = CustomJobsEnablementV1 - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// CreateJiraIntegrationV1JSONRequestBody defines body for CreateJiraIntegrationV1 for application/json ContentType. +type CreateJiraIntegrationV1JSONRequestBody = CreateIntegrationRequestV1 -func (t BaseConnectionInfoKafkaV1) 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 - } - } +// UpdateJiraIntegrationV1JSONRequestBody defines body for UpdateJiraIntegrationV1 for application/json ContentType. +type UpdateJiraIntegrationV1JSONRequestBody = UpdateIntegrationRequestV1 - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } - } +// CreateJiraIssueTypeV1JSONRequestBody defines body for CreateJiraIssueTypeV1 for application/json ContentType. +type CreateJiraIssueTypeV1JSONRequestBody = CreateIssueTypeRequestV1 - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } - } +// UpdateJiraIssueTypeV1JSONRequestBody defines body for UpdateJiraIssueTypeV1 for application/json ContentType. +type UpdateJiraIssueTypeV1JSONRequestBody = UpdateIssueTypeRequestV1 - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } +// CreateReportV2Alpha1JSONRequestBody defines body for CreateReportV2Alpha1 for application/json ContentType. +type CreateReportV2Alpha1JSONRequestBody = CreateReportRequestV2Alpha1 - object["topic"], err = json.Marshal(t.Topic) - if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) - } +// PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody defines body for PatchReportV2Alpha1 for application/merge-patch+json ContentType. +type PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody = PatchReportRequestV2Alpha1 - b, err = json.Marshal(object) - return b, err -} +// UpdateReportV2Alpha1JSONRequestBody defines body for UpdateReportV2Alpha1 for application/json ContentType. +type UpdateReportV2Alpha1JSONRequestBody = UpdateReportRequestV2Alpha1 -func (t *BaseConnectionInfoKafkaV1) 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 - } +// CreateRunV2Alpha1JSONRequestBody defines body for CreateRunV2Alpha1 for application/json ContentType. +type CreateRunV2Alpha1JSONRequestBody = CreateRunRequestV2Alpha1 - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } +// CreateScheduleV2Alpha1JSONRequestBody defines body for CreateScheduleV2Alpha1 for application/json ContentType. +type CreateScheduleV2Alpha1JSONRequestBody = CreateScheduleRequestV2Alpha1 - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } - } +// PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody defines body for PatchScheduleV2Alpha1 for application/merge-patch+json ContentType. +type PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody = PatchScheduleRequestV2Alpha1 - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } - } +// UpdateScheduleV2Alpha1JSONRequestBody defines body for UpdateScheduleV2Alpha1 for application/json ContentType. +type UpdateScheduleV2Alpha1JSONRequestBody = UpdateScheduleRequestV2Alpha1 - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } - } +// CreateAccessKeyV1JSONRequestBody defines body for CreateAccessKeyV1 for application/json ContentType. +type CreateAccessKeyV1JSONRequestBody = CreateAccessKeyRequestV1 - return err -} +// UpdateAccessKeyByIdV1JSONRequestBody defines body for UpdateAccessKeyByIdV1 for application/json ContentType. +type UpdateAccessKeyByIdV1JSONRequestBody = UpdateAccessKeyRequestV1 -// AsCreateChronicleIntegrationConnInfoV2 returns the union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as a CreateChronicleIntegrationConnInfoV2 -func (t CreateChronicleIntegrationRequest_ConnectionInfo) AsCreateChronicleIntegrationConnInfoV2() (CreateChronicleIntegrationConnInfoV2, error) { - var body CreateChronicleIntegrationConnInfoV2 - err := json.Unmarshal(t.union, &body) - return body, err -} +// UpdateCaptureStorageConfigurationV1JSONRequestBody defines body for UpdateCaptureStorageConfigurationV1 for application/json ContentType. +type UpdateCaptureStorageConfigurationV1JSONRequestBody = SaveCaptureStorageConfigurationRequestV1 -// FromCreateChronicleIntegrationConnInfoV2 overwrites any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as the provided CreateChronicleIntegrationConnInfoV2 -func (t *CreateChronicleIntegrationRequest_ConnectionInfo) FromCreateChronicleIntegrationConnInfoV2(v CreateChronicleIntegrationConnInfoV2) error { - b, err := json.Marshal(v) - t.union = b - return err -} +// UpdateUserDeactivationConfigurationByIdV1JSONRequestBody defines body for UpdateUserDeactivationConfigurationByIdV1 for application/json ContentType. +type UpdateUserDeactivationConfigurationByIdV1JSONRequestBody = UpdateUserDeactivationConfigurationRequestV1 -// MergeCreateChronicleIntegrationConnInfoV2 performs a merge with any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo, using the provided CreateChronicleIntegrationConnInfoV2 -func (t *CreateChronicleIntegrationRequest_ConnectionInfo) MergeCreateChronicleIntegrationConnInfoV2(v CreateChronicleIntegrationConnInfoV2) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// UpdateGlobalSsoSettingsV1JSONRequestBody defines body for UpdateGlobalSsoSettingsV1 for application/json ContentType. +type UpdateGlobalSsoSettingsV1JSONRequestBody = GlobalSsoSettingsRequestV1 - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// CreateGroupMappingV1JSONRequestBody defines body for CreateGroupMappingV1 for application/json ContentType. +type CreateGroupMappingV1JSONRequestBody = CreateGroupMappingRequestV1 -// AsCreateChronicleIntegrationConnInfo returns the union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as a CreateChronicleIntegrationConnInfo -func (t CreateChronicleIntegrationRequest_ConnectionInfo) AsCreateChronicleIntegrationConnInfo() (CreateChronicleIntegrationConnInfo, error) { - var body CreateChronicleIntegrationConnInfo - err := json.Unmarshal(t.union, &body) - return body, err -} +// SaveGroupMappingSettingsV1JSONRequestBody defines body for SaveGroupMappingSettingsV1 for application/json ContentType. +type SaveGroupMappingSettingsV1JSONRequestBody = GroupMappingSettingsV1 -// FromCreateChronicleIntegrationConnInfo overwrites any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as the provided CreateChronicleIntegrationConnInfo -func (t *CreateChronicleIntegrationRequest_ConnectionInfo) FromCreateChronicleIntegrationConnInfo(v CreateChronicleIntegrationConnInfo) error { - b, err := json.Marshal(v) - t.union = b - return err -} +// UpdateGroupMappingByIdV1JSONRequestBody defines body for UpdateGroupMappingByIdV1 for application/json ContentType. +type UpdateGroupMappingByIdV1JSONRequestBody = UpdateGroupMappingRequestV1 -// MergeCreateChronicleIntegrationConnInfo performs a merge with any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo, using the provided CreateChronicleIntegrationConnInfo -func (t *CreateChronicleIntegrationRequest_ConnectionInfo) MergeCreateChronicleIntegrationConnInfo(v CreateChronicleIntegrationConnInfo) error { - b, err := json.Marshal(v) - if err != nil { - return err - } +// CreateIpFilterV1JSONRequestBody defines body for CreateIpFilterV1 for application/json ContentType. +type CreateIpFilterV1JSONRequestBody = CreateIpFilterV1 - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} +// SaveIpFiltersSettingsV1JSONRequestBody defines body for SaveIpFiltersSettingsV1 for application/json ContentType. +type SaveIpFiltersSettingsV1JSONRequestBody = IpFiltersSettingsV1 -func (t CreateChronicleIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} +// UpdateIpFilterV1JSONRequestBody defines body for UpdateIpFilterV1 for application/json ContentType. +type UpdateIpFilterV1JSONRequestBody = UpdateIpFilterV1 -func (t *CreateChronicleIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} +// CreateNotificationChannelJSONRequestBody defines body for CreateNotificationChannel for application/json ContentType. +type CreateNotificationChannelJSONRequestBody = CreateNotificationChannelRequestV1 -// AsCreateChronicleIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateChronicleIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateChronicleIntegrationRequest() (CreateChronicleIntegrationRequest, error) { - var body CreateChronicleIntegrationRequest +// UpdateNotificationChannelByIdJSONRequestBody defines body for UpdateNotificationChannelById for application/json ContentType. +type UpdateNotificationChannelByIdJSONRequestBody = UpdateNotificationChannelRequestV1 + +// CreateNotificationTemplateV1JSONRequestBody defines body for CreateNotificationTemplateV1 for application/json ContentType. +type CreateNotificationTemplateV1JSONRequestBody = CreateNotificationTemplateRequestV1 + +// UpdateNotificationTemplateByIdV1JSONRequestBody defines body for UpdateNotificationTemplateByIdV1 for application/json ContentType. +type UpdateNotificationTemplateByIdV1JSONRequestBody = UpdateNotificationTemplateRequestV1 + +// CreateRoleV1JSONRequestBody defines body for CreateRoleV1 for application/json ContentType. +type CreateRoleV1JSONRequestBody = RoleRequestV1 + +// UpdateRoleByIdV1JSONRequestBody defines body for UpdateRoleByIdV1 for application/json ContentType. +type UpdateRoleByIdV1JSONRequestBody = RoleRequestV1 + +// CreateGlobalServiceAccountV1JSONRequestBody defines body for CreateGlobalServiceAccountV1 for application/json ContentType. +type CreateGlobalServiceAccountV1JSONRequestBody = CreateGlobalServiceAccountRequestV1 + +// CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody defines body for CreateGlobalServiceAccountsNotificationSettingsV1 for application/json ContentType. +type CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody = CreateServiceAccountsNotificationSettingsRequestV1 + +// UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody defines body for UpdateGlobalServiceAccountsNotificationSettingsV1 for application/json ContentType. +type UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody = UpdateServiceAccountsNotificationSettingsRequestV1 + +// CreateSsoSettingsV1JSONRequestBody defines body for CreateSsoSettingsV1 for application/json ContentType. +type CreateSsoSettingsV1JSONRequestBody = CreateSsoSettingsRequestV1 + +// UpdateSsoSettingsByIdV1JSONRequestBody defines body for UpdateSsoSettingsByIdV1 for application/json ContentType. +type UpdateSsoSettingsByIdV1JSONRequestBody = UpdateSsoSettingsRequestV1 + +// CreateSystemSsoSettingsV1JSONRequestBody defines body for CreateSystemSsoSettingsV1 for application/json ContentType. +type CreateSystemSsoSettingsV1JSONRequestBody = CreateSsoSettingsRequestV1 + +// UpdateSystemSsoSettingsByIdV1JSONRequestBody defines body for UpdateSystemSsoSettingsByIdV1 for application/json ContentType. +type UpdateSystemSsoSettingsByIdV1JSONRequestBody = UpdateSsoSettingsRequestV1 + +// CreateTeamV1JSONRequestBody defines body for CreateTeamV1 for application/json ContentType. +type CreateTeamV1JSONRequestBody = CreateTeamRequestV1 + +// UpdateTeamByIdV1JSONRequestBody defines body for UpdateTeamByIdV1 for application/json ContentType. +type UpdateTeamByIdV1JSONRequestBody = UpdateTeamRequestV1 + +// CreateTeamServiceAccountV1JSONRequestBody defines body for CreateTeamServiceAccountV1 for application/json ContentType. +type CreateTeamServiceAccountV1JSONRequestBody = CreateTeamServiceAccountRequestV1 + +// CreateServiceAccountsNotificationSettingsV1JSONRequestBody defines body for CreateServiceAccountsNotificationSettingsV1 for application/json ContentType. +type CreateServiceAccountsNotificationSettingsV1JSONRequestBody = CreateServiceAccountsNotificationSettingsRequestV1 + +// UpdateServiceAccountsNotificationSettingsV1JSONRequestBody defines body for UpdateServiceAccountsNotificationSettingsV1 for application/json ContentType. +type UpdateServiceAccountsNotificationSettingsV1JSONRequestBody = UpdateServiceAccountsNotificationSettingsRequestV1 + +// SaveTeamUserV1JSONRequestBody defines body for SaveTeamUserV1 for application/json ContentType. +type SaveTeamUserV1JSONRequestBody = SaveTeamUserRequestV1 + +// CreateUserV1JSONRequestBody defines body for CreateUserV1 for application/json ContentType. +type CreateUserV1JSONRequestBody = CreateUserRequestV1 + +// UpdateUserV1JSONRequestBody defines body for UpdateUserV1 for application/json ContentType. +type UpdateUserV1JSONRequestBody = UpdateUserRequestV1 + +// CreateZoneV1JSONRequestBody defines body for CreateZoneV1 for application/json ContentType. +// +// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set +type CreateZoneV1JSONRequestBody = CreateZoneRequestV1 + +// EditZoneV1JSONRequestBody defines body for EditZoneV1 for application/json ContentType. +// +// 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 + +// EditZoneV2JSONRequestBody defines body for EditZoneV2 for application/json ContentType. +type EditZoneV2JSONRequestBody = CreateZoneRequestV2 + +// UploadCertificateV1MultipartRequestBody defines body for UploadCertificateV1 for multipart/form-data ContentType. +type UploadCertificateV1MultipartRequestBody = UploadCertificateRequest + +// CreateEFOIntegrationV1JSONRequestBody defines body for CreateEFOIntegrationV1 for application/json ContentType. +// +// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set +type CreateEFOIntegrationV1JSONRequestBody = CreateEfoIntegrationRequestV1 + +// UpdateEFOIntegrationByIdV1JSONRequestBody defines body for UpdateEFOIntegrationByIdV1 for application/json ContentType. +// +// Deprecated: this type has been marked as deprecated upstream, but no `x-deprecated-reason` was set +type UpdateEFOIntegrationByIdV1JSONRequestBody = UpdateEfoIntegrationRequestV1 + +// CreateEFOIntegrationV2JSONRequestBody defines body for CreateEFOIntegrationV2 for application/json ContentType. +type CreateEFOIntegrationV2JSONRequestBody = CreateIntegrationRequest + +// UpdateEFOIntegrationByIdV2JSONRequestBody defines body for UpdateEFOIntegrationByIdV2 for application/json ContentType. +type UpdateEFOIntegrationByIdV2JSONRequestBody = UpdateIntegrationRequest + +// SubmitActionExecutionv1JSONRequestBody defines body for SubmitActionExecutionv1 for application/json ContentType. +type SubmitActionExecutionv1JSONRequestBody = SubmitActionExecutionRequest + +// PostSecureVulnerabilityV1BundlesJSONRequestBody defines body for PostSecureVulnerabilityV1Bundles for application/json ContentType. +type PostSecureVulnerabilityV1BundlesJSONRequestBody = CreateBundleRequest + +// PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody defines body for PutSecureVulnerabilityV1BundlesBundleId for application/json ContentType. +type PutSecureVulnerabilityV1BundlesBundleIdJSONRequestBody = CreateBundleRequest + +// PostSecureVulnerabilityV1PoliciesJSONRequestBody defines body for PostSecureVulnerabilityV1Policies for application/json ContentType. +type PostSecureVulnerabilityV1PoliciesJSONRequestBody = CreatePolicyRequest + +// PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody defines body for PutSecureVulnerabilityV1PoliciesPolicyId for application/json ContentType. +type PutSecureVulnerabilityV1PoliciesPolicyIdJSONRequestBody = CreatePolicyRequest + +// PostAcceptedRiskV1JSONRequestBody defines body for PostAcceptedRiskV1 for application/json ContentType. +type PostAcceptedRiskV1JSONRequestBody = CreateRiskAcceptedRequest + +// UpdateAcceptedRiskV1JSONRequestBody defines body for UpdateAcceptedRiskV1 for application/json ContentType. +type UpdateAcceptedRiskV1JSONRequestBody = UpdateRiskAccepted + +// AsCaptureAction returns the union data inside the Action as a CaptureAction +func (t Action) AsCaptureAction() (CaptureAction, error) { + var body CaptureAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateChronicleIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateChronicleIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { +// FromCaptureAction overwrites any union data inside the Action as the provided CaptureAction +func (t *Action) FromCaptureAction(v CaptureAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"capture"}`)) t.union = b return err } -// MergeCreateChronicleIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateChronicleIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { +// MergeCaptureAction performs a merge with any union data inside the Action, using the provided CaptureAction +func (t *Action) MergeCaptureAction(v CaptureAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"capture"}`)) if err != nil { return err } @@ -22997,31 +25090,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateChronicleIntegrationRequest(v return err } -// AsCreateElasticsearchIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateElasticsearchIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateElasticsearchIntegrationRequest() (CreateElasticsearchIntegrationRequest, error) { - var body CreateElasticsearchIntegrationRequest +// AsContainerPausedAction returns the union data inside the Action as a ContainerPausedAction +func (t Action) AsContainerPausedAction() (ContainerPausedAction, error) { + var body ContainerPausedAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateElasticsearchIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateElasticsearchIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { +// FromContainerPausedAction overwrites any union data inside the Action as the provided ContainerPausedAction +func (t *Action) FromContainerPausedAction(v ContainerPausedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_paused"}`)) t.union = b return err } -// MergeCreateElasticsearchIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateElasticsearchIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { +// MergeContainerPausedAction performs a merge with any union data inside the Action, using the provided ContainerPausedAction +func (t *Action) MergeContainerPausedAction(v ContainerPausedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_paused"}`)) if err != nil { return err } @@ -23031,31 +25124,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateElasticsearchIntegrationReque return err } -// AsCreateGooglePubSubIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateGooglePubSubIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateGooglePubSubIntegrationRequest() (CreateGooglePubSubIntegrationRequest, error) { - var body CreateGooglePubSubIntegrationRequest +// AsContainerStoppedAction returns the union data inside the Action as a ContainerStoppedAction +func (t Action) AsContainerStoppedAction() (ContainerStoppedAction, error) { + var body ContainerStoppedAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateGooglePubSubIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateGooglePubSubIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { +// FromContainerStoppedAction overwrites any union data inside the Action as the provided ContainerStoppedAction +func (t *Action) FromContainerStoppedAction(v ContainerStoppedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_stopped"}`)) t.union = b return err } -// MergeCreateGooglePubSubIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateGooglePubSubIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { +// MergeContainerStoppedAction performs a merge with any union data inside the Action, using the provided ContainerStoppedAction +func (t *Action) MergeContainerStoppedAction(v ContainerStoppedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_stopped"}`)) if err != nil { return err } @@ -23065,31 +25158,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateGooglePubSubIntegrationReques return err } -// AsCreateKafkaIntegrationRequestV1 returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKafkaIntegrationRequestV1 -func (t CreateEfoIntegrationRequestV1) AsCreateKafkaIntegrationRequestV1() (CreateKafkaIntegrationRequestV1, error) { - var body CreateKafkaIntegrationRequestV1 +// AsContainerKilledAction returns the union data inside the Action as a ContainerKilledAction +func (t Action) AsContainerKilledAction() (ContainerKilledAction, error) { + var body ContainerKilledAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateKafkaIntegrationRequestV1 overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKafkaIntegrationRequestV1 -func (t *CreateEfoIntegrationRequestV1) FromCreateKafkaIntegrationRequestV1(v CreateKafkaIntegrationRequestV1) error { +// FromContainerKilledAction overwrites any union data inside the Action as the provided ContainerKilledAction +func (t *Action) FromContainerKilledAction(v ContainerKilledAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_killed"}`)) t.union = b return err } -// MergeCreateKafkaIntegrationRequestV1 performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKafkaIntegrationRequestV1 -func (t *CreateEfoIntegrationRequestV1) MergeCreateKafkaIntegrationRequestV1(v CreateKafkaIntegrationRequestV1) error { +// MergeContainerKilledAction performs a merge with any union data inside the Action, using the provided ContainerKilledAction +func (t *Action) MergeContainerKilledAction(v ContainerKilledAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"container_killed"}`)) if err != nil { return err } @@ -23099,31 +25192,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateKafkaIntegrationRequestV1(v C return err } -// AsCreateMcmIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateMcmIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateMcmIntegrationRequest() (CreateMcmIntegrationRequest, error) { - var body CreateMcmIntegrationRequest +// AsDriftPreventedAction returns the union data inside the Action as a DriftPreventedAction +func (t Action) AsDriftPreventedAction() (DriftPreventedAction, error) { + var body DriftPreventedAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateMcmIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateMcmIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { +// FromDriftPreventedAction overwrites any union data inside the Action as the provided DriftPreventedAction +func (t *Action) FromDriftPreventedAction(v DriftPreventedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"drift_prevented"}`)) t.union = b return err } -// MergeCreateMcmIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateMcmIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { +// MergeDriftPreventedAction performs a merge with any union data inside the Action, using the provided DriftPreventedAction +func (t *Action) MergeDriftPreventedAction(v DriftPreventedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"drift_prevented"}`)) if err != nil { return err } @@ -23133,31 +25226,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateMcmIntegrationRequest(v Creat return err } -// AsCreateQradarIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateQradarIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateQradarIntegrationRequest() (CreateQradarIntegrationRequest, error) { - var body CreateQradarIntegrationRequest +// AsMalwarePreventedAction returns the union data inside the Action as a MalwarePreventedAction +func (t Action) AsMalwarePreventedAction() (MalwarePreventedAction, error) { + var body MalwarePreventedAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateQradarIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateQradarIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { +// FromMalwarePreventedAction overwrites any union data inside the Action as the provided MalwarePreventedAction +func (t *Action) FromMalwarePreventedAction(v MalwarePreventedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"malware_prevented"}`)) t.union = b return err } -// MergeCreateQradarIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateQradarIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { +// MergeMalwarePreventedAction performs a merge with any union data inside the Action, using the provided MalwarePreventedAction +func (t *Action) MergeMalwarePreventedAction(v MalwarePreventedAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"malware_prevented"}`)) if err != nil { return err } @@ -23167,31 +25260,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateQradarIntegrationRequest(v Cr return err } -// AsCreateGoogleSccIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateGoogleSccIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateGoogleSccIntegrationRequest() (CreateGoogleSccIntegrationRequest, error) { - var body CreateGoogleSccIntegrationRequest +// AsProcessKilledAction returns the union data inside the Action as a ProcessKilledAction +func (t Action) AsProcessKilledAction() (ProcessKilledAction, error) { + var body ProcessKilledAction err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateGoogleSccIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateGoogleSccIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { +// FromProcessKilledAction overwrites any union data inside the Action as the provided ProcessKilledAction +func (t *Action) FromProcessKilledAction(v ProcessKilledAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"process_killed"}`)) t.union = b return err } -// MergeCreateGoogleSccIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateGoogleSccIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { +// MergeProcessKilledAction performs a merge with any union data inside the Action, using the provided ProcessKilledAction +func (t *Action) MergeProcessKilledAction(v ProcessKilledAction) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"process_killed"}`)) if err != nil { return err } @@ -23201,65 +25294,118 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateGoogleSccIntegrationRequest(v return err } -// AsCreateMicrosoftSentinelIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateMicrosoftSentinelIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateMicrosoftSentinelIntegrationRequest() (CreateMicrosoftSentinelIntegrationRequest, error) { - var body CreateMicrosoftSentinelIntegrationRequest - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCreateMicrosoftSentinelIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateMicrosoftSentinelIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { - b, err := json.Marshal(v) - if err != nil { - return err +func (t Action) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) - t.union = b - return err + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err } -// MergeCreateMicrosoftSentinelIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateMicrosoftSentinelIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) +func (t Action) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() if err != nil { - return err + return nil, err } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged + switch discriminator { + case "capture": + return t.AsCaptureAction() + case "container_killed": + return t.AsContainerKilledAction() + case "container_paused": + return t.AsContainerPausedAction() + case "container_stopped": + return t.AsContainerStoppedAction() + case "drift_prevented": + return t.AsDriftPreventedAction() + case "malware_prevented": + return t.AsMalwarePreventedAction() + case "process_killed": + return t.AsProcessKilledAction() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t Action) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *Action) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) return err } -// AsCreateSplunkIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateSplunkIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateSplunkIntegrationRequest() (CreateSplunkIntegrationRequest, error) { - var body CreateSplunkIntegrationRequest +// AsActionExecutionStringParameterValue returns the union data inside the ActionExecutionParameterValue as a ActionExecutionStringParameterValue +func (t ActionExecutionParameterValue) AsActionExecutionStringParameterValue() (ActionExecutionStringParameterValue, error) { + var body ActionExecutionStringParameterValue err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateSplunkIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateSplunkIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { +// FromActionExecutionStringParameterValue overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionStringParameterValue +func (t *ActionExecutionParameterValue) FromActionExecutionStringParameterValue(v ActionExecutionStringParameterValue) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeActionExecutionStringParameterValue performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionStringParameterValue +func (t *ActionExecutionParameterValue) MergeActionExecutionStringParameterValue(v ActionExecutionStringParameterValue) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsActionExecutionIntParameterValue returns the union data inside the ActionExecutionParameterValue as a ActionExecutionIntParameterValue +func (t ActionExecutionParameterValue) AsActionExecutionIntParameterValue() (ActionExecutionIntParameterValue, error) { + var body ActionExecutionIntParameterValue + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromActionExecutionIntParameterValue overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionIntParameterValue +func (t *ActionExecutionParameterValue) FromActionExecutionIntParameterValue(v ActionExecutionIntParameterValue) error { + b, err := json.Marshal(v) t.union = b return err } -// MergeCreateSplunkIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateSplunkIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { +// MergeActionExecutionIntParameterValue performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionIntParameterValue +func (t *ActionExecutionParameterValue) MergeActionExecutionIntParameterValue(v ActionExecutionIntParameterValue) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsActionExecutionParameterValue2 returns the union data inside the ActionExecutionParameterValue as a ActionExecutionParameterValue2 +func (t ActionExecutionParameterValue) AsActionExecutionParameterValue2() (ActionExecutionParameterValue2, error) { + var body ActionExecutionParameterValue2 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromActionExecutionParameterValue2 overwrites any union data inside the ActionExecutionParameterValue as the provided ActionExecutionParameterValue2 +func (t *ActionExecutionParameterValue) FromActionExecutionParameterValue2(v ActionExecutionParameterValue2) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeActionExecutionParameterValue2 performs a merge with any union data inside the ActionExecutionParameterValue, using the provided ActionExecutionParameterValue2 +func (t *ActionExecutionParameterValue) MergeActionExecutionParameterValue2(v ActionExecutionParameterValue2) error { + b, err := json.Marshal(v) if err != nil { return err } @@ -23269,31 +25415,41 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateSplunkIntegrationRequest(v Cr return err } -// AsCreateSyslogIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateSyslogIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateSyslogIntegrationRequest() (CreateSyslogIntegrationRequest, error) { - var body CreateSyslogIntegrationRequest +func (t ActionExecutionParameterValue) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *ActionExecutionParameterValue) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsApiGraphUnion returns the union data inside the ApiGraphDefinition as a ApiGraphUnion +func (t ApiGraphDefinition) AsApiGraphUnion() (ApiGraphUnion, error) { + var body ApiGraphUnion err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateSyslogIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateSyslogIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { +// FromApiGraphUnion overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphUnion +func (t *ApiGraphDefinition) FromApiGraphUnion(v ApiGraphUnion) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Union"}`)) t.union = b return err } -// MergeCreateSyslogIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateSyslogIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { +// MergeApiGraphUnion performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphUnion +func (t *ApiGraphDefinition) MergeApiGraphUnion(v ApiGraphUnion) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Union"}`)) if err != nil { return err } @@ -23303,31 +25459,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateSyslogIntegrationRequest(v Cr return err } -// AsCreateAmazonSqsIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateAmazonSqsIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateAmazonSqsIntegrationRequest() (CreateAmazonSqsIntegrationRequest, error) { - var body CreateAmazonSqsIntegrationRequest +// AsApiGraphQuery returns the union data inside the ApiGraphDefinition as a ApiGraphQuery +func (t ApiGraphDefinition) AsApiGraphQuery() (ApiGraphQuery, error) { + var body ApiGraphQuery err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateAmazonSqsIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateAmazonSqsIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { +// FromApiGraphQuery overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphQuery +func (t *ApiGraphDefinition) FromApiGraphQuery(v ApiGraphQuery) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Query"}`)) t.union = b return err } -// MergeCreateAmazonSqsIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateAmazonSqsIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { +// MergeApiGraphQuery performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphQuery +func (t *ApiGraphDefinition) MergeApiGraphQuery(v ApiGraphQuery) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Query"}`)) if err != nil { return err } @@ -23337,31 +25493,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateAmazonSqsIntegrationRequest(v return err } -// AsCreateWebhookIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateWebhookIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateWebhookIntegrationRequest() (CreateWebhookIntegrationRequest, error) { - var body CreateWebhookIntegrationRequest +// AsApiGraphEntity returns the union data inside the ApiGraphDefinition as a ApiGraphEntity +func (t ApiGraphDefinition) AsApiGraphEntity() (ApiGraphEntity, error) { + var body ApiGraphEntity err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateWebhookIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateWebhookIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { +// FromApiGraphEntity overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphEntity +func (t *ApiGraphDefinition) FromApiGraphEntity(v ApiGraphEntity) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Entity"}`)) t.union = b return err } -// MergeCreateWebhookIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateWebhookIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { +// MergeApiGraphEntity performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphEntity +func (t *ApiGraphDefinition) MergeApiGraphEntity(v ApiGraphEntity) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Entity"}`)) if err != nil { return err } @@ -23371,31 +25527,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateWebhookIntegrationRequest(v C return err } -// AsCreateKinesisDataStreamsIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKinesisDataStreamsIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateKinesisDataStreamsIntegrationRequest() (CreateKinesisDataStreamsIntegrationRequest, error) { - var body CreateKinesisDataStreamsIntegrationRequest +// AsApiGraphField returns the union data inside the ApiGraphDefinition as a ApiGraphField +func (t ApiGraphDefinition) AsApiGraphField() (ApiGraphField, error) { + var body ApiGraphField err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateKinesisDataStreamsIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKinesisDataStreamsIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { +// FromApiGraphField overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphField +func (t *ApiGraphDefinition) FromApiGraphField(v ApiGraphField) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Field"}`)) t.union = b return err } -// MergeCreateKinesisDataStreamsIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKinesisDataStreamsIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { +// MergeApiGraphField performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphField +func (t *ApiGraphDefinition) MergeApiGraphField(v ApiGraphField) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Field"}`)) if err != nil { return err } @@ -23405,31 +25561,31 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisDataStreamsIntegration return err } -// AsCreateKinesisFirehoseIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKinesisFirehoseIntegrationRequest -func (t CreateEfoIntegrationRequestV1) AsCreateKinesisFirehoseIntegrationRequest() (CreateKinesisFirehoseIntegrationRequest, error) { - var body CreateKinesisFirehoseIntegrationRequest +// AsApiGraphRelationship returns the union data inside the ApiGraphDefinition as a ApiGraphRelationship +func (t ApiGraphDefinition) AsApiGraphRelationship() (ApiGraphRelationship, error) { + var body ApiGraphRelationship err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateKinesisFirehoseIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKinesisFirehoseIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) FromCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { +// FromApiGraphRelationship overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphRelationship +func (t *ApiGraphDefinition) FromApiGraphRelationship(v ApiGraphRelationship) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Relationship"}`)) t.union = b return err } -// MergeCreateKinesisFirehoseIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKinesisFirehoseIntegrationRequest -func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { +// MergeApiGraphRelationship performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphRelationship +func (t *ApiGraphDefinition) MergeApiGraphRelationship(v ApiGraphRelationship) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Relationship"}`)) if err != nil { return err } @@ -23439,79 +25595,97 @@ func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisFirehoseIntegrationReq return err } -func (t CreateEfoIntegrationRequestV1) Discriminator() (string, error) { +// AsApiGraphFunction returns the union data inside the ApiGraphDefinition as a ApiGraphFunction +func (t ApiGraphDefinition) AsApiGraphFunction() (ApiGraphFunction, error) { + var body ApiGraphFunction + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromApiGraphFunction overwrites any union data inside the ApiGraphDefinition as the provided ApiGraphFunction +func (t *ApiGraphDefinition) FromApiGraphFunction(v ApiGraphFunction) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Function"}`)) + t.union = b + return err +} + +// MergeApiGraphFunction performs a merge with any union data inside the ApiGraphDefinition, using the provided ApiGraphFunction +func (t *ApiGraphDefinition) MergeApiGraphFunction(v ApiGraphFunction) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"def_type":"Function"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t ApiGraphDefinition) Discriminator() (string, error) { var discriminator struct { - Discriminator string `json:"type"` + Discriminator string `json:"def_type"` } err := json.Unmarshal(t.union, &discriminator) return discriminator.Discriminator, err } -func (t CreateEfoIntegrationRequestV1) ValueByDiscriminator() (interface{}, error) { +func (t ApiGraphDefinition) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { - case "CHRONICLE": - return t.AsCreateChronicleIntegrationRequest() - case "ELASTIC": - return t.AsCreateElasticsearchIntegrationRequest() - case "KAFKA": - return t.AsCreateKafkaIntegrationRequestV1() - case "KINESIS_DATA_STREAMS": - return t.AsCreateKinesisDataStreamsIntegrationRequest() - case "KINESIS_FIREHOSE": - return t.AsCreateKinesisFirehoseIntegrationRequest() - case "MCM": - return t.AsCreateMcmIntegrationRequest() - case "PUBSUB": - return t.AsCreateGooglePubSubIntegrationRequest() - case "QRADAR": - return t.AsCreateQradarIntegrationRequest() - case "SCC": - return t.AsCreateGoogleSccIntegrationRequest() - case "SENTINEL": - return t.AsCreateMicrosoftSentinelIntegrationRequest() - case "SPLUNK": - return t.AsCreateSplunkIntegrationRequest() - case "SQS": - return t.AsCreateAmazonSqsIntegrationRequest() - case "SYSLOG": - return t.AsCreateSyslogIntegrationRequest() - case "WEBHOOK": - return t.AsCreateWebhookIntegrationRequest() + case "Entity": + return t.AsApiGraphEntity() + case "Field": + return t.AsApiGraphField() + case "Function": + return t.AsApiGraphFunction() + case "Query": + return t.AsApiGraphQuery() + case "Relationship": + return t.AsApiGraphRelationship() + case "Union": + return t.AsApiGraphUnion() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } -func (t CreateEfoIntegrationRequestV1) MarshalJSON() ([]byte, error) { +func (t ApiGraphDefinition) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *CreateEfoIntegrationRequestV1) UnmarshalJSON(b []byte) error { +func (t *ApiGraphDefinition) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsBaseConnectionInfoElasticsearch returns the union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as a BaseConnectionInfoElasticsearch -func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoElasticsearch() (BaseConnectionInfoElasticsearch, error) { - var body BaseConnectionInfoElasticsearch +// AsKafkaPlaintextV1 returns the union data inside the AuthenticatedConnectionInfoKafkaV1 as a KafkaPlaintextV1 +func (t AuthenticatedConnectionInfoKafkaV1) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { + var body KafkaPlaintextV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoElasticsearch overwrites any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoElasticsearch -func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoElasticsearch(v BaseConnectionInfoElasticsearch) error { +// FromKafkaPlaintextV1 overwrites any union data inside the AuthenticatedConnectionInfoKafkaV1 as the provided KafkaPlaintextV1 +func (t *AuthenticatedConnectionInfoKafkaV1) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { b, err := json.Marshal(v) t.union = b return err } -// MergeBaseConnectionInfoElasticsearch performs a merge with any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoElasticsearch -func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoElasticsearch(v BaseConnectionInfoElasticsearch) error { +// MergeKafkaPlaintextV1 performs a merge with any union data inside the AuthenticatedConnectionInfoKafkaV1, using the provided KafkaPlaintextV1 +func (t *AuthenticatedConnectionInfoKafkaV1) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -23522,22 +25696,22 @@ func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeBaseConnecti return err } -// AsAuthenticatedConnectionInfoElasticsearch returns the union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as a AuthenticatedConnectionInfoElasticsearch -func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) AsAuthenticatedConnectionInfoElasticsearch() (AuthenticatedConnectionInfoElasticsearch, error) { - var body AuthenticatedConnectionInfoElasticsearch +// AsKafkaTlsEncryptedV1 returns the union data inside the AuthenticatedConnectionInfoKafkaV1 as a KafkaTlsEncryptedV1 +func (t AuthenticatedConnectionInfoKafkaV1) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { + var body KafkaTlsEncryptedV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromAuthenticatedConnectionInfoElasticsearch overwrites any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as the provided AuthenticatedConnectionInfoElasticsearch -func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) FromAuthenticatedConnectionInfoElasticsearch(v AuthenticatedConnectionInfoElasticsearch) error { +// FromKafkaTlsEncryptedV1 overwrites any union data inside the AuthenticatedConnectionInfoKafkaV1 as the provided KafkaTlsEncryptedV1 +func (t *AuthenticatedConnectionInfoKafkaV1) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { b, err := json.Marshal(v) t.union = b return err } -// MergeAuthenticatedConnectionInfoElasticsearch performs a merge with any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo, using the provided AuthenticatedConnectionInfoElasticsearch -func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeAuthenticatedConnectionInfoElasticsearch(v AuthenticatedConnectionInfoElasticsearch) error { +// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the AuthenticatedConnectionInfoKafkaV1, using the provided KafkaTlsEncryptedV1 +func (t *AuthenticatedConnectionInfoKafkaV1) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -23548,75 +25722,190 @@ func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeAuthenticate return err } -func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { +func (t AuthenticatedConnectionInfoKafkaV1) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() - return b, err -} + 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 + } + } -func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) + } -// AsCreateChronicleIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateChronicleIntegrationRequest -func (t CreateIntegrationRequest) AsCreateChronicleIntegrationRequest() (CreateChronicleIntegrationRequest, error) { - var body CreateChronicleIntegrationRequest - err := json.Unmarshal(t.union, &body) - return body, err -} + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } -// FromCreateChronicleIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateChronicleIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { - b, err := json.Marshal(v) + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["keytab"], err = json.Marshal(t.Keytab) if err != nil { - return err + return nil, fmt.Errorf("error marshaling 'keytab': %w", err) } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) - t.union = b - return err + + object["krb5"], err = json.Marshal(t.Krb5) + if err != nil { + return nil, fmt.Errorf("error marshaling 'krb5': %w", err) + } + + object["principal"], err = json.Marshal(t.Principal) + if err != nil { + return nil, fmt.Errorf("error marshaling 'principal': %w", err) + } + + object["realm"], err = json.Marshal(t.Realm) + if err != nil { + return nil, fmt.Errorf("error marshaling 'realm': %w", err) + } + + object["service"], err = json.Marshal(t.Service) + if err != nil { + return nil, fmt.Errorf("error marshaling 'service': %w", err) + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + b, err = json.Marshal(object) + return b, err } -// MergeCreateChronicleIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateChronicleIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { - b, err := json.Marshal(v) +func (t *AuthenticatedConnectionInfoKafkaV1) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) if err != nil { return err } - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged + if raw, found := object["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) + if err != nil { + return fmt.Errorf("error reading 'auth': %w", err) + } + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["keytab"]; found { + err = json.Unmarshal(raw, &t.Keytab) + if err != nil { + return fmt.Errorf("error reading 'keytab': %w", err) + } + } + + if raw, found := object["krb5"]; found { + err = json.Unmarshal(raw, &t.Krb5) + if err != nil { + return fmt.Errorf("error reading 'krb5': %w", err) + } + } + + if raw, found := object["principal"]; found { + err = json.Unmarshal(raw, &t.Principal) + if err != nil { + return fmt.Errorf("error reading 'principal': %w", err) + } + } + + if raw, found := object["realm"]; found { + err = json.Unmarshal(raw, &t.Realm) + if err != nil { + return fmt.Errorf("error reading 'realm': %w", err) + } + } + + if raw, found := object["service"]; found { + err = json.Unmarshal(raw, &t.Service) + if err != nil { + return fmt.Errorf("error reading 'service': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + return err } -// AsCreateElasticsearchIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateElasticsearchIntegrationRequest -func (t CreateIntegrationRequest) AsCreateElasticsearchIntegrationRequest() (CreateElasticsearchIntegrationRequest, error) { - var body CreateElasticsearchIntegrationRequest +// 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 } -// FromCreateElasticsearchIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateElasticsearchIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { +// 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":"ELASTIC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"action"}`)) t.union = b return err } -// MergeCreateElasticsearchIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateElasticsearchIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { +// 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":"ELASTIC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"action"}`)) if err != nil { return err } @@ -23626,31 +25915,33 @@ func (t *CreateIntegrationRequest) MergeCreateElasticsearchIntegrationRequest(v return err } -// AsCreateGooglePubSubIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateGooglePubSubIntegrationRequest -func (t CreateIntegrationRequest) AsCreateGooglePubSubIntegrationRequest() (CreateGooglePubSubIntegrationRequest, error) { - var body CreateGooglePubSubIntegrationRequest +// 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 } -// FromCreateGooglePubSubIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateGooglePubSubIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { +// 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":"PUBSUB"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"condition"}`)) t.union = b return err } -// MergeCreateGooglePubSubIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateGooglePubSubIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { +// 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":"PUBSUB"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"condition"}`)) if err != nil { return err } @@ -23660,65 +25951,226 @@ func (t *CreateIntegrationRequest) MergeCreateGooglePubSubIntegrationRequest(v C return err } -// AsCreateKafkaIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKafkaIntegrationRequest -func (t CreateIntegrationRequest) AsCreateKafkaIntegrationRequest() (CreateKafkaIntegrationRequest, error) { - var body CreateKafkaIntegrationRequest - err := json.Unmarshal(t.union, &body) - return body, err -} +func (t AutomationNodeV1Alpha1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} -// FromCreateKafkaIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKafkaIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateKafkaIntegrationRequest(v CreateKafkaIntegrationRequest) error { - b, err := json.Marshal(v) +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 } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + 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 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaPlaintext overwrites any union data inside the BaseConnectionInfoKafka as the provided KafkaPlaintext +func (t *BaseConnectionInfoKafka) FromKafkaPlaintext(v KafkaPlaintext) error { + b, err := json.Marshal(v) t.union = b return err } -// MergeCreateKafkaIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKafkaIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateKafkaIntegrationRequest(v CreateKafkaIntegrationRequest) error { +// MergeKafkaPlaintext performs a merge with any union data inside the BaseConnectionInfoKafka, using the provided KafkaPlaintext +func (t *BaseConnectionInfoKafka) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsCreateMcmIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateMcmIntegrationRequest -func (t CreateIntegrationRequest) AsCreateMcmIntegrationRequest() (CreateMcmIntegrationRequest, error) { - var body CreateMcmIntegrationRequest +// AsKafkaTlsEncrypted returns the union data inside the BaseConnectionInfoKafka as a KafkaTlsEncrypted +func (t BaseConnectionInfoKafka) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { + var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateMcmIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateMcmIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { +// FromKafkaTlsEncrypted overwrites any union data inside the BaseConnectionInfoKafka as the provided KafkaTlsEncrypted +func (t *BaseConnectionInfoKafka) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaTlsEncrypted performs a merge with any union data inside the BaseConnectionInfoKafka, using the provided KafkaTlsEncrypted +func (t *BaseConnectionInfoKafka) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) - t.union = b + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// MergeCreateMcmIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateMcmIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { - b, err := json.Marshal(v) +func (t BaseConnectionInfoKafka) 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 + } + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *BaseConnectionInfoKafka) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + object := make(map[string]json.RawMessage) + err = json.Unmarshal(b, &object) + if err != nil { + return err + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + return err +} + +// AsKafkaPlaintextV1 returns the union data inside the BaseConnectionInfoKafkaV1 as a KafkaPlaintextV1 +func (t BaseConnectionInfoKafkaV1) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { + var body KafkaPlaintextV1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaPlaintextV1 overwrites any union data inside the BaseConnectionInfoKafkaV1 as the provided KafkaPlaintextV1 +func (t *BaseConnectionInfoKafkaV1) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaPlaintextV1 performs a merge with any union data inside the BaseConnectionInfoKafkaV1, using the provided KafkaPlaintextV1 +func (t *BaseConnectionInfoKafkaV1) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { + b, err := json.Marshal(v) if err != nil { return err } @@ -23728,31 +26180,160 @@ func (t *CreateIntegrationRequest) MergeCreateMcmIntegrationRequest(v CreateMcmI return err } -// AsCreateQradarIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateQradarIntegrationRequest -func (t CreateIntegrationRequest) AsCreateQradarIntegrationRequest() (CreateQradarIntegrationRequest, error) { - var body CreateQradarIntegrationRequest +// AsKafkaTlsEncryptedV1 returns the union data inside the BaseConnectionInfoKafkaV1 as a KafkaTlsEncryptedV1 +func (t BaseConnectionInfoKafkaV1) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { + var body KafkaTlsEncryptedV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateQradarIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateQradarIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { +// FromKafkaTlsEncryptedV1 overwrites any union data inside the BaseConnectionInfoKafkaV1 as the provided KafkaTlsEncryptedV1 +func (t *BaseConnectionInfoKafkaV1) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the BaseConnectionInfoKafkaV1, using the provided KafkaTlsEncryptedV1 +func (t *BaseConnectionInfoKafkaV1) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t BaseConnectionInfoKafkaV1) 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 + } + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *BaseConnectionInfoKafkaV1) 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["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + return err +} + +// AsCreateChronicleIntegrationConnInfoV2 returns the union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as a CreateChronicleIntegrationConnInfoV2 +func (t CreateChronicleIntegrationRequest_ConnectionInfo) AsCreateChronicleIntegrationConnInfoV2() (CreateChronicleIntegrationConnInfoV2, error) { + var body CreateChronicleIntegrationConnInfoV2 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCreateChronicleIntegrationConnInfoV2 overwrites any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as the provided CreateChronicleIntegrationConnInfoV2 +func (t *CreateChronicleIntegrationRequest_ConnectionInfo) FromCreateChronicleIntegrationConnInfoV2(v CreateChronicleIntegrationConnInfoV2) error { + b, err := json.Marshal(v) t.union = b return err } -// MergeCreateQradarIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateQradarIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { +// MergeCreateChronicleIntegrationConnInfoV2 performs a merge with any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo, using the provided CreateChronicleIntegrationConnInfoV2 +func (t *CreateChronicleIntegrationRequest_ConnectionInfo) MergeCreateChronicleIntegrationConnInfoV2(v CreateChronicleIntegrationConnInfoV2) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCreateChronicleIntegrationConnInfo returns the union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as a CreateChronicleIntegrationConnInfo +func (t CreateChronicleIntegrationRequest_ConnectionInfo) AsCreateChronicleIntegrationConnInfo() (CreateChronicleIntegrationConnInfo, error) { + var body CreateChronicleIntegrationConnInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCreateChronicleIntegrationConnInfo overwrites any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo as the provided CreateChronicleIntegrationConnInfo +func (t *CreateChronicleIntegrationRequest_ConnectionInfo) FromCreateChronicleIntegrationConnInfo(v CreateChronicleIntegrationConnInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCreateChronicleIntegrationConnInfo performs a merge with any union data inside the CreateChronicleIntegrationRequest_ConnectionInfo, using the provided CreateChronicleIntegrationConnInfo +func (t *CreateChronicleIntegrationRequest_ConnectionInfo) MergeCreateChronicleIntegrationConnInfo(v CreateChronicleIntegrationConnInfo) error { + b, err := json.Marshal(v) if err != nil { return err } @@ -23762,31 +26343,41 @@ func (t *CreateIntegrationRequest) MergeCreateQradarIntegrationRequest(v CreateQ return err } -// AsCreateGoogleSccIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateGoogleSccIntegrationRequest -func (t CreateIntegrationRequest) AsCreateGoogleSccIntegrationRequest() (CreateGoogleSccIntegrationRequest, error) { - var body CreateGoogleSccIntegrationRequest +func (t CreateChronicleIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CreateChronicleIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsCreateChronicleIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateChronicleIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateChronicleIntegrationRequest() (CreateChronicleIntegrationRequest, error) { + var body CreateChronicleIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateGoogleSccIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateGoogleSccIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { +// FromCreateChronicleIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateChronicleIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) t.union = b return err } -// MergeCreateGoogleSccIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateGoogleSccIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { +// MergeCreateChronicleIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateChronicleIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) if err != nil { return err } @@ -23796,31 +26387,31 @@ func (t *CreateIntegrationRequest) MergeCreateGoogleSccIntegrationRequest(v Crea return err } -// AsCreateMicrosoftSentinelIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateMicrosoftSentinelIntegrationRequest -func (t CreateIntegrationRequest) AsCreateMicrosoftSentinelIntegrationRequest() (CreateMicrosoftSentinelIntegrationRequest, error) { - var body CreateMicrosoftSentinelIntegrationRequest +// AsCreateElasticsearchIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateElasticsearchIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateElasticsearchIntegrationRequest() (CreateElasticsearchIntegrationRequest, error) { + var body CreateElasticsearchIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateMicrosoftSentinelIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateMicrosoftSentinelIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { +// FromCreateElasticsearchIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateElasticsearchIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) t.union = b return err } -// MergeCreateMicrosoftSentinelIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateMicrosoftSentinelIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { +// MergeCreateElasticsearchIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateElasticsearchIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) if err != nil { return err } @@ -23830,31 +26421,31 @@ func (t *CreateIntegrationRequest) MergeCreateMicrosoftSentinelIntegrationReques return err } -// AsCreateSplunkIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateSplunkIntegrationRequest -func (t CreateIntegrationRequest) AsCreateSplunkIntegrationRequest() (CreateSplunkIntegrationRequest, error) { - var body CreateSplunkIntegrationRequest +// AsCreateGooglePubSubIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateGooglePubSubIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateGooglePubSubIntegrationRequest() (CreateGooglePubSubIntegrationRequest, error) { + var body CreateGooglePubSubIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateSplunkIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateSplunkIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { +// FromCreateGooglePubSubIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateGooglePubSubIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) t.union = b return err } -// MergeCreateSplunkIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateSplunkIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { +// MergeCreateGooglePubSubIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateGooglePubSubIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) if err != nil { return err } @@ -23864,31 +26455,31 @@ func (t *CreateIntegrationRequest) MergeCreateSplunkIntegrationRequest(v CreateS return err } -// AsCreateSyslogIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateSyslogIntegrationRequest -func (t CreateIntegrationRequest) AsCreateSyslogIntegrationRequest() (CreateSyslogIntegrationRequest, error) { - var body CreateSyslogIntegrationRequest +// AsCreateKafkaIntegrationRequestV1 returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKafkaIntegrationRequestV1 +func (t CreateEfoIntegrationRequestV1) AsCreateKafkaIntegrationRequestV1() (CreateKafkaIntegrationRequestV1, error) { + var body CreateKafkaIntegrationRequestV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateSyslogIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateSyslogIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { +// FromCreateKafkaIntegrationRequestV1 overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKafkaIntegrationRequestV1 +func (t *CreateEfoIntegrationRequestV1) FromCreateKafkaIntegrationRequestV1(v CreateKafkaIntegrationRequestV1) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) t.union = b return err } -// MergeCreateSyslogIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateSyslogIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { +// MergeCreateKafkaIntegrationRequestV1 performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKafkaIntegrationRequestV1 +func (t *CreateEfoIntegrationRequestV1) MergeCreateKafkaIntegrationRequestV1(v CreateKafkaIntegrationRequestV1) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) if err != nil { return err } @@ -23898,31 +26489,31 @@ func (t *CreateIntegrationRequest) MergeCreateSyslogIntegrationRequest(v CreateS return err } -// AsCreateAmazonSqsIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateAmazonSqsIntegrationRequest -func (t CreateIntegrationRequest) AsCreateAmazonSqsIntegrationRequest() (CreateAmazonSqsIntegrationRequest, error) { - var body CreateAmazonSqsIntegrationRequest +// AsCreateMcmIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateMcmIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateMcmIntegrationRequest() (CreateMcmIntegrationRequest, error) { + var body CreateMcmIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateAmazonSqsIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateAmazonSqsIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { +// FromCreateMcmIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateMcmIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) t.union = b return err } -// MergeCreateAmazonSqsIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateAmazonSqsIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { +// MergeCreateMcmIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateMcmIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) if err != nil { return err } @@ -23932,31 +26523,31 @@ func (t *CreateIntegrationRequest) MergeCreateAmazonSqsIntegrationRequest(v Crea return err } -// AsCreateWebhookIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateWebhookIntegrationRequest -func (t CreateIntegrationRequest) AsCreateWebhookIntegrationRequest() (CreateWebhookIntegrationRequest, error) { - var body CreateWebhookIntegrationRequest +// AsCreateQradarIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateQradarIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateQradarIntegrationRequest() (CreateQradarIntegrationRequest, error) { + var body CreateQradarIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateWebhookIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateWebhookIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { +// FromCreateQradarIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateQradarIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) t.union = b return err } -// MergeCreateWebhookIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateWebhookIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { +// MergeCreateQradarIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateQradarIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) if err != nil { return err } @@ -23966,31 +26557,31 @@ func (t *CreateIntegrationRequest) MergeCreateWebhookIntegrationRequest(v Create return err } -// AsCreateKinesisDataStreamsIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKinesisDataStreamsIntegrationRequest -func (t CreateIntegrationRequest) AsCreateKinesisDataStreamsIntegrationRequest() (CreateKinesisDataStreamsIntegrationRequest, error) { - var body CreateKinesisDataStreamsIntegrationRequest +// AsCreateGoogleSccIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateGoogleSccIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateGoogleSccIntegrationRequest() (CreateGoogleSccIntegrationRequest, error) { + var body CreateGoogleSccIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateKinesisDataStreamsIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKinesisDataStreamsIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { +// FromCreateGoogleSccIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateGoogleSccIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) t.union = b return err } -// MergeCreateKinesisDataStreamsIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKinesisDataStreamsIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { +// MergeCreateGoogleSccIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateGoogleSccIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) if err != nil { return err } @@ -24000,31 +26591,31 @@ func (t *CreateIntegrationRequest) MergeCreateKinesisDataStreamsIntegrationReque return err } -// AsCreateKinesisFirehoseIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKinesisFirehoseIntegrationRequest -func (t CreateIntegrationRequest) AsCreateKinesisFirehoseIntegrationRequest() (CreateKinesisFirehoseIntegrationRequest, error) { - var body CreateKinesisFirehoseIntegrationRequest +// AsCreateMicrosoftSentinelIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateMicrosoftSentinelIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateMicrosoftSentinelIntegrationRequest() (CreateMicrosoftSentinelIntegrationRequest, error) { + var body CreateMicrosoftSentinelIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromCreateKinesisFirehoseIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKinesisFirehoseIntegrationRequest -func (t *CreateIntegrationRequest) FromCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { +// FromCreateMicrosoftSentinelIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateMicrosoftSentinelIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) t.union = b return err } -// MergeCreateKinesisFirehoseIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKinesisFirehoseIntegrationRequest -func (t *CreateIntegrationRequest) MergeCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { +// MergeCreateMicrosoftSentinelIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateMicrosoftSentinelIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) if err != nil { return err } @@ -24034,203 +26625,283 @@ func (t *CreateIntegrationRequest) MergeCreateKinesisFirehoseIntegrationRequest( return err } -func (t CreateIntegrationRequest) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err +// AsCreateSplunkIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateSplunkIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateSplunkIntegrationRequest() (CreateSplunkIntegrationRequest, error) { + var body CreateSplunkIntegrationRequest + err := json.Unmarshal(t.union, &body) + return body, err } -func (t CreateIntegrationRequest) ValueByDiscriminator() (interface{}, error) { - discriminator, err := t.Discriminator() +// FromCreateSplunkIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateSplunkIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { + b, err := json.Marshal(v) if err != nil { - return nil, err - } - switch discriminator { - case "CHRONICLE": - return t.AsCreateChronicleIntegrationRequest() - case "ELASTIC": - return t.AsCreateElasticsearchIntegrationRequest() - case "KAFKA": - return t.AsCreateKafkaIntegrationRequest() - case "KINESIS_DATA_STREAMS": - return t.AsCreateKinesisDataStreamsIntegrationRequest() - case "KINESIS_FIREHOSE": - return t.AsCreateKinesisFirehoseIntegrationRequest() - case "MCM": - return t.AsCreateMcmIntegrationRequest() - case "PUBSUB": - return t.AsCreateGooglePubSubIntegrationRequest() - case "QRADAR": - return t.AsCreateQradarIntegrationRequest() - case "SCC": - return t.AsCreateGoogleSccIntegrationRequest() - case "SENTINEL": - return t.AsCreateMicrosoftSentinelIntegrationRequest() - case "SPLUNK": - return t.AsCreateSplunkIntegrationRequest() - case "SQS": - return t.AsCreateAmazonSqsIntegrationRequest() - case "SYSLOG": - return t.AsCreateSyslogIntegrationRequest() - case "WEBHOOK": - return t.AsCreateWebhookIntegrationRequest() - default: - return nil, errors.New("unknown discriminator value: " + discriminator) + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + t.union = b + return err } -func (t CreateIntegrationRequest) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} +// MergeCreateSplunkIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateSplunkIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + if err != nil { + return err + } -func (t *CreateIntegrationRequest) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// AsBaseConnectionInfoKafka returns the union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as a BaseConnectionInfoKafka -func (t CreateKafkaIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoKafka() (BaseConnectionInfoKafka, error) { - var body BaseConnectionInfoKafka +// AsCreateSyslogIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateSyslogIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateSyslogIntegrationRequest() (CreateSyslogIntegrationRequest, error) { + var body CreateSyslogIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoKafka overwrites any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoKafka -func (t *CreateKafkaIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { +// FromCreateSyslogIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateSyslogIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) t.union = b return err } -// MergeBaseConnectionInfoKafka performs a merge with any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoKafka -func (t *CreateKafkaIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { +// MergeCreateSyslogIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateSyslogIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKafkaAuthenticatedPrivateConnectionInfo returns the union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as a KafkaAuthenticatedPrivateConnectionInfo -func (t CreateKafkaIntegrationRequest_ConnectionInfo) AsKafkaAuthenticatedPrivateConnectionInfo() (KafkaAuthenticatedPrivateConnectionInfo, error) { - var body KafkaAuthenticatedPrivateConnectionInfo +// AsCreateAmazonSqsIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateAmazonSqsIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateAmazonSqsIntegrationRequest() (CreateAmazonSqsIntegrationRequest, error) { + var body CreateAmazonSqsIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaAuthenticatedPrivateConnectionInfo overwrites any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as the provided KafkaAuthenticatedPrivateConnectionInfo -func (t *CreateKafkaIntegrationRequest_ConnectionInfo) FromKafkaAuthenticatedPrivateConnectionInfo(v KafkaAuthenticatedPrivateConnectionInfo) error { +// FromCreateAmazonSqsIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateAmazonSqsIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) t.union = b return err } -// MergeKafkaAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo, using the provided KafkaAuthenticatedPrivateConnectionInfo -func (t *CreateKafkaIntegrationRequest_ConnectionInfo) MergeKafkaAuthenticatedPrivateConnectionInfo(v KafkaAuthenticatedPrivateConnectionInfo) error { +// MergeCreateAmazonSqsIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateAmazonSqsIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t CreateKafkaIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err +// AsCreateWebhookIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateWebhookIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateWebhookIntegrationRequest() (CreateWebhookIntegrationRequest, error) { + var body CreateWebhookIntegrationRequest + err := json.Unmarshal(t.union, &body) + return body, err } -func (t *CreateKafkaIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) +// FromCreateWebhookIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateWebhookIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + t.union = b return err } -// AsBaseConnectionInfoKafkaV1 returns the union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as a BaseConnectionInfoKafkaV1 -func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) AsBaseConnectionInfoKafkaV1() (BaseConnectionInfoKafkaV1, error) { - var body BaseConnectionInfoKafkaV1 +// MergeCreateWebhookIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateWebhookIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsCreateKinesisDataStreamsIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKinesisDataStreamsIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateKinesisDataStreamsIntegrationRequest() (CreateKinesisDataStreamsIntegrationRequest, error) { + var body CreateKinesisDataStreamsIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoKafkaV1 overwrites any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as the provided BaseConnectionInfoKafkaV1 -func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) FromBaseConnectionInfoKafkaV1(v BaseConnectionInfoKafkaV1) error { +// FromCreateKinesisDataStreamsIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKinesisDataStreamsIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) t.union = b return err } -// MergeBaseConnectionInfoKafkaV1 performs a merge with any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo, using the provided BaseConnectionInfoKafkaV1 -func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) MergeBaseConnectionInfoKafkaV1(v BaseConnectionInfoKafkaV1) error { +// MergeCreateKinesisDataStreamsIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKinesisDataStreamsIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsAuthenticatedConnectionInfoKafkaV1 returns the union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as a AuthenticatedConnectionInfoKafkaV1 -func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) AsAuthenticatedConnectionInfoKafkaV1() (AuthenticatedConnectionInfoKafkaV1, error) { - var body AuthenticatedConnectionInfoKafkaV1 +// AsCreateKinesisFirehoseIntegrationRequest returns the union data inside the CreateEfoIntegrationRequestV1 as a CreateKinesisFirehoseIntegrationRequest +func (t CreateEfoIntegrationRequestV1) AsCreateKinesisFirehoseIntegrationRequest() (CreateKinesisFirehoseIntegrationRequest, error) { + var body CreateKinesisFirehoseIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromAuthenticatedConnectionInfoKafkaV1 overwrites any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as the provided AuthenticatedConnectionInfoKafkaV1 -func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) FromAuthenticatedConnectionInfoKafkaV1(v AuthenticatedConnectionInfoKafkaV1) error { +// FromCreateKinesisFirehoseIntegrationRequest overwrites any union data inside the CreateEfoIntegrationRequestV1 as the provided CreateKinesisFirehoseIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) FromCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) t.union = b return err } -// MergeAuthenticatedConnectionInfoKafkaV1 performs a merge with any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo, using the provided AuthenticatedConnectionInfoKafkaV1 -func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) MergeAuthenticatedConnectionInfoKafkaV1(v AuthenticatedConnectionInfoKafkaV1) error { +// MergeCreateKinesisFirehoseIntegrationRequest performs a merge with any union data inside the CreateEfoIntegrationRequestV1, using the provided CreateKinesisFirehoseIntegrationRequest +func (t *CreateEfoIntegrationRequestV1) MergeCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) MarshalJSON() ([]byte, error) { +func (t CreateEfoIntegrationRequestV1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t CreateEfoIntegrationRequestV1) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "CHRONICLE": + return t.AsCreateChronicleIntegrationRequest() + case "ELASTIC": + return t.AsCreateElasticsearchIntegrationRequest() + case "KAFKA": + return t.AsCreateKafkaIntegrationRequestV1() + case "KINESIS_DATA_STREAMS": + return t.AsCreateKinesisDataStreamsIntegrationRequest() + case "KINESIS_FIREHOSE": + return t.AsCreateKinesisFirehoseIntegrationRequest() + case "MCM": + return t.AsCreateMcmIntegrationRequest() + case "PUBSUB": + return t.AsCreateGooglePubSubIntegrationRequest() + case "QRADAR": + return t.AsCreateQradarIntegrationRequest() + case "SCC": + return t.AsCreateGoogleSccIntegrationRequest() + case "SENTINEL": + return t.AsCreateMicrosoftSentinelIntegrationRequest() + case "SPLUNK": + return t.AsCreateSplunkIntegrationRequest() + case "SQS": + return t.AsCreateAmazonSqsIntegrationRequest() + case "SYSLOG": + return t.AsCreateSyslogIntegrationRequest() + case "WEBHOOK": + return t.AsCreateWebhookIntegrationRequest() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t CreateEfoIntegrationRequestV1) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *CreateEfoIntegrationRequestV1) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsContextEmpty returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextEmpty -func (t CreateRiskAcceptedRequest_Context) AsContextEmpty() (ContextEmpty, error) { - var body ContextEmpty +// AsBaseConnectionInfoElasticsearch returns the union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as a BaseConnectionInfoElasticsearch +func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoElasticsearch() (BaseConnectionInfoElasticsearch, error) { + var body BaseConnectionInfoElasticsearch err := json.Unmarshal(t.union, &body) return body, err } -// FromContextEmpty overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextEmpty -func (t *CreateRiskAcceptedRequest_Context) FromContextEmpty(v ContextEmpty) error { +// FromBaseConnectionInfoElasticsearch overwrites any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoElasticsearch +func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoElasticsearch(v BaseConnectionInfoElasticsearch) error { b, err := json.Marshal(v) t.union = b return err } -// MergeContextEmpty performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextEmpty -func (t *CreateRiskAcceptedRequest_Context) MergeContextEmpty(v ContextEmpty) error { +// MergeBaseConnectionInfoElasticsearch performs a merge with any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoElasticsearch +func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoElasticsearch(v BaseConnectionInfoElasticsearch) error { b, err := json.Marshal(v) if err != nil { return err @@ -24241,22 +26912,22 @@ func (t *CreateRiskAcceptedRequest_Context) MergeContextEmpty(v ContextEmpty) er return err } -// AsContextImageName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageName -func (t CreateRiskAcceptedRequest_Context) AsContextImageName() (ContextImageName, error) { - var body ContextImageName +// AsAuthenticatedConnectionInfoElasticsearch returns the union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as a AuthenticatedConnectionInfoElasticsearch +func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) AsAuthenticatedConnectionInfoElasticsearch() (AuthenticatedConnectionInfoElasticsearch, error) { + var body AuthenticatedConnectionInfoElasticsearch err := json.Unmarshal(t.union, &body) return body, err } -// FromContextImageName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageName -func (t *CreateRiskAcceptedRequest_Context) FromContextImageName(v ContextImageName) error { +// FromAuthenticatedConnectionInfoElasticsearch overwrites any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo as the provided AuthenticatedConnectionInfoElasticsearch +func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) FromAuthenticatedConnectionInfoElasticsearch(v AuthenticatedConnectionInfoElasticsearch) error { b, err := json.Marshal(v) t.union = b return err } -// MergeContextImageName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageName -func (t *CreateRiskAcceptedRequest_Context) MergeContextImageName(v ContextImageName) error { +// MergeAuthenticatedConnectionInfoElasticsearch performs a merge with any union data inside the CreateElasticsearchIntegrationRequest_ConnectionInfo, using the provided AuthenticatedConnectionInfoElasticsearch +func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) MergeAuthenticatedConnectionInfoElasticsearch(v AuthenticatedConnectionInfoElasticsearch) error { b, err := json.Marshal(v) if err != nil { return err @@ -24267,422 +26938,565 @@ func (t *CreateRiskAcceptedRequest_Context) MergeContextImageName(v ContextImage return err } -// AsContextImageSuffix returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageSuffix -func (t CreateRiskAcceptedRequest_Context) AsContextImageSuffix() (ContextImageSuffix, error) { - var body ContextImageSuffix +func (t CreateElasticsearchIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CreateElasticsearchIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsCreateChronicleIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateChronicleIntegrationRequest +func (t CreateIntegrationRequest) AsCreateChronicleIntegrationRequest() (CreateChronicleIntegrationRequest, error) { + var body CreateChronicleIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextImageSuffix overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageSuffix -func (t *CreateRiskAcceptedRequest_Context) FromContextImageSuffix(v ContextImageSuffix) error { +// FromCreateChronicleIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateChronicleIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) t.union = b return err } -// MergeContextImageSuffix performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageSuffix -func (t *CreateRiskAcceptedRequest_Context) MergeContextImageSuffix(v ContextImageSuffix) error { +// MergeCreateChronicleIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateChronicleIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateChronicleIntegrationRequest(v CreateChronicleIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextImagePrefix returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImagePrefix -func (t CreateRiskAcceptedRequest_Context) AsContextImagePrefix() (ContextImagePrefix, error) { - var body ContextImagePrefix +// AsCreateElasticsearchIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateElasticsearchIntegrationRequest +func (t CreateIntegrationRequest) AsCreateElasticsearchIntegrationRequest() (CreateElasticsearchIntegrationRequest, error) { + var body CreateElasticsearchIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextImagePrefix overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImagePrefix -func (t *CreateRiskAcceptedRequest_Context) FromContextImagePrefix(v ContextImagePrefix) error { +// FromCreateElasticsearchIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateElasticsearchIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) t.union = b return err } -// MergeContextImagePrefix performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImagePrefix -func (t *CreateRiskAcceptedRequest_Context) MergeContextImagePrefix(v ContextImagePrefix) error { +// MergeCreateElasticsearchIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateElasticsearchIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateElasticsearchIntegrationRequest(v CreateElasticsearchIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextImageContains returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageContains -func (t CreateRiskAcceptedRequest_Context) AsContextImageContains() (ContextImageContains, error) { - var body ContextImageContains +// AsCreateGooglePubSubIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateGooglePubSubIntegrationRequest +func (t CreateIntegrationRequest) AsCreateGooglePubSubIntegrationRequest() (CreateGooglePubSubIntegrationRequest, error) { + var body CreateGooglePubSubIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextImageContains overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageContains -func (t *CreateRiskAcceptedRequest_Context) FromContextImageContains(v ContextImageContains) error { +// FromCreateGooglePubSubIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateGooglePubSubIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) t.union = b return err } -// MergeContextImageContains performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageContains -func (t *CreateRiskAcceptedRequest_Context) MergeContextImageContains(v ContextImageContains) error { +// MergeCreateGooglePubSubIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateGooglePubSubIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateGooglePubSubIntegrationRequest(v CreateGooglePubSubIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextPackageName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageName -func (t CreateRiskAcceptedRequest_Context) AsContextPackageName() (ContextPackageName, error) { - var body ContextPackageName +// AsCreateKafkaIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKafkaIntegrationRequest +func (t CreateIntegrationRequest) AsCreateKafkaIntegrationRequest() (CreateKafkaIntegrationRequest, error) { + var body CreateKafkaIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextPackageName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageName -func (t *CreateRiskAcceptedRequest_Context) FromContextPackageName(v ContextPackageName) error { +// FromCreateKafkaIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKafkaIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateKafkaIntegrationRequest(v CreateKafkaIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) t.union = b return err } -// MergeContextPackageName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageName -func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageName(v ContextPackageName) error { +// MergeCreateKafkaIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKafkaIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateKafkaIntegrationRequest(v CreateKafkaIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextPackageNameVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageNameVersion -func (t CreateRiskAcceptedRequest_Context) AsContextPackageNameVersion() (ContextPackageNameVersion, error) { - var body ContextPackageNameVersion +// AsCreateMcmIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateMcmIntegrationRequest +func (t CreateIntegrationRequest) AsCreateMcmIntegrationRequest() (CreateMcmIntegrationRequest, error) { + var body CreateMcmIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextPackageNameVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageNameVersion -func (t *CreateRiskAcceptedRequest_Context) FromContextPackageNameVersion(v ContextPackageNameVersion) error { +// FromCreateMcmIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateMcmIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) t.union = b return err } -// MergeContextPackageNameVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageNameVersion -func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageNameVersion(v ContextPackageNameVersion) error { +// MergeCreateMcmIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateMcmIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateMcmIntegrationRequest(v CreateMcmIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextHostName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextHostName -func (t CreateRiskAcceptedRequest_Context) AsContextHostName() (ContextHostName, error) { - var body ContextHostName +// AsCreateQradarIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateQradarIntegrationRequest +func (t CreateIntegrationRequest) AsCreateQradarIntegrationRequest() (CreateQradarIntegrationRequest, error) { + var body CreateQradarIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextHostName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextHostName -func (t *CreateRiskAcceptedRequest_Context) FromContextHostName(v ContextHostName) error { +// FromCreateQradarIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateQradarIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) t.union = b return err } -// MergeContextHostName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextHostName -func (t *CreateRiskAcceptedRequest_Context) MergeContextHostName(v ContextHostName) error { +// MergeCreateQradarIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateQradarIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateQradarIntegrationRequest(v CreateQradarIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextHostContains returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextHostContains -func (t CreateRiskAcceptedRequest_Context) AsContextHostContains() (ContextHostContains, error) { - var body ContextHostContains +// AsCreateGoogleSccIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateGoogleSccIntegrationRequest +func (t CreateIntegrationRequest) AsCreateGoogleSccIntegrationRequest() (CreateGoogleSccIntegrationRequest, error) { + var body CreateGoogleSccIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextHostContains overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextHostContains -func (t *CreateRiskAcceptedRequest_Context) FromContextHostContains(v ContextHostContains) error { +// FromCreateGoogleSccIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateGoogleSccIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) t.union = b return err } -// MergeContextHostContains performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextHostContains -func (t *CreateRiskAcceptedRequest_Context) MergeContextHostContains(v ContextHostContains) error { +// MergeCreateGoogleSccIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateGoogleSccIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateGoogleSccIntegrationRequest(v CreateGoogleSccIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextPackagePath returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackagePath -func (t CreateRiskAcceptedRequest_Context) AsContextPackagePath() (ContextPackagePath, error) { - var body ContextPackagePath +// AsCreateMicrosoftSentinelIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateMicrosoftSentinelIntegrationRequest +func (t CreateIntegrationRequest) AsCreateMicrosoftSentinelIntegrationRequest() (CreateMicrosoftSentinelIntegrationRequest, error) { + var body CreateMicrosoftSentinelIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextPackagePath overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackagePath -func (t *CreateRiskAcceptedRequest_Context) FromContextPackagePath(v ContextPackagePath) error { +// FromCreateMicrosoftSentinelIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateMicrosoftSentinelIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) t.union = b return err } -// MergeContextPackagePath performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackagePath -func (t *CreateRiskAcceptedRequest_Context) MergeContextPackagePath(v ContextPackagePath) error { +// MergeCreateMicrosoftSentinelIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateMicrosoftSentinelIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateMicrosoftSentinelIntegrationRequest(v CreateMicrosoftSentinelIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextPackageVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageVersion -func (t CreateRiskAcceptedRequest_Context) AsContextPackageVersion() (ContextPackageVersion, error) { - var body ContextPackageVersion +// AsCreateSplunkIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateSplunkIntegrationRequest +func (t CreateIntegrationRequest) AsCreateSplunkIntegrationRequest() (CreateSplunkIntegrationRequest, error) { + var body CreateSplunkIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextPackageVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageVersion -func (t *CreateRiskAcceptedRequest_Context) FromContextPackageVersion(v ContextPackageVersion) error { +// FromCreateSplunkIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateSplunkIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) t.union = b return err } -// MergeContextPackageVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageVersion -func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageVersion(v ContextPackageVersion) error { +// MergeCreateSplunkIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateSplunkIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateSplunkIntegrationRequest(v CreateSplunkIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextPackagePathVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackagePathVersion -func (t CreateRiskAcceptedRequest_Context) AsContextPackagePathVersion() (ContextPackagePathVersion, error) { - var body ContextPackagePathVersion +// AsCreateSyslogIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateSyslogIntegrationRequest +func (t CreateIntegrationRequest) AsCreateSyslogIntegrationRequest() (CreateSyslogIntegrationRequest, error) { + var body CreateSyslogIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextPackagePathVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackagePathVersion -func (t *CreateRiskAcceptedRequest_Context) FromContextPackagePathVersion(v ContextPackagePathVersion) error { +// FromCreateSyslogIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateSyslogIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) t.union = b return err } -// MergeContextPackagePathVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackagePathVersion -func (t *CreateRiskAcceptedRequest_Context) MergeContextPackagePathVersion(v ContextPackagePathVersion) error { +// MergeCreateSyslogIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateSyslogIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateSyslogIntegrationRequest(v CreateSyslogIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextAssetType returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextAssetType -func (t CreateRiskAcceptedRequest_Context) AsContextAssetType() (ContextAssetType, error) { - var body ContextAssetType +// AsCreateAmazonSqsIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateAmazonSqsIntegrationRequest +func (t CreateIntegrationRequest) AsCreateAmazonSqsIntegrationRequest() (CreateAmazonSqsIntegrationRequest, error) { + var body CreateAmazonSqsIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextAssetType overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextAssetType -func (t *CreateRiskAcceptedRequest_Context) FromContextAssetType(v ContextAssetType) error { +// FromCreateAmazonSqsIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateAmazonSqsIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { b, err := json.Marshal(v) - t.union = b - return err + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + t.union = b + return err } -// MergeContextAssetType performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextAssetType -func (t *CreateRiskAcceptedRequest_Context) MergeContextAssetType(v ContextAssetType) error { +// MergeCreateAmazonSqsIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateAmazonSqsIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateAmazonSqsIntegrationRequest(v CreateAmazonSqsIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextOsName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextOsName -func (t CreateRiskAcceptedRequest_Context) AsContextOsName() (ContextOsName, error) { - var body ContextOsName +// AsCreateWebhookIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateWebhookIntegrationRequest +func (t CreateIntegrationRequest) AsCreateWebhookIntegrationRequest() (CreateWebhookIntegrationRequest, error) { + var body CreateWebhookIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextOsName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextOsName -func (t *CreateRiskAcceptedRequest_Context) FromContextOsName(v ContextOsName) error { +// FromCreateWebhookIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateWebhookIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) t.union = b return err } -// MergeContextOsName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextOsName -func (t *CreateRiskAcceptedRequest_Context) MergeContextOsName(v ContextOsName) error { +// MergeCreateWebhookIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateWebhookIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateWebhookIntegrationRequest(v CreateWebhookIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextOsNameNot returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextOsNameNot -func (t CreateRiskAcceptedRequest_Context) AsContextOsNameNot() (ContextOsNameNot, error) { - var body ContextOsNameNot +// AsCreateKinesisDataStreamsIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKinesisDataStreamsIntegrationRequest +func (t CreateIntegrationRequest) AsCreateKinesisDataStreamsIntegrationRequest() (CreateKinesisDataStreamsIntegrationRequest, error) { + var body CreateKinesisDataStreamsIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextOsNameNot overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextOsNameNot -func (t *CreateRiskAcceptedRequest_Context) FromContextOsNameNot(v ContextOsNameNot) error { +// FromCreateKinesisDataStreamsIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKinesisDataStreamsIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) t.union = b return err } -// MergeContextOsNameNot performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextOsNameNot -func (t *CreateRiskAcceptedRequest_Context) MergeContextOsNameNot(v ContextOsNameNot) error { +// MergeCreateKinesisDataStreamsIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKinesisDataStreamsIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateKinesisDataStreamsIntegrationRequest(v CreateKinesisDataStreamsIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextArchitecture returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextArchitecture -func (t CreateRiskAcceptedRequest_Context) AsContextArchitecture() (ContextArchitecture, error) { - var body ContextArchitecture +// AsCreateKinesisFirehoseIntegrationRequest returns the union data inside the CreateIntegrationRequest as a CreateKinesisFirehoseIntegrationRequest +func (t CreateIntegrationRequest) AsCreateKinesisFirehoseIntegrationRequest() (CreateKinesisFirehoseIntegrationRequest, error) { + var body CreateKinesisFirehoseIntegrationRequest err := json.Unmarshal(t.union, &body) return body, err } -// FromContextArchitecture overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextArchitecture -func (t *CreateRiskAcceptedRequest_Context) FromContextArchitecture(v ContextArchitecture) error { +// FromCreateKinesisFirehoseIntegrationRequest overwrites any union data inside the CreateIntegrationRequest as the provided CreateKinesisFirehoseIntegrationRequest +func (t *CreateIntegrationRequest) FromCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) t.union = b return err } -// MergeContextArchitecture performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextArchitecture -func (t *CreateRiskAcceptedRequest_Context) MergeContextArchitecture(v ContextArchitecture) error { +// MergeCreateKinesisFirehoseIntegrationRequest performs a merge with any union data inside the CreateIntegrationRequest, using the provided CreateKinesisFirehoseIntegrationRequest +func (t *CreateIntegrationRequest) MergeCreateKinesisFirehoseIntegrationRequest(v CreateKinesisFirehoseIntegrationRequest) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsContextArchitectureNot returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextArchitectureNot -func (t CreateRiskAcceptedRequest_Context) AsContextArchitectureNot() (ContextArchitectureNot, error) { - var body ContextArchitectureNot - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromContextArchitectureNot overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextArchitectureNot -func (t *CreateRiskAcceptedRequest_Context) FromContextArchitectureNot(v ContextArchitectureNot) error { - b, err := json.Marshal(v) - t.union = b - return err +func (t CreateIntegrationRequest) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err } -// MergeContextArchitectureNot performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextArchitectureNot -func (t *CreateRiskAcceptedRequest_Context) MergeContextArchitectureNot(v ContextArchitectureNot) error { - b, err := json.Marshal(v) +func (t CreateIntegrationRequest) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() if err != nil { - return err + return nil, err + } + switch discriminator { + case "CHRONICLE": + return t.AsCreateChronicleIntegrationRequest() + case "ELASTIC": + return t.AsCreateElasticsearchIntegrationRequest() + case "KAFKA": + return t.AsCreateKafkaIntegrationRequest() + case "KINESIS_DATA_STREAMS": + return t.AsCreateKinesisDataStreamsIntegrationRequest() + case "KINESIS_FIREHOSE": + return t.AsCreateKinesisFirehoseIntegrationRequest() + case "MCM": + return t.AsCreateMcmIntegrationRequest() + case "PUBSUB": + return t.AsCreateGooglePubSubIntegrationRequest() + case "QRADAR": + return t.AsCreateQradarIntegrationRequest() + case "SCC": + return t.AsCreateGoogleSccIntegrationRequest() + case "SENTINEL": + return t.AsCreateMicrosoftSentinelIntegrationRequest() + case "SPLUNK": + return t.AsCreateSplunkIntegrationRequest() + case "SQS": + return t.AsCreateAmazonSqsIntegrationRequest() + case "SYSLOG": + return t.AsCreateSyslogIntegrationRequest() + case "WEBHOOK": + return t.AsCreateWebhookIntegrationRequest() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err } -func (t CreateRiskAcceptedRequest_Context) MarshalJSON() ([]byte, error) { +func (t CreateIntegrationRequest) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *CreateRiskAcceptedRequest_Context) UnmarshalJSON(b []byte) error { +func (t *CreateIntegrationRequest) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsBaseConnectionInfoWebhook returns the union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as a BaseConnectionInfoWebhook -func (t CreateWebhookIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoWebhook() (BaseConnectionInfoWebhook, error) { - var body BaseConnectionInfoWebhook +// AsBaseConnectionInfoKafka returns the union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as a BaseConnectionInfoKafka +func (t CreateKafkaIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoKafka() (BaseConnectionInfoKafka, error) { + var body BaseConnectionInfoKafka err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoWebhook overwrites any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoWebhook -func (t *CreateWebhookIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoWebhook(v BaseConnectionInfoWebhook) error { +// FromBaseConnectionInfoKafka overwrites any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoKafka +func (t *CreateKafkaIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { b, err := json.Marshal(v) t.union = b return err } -// MergeBaseConnectionInfoWebhook performs a merge with any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoWebhook -func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoWebhook(v BaseConnectionInfoWebhook) error { +// MergeBaseConnectionInfoKafka performs a merge with any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoKafka +func (t *CreateKafkaIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { b, err := json.Marshal(v) if err != nil { return err @@ -24693,22 +27507,22 @@ func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfo return err } -// AsAuthenticatedConnectionInfoWebhook returns the union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as a AuthenticatedConnectionInfoWebhook -func (t CreateWebhookIntegrationRequest_ConnectionInfo) AsAuthenticatedConnectionInfoWebhook() (AuthenticatedConnectionInfoWebhook, error) { - var body AuthenticatedConnectionInfoWebhook +// AsKafkaAuthenticatedPrivateConnectionInfo returns the union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as a KafkaAuthenticatedPrivateConnectionInfo +func (t CreateKafkaIntegrationRequest_ConnectionInfo) AsKafkaAuthenticatedPrivateConnectionInfo() (KafkaAuthenticatedPrivateConnectionInfo, error) { + var body KafkaAuthenticatedPrivateConnectionInfo err := json.Unmarshal(t.union, &body) return body, err } -// FromAuthenticatedConnectionInfoWebhook overwrites any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as the provided AuthenticatedConnectionInfoWebhook -func (t *CreateWebhookIntegrationRequest_ConnectionInfo) FromAuthenticatedConnectionInfoWebhook(v AuthenticatedConnectionInfoWebhook) error { +// FromKafkaAuthenticatedPrivateConnectionInfo overwrites any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo as the provided KafkaAuthenticatedPrivateConnectionInfo +func (t *CreateKafkaIntegrationRequest_ConnectionInfo) FromKafkaAuthenticatedPrivateConnectionInfo(v KafkaAuthenticatedPrivateConnectionInfo) error { b, err := json.Marshal(v) t.union = b return err } -// MergeAuthenticatedConnectionInfoWebhook performs a merge with any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo, using the provided AuthenticatedConnectionInfoWebhook -func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeAuthenticatedConnectionInfoWebhook(v AuthenticatedConnectionInfoWebhook) error { +// MergeKafkaAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the CreateKafkaIntegrationRequest_ConnectionInfo, using the provided KafkaAuthenticatedPrivateConnectionInfo +func (t *CreateKafkaIntegrationRequest_ConnectionInfo) MergeKafkaAuthenticatedPrivateConnectionInfo(v KafkaAuthenticatedPrivateConnectionInfo) error { b, err := json.Marshal(v) if err != nil { return err @@ -24719,32 +27533,32 @@ func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeAuthenticatedConne return err } -func (t CreateWebhookIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { +func (t CreateKafkaIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *CreateWebhookIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *CreateKafkaIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsCveScoreCvss2V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss2V1Beta1 -func (t CveScoreV1Beta1) AsCveScoreCvss2V1Beta1() (CveScoreCvss2V1Beta1, error) { - var body CveScoreCvss2V1Beta1 +// AsBaseConnectionInfoKafkaV1 returns the union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as a BaseConnectionInfoKafkaV1 +func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) AsBaseConnectionInfoKafkaV1() (BaseConnectionInfoKafkaV1, error) { + var body BaseConnectionInfoKafkaV1 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 { +// FromBaseConnectionInfoKafkaV1 overwrites any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as the provided BaseConnectionInfoKafkaV1 +func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) FromBaseConnectionInfoKafkaV1(v BaseConnectionInfoKafkaV1) 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 { +// MergeBaseConnectionInfoKafkaV1 performs a merge with any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo, using the provided BaseConnectionInfoKafkaV1 +func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) MergeBaseConnectionInfoKafkaV1(v BaseConnectionInfoKafkaV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -24755,22 +27569,22 @@ func (t *CveScoreV1Beta1) MergeCveScoreCvss2V1Beta1(v CveScoreCvss2V1Beta1) erro return err } -// AsCveScoreCvss3V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss3V1Beta1 -func (t CveScoreV1Beta1) AsCveScoreCvss3V1Beta1() (CveScoreCvss3V1Beta1, error) { - var body CveScoreCvss3V1Beta1 +// AsAuthenticatedConnectionInfoKafkaV1 returns the union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as a AuthenticatedConnectionInfoKafkaV1 +func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) AsAuthenticatedConnectionInfoKafkaV1() (AuthenticatedConnectionInfoKafkaV1, error) { + var body AuthenticatedConnectionInfoKafkaV1 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 { +// FromAuthenticatedConnectionInfoKafkaV1 overwrites any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo as the provided AuthenticatedConnectionInfoKafkaV1 +func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) FromAuthenticatedConnectionInfoKafkaV1(v AuthenticatedConnectionInfoKafkaV1) 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 { +// MergeAuthenticatedConnectionInfoKafkaV1 performs a merge with any union data inside the CreateKafkaIntegrationRequestV1_ConnectionInfo, using the provided AuthenticatedConnectionInfoKafkaV1 +func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) MergeAuthenticatedConnectionInfoKafkaV1(v AuthenticatedConnectionInfoKafkaV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -24781,22 +27595,32 @@ func (t *CveScoreV1Beta1) MergeCveScoreCvss3V1Beta1(v CveScoreCvss3V1Beta1) erro return err } -// AsCveScoreCvss4V1Beta1 returns the union data inside the CveScoreV1Beta1 as a CveScoreCvss4V1Beta1 -func (t CveScoreV1Beta1) AsCveScoreCvss4V1Beta1() (CveScoreCvss4V1Beta1, error) { - var body CveScoreCvss4V1Beta1 +func (t CreateKafkaIntegrationRequestV1_ConnectionInfo) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CreateKafkaIntegrationRequestV1_ConnectionInfo) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsContextEmpty returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextEmpty +func (t CreateRiskAcceptedRequest_Context) AsContextEmpty() (ContextEmpty, error) { + var body ContextEmpty 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 { +// FromContextEmpty overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextEmpty +func (t *CreateRiskAcceptedRequest_Context) FromContextEmpty(v ContextEmpty) 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 { +// MergeContextEmpty performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextEmpty +func (t *CreateRiskAcceptedRequest_Context) MergeContextEmpty(v ContextEmpty) error { b, err := json.Marshal(v) if err != nil { return err @@ -24807,625 +27631,448 @@ func (t *CveScoreV1Beta1) MergeCveScoreCvss4V1Beta1(v CveScoreCvss4V1Beta1) erro 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) - } +// AsContextImageName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageName +func (t CreateRiskAcceptedRequest_Context) AsContextImageName() (ContextImageName, error) { + var body ContextImageName + err := json.Unmarshal(t.union, &body) + return body, err } -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 +// FromContextImageName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageName +func (t *CreateRiskAcceptedRequest_Context) FromContextImageName(v ContextImageName) error { + b, err := json.Marshal(v) + t.union = b + return 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) +// MergeContextImageName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageName +func (t *CreateRiskAcceptedRequest_Context) MergeContextImageName(v ContextImageName) error { + b, err := json.Marshal(v) 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) - } - } - + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// AsGetAmazonSqsIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetAmazonSqsIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetAmazonSqsIntegrationResponse() (GetAmazonSqsIntegrationResponse, error) { - var body GetAmazonSqsIntegrationResponse +// AsContextImageSuffix returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageSuffix +func (t CreateRiskAcceptedRequest_Context) AsContextImageSuffix() (ContextImageSuffix, error) { + var body ContextImageSuffix err := json.Unmarshal(t.union, &body) return body, err } -// FromGetAmazonSqsIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetAmazonSqsIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { +// FromContextImageSuffix overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageSuffix +func (t *CreateRiskAcceptedRequest_Context) FromContextImageSuffix(v ContextImageSuffix) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) t.union = b return err } -// MergeGetAmazonSqsIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetAmazonSqsIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { +// MergeContextImageSuffix performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageSuffix +func (t *CreateRiskAcceptedRequest_Context) MergeContextImageSuffix(v ContextImageSuffix) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetChronicleIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetChronicleIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetChronicleIntegrationResponse() (GetChronicleIntegrationResponse, error) { - var body GetChronicleIntegrationResponse +// AsContextImagePrefix returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImagePrefix +func (t CreateRiskAcceptedRequest_Context) AsContextImagePrefix() (ContextImagePrefix, error) { + var body ContextImagePrefix err := json.Unmarshal(t.union, &body) return body, err } -// FromGetChronicleIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetChronicleIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { +// FromContextImagePrefix overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImagePrefix +func (t *CreateRiskAcceptedRequest_Context) FromContextImagePrefix(v ContextImagePrefix) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) t.union = b return err } -// MergeGetChronicleIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetChronicleIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { +// MergeContextImagePrefix performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImagePrefix +func (t *CreateRiskAcceptedRequest_Context) MergeContextImagePrefix(v ContextImagePrefix) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetElasticsearchIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetElasticsearchIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetElasticsearchIntegrationResponse() (GetElasticsearchIntegrationResponse, error) { - var body GetElasticsearchIntegrationResponse +// AsContextImageContains returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextImageContains +func (t CreateRiskAcceptedRequest_Context) AsContextImageContains() (ContextImageContains, error) { + var body ContextImageContains err := json.Unmarshal(t.union, &body) return body, err } -// FromGetElasticsearchIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetElasticsearchIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { +// FromContextImageContains overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextImageContains +func (t *CreateRiskAcceptedRequest_Context) FromContextImageContains(v ContextImageContains) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) t.union = b return err } -// MergeGetElasticsearchIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetElasticsearchIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { +// MergeContextImageContains performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextImageContains +func (t *CreateRiskAcceptedRequest_Context) MergeContextImageContains(v ContextImageContains) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetGooglePubSubIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetGooglePubSubIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetGooglePubSubIntegrationResponse() (GetGooglePubSubIntegrationResponse, error) { - var body GetGooglePubSubIntegrationResponse +// AsContextPackageName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageName +func (t CreateRiskAcceptedRequest_Context) AsContextPackageName() (ContextPackageName, error) { + var body ContextPackageName err := json.Unmarshal(t.union, &body) return body, err } -// FromGetGooglePubSubIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetGooglePubSubIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { +// FromContextPackageName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageName +func (t *CreateRiskAcceptedRequest_Context) FromContextPackageName(v ContextPackageName) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) t.union = b return err } -// MergeGetGooglePubSubIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetGooglePubSubIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { +// MergeContextPackageName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageName +func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageName(v ContextPackageName) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetGoogleSccIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetGoogleSccIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetGoogleSccIntegrationResponse() (GetGoogleSccIntegrationResponse, error) { - var body GetGoogleSccIntegrationResponse +// AsContextPackageNameVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageNameVersion +func (t CreateRiskAcceptedRequest_Context) AsContextPackageNameVersion() (ContextPackageNameVersion, error) { + var body ContextPackageNameVersion err := json.Unmarshal(t.union, &body) return body, err } -// FromGetGoogleSccIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetGoogleSccIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { +// FromContextPackageNameVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageNameVersion +func (t *CreateRiskAcceptedRequest_Context) FromContextPackageNameVersion(v ContextPackageNameVersion) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) t.union = b return err } -// MergeGetGoogleSccIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetGoogleSccIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { +// MergeContextPackageNameVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageNameVersion +func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageNameVersion(v ContextPackageNameVersion) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetKafkaIntegrationResponseV1 returns the union data inside the EfoIntegrationResponseV1 as a GetKafkaIntegrationResponseV1 -func (t EfoIntegrationResponseV1) AsGetKafkaIntegrationResponseV1() (GetKafkaIntegrationResponseV1, error) { - var body GetKafkaIntegrationResponseV1 +// AsContextHostName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextHostName +func (t CreateRiskAcceptedRequest_Context) AsContextHostName() (ContextHostName, error) { + var body ContextHostName err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKafkaIntegrationResponseV1 overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKafkaIntegrationResponseV1 -func (t *EfoIntegrationResponseV1) FromGetKafkaIntegrationResponseV1(v GetKafkaIntegrationResponseV1) error { +// FromContextHostName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextHostName +func (t *CreateRiskAcceptedRequest_Context) FromContextHostName(v ContextHostName) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) t.union = b return err } -// MergeGetKafkaIntegrationResponseV1 performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKafkaIntegrationResponseV1 -func (t *EfoIntegrationResponseV1) MergeGetKafkaIntegrationResponseV1(v GetKafkaIntegrationResponseV1) error { +// MergeContextHostName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextHostName +func (t *CreateRiskAcceptedRequest_Context) MergeContextHostName(v ContextHostName) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetMcmIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetMcmIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetMcmIntegrationResponse() (GetMcmIntegrationResponse, error) { - var body GetMcmIntegrationResponse +// AsContextHostContains returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextHostContains +func (t CreateRiskAcceptedRequest_Context) AsContextHostContains() (ContextHostContains, error) { + var body ContextHostContains err := json.Unmarshal(t.union, &body) return body, err } -// FromGetMcmIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetMcmIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { +// FromContextHostContains overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextHostContains +func (t *CreateRiskAcceptedRequest_Context) FromContextHostContains(v ContextHostContains) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) t.union = b return err } -// MergeGetMcmIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetMcmIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { +// MergeContextHostContains performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextHostContains +func (t *CreateRiskAcceptedRequest_Context) MergeContextHostContains(v ContextHostContains) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetMicrosoftSentinelIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetMicrosoftSentinelIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetMicrosoftSentinelIntegrationResponse() (GetMicrosoftSentinelIntegrationResponse, error) { - var body GetMicrosoftSentinelIntegrationResponse +// AsContextPackagePath returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackagePath +func (t CreateRiskAcceptedRequest_Context) AsContextPackagePath() (ContextPackagePath, error) { + var body ContextPackagePath err := json.Unmarshal(t.union, &body) return body, err } -// FromGetMicrosoftSentinelIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetMicrosoftSentinelIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { +// FromContextPackagePath overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackagePath +func (t *CreateRiskAcceptedRequest_Context) FromContextPackagePath(v ContextPackagePath) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) t.union = b return err } -// MergeGetMicrosoftSentinelIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetMicrosoftSentinelIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { +// MergeContextPackagePath performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackagePath +func (t *CreateRiskAcceptedRequest_Context) MergeContextPackagePath(v ContextPackagePath) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetQradarIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetQradarIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetQradarIntegrationResponse() (GetQradarIntegrationResponse, error) { - var body GetQradarIntegrationResponse +// AsContextPackageVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackageVersion +func (t CreateRiskAcceptedRequest_Context) AsContextPackageVersion() (ContextPackageVersion, error) { + var body ContextPackageVersion err := json.Unmarshal(t.union, &body) return body, err } -// FromGetQradarIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetQradarIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { +// FromContextPackageVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackageVersion +func (t *CreateRiskAcceptedRequest_Context) FromContextPackageVersion(v ContextPackageVersion) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) t.union = b return err } -// MergeGetQradarIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetQradarIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { +// MergeContextPackageVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackageVersion +func (t *CreateRiskAcceptedRequest_Context) MergeContextPackageVersion(v ContextPackageVersion) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetSplunkIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetSplunkIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetSplunkIntegrationResponse() (GetSplunkIntegrationResponse, error) { - var body GetSplunkIntegrationResponse +// AsContextPackagePathVersion returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextPackagePathVersion +func (t CreateRiskAcceptedRequest_Context) AsContextPackagePathVersion() (ContextPackagePathVersion, error) { + var body ContextPackagePathVersion err := json.Unmarshal(t.union, &body) return body, err } -// FromGetSplunkIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetSplunkIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { +// FromContextPackagePathVersion overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextPackagePathVersion +func (t *CreateRiskAcceptedRequest_Context) FromContextPackagePathVersion(v ContextPackagePathVersion) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) t.union = b return err } -// MergeGetSplunkIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetSplunkIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { +// MergeContextPackagePathVersion performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextPackagePathVersion +func (t *CreateRiskAcceptedRequest_Context) MergeContextPackagePathVersion(v ContextPackagePathVersion) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetSyslogIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetSyslogIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetSyslogIntegrationResponse() (GetSyslogIntegrationResponse, error) { - var body GetSyslogIntegrationResponse +// AsContextAssetType returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextAssetType +func (t CreateRiskAcceptedRequest_Context) AsContextAssetType() (ContextAssetType, error) { + var body ContextAssetType err := json.Unmarshal(t.union, &body) return body, err } -// FromGetSyslogIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetSyslogIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { +// FromContextAssetType overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextAssetType +func (t *CreateRiskAcceptedRequest_Context) FromContextAssetType(v ContextAssetType) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) t.union = b return err } -// MergeGetSyslogIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetSyslogIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { +// MergeContextAssetType performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextAssetType +func (t *CreateRiskAcceptedRequest_Context) MergeContextAssetType(v ContextAssetType) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetWebhookIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetWebhookIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetWebhookIntegrationResponse() (GetWebhookIntegrationResponse, error) { - var body GetWebhookIntegrationResponse +// AsContextOsName returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextOsName +func (t CreateRiskAcceptedRequest_Context) AsContextOsName() (ContextOsName, error) { + var body ContextOsName err := json.Unmarshal(t.union, &body) return body, err } -// FromGetWebhookIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetWebhookIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { +// FromContextOsName overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextOsName +func (t *CreateRiskAcceptedRequest_Context) FromContextOsName(v ContextOsName) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) t.union = b return err } -// MergeGetWebhookIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetWebhookIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { +// MergeContextOsName performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextOsName +func (t *CreateRiskAcceptedRequest_Context) MergeContextOsName(v ContextOsName) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetKinesisDataStreamsIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetKinesisDataStreamsIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetKinesisDataStreamsIntegrationResponse() (GetKinesisDataStreamsIntegrationResponse, error) { - var body GetKinesisDataStreamsIntegrationResponse +// AsContextOsNameNot returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextOsNameNot +func (t CreateRiskAcceptedRequest_Context) AsContextOsNameNot() (ContextOsNameNot, error) { + var body ContextOsNameNot err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKinesisDataStreamsIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKinesisDataStreamsIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { +// FromContextOsNameNot overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextOsNameNot +func (t *CreateRiskAcceptedRequest_Context) FromContextOsNameNot(v ContextOsNameNot) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) t.union = b return err } -// MergeGetKinesisDataStreamsIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKinesisDataStreamsIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { +// MergeContextOsNameNot performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextOsNameNot +func (t *CreateRiskAcceptedRequest_Context) MergeContextOsNameNot(v ContextOsNameNot) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetKinesisFirehoseIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetKinesisFirehoseIntegrationResponse -func (t EfoIntegrationResponseV1) AsGetKinesisFirehoseIntegrationResponse() (GetKinesisFirehoseIntegrationResponse, error) { - var body GetKinesisFirehoseIntegrationResponse +// AsContextArchitecture returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextArchitecture +func (t CreateRiskAcceptedRequest_Context) AsContextArchitecture() (ContextArchitecture, error) { + var body ContextArchitecture err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKinesisFirehoseIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKinesisFirehoseIntegrationResponse -func (t *EfoIntegrationResponseV1) FromGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { +// FromContextArchitecture overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextArchitecture +func (t *CreateRiskAcceptedRequest_Context) FromContextArchitecture(v ContextArchitecture) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) t.union = b return err } -// MergeGetKinesisFirehoseIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKinesisFirehoseIntegrationResponse -func (t *EfoIntegrationResponseV1) MergeGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { +// MergeContextArchitecture performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextArchitecture +func (t *CreateRiskAcceptedRequest_Context) MergeContextArchitecture(v ContextArchitecture) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t EfoIntegrationResponseV1) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err +// AsContextArchitectureNot returns the union data inside the CreateRiskAcceptedRequest_Context as a ContextArchitectureNot +func (t CreateRiskAcceptedRequest_Context) AsContextArchitectureNot() (ContextArchitectureNot, error) { + var body ContextArchitectureNot + err := json.Unmarshal(t.union, &body) + return body, err } -func (t EfoIntegrationResponseV1) ValueByDiscriminator() (interface{}, error) { - discriminator, err := t.Discriminator() +// FromContextArchitectureNot overwrites any union data inside the CreateRiskAcceptedRequest_Context as the provided ContextArchitectureNot +func (t *CreateRiskAcceptedRequest_Context) FromContextArchitectureNot(v ContextArchitectureNot) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeContextArchitectureNot performs a merge with any union data inside the CreateRiskAcceptedRequest_Context, using the provided ContextArchitectureNot +func (t *CreateRiskAcceptedRequest_Context) MergeContextArchitectureNot(v ContextArchitectureNot) error { + b, err := json.Marshal(v) if err != nil { - return nil, err - } - switch discriminator { - case "CHRONICLE": - return t.AsGetChronicleIntegrationResponse() - case "ELASTIC": - return t.AsGetElasticsearchIntegrationResponse() - case "KAFKA": - return t.AsGetKafkaIntegrationResponseV1() - case "KINESIS_DATA_STREAMS": - return t.AsGetKinesisDataStreamsIntegrationResponse() - case "KINESIS_FIREHOSE": - return t.AsGetKinesisFirehoseIntegrationResponse() - case "MCM": - return t.AsGetMcmIntegrationResponse() - case "PUBSUB": - return t.AsGetGooglePubSubIntegrationResponse() - case "QRADAR": - return t.AsGetQradarIntegrationResponse() - case "SCC": - return t.AsGetGoogleSccIntegrationResponse() - case "SENTINEL": - return t.AsGetMicrosoftSentinelIntegrationResponse() - case "SPLUNK": - return t.AsGetSplunkIntegrationResponse() - case "SQS": - return t.AsGetAmazonSqsIntegrationResponse() - case "SYSLOG": - return t.AsGetSyslogIntegrationResponse() - case "WEBHOOK": - return t.AsGetWebhookIntegrationResponse() - default: - return nil, errors.New("unknown discriminator value: " + discriminator) + return err } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err } -func (t EfoIntegrationResponseV1) MarshalJSON() ([]byte, error) { +func (t CreateRiskAcceptedRequest_Context) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *EfoIntegrationResponseV1) UnmarshalJSON(b []byte) error { +func (t *CreateRiskAcceptedRequest_Context) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsCommand returns the union data inside the EntriesResponse_Data_Item as a Command -func (t EntriesResponse_Data_Item) AsCommand() (Command, error) { - var body Command +// AsBaseConnectionInfoWebhook returns the union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as a BaseConnectionInfoWebhook +func (t CreateWebhookIntegrationRequest_ConnectionInfo) AsBaseConnectionInfoWebhook() (BaseConnectionInfoWebhook, error) { + var body BaseConnectionInfoWebhook err := json.Unmarshal(t.union, &body) return body, err } -// FromCommand overwrites any union data inside the EntriesResponse_Data_Item as the provided Command -func (t *EntriesResponse_Data_Item) FromCommand(v Command) error { +// FromBaseConnectionInfoWebhook overwrites any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as the provided BaseConnectionInfoWebhook +func (t *CreateWebhookIntegrationRequest_ConnectionInfo) FromBaseConnectionInfoWebhook(v BaseConnectionInfoWebhook) error { b, err := json.Marshal(v) t.union = b return err } -// MergeCommand performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Command -func (t *EntriesResponse_Data_Item) MergeCommand(v Command) error { +// MergeBaseConnectionInfoWebhook performs a merge with any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo, using the provided BaseConnectionInfoWebhook +func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeBaseConnectionInfoWebhook(v BaseConnectionInfoWebhook) error { b, err := json.Marshal(v) if err != nil { return err @@ -25436,22 +28083,22 @@ func (t *EntriesResponse_Data_Item) MergeCommand(v Command) error { return err } -// AsConnection returns the union data inside the EntriesResponse_Data_Item as a Connection -func (t EntriesResponse_Data_Item) AsConnection() (Connection, error) { - var body Connection +// AsAuthenticatedConnectionInfoWebhook returns the union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as a AuthenticatedConnectionInfoWebhook +func (t CreateWebhookIntegrationRequest_ConnectionInfo) AsAuthenticatedConnectionInfoWebhook() (AuthenticatedConnectionInfoWebhook, error) { + var body AuthenticatedConnectionInfoWebhook err := json.Unmarshal(t.union, &body) return body, err } -// FromConnection overwrites any union data inside the EntriesResponse_Data_Item as the provided Connection -func (t *EntriesResponse_Data_Item) FromConnection(v Connection) error { +// FromAuthenticatedConnectionInfoWebhook overwrites any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo as the provided AuthenticatedConnectionInfoWebhook +func (t *CreateWebhookIntegrationRequest_ConnectionInfo) FromAuthenticatedConnectionInfoWebhook(v AuthenticatedConnectionInfoWebhook) error { b, err := json.Marshal(v) t.union = b return err } -// MergeConnection performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Connection -func (t *EntriesResponse_Data_Item) MergeConnection(v Connection) error { +// MergeAuthenticatedConnectionInfoWebhook performs a merge with any union data inside the CreateWebhookIntegrationRequest_ConnectionInfo, using the provided AuthenticatedConnectionInfoWebhook +func (t *CreateWebhookIntegrationRequest_ConnectionInfo) MergeAuthenticatedConnectionInfoWebhook(v AuthenticatedConnectionInfoWebhook) error { b, err := json.Marshal(v) if err != nil { return err @@ -25462,22 +28109,32 @@ func (t *EntriesResponse_Data_Item) MergeConnection(v Connection) error { return err } -// AsFileaccess returns the union data inside the EntriesResponse_Data_Item as a Fileaccess -func (t EntriesResponse_Data_Item) AsFileaccess() (Fileaccess, error) { - var body Fileaccess +func (t CreateWebhookIntegrationRequest_ConnectionInfo) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *CreateWebhookIntegrationRequest_ConnectionInfo) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + 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 } -// FromFileaccess overwrites any union data inside the EntriesResponse_Data_Item as the provided Fileaccess -func (t *EntriesResponse_Data_Item) FromFileaccess(v Fileaccess) error { +// 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 } -// MergeFileaccess performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Fileaccess -func (t *EntriesResponse_Data_Item) MergeFileaccess(v Fileaccess) error { +// 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 @@ -25488,22 +28145,22 @@ func (t *EntriesResponse_Data_Item) MergeFileaccess(v Fileaccess) error { return err } -// AsKubernetes returns the union data inside the EntriesResponse_Data_Item as a Kubernetes -func (t EntriesResponse_Data_Item) AsKubernetes() (Kubernetes, error) { - var body Kubernetes +// 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 } -// FromKubernetes overwrites any union data inside the EntriesResponse_Data_Item as the provided Kubernetes -func (t *EntriesResponse_Data_Item) FromKubernetes(v Kubernetes) error { +// 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 } -// MergeKubernetes performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Kubernetes -func (t *EntriesResponse_Data_Item) MergeKubernetes(v Kubernetes) error { +// 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 @@ -25514,32 +28171,22 @@ func (t *EntriesResponse_Data_Item) MergeKubernetes(v Kubernetes) error { return err } -func (t EntriesResponse_Data_Item) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *EntriesResponse_Data_Item) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCommand returns the union data inside the EntryResponse as a Command -func (t EntryResponse) AsCommand() (Command, error) { - var body Command +// 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 } -// FromCommand overwrites any union data inside the EntryResponse as the provided Command -func (t *EntryResponse) FromCommand(v Command) error { +// 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 } -// MergeCommand performs a merge with any union data inside the EntryResponse, using the provided Command -func (t *EntryResponse) MergeCommand(v Command) error { +// 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 @@ -25550,119 +28197,203 @@ func (t *EntryResponse) MergeCommand(v Command) error { return err } -// AsConnection returns the union data inside the EntryResponse as a Connection -func (t EntryResponse) AsConnection() (Connection, error) { - var body Connection +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 err := json.Unmarshal(t.union, &body) return body, err } -// FromConnection overwrites any union data inside the EntryResponse as the provided Connection -func (t *EntryResponse) FromConnection(v Connection) error { +// FromGetAmazonSqsIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetAmazonSqsIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) t.union = b return err } -// MergeConnection performs a merge with any union data inside the EntryResponse, using the provided Connection -func (t *EntryResponse) MergeConnection(v Connection) error { +// MergeGetAmazonSqsIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetAmazonSqsIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsFileaccess returns the union data inside the EntryResponse as a Fileaccess -func (t EntryResponse) AsFileaccess() (Fileaccess, error) { - var body Fileaccess +// AsGetChronicleIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetChronicleIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetChronicleIntegrationResponse() (GetChronicleIntegrationResponse, error) { + var body GetChronicleIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromFileaccess overwrites any union data inside the EntryResponse as the provided Fileaccess -func (t *EntryResponse) FromFileaccess(v Fileaccess) error { +// FromGetChronicleIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetChronicleIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) t.union = b return err } -// MergeFileaccess performs a merge with any union data inside the EntryResponse, using the provided Fileaccess -func (t *EntryResponse) MergeFileaccess(v Fileaccess) error { +// MergeGetChronicleIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetChronicleIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKubernetes returns the union data inside the EntryResponse as a Kubernetes -func (t EntryResponse) AsKubernetes() (Kubernetes, error) { - var body Kubernetes +// AsGetElasticsearchIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetElasticsearchIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetElasticsearchIntegrationResponse() (GetElasticsearchIntegrationResponse, error) { + var body GetElasticsearchIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKubernetes overwrites any union data inside the EntryResponse as the provided Kubernetes -func (t *EntryResponse) FromKubernetes(v Kubernetes) error { +// FromGetElasticsearchIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetElasticsearchIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) t.union = b return err } -// MergeKubernetes performs a merge with any union data inside the EntryResponse, using the provided Kubernetes -func (t *EntryResponse) MergeKubernetes(v Kubernetes) error { +// MergeGetElasticsearchIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetElasticsearchIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t EntryResponse) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *EntryResponse) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsK8sAdmissionReviewContent returns the union data inside the EventContent as a K8sAdmissionReviewContent -func (t EventContent) AsK8sAdmissionReviewContent() (K8sAdmissionReviewContent, error) { - var body K8sAdmissionReviewContent +// AsGetGooglePubSubIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetGooglePubSubIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetGooglePubSubIntegrationResponse() (GetGooglePubSubIntegrationResponse, error) { + var body GetGooglePubSubIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromK8sAdmissionReviewContent overwrites any union data inside the EventContent as the provided K8sAdmissionReviewContent -func (t *EventContent) FromK8sAdmissionReviewContent(v K8sAdmissionReviewContent) error { +// FromGetGooglePubSubIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetGooglePubSubIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"k8sAdmissionReview"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) t.union = b return err } -// MergeK8sAdmissionReviewContent performs a merge with any union data inside the EventContent, using the provided K8sAdmissionReviewContent -func (t *EventContent) MergeK8sAdmissionReviewContent(v K8sAdmissionReviewContent) error { +// MergeGetGooglePubSubIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetGooglePubSubIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"k8sAdmissionReview"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) if err != nil { return err } @@ -25672,31 +28403,31 @@ func (t *EventContent) MergeK8sAdmissionReviewContent(v K8sAdmissionReviewConten return err } -// AsAgentlessRuntimeDetectionContent returns the union data inside the EventContent as a AgentlessRuntimeDetectionContent -func (t EventContent) AsAgentlessRuntimeDetectionContent() (AgentlessRuntimeDetectionContent, error) { - var body AgentlessRuntimeDetectionContent +// AsGetGoogleSccIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetGoogleSccIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetGoogleSccIntegrationResponse() (GetGoogleSccIntegrationResponse, error) { + var body GetGoogleSccIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromAgentlessRuntimeDetectionContent overwrites any union data inside the EventContent as the provided AgentlessRuntimeDetectionContent -func (t *EventContent) FromAgentlessRuntimeDetectionContent(v AgentlessRuntimeDetectionContent) error { +// FromGetGoogleSccIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetGoogleSccIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) t.union = b return err } -// MergeAgentlessRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided AgentlessRuntimeDetectionContent -func (t *EventContent) MergeAgentlessRuntimeDetectionContent(v AgentlessRuntimeDetectionContent) error { +// MergeGetGoogleSccIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetGoogleSccIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) if err != nil { return err } @@ -25706,31 +28437,31 @@ func (t *EventContent) MergeAgentlessRuntimeDetectionContent(v AgentlessRuntimeD return err } -// AsWorkloadRuntimeDetectionContent returns the union data inside the EventContent as a WorkloadRuntimeDetectionContent -func (t EventContent) AsWorkloadRuntimeDetectionContent() (WorkloadRuntimeDetectionContent, error) { - var body WorkloadRuntimeDetectionContent +// AsGetKafkaIntegrationResponseV1 returns the union data inside the EfoIntegrationResponseV1 as a GetKafkaIntegrationResponseV1 +func (t EfoIntegrationResponseV1) AsGetKafkaIntegrationResponseV1() (GetKafkaIntegrationResponseV1, error) { + var body GetKafkaIntegrationResponseV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromWorkloadRuntimeDetectionContent overwrites any union data inside the EventContent as the provided WorkloadRuntimeDetectionContent -func (t *EventContent) FromWorkloadRuntimeDetectionContent(v WorkloadRuntimeDetectionContent) error { +// FromGetKafkaIntegrationResponseV1 overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKafkaIntegrationResponseV1 +func (t *EfoIntegrationResponseV1) FromGetKafkaIntegrationResponseV1(v GetKafkaIntegrationResponseV1) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) t.union = b return err } -// MergeWorkloadRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided WorkloadRuntimeDetectionContent -func (t *EventContent) MergeWorkloadRuntimeDetectionContent(v WorkloadRuntimeDetectionContent) error { +// MergeGetKafkaIntegrationResponseV1 performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKafkaIntegrationResponseV1 +func (t *EfoIntegrationResponseV1) MergeGetKafkaIntegrationResponseV1(v GetKafkaIntegrationResponseV1) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) if err != nil { return err } @@ -25740,31 +28471,31 @@ func (t *EventContent) MergeWorkloadRuntimeDetectionContent(v WorkloadRuntimeDet return err } -// AsWorkloadMlRuntimeDetectionContent returns the union data inside the EventContent as a WorkloadMlRuntimeDetectionContent -func (t EventContent) AsWorkloadMlRuntimeDetectionContent() (WorkloadMlRuntimeDetectionContent, error) { - var body WorkloadMlRuntimeDetectionContent +// AsGetMcmIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetMcmIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetMcmIntegrationResponse() (GetMcmIntegrationResponse, error) { + var body GetMcmIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromWorkloadMlRuntimeDetectionContent overwrites any union data inside the EventContent as the provided WorkloadMlRuntimeDetectionContent -func (t *EventContent) FromWorkloadMlRuntimeDetectionContent(v WorkloadMlRuntimeDetectionContent) error { +// FromGetMcmIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetMcmIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadMLRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) t.union = b return err } -// MergeWorkloadMlRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided WorkloadMlRuntimeDetectionContent -func (t *EventContent) MergeWorkloadMlRuntimeDetectionContent(v WorkloadMlRuntimeDetectionContent) error { +// MergeGetMcmIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetMcmIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadMLRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) if err != nil { return err } @@ -25774,31 +28505,31 @@ func (t *EventContent) MergeWorkloadMlRuntimeDetectionContent(v WorkloadMlRuntim return err } -// AsAgentlessMlRuntimeDetectionContent returns the union data inside the EventContent as a AgentlessMlRuntimeDetectionContent -func (t EventContent) AsAgentlessMlRuntimeDetectionContent() (AgentlessMlRuntimeDetectionContent, error) { - var body AgentlessMlRuntimeDetectionContent +// AsGetMicrosoftSentinelIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetMicrosoftSentinelIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetMicrosoftSentinelIntegrationResponse() (GetMicrosoftSentinelIntegrationResponse, error) { + var body GetMicrosoftSentinelIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromAgentlessMlRuntimeDetectionContent overwrites any union data inside the EventContent as the provided AgentlessMlRuntimeDetectionContent -func (t *EventContent) FromAgentlessMlRuntimeDetectionContent(v AgentlessMlRuntimeDetectionContent) error { +// FromGetMicrosoftSentinelIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetMicrosoftSentinelIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessMLRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) t.union = b return err } -// MergeAgentlessMlRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided AgentlessMlRuntimeDetectionContent -func (t *EventContent) MergeAgentlessMlRuntimeDetectionContent(v AgentlessMlRuntimeDetectionContent) error { +// MergeGetMicrosoftSentinelIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetMicrosoftSentinelIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessMLRuntimeDetection"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) if err != nil { return err } @@ -25808,31 +28539,31 @@ func (t *EventContent) MergeAgentlessMlRuntimeDetectionContent(v AgentlessMlRunt return err } -// AsStatefulDetectionsContent returns the union data inside the EventContent as a StatefulDetectionsContent -func (t EventContent) AsStatefulDetectionsContent() (StatefulDetectionsContent, error) { - var body StatefulDetectionsContent +// AsGetQradarIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetQradarIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetQradarIntegrationResponse() (GetQradarIntegrationResponse, error) { + var body GetQradarIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromStatefulDetectionsContent overwrites any union data inside the EventContent as the provided StatefulDetectionsContent -func (t *EventContent) FromStatefulDetectionsContent(v StatefulDetectionsContent) error { +// FromGetQradarIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetQradarIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"statefulDetections"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) t.union = b return err } -// MergeStatefulDetectionsContent performs a merge with any union data inside the EventContent, using the provided StatefulDetectionsContent -func (t *EventContent) MergeStatefulDetectionsContent(v StatefulDetectionsContent) error { +// MergeGetQradarIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetQradarIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"statefulDetections"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) if err != nil { return err } @@ -25842,187 +28573,249 @@ func (t *EventContent) MergeStatefulDetectionsContent(v StatefulDetectionsConten return err } -func (t EventContent) Discriminator() (string, error) { - var discriminator struct { - Discriminator string `json:"type"` - } - err := json.Unmarshal(t.union, &discriminator) - return discriminator.Discriminator, err +// AsGetSplunkIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetSplunkIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetSplunkIntegrationResponse() (GetSplunkIntegrationResponse, error) { + var body GetSplunkIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err } -func (t EventContent) ValueByDiscriminator() (interface{}, error) { - discriminator, err := t.Discriminator() +// FromGetSplunkIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetSplunkIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, err - } - switch discriminator { - case "agentlessMLRuntimeDetection": - return t.AsAgentlessMlRuntimeDetectionContent() - case "agentlessRuntimeDetection": - return t.AsAgentlessRuntimeDetectionContent() - case "k8sAdmissionReview": - return t.AsK8sAdmissionReviewContent() - case "statefulDetections": - return t.AsStatefulDetectionsContent() - case "workloadMLRuntimeDetection": - return t.AsWorkloadMlRuntimeDetectionContent() - case "workloadRuntimeDetection": - return t.AsWorkloadRuntimeDetectionContent() - default: - return nil, errors.New("unknown discriminator value: " + discriminator) + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + t.union = b + return err } -func (t EventContent) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} +// MergeGetSplunkIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetSplunkIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + if err != nil { + return err + } -func (t *EventContent) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// AsBaseConnectionInfoChronicle returns the union data inside the GetChronicleIntegrationResponse_ConnectionInfo as a BaseConnectionInfoChronicle -func (t GetChronicleIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoChronicle() (BaseConnectionInfoChronicle, error) { - var body BaseConnectionInfoChronicle +// AsGetSyslogIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetSyslogIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetSyslogIntegrationResponse() (GetSyslogIntegrationResponse, error) { + var body GetSyslogIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoChronicle overwrites any union data inside the GetChronicleIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoChronicle -func (t *GetChronicleIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoChronicle(v BaseConnectionInfoChronicle) error { +// FromGetSyslogIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetSyslogIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) t.union = b return err } -// MergeBaseConnectionInfoChronicle performs a merge with any union data inside the GetChronicleIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoChronicle -func (t *GetChronicleIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoChronicle(v BaseConnectionInfoChronicle) error { +// MergeGetSyslogIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetSyslogIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsBaseConnectionInfoChronicleV2 returns the union data inside the GetChronicleIntegrationResponse_ConnectionInfo as a BaseConnectionInfoChronicleV2 -func (t GetChronicleIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoChronicleV2() (BaseConnectionInfoChronicleV2, error) { - var body BaseConnectionInfoChronicleV2 +// AsGetWebhookIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetWebhookIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetWebhookIntegrationResponse() (GetWebhookIntegrationResponse, error) { + var body GetWebhookIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoChronicleV2 overwrites any union data inside the GetChronicleIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoChronicleV2 -func (t *GetChronicleIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoChronicleV2(v BaseConnectionInfoChronicleV2) error { +// FromGetWebhookIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetWebhookIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) t.union = b return err } -// MergeBaseConnectionInfoChronicleV2 performs a merge with any union data inside the GetChronicleIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoChronicleV2 -func (t *GetChronicleIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoChronicleV2(v BaseConnectionInfoChronicleV2) error { +// MergeGetWebhookIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetWebhookIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t GetChronicleIntegrationResponse_ConnectionInfo) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *GetChronicleIntegrationResponse_ConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsBaseConnectionInfoKafka returns the union data inside the GetKafkaIntegrationResponse_ConnectionInfo as a BaseConnectionInfoKafka -func (t GetKafkaIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoKafka() (BaseConnectionInfoKafka, error) { - var body BaseConnectionInfoKafka +// AsGetKinesisDataStreamsIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetKinesisDataStreamsIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetKinesisDataStreamsIntegrationResponse() (GetKinesisDataStreamsIntegrationResponse, error) { + var body GetKinesisDataStreamsIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromBaseConnectionInfoKafka overwrites any union data inside the GetKafkaIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoKafka -func (t *GetKafkaIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { +// FromGetKinesisDataStreamsIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKinesisDataStreamsIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) t.union = b return err } -// MergeBaseConnectionInfoKafka performs a merge with any union data inside the GetKafkaIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoKafka -func (t *GetKafkaIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { +// MergeGetKinesisDataStreamsIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKinesisDataStreamsIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKafkaAuthenticatedConnectionInfo returns the union data inside the GetKafkaIntegrationResponse_ConnectionInfo as a KafkaAuthenticatedConnectionInfo -func (t GetKafkaIntegrationResponse_ConnectionInfo) AsKafkaAuthenticatedConnectionInfo() (KafkaAuthenticatedConnectionInfo, error) { - var body KafkaAuthenticatedConnectionInfo +// AsGetKinesisFirehoseIntegrationResponse returns the union data inside the EfoIntegrationResponseV1 as a GetKinesisFirehoseIntegrationResponse +func (t EfoIntegrationResponseV1) AsGetKinesisFirehoseIntegrationResponse() (GetKinesisFirehoseIntegrationResponse, error) { + var body GetKinesisFirehoseIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaAuthenticatedConnectionInfo overwrites any union data inside the GetKafkaIntegrationResponse_ConnectionInfo as the provided KafkaAuthenticatedConnectionInfo -func (t *GetKafkaIntegrationResponse_ConnectionInfo) FromKafkaAuthenticatedConnectionInfo(v KafkaAuthenticatedConnectionInfo) error { +// FromGetKinesisFirehoseIntegrationResponse overwrites any union data inside the EfoIntegrationResponseV1 as the provided GetKinesisFirehoseIntegrationResponse +func (t *EfoIntegrationResponseV1) FromGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) t.union = b return err } -// MergeKafkaAuthenticatedConnectionInfo performs a merge with any union data inside the GetKafkaIntegrationResponse_ConnectionInfo, using the provided KafkaAuthenticatedConnectionInfo -func (t *GetKafkaIntegrationResponse_ConnectionInfo) MergeKafkaAuthenticatedConnectionInfo(v KafkaAuthenticatedConnectionInfo) error { +// MergeGetKinesisFirehoseIntegrationResponse performs a merge with any union data inside the EfoIntegrationResponseV1, using the provided GetKinesisFirehoseIntegrationResponse +func (t *EfoIntegrationResponseV1) MergeGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t GetKafkaIntegrationResponse_ConnectionInfo) MarshalJSON() ([]byte, error) { +func (t EfoIntegrationResponseV1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t EfoIntegrationResponseV1) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "CHRONICLE": + return t.AsGetChronicleIntegrationResponse() + case "ELASTIC": + return t.AsGetElasticsearchIntegrationResponse() + case "KAFKA": + return t.AsGetKafkaIntegrationResponseV1() + case "KINESIS_DATA_STREAMS": + return t.AsGetKinesisDataStreamsIntegrationResponse() + case "KINESIS_FIREHOSE": + return t.AsGetKinesisFirehoseIntegrationResponse() + case "MCM": + return t.AsGetMcmIntegrationResponse() + case "PUBSUB": + return t.AsGetGooglePubSubIntegrationResponse() + case "QRADAR": + return t.AsGetQradarIntegrationResponse() + case "SCC": + return t.AsGetGoogleSccIntegrationResponse() + case "SENTINEL": + return t.AsGetMicrosoftSentinelIntegrationResponse() + case "SPLUNK": + return t.AsGetSplunkIntegrationResponse() + case "SQS": + return t.AsGetAmazonSqsIntegrationResponse() + case "SYSLOG": + return t.AsGetSyslogIntegrationResponse() + case "WEBHOOK": + return t.AsGetWebhookIntegrationResponse() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t EfoIntegrationResponseV1) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *GetKafkaIntegrationResponse_ConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *EfoIntegrationResponseV1) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsKafkaPlaintextV1 returns the union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as a KafkaPlaintextV1 -func (t GetKafkaIntegrationResponseV1_ConnectionInfo) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { - var body KafkaPlaintextV1 +// AsCommand returns the union data inside the EntriesResponse_Data_Item as a Command +func (t EntriesResponse_Data_Item) AsCommand() (Command, error) { + var body Command err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintextV1 overwrites any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as the provided KafkaPlaintextV1 -func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { +// FromCommand overwrites any union data inside the EntriesResponse_Data_Item as the provided Command +func (t *EntriesResponse_Data_Item) FromCommand(v Command) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaPlaintextV1 performs a merge with any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo, using the provided KafkaPlaintextV1 -func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { +// MergeCommand performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Command +func (t *EntriesResponse_Data_Item) MergeCommand(v Command) error { b, err := json.Marshal(v) if err != nil { return err @@ -26033,22 +28826,22 @@ func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaPlaintextV1(v K return err } -// AsKafkaTlsEncryptedV1 returns the union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as a KafkaTlsEncryptedV1 -func (t GetKafkaIntegrationResponseV1_ConnectionInfo) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { - var body KafkaTlsEncryptedV1 +// AsConnection returns the union data inside the EntriesResponse_Data_Item as a Connection +func (t EntriesResponse_Data_Item) AsConnection() (Connection, error) { + var body Connection err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncryptedV1 overwrites any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as the provided KafkaTlsEncryptedV1 -func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { +// FromConnection overwrites any union data inside the EntriesResponse_Data_Item as the provided Connection +func (t *EntriesResponse_Data_Item) FromConnection(v Connection) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo, using the provided KafkaTlsEncryptedV1 -func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { +// MergeConnection performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Connection +func (t *EntriesResponse_Data_Item) MergeConnection(v Connection) error { b, err := json.Marshal(v) if err != nil { return err @@ -26059,448 +28852,207 @@ func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaTlsEncryptedV1( return err } -func (t GetKafkaIntegrationResponseV1_ConnectionInfo) 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["auth"], err = json.Marshal(t.Auth) - if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) - } - - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } - } - - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } - } - - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } - - object["krb5"], err = json.Marshal(t.Krb5) - if err != nil { - return nil, fmt.Errorf("error marshaling 'krb5': %w", err) - } - - object["principal"], err = json.Marshal(t.Principal) - if err != nil { - return nil, fmt.Errorf("error marshaling 'principal': %w", err) - } - - object["realm"], err = json.Marshal(t.Realm) - if err != nil { - return nil, fmt.Errorf("error marshaling 'realm': %w", err) - } - - object["service"], err = json.Marshal(t.Service) - if err != nil { - return nil, fmt.Errorf("error marshaling 'service': %w", err) - } - - object["topic"], err = json.Marshal(t.Topic) - if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) - } - - b, err = json.Marshal(object) - return b, err -} - -func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) 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["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } - - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } - - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } - } - - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } - } - - if raw, found := object["krb5"]; found { - err = json.Unmarshal(raw, &t.Krb5) - if err != nil { - return fmt.Errorf("error reading 'krb5': %w", err) - } - } - - if raw, found := object["principal"]; found { - err = json.Unmarshal(raw, &t.Principal) - if err != nil { - return fmt.Errorf("error reading 'principal': %w", err) - } - } - - if raw, found := object["realm"]; found { - err = json.Unmarshal(raw, &t.Realm) - if err != nil { - return fmt.Errorf("error reading 'realm': %w", err) - } - } - - if raw, found := object["service"]; found { - err = json.Unmarshal(raw, &t.Service) - if err != nil { - return fmt.Errorf("error reading 'service': %w", err) - } - } - - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } - } - - return err -} - -// AsGetAmazonSqsIntegrationResponse returns the union data inside the IntegrationResponse as a GetAmazonSqsIntegrationResponse -func (t IntegrationResponse) AsGetAmazonSqsIntegrationResponse() (GetAmazonSqsIntegrationResponse, error) { - var body GetAmazonSqsIntegrationResponse +// AsFileaccess returns the union data inside the EntriesResponse_Data_Item as a Fileaccess +func (t EntriesResponse_Data_Item) AsFileaccess() (Fileaccess, error) { + var body Fileaccess err := json.Unmarshal(t.union, &body) return body, err } -// FromGetAmazonSqsIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetAmazonSqsIntegrationResponse -func (t *IntegrationResponse) FromGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { +// FromFileaccess overwrites any union data inside the EntriesResponse_Data_Item as the provided Fileaccess +func (t *EntriesResponse_Data_Item) FromFileaccess(v Fileaccess) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) t.union = b return err } -// MergeGetAmazonSqsIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetAmazonSqsIntegrationResponse -func (t *IntegrationResponse) MergeGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { +// MergeFileaccess performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Fileaccess +func (t *EntriesResponse_Data_Item) MergeFileaccess(v Fileaccess) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetChronicleIntegrationResponse returns the union data inside the IntegrationResponse as a GetChronicleIntegrationResponse -func (t IntegrationResponse) AsGetChronicleIntegrationResponse() (GetChronicleIntegrationResponse, error) { - var body GetChronicleIntegrationResponse +// AsKubernetes returns the union data inside the EntriesResponse_Data_Item as a Kubernetes +func (t EntriesResponse_Data_Item) AsKubernetes() (Kubernetes, error) { + var body Kubernetes err := json.Unmarshal(t.union, &body) return body, err } -// FromGetChronicleIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetChronicleIntegrationResponse -func (t *IntegrationResponse) FromGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { +// FromKubernetes overwrites any union data inside the EntriesResponse_Data_Item as the provided Kubernetes +func (t *EntriesResponse_Data_Item) FromKubernetes(v Kubernetes) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) t.union = b return err } -// MergeGetChronicleIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetChronicleIntegrationResponse -func (t *IntegrationResponse) MergeGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { +// MergeKubernetes performs a merge with any union data inside the EntriesResponse_Data_Item, using the provided Kubernetes +func (t *EntriesResponse_Data_Item) MergeKubernetes(v Kubernetes) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetElasticsearchIntegrationResponse returns the union data inside the IntegrationResponse as a GetElasticsearchIntegrationResponse -func (t IntegrationResponse) AsGetElasticsearchIntegrationResponse() (GetElasticsearchIntegrationResponse, error) { - var body GetElasticsearchIntegrationResponse +func (t EntriesResponse_Data_Item) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *EntriesResponse_Data_Item) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsCommand returns the union data inside the EntryResponse as a Command +func (t EntryResponse) AsCommand() (Command, error) { + var body Command err := json.Unmarshal(t.union, &body) return body, err } -// FromGetElasticsearchIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetElasticsearchIntegrationResponse -func (t *IntegrationResponse) FromGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { +// FromCommand overwrites any union data inside the EntryResponse as the provided Command +func (t *EntryResponse) FromCommand(v Command) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) t.union = b return err } -// MergeGetElasticsearchIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetElasticsearchIntegrationResponse -func (t *IntegrationResponse) MergeGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { +// MergeCommand performs a merge with any union data inside the EntryResponse, using the provided Command +func (t *EntryResponse) MergeCommand(v Command) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetGooglePubSubIntegrationResponse returns the union data inside the IntegrationResponse as a GetGooglePubSubIntegrationResponse -func (t IntegrationResponse) AsGetGooglePubSubIntegrationResponse() (GetGooglePubSubIntegrationResponse, error) { - var body GetGooglePubSubIntegrationResponse +// AsConnection returns the union data inside the EntryResponse as a Connection +func (t EntryResponse) AsConnection() (Connection, error) { + var body Connection err := json.Unmarshal(t.union, &body) return body, err } -// FromGetGooglePubSubIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetGooglePubSubIntegrationResponse -func (t *IntegrationResponse) FromGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { +// FromConnection overwrites any union data inside the EntryResponse as the provided Connection +func (t *EntryResponse) FromConnection(v Connection) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) t.union = b return err } -// MergeGetGooglePubSubIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetGooglePubSubIntegrationResponse -func (t *IntegrationResponse) MergeGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { +// MergeConnection performs a merge with any union data inside the EntryResponse, using the provided Connection +func (t *EntryResponse) MergeConnection(v Connection) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetGoogleSccIntegrationResponse returns the union data inside the IntegrationResponse as a GetGoogleSccIntegrationResponse -func (t IntegrationResponse) AsGetGoogleSccIntegrationResponse() (GetGoogleSccIntegrationResponse, error) { - var body GetGoogleSccIntegrationResponse +// AsFileaccess returns the union data inside the EntryResponse as a Fileaccess +func (t EntryResponse) AsFileaccess() (Fileaccess, error) { + var body Fileaccess err := json.Unmarshal(t.union, &body) return body, err } -// FromGetGoogleSccIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetGoogleSccIntegrationResponse -func (t *IntegrationResponse) FromGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { +// FromFileaccess overwrites any union data inside the EntryResponse as the provided Fileaccess +func (t *EntryResponse) FromFileaccess(v Fileaccess) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) t.union = b return err } -// MergeGetGoogleSccIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetGoogleSccIntegrationResponse -func (t *IntegrationResponse) MergeGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { +// MergeFileaccess performs a merge with any union data inside the EntryResponse, using the provided Fileaccess +func (t *EntryResponse) MergeFileaccess(v Fileaccess) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetKafkaIntegrationResponse returns the union data inside the IntegrationResponse as a GetKafkaIntegrationResponse -func (t IntegrationResponse) AsGetKafkaIntegrationResponse() (GetKafkaIntegrationResponse, error) { - var body GetKafkaIntegrationResponse +// AsKubernetes returns the union data inside the EntryResponse as a Kubernetes +func (t EntryResponse) AsKubernetes() (Kubernetes, error) { + var body Kubernetes err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKafkaIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKafkaIntegrationResponse -func (t *IntegrationResponse) FromGetKafkaIntegrationResponse(v GetKafkaIntegrationResponse) error { +// FromKubernetes overwrites any union data inside the EntryResponse as the provided Kubernetes +func (t *EntryResponse) FromKubernetes(v Kubernetes) error { b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) t.union = b return err } -// MergeGetKafkaIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKafkaIntegrationResponse -func (t *IntegrationResponse) MergeGetKafkaIntegrationResponse(v GetKafkaIntegrationResponse) error { +// MergeKubernetes performs a merge with any union data inside the EntryResponse, using the provided Kubernetes +func (t *EntryResponse) MergeKubernetes(v Kubernetes) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} - -// AsGetMcmIntegrationResponse returns the union data inside the IntegrationResponse as a GetMcmIntegrationResponse -func (t IntegrationResponse) AsGetMcmIntegrationResponse() (GetMcmIntegrationResponse, error) { - var body GetMcmIntegrationResponse - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromGetMcmIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetMcmIntegrationResponse -func (t *IntegrationResponse) FromGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) - t.union = b - return err -} - -// MergeGetMcmIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetMcmIntegrationResponse -func (t *IntegrationResponse) MergeGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) - if err != nil { - return err - } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsGetMicrosoftSentinelIntegrationResponse returns the union data inside the IntegrationResponse as a GetMicrosoftSentinelIntegrationResponse -func (t IntegrationResponse) AsGetMicrosoftSentinelIntegrationResponse() (GetMicrosoftSentinelIntegrationResponse, error) { - var body GetMicrosoftSentinelIntegrationResponse - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromGetMicrosoftSentinelIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetMicrosoftSentinelIntegrationResponse -func (t *IntegrationResponse) FromGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) - t.union = b - return err +func (t EntryResponse) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err } -// MergeGetMicrosoftSentinelIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetMicrosoftSentinelIntegrationResponse -func (t *IntegrationResponse) MergeGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged +func (t *EntryResponse) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) return err } -// AsGetQradarIntegrationResponse returns the union data inside the IntegrationResponse as a GetQradarIntegrationResponse -func (t IntegrationResponse) AsGetQradarIntegrationResponse() (GetQradarIntegrationResponse, error) { - var body GetQradarIntegrationResponse +// AsK8sAdmissionReviewContent returns the union data inside the EventContent as a K8sAdmissionReviewContent +func (t EventContent) AsK8sAdmissionReviewContent() (K8sAdmissionReviewContent, error) { + var body K8sAdmissionReviewContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetQradarIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetQradarIntegrationResponse -func (t *IntegrationResponse) FromGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { +// FromK8sAdmissionReviewContent overwrites any union data inside the EventContent as the provided K8sAdmissionReviewContent +func (t *EventContent) FromK8sAdmissionReviewContent(v K8sAdmissionReviewContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"k8sAdmissionReview"}`)) t.union = b return err } -// MergeGetQradarIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetQradarIntegrationResponse -func (t *IntegrationResponse) MergeGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { +// MergeK8sAdmissionReviewContent performs a merge with any union data inside the EventContent, using the provided K8sAdmissionReviewContent +func (t *EventContent) MergeK8sAdmissionReviewContent(v K8sAdmissionReviewContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"k8sAdmissionReview"}`)) if err != nil { return err } @@ -26510,31 +29062,31 @@ func (t *IntegrationResponse) MergeGetQradarIntegrationResponse(v GetQradarInteg return err } -// AsGetSplunkIntegrationResponse returns the union data inside the IntegrationResponse as a GetSplunkIntegrationResponse -func (t IntegrationResponse) AsGetSplunkIntegrationResponse() (GetSplunkIntegrationResponse, error) { - var body GetSplunkIntegrationResponse +// AsAgentlessRuntimeDetectionContent returns the union data inside the EventContent as a AgentlessRuntimeDetectionContent +func (t EventContent) AsAgentlessRuntimeDetectionContent() (AgentlessRuntimeDetectionContent, error) { + var body AgentlessRuntimeDetectionContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetSplunkIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetSplunkIntegrationResponse -func (t *IntegrationResponse) FromGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { +// FromAgentlessRuntimeDetectionContent overwrites any union data inside the EventContent as the provided AgentlessRuntimeDetectionContent +func (t *EventContent) FromAgentlessRuntimeDetectionContent(v AgentlessRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessRuntimeDetection"}`)) t.union = b return err } -// MergeGetSplunkIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetSplunkIntegrationResponse -func (t *IntegrationResponse) MergeGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { +// MergeAgentlessRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided AgentlessRuntimeDetectionContent +func (t *EventContent) MergeAgentlessRuntimeDetectionContent(v AgentlessRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessRuntimeDetection"}`)) if err != nil { return err } @@ -26544,31 +29096,31 @@ func (t *IntegrationResponse) MergeGetSplunkIntegrationResponse(v GetSplunkInteg return err } -// AsGetSyslogIntegrationResponse returns the union data inside the IntegrationResponse as a GetSyslogIntegrationResponse -func (t IntegrationResponse) AsGetSyslogIntegrationResponse() (GetSyslogIntegrationResponse, error) { - var body GetSyslogIntegrationResponse +// AsWorkloadRuntimeDetectionContent returns the union data inside the EventContent as a WorkloadRuntimeDetectionContent +func (t EventContent) AsWorkloadRuntimeDetectionContent() (WorkloadRuntimeDetectionContent, error) { + var body WorkloadRuntimeDetectionContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetSyslogIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetSyslogIntegrationResponse -func (t *IntegrationResponse) FromGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { +// FromWorkloadRuntimeDetectionContent overwrites any union data inside the EventContent as the provided WorkloadRuntimeDetectionContent +func (t *EventContent) FromWorkloadRuntimeDetectionContent(v WorkloadRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadRuntimeDetection"}`)) t.union = b return err } -// MergeGetSyslogIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetSyslogIntegrationResponse -func (t *IntegrationResponse) MergeGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { +// MergeWorkloadRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided WorkloadRuntimeDetectionContent +func (t *EventContent) MergeWorkloadRuntimeDetectionContent(v WorkloadRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadRuntimeDetection"}`)) if err != nil { return err } @@ -26578,31 +29130,31 @@ func (t *IntegrationResponse) MergeGetSyslogIntegrationResponse(v GetSyslogInteg return err } -// AsGetWebhookIntegrationResponse returns the union data inside the IntegrationResponse as a GetWebhookIntegrationResponse -func (t IntegrationResponse) AsGetWebhookIntegrationResponse() (GetWebhookIntegrationResponse, error) { - var body GetWebhookIntegrationResponse +// AsWorkloadMlRuntimeDetectionContent returns the union data inside the EventContent as a WorkloadMlRuntimeDetectionContent +func (t EventContent) AsWorkloadMlRuntimeDetectionContent() (WorkloadMlRuntimeDetectionContent, error) { + var body WorkloadMlRuntimeDetectionContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetWebhookIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetWebhookIntegrationResponse -func (t *IntegrationResponse) FromGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { +// FromWorkloadMlRuntimeDetectionContent overwrites any union data inside the EventContent as the provided WorkloadMlRuntimeDetectionContent +func (t *EventContent) FromWorkloadMlRuntimeDetectionContent(v WorkloadMlRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadMLRuntimeDetection"}`)) t.union = b return err } -// MergeGetWebhookIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetWebhookIntegrationResponse -func (t *IntegrationResponse) MergeGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { +// MergeWorkloadMlRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided WorkloadMlRuntimeDetectionContent +func (t *EventContent) MergeWorkloadMlRuntimeDetectionContent(v WorkloadMlRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"workloadMLRuntimeDetection"}`)) if err != nil { return err } @@ -26612,31 +29164,31 @@ func (t *IntegrationResponse) MergeGetWebhookIntegrationResponse(v GetWebhookInt return err } -// AsGetKinesisDataStreamsIntegrationResponse returns the union data inside the IntegrationResponse as a GetKinesisDataStreamsIntegrationResponse -func (t IntegrationResponse) AsGetKinesisDataStreamsIntegrationResponse() (GetKinesisDataStreamsIntegrationResponse, error) { - var body GetKinesisDataStreamsIntegrationResponse +// AsAgentlessMlRuntimeDetectionContent returns the union data inside the EventContent as a AgentlessMlRuntimeDetectionContent +func (t EventContent) AsAgentlessMlRuntimeDetectionContent() (AgentlessMlRuntimeDetectionContent, error) { + var body AgentlessMlRuntimeDetectionContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKinesisDataStreamsIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKinesisDataStreamsIntegrationResponse -func (t *IntegrationResponse) FromGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { +// FromAgentlessMlRuntimeDetectionContent overwrites any union data inside the EventContent as the provided AgentlessMlRuntimeDetectionContent +func (t *EventContent) FromAgentlessMlRuntimeDetectionContent(v AgentlessMlRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessMLRuntimeDetection"}`)) t.union = b return err } -// MergeGetKinesisDataStreamsIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKinesisDataStreamsIntegrationResponse -func (t *IntegrationResponse) MergeGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { +// MergeAgentlessMlRuntimeDetectionContent performs a merge with any union data inside the EventContent, using the provided AgentlessMlRuntimeDetectionContent +func (t *EventContent) MergeAgentlessMlRuntimeDetectionContent(v AgentlessMlRuntimeDetectionContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"agentlessMLRuntimeDetection"}`)) if err != nil { return err } @@ -26646,31 +29198,31 @@ func (t *IntegrationResponse) MergeGetKinesisDataStreamsIntegrationResponse(v Ge return err } -// AsGetKinesisFirehoseIntegrationResponse returns the union data inside the IntegrationResponse as a GetKinesisFirehoseIntegrationResponse -func (t IntegrationResponse) AsGetKinesisFirehoseIntegrationResponse() (GetKinesisFirehoseIntegrationResponse, error) { - var body GetKinesisFirehoseIntegrationResponse +// AsStatefulDetectionsContent returns the union data inside the EventContent as a StatefulDetectionsContent +func (t EventContent) AsStatefulDetectionsContent() (StatefulDetectionsContent, error) { + var body StatefulDetectionsContent err := json.Unmarshal(t.union, &body) return body, err } -// FromGetKinesisFirehoseIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKinesisFirehoseIntegrationResponse -func (t *IntegrationResponse) FromGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { +// FromStatefulDetectionsContent overwrites any union data inside the EventContent as the provided StatefulDetectionsContent +func (t *EventContent) FromStatefulDetectionsContent(v StatefulDetectionsContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"statefulDetections"}`)) t.union = b return err } -// MergeGetKinesisFirehoseIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKinesisFirehoseIntegrationResponse -func (t *IntegrationResponse) MergeGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { +// MergeStatefulDetectionsContent performs a merge with any union data inside the EventContent, using the provided StatefulDetectionsContent +func (t *EventContent) MergeStatefulDetectionsContent(v StatefulDetectionsContent) error { b, err := json.Marshal(v) if err != nil { return err } - b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + b, err = runtime.JSONMerge(b, []byte(`{"type":"statefulDetections"}`)) if err != nil { return err } @@ -26680,7 +29232,7 @@ func (t *IntegrationResponse) MergeGetKinesisFirehoseIntegrationResponse(v GetKi return err } -func (t IntegrationResponse) Discriminator() (string, error) { +func (t EventContent) Discriminator() (string, error) { var discriminator struct { Discriminator string `json:"type"` } @@ -26688,133 +29240,55 @@ func (t IntegrationResponse) Discriminator() (string, error) { return discriminator.Discriminator, err } -func (t IntegrationResponse) ValueByDiscriminator() (interface{}, error) { +func (t EventContent) ValueByDiscriminator() (interface{}, error) { discriminator, err := t.Discriminator() if err != nil { return nil, err } switch discriminator { - case "CHRONICLE": - return t.AsGetChronicleIntegrationResponse() - case "ELASTIC": - return t.AsGetElasticsearchIntegrationResponse() - case "KAFKA": - return t.AsGetKafkaIntegrationResponse() - case "KINESIS_DATA_STREAMS": - return t.AsGetKinesisDataStreamsIntegrationResponse() - case "KINESIS_FIREHOSE": - return t.AsGetKinesisFirehoseIntegrationResponse() - case "MCM": - return t.AsGetMcmIntegrationResponse() - case "PUBSUB": - return t.AsGetGooglePubSubIntegrationResponse() - case "QRADAR": - return t.AsGetQradarIntegrationResponse() - case "SCC": - return t.AsGetGoogleSccIntegrationResponse() - case "SENTINEL": - return t.AsGetMicrosoftSentinelIntegrationResponse() - case "SPLUNK": - return t.AsGetSplunkIntegrationResponse() - case "SQS": - return t.AsGetAmazonSqsIntegrationResponse() - case "SYSLOG": - return t.AsGetSyslogIntegrationResponse() - case "WEBHOOK": - return t.AsGetWebhookIntegrationResponse() + case "agentlessMLRuntimeDetection": + return t.AsAgentlessMlRuntimeDetectionContent() + case "agentlessRuntimeDetection": + return t.AsAgentlessRuntimeDetectionContent() + case "k8sAdmissionReview": + return t.AsK8sAdmissionReviewContent() + case "statefulDetections": + return t.AsStatefulDetectionsContent() + case "workloadMLRuntimeDetection": + return t.AsWorkloadMlRuntimeDetectionContent() + case "workloadRuntimeDetection": + return t.AsWorkloadRuntimeDetectionContent() default: return nil, errors.New("unknown discriminator value: " + discriminator) } } -func (t IntegrationResponse) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() - return b, err -} - -func (t *IntegrationResponse) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) - return err -} - -// AsCheckboxFieldValueV1 returns the union data inside the IssueTypeFieldResponseV1_AllowedValues_Item as a CheckboxFieldValueV1 -func (t IssueTypeFieldResponseV1_AllowedValues_Item) AsCheckboxFieldValueV1() (CheckboxFieldValueV1, error) { - var body CheckboxFieldValueV1 - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromCheckboxFieldValueV1 overwrites any union data inside the IssueTypeFieldResponseV1_AllowedValues_Item as the provided CheckboxFieldValueV1 -func (t *IssueTypeFieldResponseV1_AllowedValues_Item) FromCheckboxFieldValueV1(v CheckboxFieldValueV1) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeCheckboxFieldValueV1 performs a merge with any union data inside the IssueTypeFieldResponseV1_AllowedValues_Item, using the provided CheckboxFieldValueV1 -func (t *IssueTypeFieldResponseV1_AllowedValues_Item) MergeCheckboxFieldValueV1(v CheckboxFieldValueV1) 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 IssueTypeFieldResponseV1_AllowedValues_Item) MarshalJSON() ([]byte, error) { +func (t EventContent) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() return b, err } -func (t *IssueTypeFieldResponseV1_AllowedValues_Item) UnmarshalJSON(b []byte) error { +func (t *EventContent) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) return err } -// AsKafkaGssapiAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaGssapiAuthenticatedConnectionInfo -func (t KafkaAuthenticatedConnectionInfo) AsKafkaGssapiAuthenticatedConnectionInfo() (KafkaGssapiAuthenticatedConnectionInfo, error) { - var body KafkaGssapiAuthenticatedConnectionInfo - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromKafkaGssapiAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaGssapiAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) FromKafkaGssapiAuthenticatedConnectionInfo(v KafkaGssapiAuthenticatedConnectionInfo) error { - b, err := json.Marshal(v) - t.union = b - return err -} - -// MergeKafkaGssapiAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaGssapiAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaGssapiAuthenticatedConnectionInfo(v KafkaGssapiAuthenticatedConnectionInfo) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} - -// AsKafkaSaslPlainAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaSaslPlainAuthenticatedConnectionInfo -func (t KafkaAuthenticatedConnectionInfo) AsKafkaSaslPlainAuthenticatedConnectionInfo() (KafkaSaslPlainAuthenticatedConnectionInfo, error) { - var body KafkaSaslPlainAuthenticatedConnectionInfo +// AsBaseConnectionInfoChronicle returns the union data inside the GetChronicleIntegrationResponse_ConnectionInfo as a BaseConnectionInfoChronicle +func (t GetChronicleIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoChronicle() (BaseConnectionInfoChronicle, error) { + var body BaseConnectionInfoChronicle err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaSaslPlainAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaSaslPlainAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) FromKafkaSaslPlainAuthenticatedConnectionInfo(v KafkaSaslPlainAuthenticatedConnectionInfo) error { +// FromBaseConnectionInfoChronicle overwrites any union data inside the GetChronicleIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoChronicle +func (t *GetChronicleIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoChronicle(v BaseConnectionInfoChronicle) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaSaslPlainAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaSaslPlainAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslPlainAuthenticatedConnectionInfo(v KafkaSaslPlainAuthenticatedConnectionInfo) error { +// MergeBaseConnectionInfoChronicle performs a merge with any union data inside the GetChronicleIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoChronicle +func (t *GetChronicleIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoChronicle(v BaseConnectionInfoChronicle) error { b, err := json.Marshal(v) if err != nil { return err @@ -26825,22 +29299,22 @@ func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslPlainAuthenticatedConne return err } -// AsKafkaSaslScramAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaSaslScramAuthenticatedConnectionInfo -func (t KafkaAuthenticatedConnectionInfo) AsKafkaSaslScramAuthenticatedConnectionInfo() (KafkaSaslScramAuthenticatedConnectionInfo, error) { - var body KafkaSaslScramAuthenticatedConnectionInfo +// AsBaseConnectionInfoChronicleV2 returns the union data inside the GetChronicleIntegrationResponse_ConnectionInfo as a BaseConnectionInfoChronicleV2 +func (t GetChronicleIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoChronicleV2() (BaseConnectionInfoChronicleV2, error) { + var body BaseConnectionInfoChronicleV2 err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaSaslScramAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaSaslScramAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) FromKafkaSaslScramAuthenticatedConnectionInfo(v KafkaSaslScramAuthenticatedConnectionInfo) error { +// FromBaseConnectionInfoChronicleV2 overwrites any union data inside the GetChronicleIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoChronicleV2 +func (t *GetChronicleIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoChronicleV2(v BaseConnectionInfoChronicleV2) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaSaslScramAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaSaslScramAuthenticatedConnectionInfo -func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslScramAuthenticatedConnectionInfo(v KafkaSaslScramAuthenticatedConnectionInfo) error { +// MergeBaseConnectionInfoChronicleV2 performs a merge with any union data inside the GetChronicleIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoChronicleV2 +func (t *GetChronicleIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoChronicleV2(v BaseConnectionInfoChronicleV2) error { b, err := json.Marshal(v) if err != nil { return err @@ -26851,91 +29325,32 @@ func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslScramAuthenticatedConne return err } -func (t KafkaAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { +func (t GetChronicleIntegrationResponse_ConnectionInfo) 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["auth"], err = json.Marshal(t.Auth) - if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) - } - - b, err = json.Marshal(object) return b, err } -func (t *KafkaAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *GetChronicleIntegrationResponse_ConnectionInfo) 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["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } - - return err -} - -// AsKafkaGssapiAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaGssapiAuthenticatedPrivateConnectionInfo -func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaGssapiAuthenticatedPrivateConnectionInfo() (KafkaGssapiAuthenticatedPrivateConnectionInfo, error) { - var body KafkaGssapiAuthenticatedPrivateConnectionInfo - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromKafkaGssapiAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaGssapiAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaGssapiAuthenticatedPrivateConnectionInfo(v KafkaGssapiAuthenticatedPrivateConnectionInfo) error { - b, err := json.Marshal(v) - t.union = b return err } -// MergeKafkaGssapiAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaGssapiAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaGssapiAuthenticatedPrivateConnectionInfo(v KafkaGssapiAuthenticatedPrivateConnectionInfo) error { - b, err := json.Marshal(v) - if err != nil { - return err - } - - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged - return err -} - -// AsKafkaSaslPlainAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaSaslPlainAuthenticatedPrivateConnectionInfo -func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaSaslPlainAuthenticatedPrivateConnectionInfo() (KafkaSaslPlainAuthenticatedPrivateConnectionInfo, error) { - var body KafkaSaslPlainAuthenticatedPrivateConnectionInfo +// AsBaseConnectionInfoKafka returns the union data inside the GetKafkaIntegrationResponse_ConnectionInfo as a BaseConnectionInfoKafka +func (t GetKafkaIntegrationResponse_ConnectionInfo) AsBaseConnectionInfoKafka() (BaseConnectionInfoKafka, error) { + var body BaseConnectionInfoKafka err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaSaslPlainAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaSaslPlainAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaSaslPlainAuthenticatedPrivateConnectionInfo(v KafkaSaslPlainAuthenticatedPrivateConnectionInfo) error { +// FromBaseConnectionInfoKafka overwrites any union data inside the GetKafkaIntegrationResponse_ConnectionInfo as the provided BaseConnectionInfoKafka +func (t *GetKafkaIntegrationResponse_ConnectionInfo) FromBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaSaslPlainAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaSaslPlainAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslPlainAuthenticatedPrivateConnectionInfo(v KafkaSaslPlainAuthenticatedPrivateConnectionInfo) error { +// MergeBaseConnectionInfoKafka performs a merge with any union data inside the GetKafkaIntegrationResponse_ConnectionInfo, using the provided BaseConnectionInfoKafka +func (t *GetKafkaIntegrationResponse_ConnectionInfo) MergeBaseConnectionInfoKafka(v BaseConnectionInfoKafka) error { b, err := json.Marshal(v) if err != nil { return err @@ -26946,22 +29361,22 @@ func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslPlainAuthenticat return err } -// AsKafkaSaslScramAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaSaslScramAuthenticatedPrivateConnectionInfo -func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaSaslScramAuthenticatedPrivateConnectionInfo() (KafkaSaslScramAuthenticatedPrivateConnectionInfo, error) { - var body KafkaSaslScramAuthenticatedPrivateConnectionInfo +// AsKafkaAuthenticatedConnectionInfo returns the union data inside the GetKafkaIntegrationResponse_ConnectionInfo as a KafkaAuthenticatedConnectionInfo +func (t GetKafkaIntegrationResponse_ConnectionInfo) AsKafkaAuthenticatedConnectionInfo() (KafkaAuthenticatedConnectionInfo, error) { + var body KafkaAuthenticatedConnectionInfo err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaSaslScramAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaSaslScramAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaSaslScramAuthenticatedPrivateConnectionInfo(v KafkaSaslScramAuthenticatedPrivateConnectionInfo) error { +// FromKafkaAuthenticatedConnectionInfo overwrites any union data inside the GetKafkaIntegrationResponse_ConnectionInfo as the provided KafkaAuthenticatedConnectionInfo +func (t *GetKafkaIntegrationResponse_ConnectionInfo) FromKafkaAuthenticatedConnectionInfo(v KafkaAuthenticatedConnectionInfo) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaSaslScramAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaSaslScramAuthenticatedPrivateConnectionInfo -func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslScramAuthenticatedPrivateConnectionInfo(v KafkaSaslScramAuthenticatedPrivateConnectionInfo) error { +// MergeKafkaAuthenticatedConnectionInfo performs a merge with any union data inside the GetKafkaIntegrationResponse_ConnectionInfo, using the provided KafkaAuthenticatedConnectionInfo +func (t *GetKafkaIntegrationResponse_ConnectionInfo) MergeKafkaAuthenticatedConnectionInfo(v KafkaAuthenticatedConnectionInfo) error { b, err := json.Marshal(v) if err != nil { return err @@ -26972,65 +29387,32 @@ func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslScramAuthenticat return err } -func (t KafkaAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, error) { +func (t GetKafkaIntegrationResponse_ConnectionInfo) 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["auth"], err = json.Marshal(t.Auth) - if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) - } - - b, err = json.Marshal(object) return b, err } -func (t *KafkaAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *GetKafkaIntegrationResponse_ConnectionInfo) 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["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } - return err } -// AsKafkaPlaintext returns the union data inside the KafkaGssapiAuthenticatedConnectionInfo as a KafkaPlaintext -func (t KafkaGssapiAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { - var body KafkaPlaintext +// AsKafkaPlaintextV1 returns the union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as a KafkaPlaintextV1 +func (t GetKafkaIntegrationResponseV1_ConnectionInfo) AsKafkaPlaintextV1() (KafkaPlaintextV1, error) { + var body KafkaPlaintextV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaGssapiAuthenticatedConnectionInfo as the provided KafkaPlaintext -func (t *KafkaGssapiAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromKafkaPlaintextV1 overwrites any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as the provided KafkaPlaintextV1 +func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) FromKafkaPlaintextV1(v KafkaPlaintextV1) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaGssapiAuthenticatedConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeKafkaPlaintextV1 performs a merge with any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo, using the provided KafkaPlaintextV1 +func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaPlaintextV1(v KafkaPlaintextV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -27041,22 +29423,22 @@ func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlai return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaGssapiAuthenticatedConnectionInfo as a KafkaTlsEncrypted -func (t KafkaGssapiAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { - var body KafkaTlsEncrypted +// AsKafkaTlsEncryptedV1 returns the union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as a KafkaTlsEncryptedV1 +func (t GetKafkaIntegrationResponseV1_ConnectionInfo) AsKafkaTlsEncryptedV1() (KafkaTlsEncryptedV1, error) { + var body KafkaTlsEncryptedV1 err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaGssapiAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaGssapiAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromKafkaTlsEncryptedV1 overwrites any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo as the provided KafkaTlsEncryptedV1 +func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) FromKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaGssapiAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeKafkaTlsEncryptedV1 performs a merge with any union data inside the GetKafkaIntegrationResponseV1_ConnectionInfo, using the provided KafkaTlsEncryptedV1 +func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) MergeKafkaTlsEncryptedV1(v KafkaTlsEncryptedV1) error { b, err := json.Marshal(v) if err != nil { return err @@ -27067,7 +29449,7 @@ func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaT return err } -func (t KafkaGssapiAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { +func (t GetKafkaIntegrationResponseV1_ConnectionInfo) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() if err != nil { return nil, err @@ -27135,7 +29517,7 @@ func (t KafkaGssapiAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { return b, err } -func (t *KafkaGssapiAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *GetKafkaIntegrationResponseV1_ConnectionInfo) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) if err != nil { return err @@ -27212,487 +29594,676 @@ func (t *KafkaGssapiAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { return err } -// AsKafkaPlaintext returns the union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as a KafkaPlaintext -func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { - var body KafkaPlaintext +// AsGetAmazonSqsIntegrationResponse returns the union data inside the IntegrationResponse as a GetAmazonSqsIntegrationResponse +func (t IntegrationResponse) AsGetAmazonSqsIntegrationResponse() (GetAmazonSqsIntegrationResponse, error) { + var body GetAmazonSqsIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext -func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromGetAmazonSqsIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetAmazonSqsIntegrationResponse +func (t *IntegrationResponse) FromGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeGetAmazonSqsIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetAmazonSqsIntegrationResponse +func (t *IntegrationResponse) MergeGetAmazonSqsIntegrationResponse(v GetAmazonSqsIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SQS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted -func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { - var body KafkaTlsEncrypted +// AsGetChronicleIntegrationResponse returns the union data inside the IntegrationResponse as a GetChronicleIntegrationResponse +func (t IntegrationResponse) AsGetChronicleIntegrationResponse() (GetChronicleIntegrationResponse, error) { + var body GetChronicleIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromGetChronicleIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetChronicleIntegrationResponse +func (t *IntegrationResponse) FromGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { b, err := json.Marshal(v) - t.union = b - return err -} + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + t.union = b + return err +} -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeGetChronicleIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetChronicleIntegrationResponse +func (t *IntegrationResponse) MergeGetChronicleIntegrationResponse(v GetChronicleIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"CHRONICLE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, error) { - b, err := t.union.MarshalJSON() +// AsGetElasticsearchIntegrationResponse returns the union data inside the IntegrationResponse as a GetElasticsearchIntegrationResponse +func (t IntegrationResponse) AsGetElasticsearchIntegrationResponse() (GetElasticsearchIntegrationResponse, error) { + var body GetElasticsearchIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromGetElasticsearchIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetElasticsearchIntegrationResponse +func (t *IntegrationResponse) FromGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { + b, err := json.Marshal(v) 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 - } + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + t.union = b + return err +} - object["auth"], err = json.Marshal(t.Auth) +// MergeGetElasticsearchIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetElasticsearchIntegrationResponse +func (t *IntegrationResponse) MergeGetElasticsearchIntegrationResponse(v GetElasticsearchIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) + return err } - - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } + b, err = runtime.JSONMerge(b, []byte(`{"type":"ELASTIC"}`)) + if err != nil { + return err } - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } +// AsGetGooglePubSubIntegrationResponse returns the union data inside the IntegrationResponse as a GetGooglePubSubIntegrationResponse +func (t IntegrationResponse) AsGetGooglePubSubIntegrationResponse() (GetGooglePubSubIntegrationResponse, error) { + var body GetGooglePubSubIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - object["keytab"], err = json.Marshal(t.Keytab) +// FromGetGooglePubSubIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetGooglePubSubIntegrationResponse +func (t *IntegrationResponse) FromGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'keytab': %w", err) + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) + t.union = b + return err +} - object["krb5"], err = json.Marshal(t.Krb5) +// MergeGetGooglePubSubIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetGooglePubSubIntegrationResponse +func (t *IntegrationResponse) MergeGetGooglePubSubIntegrationResponse(v GetGooglePubSubIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'krb5': %w", err) + return err } - - object["principal"], err = json.Marshal(t.Principal) + b, err = runtime.JSONMerge(b, []byte(`{"type":"PUBSUB"}`)) if err != nil { - return nil, fmt.Errorf("error marshaling 'principal': %w", err) + return err } - object["realm"], err = json.Marshal(t.Realm) - if err != nil { - return nil, fmt.Errorf("error marshaling 'realm': %w", err) - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - object["service"], err = json.Marshal(t.Service) - if err != nil { - return nil, fmt.Errorf("error marshaling 'service': %w", err) - } +// AsGetGoogleSccIntegrationResponse returns the union data inside the IntegrationResponse as a GetGoogleSccIntegrationResponse +func (t IntegrationResponse) AsGetGoogleSccIntegrationResponse() (GetGoogleSccIntegrationResponse, error) { + var body GetGoogleSccIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - object["topic"], err = json.Marshal(t.Topic) +// FromGetGoogleSccIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetGoogleSccIntegrationResponse +func (t *IntegrationResponse) FromGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) + return err } - - b, err = json.Marshal(object) - return b, err + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) + t.union = b + return err } -func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) +// MergeGetGoogleSccIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetGoogleSccIntegrationResponse +func (t *IntegrationResponse) MergeGetGoogleSccIntegrationResponse(v GetGoogleSccIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { return err } - object := make(map[string]json.RawMessage) - err = json.Unmarshal(b, &object) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SCC"}`)) if err != nil { return err } - if raw, found := object["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } +// AsGetKafkaIntegrationResponse returns the union data inside the IntegrationResponse as a GetKafkaIntegrationResponse +func (t IntegrationResponse) AsGetKafkaIntegrationResponse() (GetKafkaIntegrationResponse, error) { + var body GetKafkaIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } +// FromGetKafkaIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKafkaIntegrationResponse +func (t *IntegrationResponse) FromGetKafkaIntegrationResponse(v GetKafkaIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + t.union = b + return err +} - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } +// MergeGetKafkaIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKafkaIntegrationResponse +func (t *IntegrationResponse) MergeGetKafkaIntegrationResponse(v GetKafkaIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } - - if raw, found := object["keytab"]; found { - err = json.Unmarshal(raw, &t.Keytab) - if err != nil { - return fmt.Errorf("error reading 'keytab': %w", err) - } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KAFKA"}`)) + if err != nil { + return err } - if raw, found := object["krb5"]; found { - err = json.Unmarshal(raw, &t.Krb5) - if err != nil { - return fmt.Errorf("error reading 'krb5': %w", err) - } - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - if raw, found := object["principal"]; found { - err = json.Unmarshal(raw, &t.Principal) - if err != nil { - return fmt.Errorf("error reading 'principal': %w", err) - } - } +// AsGetMcmIntegrationResponse returns the union data inside the IntegrationResponse as a GetMcmIntegrationResponse +func (t IntegrationResponse) AsGetMcmIntegrationResponse() (GetMcmIntegrationResponse, error) { + var body GetMcmIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - if raw, found := object["realm"]; found { - err = json.Unmarshal(raw, &t.Realm) - if err != nil { - return fmt.Errorf("error reading 'realm': %w", err) - } +// FromGetMcmIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetMcmIntegrationResponse +func (t *IntegrationResponse) FromGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + t.union = b + return err +} - if raw, found := object["service"]; found { - err = json.Unmarshal(raw, &t.Service) - if err != nil { - return fmt.Errorf("error reading 'service': %w", err) - } +// MergeGetMcmIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetMcmIntegrationResponse +func (t *IntegrationResponse) MergeGetMcmIntegrationResponse(v GetMcmIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } - - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } + b, err = runtime.JSONMerge(b, []byte(`{"type":"MCM"}`)) + if err != nil { + return err } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// AsKafkaPlaintext returns the union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as a KafkaPlaintext -func (t KafkaSaslPlainAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { - var body KafkaPlaintext +// AsGetMicrosoftSentinelIntegrationResponse returns the union data inside the IntegrationResponse as a GetMicrosoftSentinelIntegrationResponse +func (t IntegrationResponse) AsGetMicrosoftSentinelIntegrationResponse() (GetMicrosoftSentinelIntegrationResponse, error) { + var body GetMicrosoftSentinelIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as the provided KafkaPlaintext -func (t *KafkaSaslPlainAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromGetMicrosoftSentinelIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetMicrosoftSentinelIntegrationResponse +func (t *IntegrationResponse) FromGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaSaslPlainAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeGetMicrosoftSentinelIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetMicrosoftSentinelIntegrationResponse +func (t *IntegrationResponse) MergeGetMicrosoftSentinelIntegrationResponse(v GetMicrosoftSentinelIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SENTINEL"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as a KafkaTlsEncrypted -func (t KafkaSaslPlainAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { - var body KafkaTlsEncrypted +// AsGetQradarIntegrationResponse returns the union data inside the IntegrationResponse as a GetQradarIntegrationResponse +func (t IntegrationResponse) AsGetQradarIntegrationResponse() (GetQradarIntegrationResponse, error) { + var body GetQradarIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaSaslPlainAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromGetQradarIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetQradarIntegrationResponse +func (t *IntegrationResponse) FromGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) t.union = b return err } -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaSaslPlainAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeGetQradarIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetQradarIntegrationResponse +func (t *IntegrationResponse) MergeGetQradarIntegrationResponse(v GetQradarIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"QRADAR"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t KafkaSaslPlainAuthenticatedConnectionInfo) 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 - } - } +// AsGetSplunkIntegrationResponse returns the union data inside the IntegrationResponse as a GetSplunkIntegrationResponse +func (t IntegrationResponse) AsGetSplunkIntegrationResponse() (GetSplunkIntegrationResponse, error) { + var body GetSplunkIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - object["auth"], err = json.Marshal(t.Auth) +// FromGetSplunkIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetSplunkIntegrationResponse +func (t *IntegrationResponse) FromGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + t.union = b + return err +} - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } +// MergeGetSplunkIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetSplunkIntegrationResponse +func (t *IntegrationResponse) MergeGetSplunkIntegrationResponse(v GetSplunkIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } - - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } + b, err = runtime.JSONMerge(b, []byte(`{"type":"SPLUNK"}`)) + if err != nil { + return err } - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - object["topic"], err = json.Marshal(t.Topic) - if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) - } +// AsGetSyslogIntegrationResponse returns the union data inside the IntegrationResponse as a GetSyslogIntegrationResponse +func (t IntegrationResponse) AsGetSyslogIntegrationResponse() (GetSyslogIntegrationResponse, error) { + var body GetSyslogIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - object["username"], err = json.Marshal(t.Username) +// FromGetSyslogIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetSyslogIntegrationResponse +func (t *IntegrationResponse) FromGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'username': %w", err) + return err } - - b, err = json.Marshal(object) - return b, err + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) + t.union = b + return err } -func (t *KafkaSaslPlainAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { - err := t.union.UnmarshalJSON(b) +// MergeGetSyslogIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetSyslogIntegrationResponse +func (t *IntegrationResponse) MergeGetSyslogIntegrationResponse(v GetSyslogIntegrationResponse) error { + b, err := json.Marshal(v) if err != nil { return err } - object := make(map[string]json.RawMessage) - err = json.Unmarshal(b, &object) + b, err = runtime.JSONMerge(b, []byte(`{"type":"SYSLOG"}`)) if err != nil { return err } - if raw, found := object["auth"]; found { - err = json.Unmarshal(raw, &t.Auth) - if err != nil { - return fmt.Errorf("error reading 'auth': %w", err) - } - } - - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } - } +// AsGetWebhookIntegrationResponse returns the union data inside the IntegrationResponse as a GetWebhookIntegrationResponse +func (t IntegrationResponse) AsGetWebhookIntegrationResponse() (GetWebhookIntegrationResponse, error) { + var body GetWebhookIntegrationResponse + err := json.Unmarshal(t.union, &body) + return body, err +} - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } +// FromGetWebhookIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetWebhookIntegrationResponse +func (t *IntegrationResponse) FromGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + t.union = b + return err +} - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } +// MergeGetWebhookIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetWebhookIntegrationResponse +func (t *IntegrationResponse) MergeGetWebhookIntegrationResponse(v GetWebhookIntegrationResponse) error { + b, err := json.Marshal(v) + if err != nil { + return err } - - if raw, found := object["username"]; found { - err = json.Unmarshal(raw, &t.Username) - if err != nil { - return fmt.Errorf("error reading 'username': %w", err) - } + b, err = runtime.JSONMerge(b, []byte(`{"type":"WEBHOOK"}`)) + if err != nil { + return err } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged return err } -// AsKafkaPlaintext returns the union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as a KafkaPlaintext -func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { - var body KafkaPlaintext +// AsGetKinesisDataStreamsIntegrationResponse returns the union data inside the IntegrationResponse as a GetKinesisDataStreamsIntegrationResponse +func (t IntegrationResponse) AsGetKinesisDataStreamsIntegrationResponse() (GetKinesisDataStreamsIntegrationResponse, error) { + var body GetKinesisDataStreamsIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext -func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromGetKinesisDataStreamsIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKinesisDataStreamsIntegrationResponse +func (t *IntegrationResponse) FromGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeGetKinesisDataStreamsIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKinesisDataStreamsIntegrationResponse +func (t *IntegrationResponse) MergeGetKinesisDataStreamsIntegrationResponse(v GetKinesisDataStreamsIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_DATA_STREAMS"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted -func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { - var body KafkaTlsEncrypted +// AsGetKinesisFirehoseIntegrationResponse returns the union data inside the IntegrationResponse as a GetKinesisFirehoseIntegrationResponse +func (t IntegrationResponse) AsGetKinesisFirehoseIntegrationResponse() (GetKinesisFirehoseIntegrationResponse, error) { + var body GetKinesisFirehoseIntegrationResponse err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromGetKinesisFirehoseIntegrationResponse overwrites any union data inside the IntegrationResponse as the provided GetKinesisFirehoseIntegrationResponse +func (t *IntegrationResponse) FromGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) t.union = b return err } -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeGetKinesisFirehoseIntegrationResponse performs a merge with any union data inside the IntegrationResponse, using the provided GetKinesisFirehoseIntegrationResponse +func (t *IntegrationResponse) MergeGetKinesisFirehoseIntegrationResponse(v GetKinesisFirehoseIntegrationResponse) error { b, err := json.Marshal(v) if err != nil { return err } + b, err = runtime.JSONMerge(b, []byte(`{"type":"KINESIS_FIREHOSE"}`)) + if err != nil { + return err + } merged, err := runtime.JSONMerge(t.union, b) t.union = merged return err } -func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) 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 - } +func (t IntegrationResponse) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"type"` } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} - object["auth"], err = json.Marshal(t.Auth) +func (t IntegrationResponse) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() if err != nil { - return nil, fmt.Errorf("error marshaling 'auth': %w", err) + return nil, err } - - if t.Balancer != nil { - object["balancer"], err = json.Marshal(t.Balancer) - if err != nil { - return nil, fmt.Errorf("error marshaling 'balancer': %w", err) - } + switch discriminator { + case "CHRONICLE": + return t.AsGetChronicleIntegrationResponse() + case "ELASTIC": + return t.AsGetElasticsearchIntegrationResponse() + case "KAFKA": + return t.AsGetKafkaIntegrationResponse() + case "KINESIS_DATA_STREAMS": + return t.AsGetKinesisDataStreamsIntegrationResponse() + case "KINESIS_FIREHOSE": + return t.AsGetKinesisFirehoseIntegrationResponse() + case "MCM": + return t.AsGetMcmIntegrationResponse() + case "PUBSUB": + return t.AsGetGooglePubSubIntegrationResponse() + case "QRADAR": + return t.AsGetQradarIntegrationResponse() + case "SCC": + return t.AsGetGoogleSccIntegrationResponse() + case "SENTINEL": + return t.AsGetMicrosoftSentinelIntegrationResponse() + case "SPLUNK": + return t.AsGetSplunkIntegrationResponse() + case "SQS": + return t.AsGetAmazonSqsIntegrationResponse() + case "SYSLOG": + return t.AsGetSyslogIntegrationResponse() + case "WEBHOOK": + return t.AsGetWebhookIntegrationResponse() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) } +} - if t.Brokers != nil { - object["brokers"], err = json.Marshal(t.Brokers) - if err != nil { - return nil, fmt.Errorf("error marshaling 'brokers': %w", err) - } +func (t IntegrationResponse) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *IntegrationResponse) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsCheckboxFieldValueV1 returns the union data inside the IssueTypeFieldResponseV1_AllowedValues_Item as a CheckboxFieldValueV1 +func (t IssueTypeFieldResponseV1_AllowedValues_Item) AsCheckboxFieldValueV1() (CheckboxFieldValueV1, error) { + var body CheckboxFieldValueV1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromCheckboxFieldValueV1 overwrites any union data inside the IssueTypeFieldResponseV1_AllowedValues_Item as the provided CheckboxFieldValueV1 +func (t *IssueTypeFieldResponseV1_AllowedValues_Item) FromCheckboxFieldValueV1(v CheckboxFieldValueV1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeCheckboxFieldValueV1 performs a merge with any union data inside the IssueTypeFieldResponseV1_AllowedValues_Item, using the provided CheckboxFieldValueV1 +func (t *IssueTypeFieldResponseV1_AllowedValues_Item) MergeCheckboxFieldValueV1(v CheckboxFieldValueV1) error { + b, err := json.Marshal(v) + if err != nil { + return err } - if t.Compression != nil { - object["compression"], err = json.Marshal(t.Compression) - if err != nil { - return nil, fmt.Errorf("error marshaling 'compression': %w", err) - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t IssueTypeFieldResponseV1_AllowedValues_Item) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *IssueTypeFieldResponseV1_AllowedValues_Item) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsKafkaGssapiAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaGssapiAuthenticatedConnectionInfo +func (t KafkaAuthenticatedConnectionInfo) AsKafkaGssapiAuthenticatedConnectionInfo() (KafkaGssapiAuthenticatedConnectionInfo, error) { + var body KafkaGssapiAuthenticatedConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaGssapiAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaGssapiAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) FromKafkaGssapiAuthenticatedConnectionInfo(v KafkaGssapiAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaGssapiAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaGssapiAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaGssapiAuthenticatedConnectionInfo(v KafkaGssapiAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) + if err != nil { + return err } - object["password"], err = json.Marshal(t.Password) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsKafkaSaslPlainAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaSaslPlainAuthenticatedConnectionInfo +func (t KafkaAuthenticatedConnectionInfo) AsKafkaSaslPlainAuthenticatedConnectionInfo() (KafkaSaslPlainAuthenticatedConnectionInfo, error) { + var body KafkaSaslPlainAuthenticatedConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaSaslPlainAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaSaslPlainAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) FromKafkaSaslPlainAuthenticatedConnectionInfo(v KafkaSaslPlainAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaSaslPlainAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaSaslPlainAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslPlainAuthenticatedConnectionInfo(v KafkaSaslPlainAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'password': %w", err) + return err } - object["topic"], err = json.Marshal(t.Topic) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsKafkaSaslScramAuthenticatedConnectionInfo returns the union data inside the KafkaAuthenticatedConnectionInfo as a KafkaSaslScramAuthenticatedConnectionInfo +func (t KafkaAuthenticatedConnectionInfo) AsKafkaSaslScramAuthenticatedConnectionInfo() (KafkaSaslScramAuthenticatedConnectionInfo, error) { + var body KafkaSaslScramAuthenticatedConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaSaslScramAuthenticatedConnectionInfo overwrites any union data inside the KafkaAuthenticatedConnectionInfo as the provided KafkaSaslScramAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) FromKafkaSaslScramAuthenticatedConnectionInfo(v KafkaSaslScramAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaSaslScramAuthenticatedConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedConnectionInfo, using the provided KafkaSaslScramAuthenticatedConnectionInfo +func (t *KafkaAuthenticatedConnectionInfo) MergeKafkaSaslScramAuthenticatedConnectionInfo(v KafkaSaslScramAuthenticatedConnectionInfo) error { + b, err := json.Marshal(v) if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) + return err } - object["username"], err = json.Marshal(t.Username) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t KafkaAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() if err != nil { - return nil, fmt.Errorf("error marshaling 'username': %w", err) + 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["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) } b, err = json.Marshal(object) return b, err } -func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *KafkaAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) if err != nil { return err @@ -27710,67 +30281,146 @@ func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byt } } - if raw, found := object["balancer"]; found { - err = json.Unmarshal(raw, &t.Balancer) - if err != nil { - return fmt.Errorf("error reading 'balancer': %w", err) - } + return err +} + +// AsKafkaGssapiAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaGssapiAuthenticatedPrivateConnectionInfo +func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaGssapiAuthenticatedPrivateConnectionInfo() (KafkaGssapiAuthenticatedPrivateConnectionInfo, error) { + var body KafkaGssapiAuthenticatedPrivateConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaGssapiAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaGssapiAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaGssapiAuthenticatedPrivateConnectionInfo(v KafkaGssapiAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaGssapiAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaGssapiAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaGssapiAuthenticatedPrivateConnectionInfo(v KafkaGssapiAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + if err != nil { + return err } - if raw, found := object["brokers"]; found { - err = json.Unmarshal(raw, &t.Brokers) - if err != nil { - return fmt.Errorf("error reading 'brokers': %w", err) - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsKafkaSaslPlainAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaSaslPlainAuthenticatedPrivateConnectionInfo +func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaSaslPlainAuthenticatedPrivateConnectionInfo() (KafkaSaslPlainAuthenticatedPrivateConnectionInfo, error) { + var body KafkaSaslPlainAuthenticatedPrivateConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaSaslPlainAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaSaslPlainAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaSaslPlainAuthenticatedPrivateConnectionInfo(v KafkaSaslPlainAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaSaslPlainAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaSaslPlainAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslPlainAuthenticatedPrivateConnectionInfo(v KafkaSaslPlainAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + if err != nil { + return err } - if raw, found := object["compression"]; found { - err = json.Unmarshal(raw, &t.Compression) - if err != nil { - return fmt.Errorf("error reading 'compression': %w", err) - } + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsKafkaSaslScramAuthenticatedPrivateConnectionInfo returns the union data inside the KafkaAuthenticatedPrivateConnectionInfo as a KafkaSaslScramAuthenticatedPrivateConnectionInfo +func (t KafkaAuthenticatedPrivateConnectionInfo) AsKafkaSaslScramAuthenticatedPrivateConnectionInfo() (KafkaSaslScramAuthenticatedPrivateConnectionInfo, error) { + var body KafkaSaslScramAuthenticatedPrivateConnectionInfo + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromKafkaSaslScramAuthenticatedPrivateConnectionInfo overwrites any union data inside the KafkaAuthenticatedPrivateConnectionInfo as the provided KafkaSaslScramAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) FromKafkaSaslScramAuthenticatedPrivateConnectionInfo(v KafkaSaslScramAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeKafkaSaslScramAuthenticatedPrivateConnectionInfo performs a merge with any union data inside the KafkaAuthenticatedPrivateConnectionInfo, using the provided KafkaSaslScramAuthenticatedPrivateConnectionInfo +func (t *KafkaAuthenticatedPrivateConnectionInfo) MergeKafkaSaslScramAuthenticatedPrivateConnectionInfo(v KafkaSaslScramAuthenticatedPrivateConnectionInfo) error { + b, err := json.Marshal(v) + if err != nil { + return err } - if raw, found := object["password"]; found { - err = json.Unmarshal(raw, &t.Password) + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t KafkaAuthenticatedPrivateConnectionInfo) 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 fmt.Errorf("error reading 'password': %w", err) + return nil, err } } - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) - if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) - } + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) } - if raw, found := object["username"]; found { - err = json.Unmarshal(raw, &t.Username) + b, err = json.Marshal(object) + return b, err +} + +func (t *KafkaAuthenticatedPrivateConnectionInfo) 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["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) if err != nil { - return fmt.Errorf("error reading 'username': %w", err) + return fmt.Errorf("error reading 'auth': %w", err) } } return err } -// AsKafkaPlaintext returns the union data inside the KafkaSaslScramAuthenticatedConnectionInfo as a KafkaPlaintext -func (t KafkaSaslScramAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { +// AsKafkaPlaintext returns the union data inside the KafkaGssapiAuthenticatedConnectionInfo as a KafkaPlaintext +func (t KafkaGssapiAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaSaslScramAuthenticatedConnectionInfo as the provided KafkaPlaintext -func (t *KafkaSaslScramAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaGssapiAuthenticatedConnectionInfo as the provided KafkaPlaintext +func (t *KafkaGssapiAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslScramAuthenticatedConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaGssapiAuthenticatedConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -27781,22 +30431,22 @@ func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaP return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslScramAuthenticatedConnectionInfo as a KafkaTlsEncrypted -func (t KafkaSaslScramAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { +// AsKafkaTlsEncrypted returns the union data inside the KafkaGssapiAuthenticatedConnectionInfo as a KafkaTlsEncrypted +func (t KafkaGssapiAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslScramAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaSaslScramAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaGssapiAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaGssapiAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslScramAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaGssapiAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaGssapiAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -27807,7 +30457,7 @@ func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v Kaf return err } -func (t KafkaSaslScramAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { +func (t KafkaGssapiAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() if err != nil { return nil, err @@ -27820,11 +30470,6 @@ func (t KafkaSaslScramAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) } } - object["algorithm"], err = json.Marshal(t.Algorithm) - if err != nil { - return nil, fmt.Errorf("error marshaling 'algorithm': %w", err) - } - object["auth"], err = json.Marshal(t.Auth) if err != nil { return nil, fmt.Errorf("error marshaling 'auth': %w", err) @@ -27851,21 +30496,36 @@ func (t KafkaSaslScramAuthenticatedConnectionInfo) MarshalJSON() ([]byte, error) } } - object["topic"], err = json.Marshal(t.Topic) + object["krb5"], err = json.Marshal(t.Krb5) if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) + return nil, fmt.Errorf("error marshaling 'krb5': %w", err) } - object["username"], err = json.Marshal(t.Username) + object["principal"], err = json.Marshal(t.Principal) if err != nil { - return nil, fmt.Errorf("error marshaling 'username': %w", err) + return nil, fmt.Errorf("error marshaling 'principal': %w", err) + } + + object["realm"], err = json.Marshal(t.Realm) + if err != nil { + return nil, fmt.Errorf("error marshaling 'realm': %w", err) + } + + object["service"], err = json.Marshal(t.Service) + if err != nil { + return nil, fmt.Errorf("error marshaling 'service': %w", err) + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) } b, err = json.Marshal(object) return b, err } -func (t *KafkaSaslScramAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *KafkaGssapiAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) if err != nil { return err @@ -27876,13 +30536,6 @@ func (t *KafkaSaslScramAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) erro return err } - if raw, found := object["algorithm"]; found { - err = json.Unmarshal(raw, &t.Algorithm) - if err != nil { - return fmt.Errorf("error reading 'algorithm': %w", err) - } - } - if raw, found := object["auth"]; found { err = json.Unmarshal(raw, &t.Auth) if err != nil { @@ -27911,39 +30564,60 @@ func (t *KafkaSaslScramAuthenticatedConnectionInfo) UnmarshalJSON(b []byte) erro } } - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) + if raw, found := object["krb5"]; found { + err = json.Unmarshal(raw, &t.Krb5) if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) + return fmt.Errorf("error reading 'krb5': %w", err) } } - if raw, found := object["username"]; found { - err = json.Unmarshal(raw, &t.Username) + if raw, found := object["principal"]; found { + err = json.Unmarshal(raw, &t.Principal) if err != nil { - return fmt.Errorf("error reading 'username': %w", err) + return fmt.Errorf("error reading 'principal': %w", err) + } + } + + if raw, found := object["realm"]; found { + err = json.Unmarshal(raw, &t.Realm) + if err != nil { + return fmt.Errorf("error reading 'realm': %w", err) + } + } + + if raw, found := object["service"]; found { + err = json.Unmarshal(raw, &t.Service) + if err != nil { + return fmt.Errorf("error reading 'service': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) } } return err } -// AsKafkaPlaintext returns the union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as a KafkaPlaintext -func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { +// AsKafkaPlaintext returns the union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as a KafkaPlaintext +func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaPlaintext overwrites any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext -func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext +func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext -func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -27954,22 +30628,22 @@ func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v return err } -// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted -func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { +// AsKafkaTlsEncrypted returns the union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted +func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted -func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted -func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaGssapiAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -27980,7 +30654,7 @@ func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypte return err } -func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, error) { +func (t KafkaGssapiAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, error) { b, err := t.union.MarshalJSON() if err != nil { return nil, err @@ -27993,11 +30667,6 @@ func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, } } - object["algorithm"], err = json.Marshal(t.Algorithm) - if err != nil { - return nil, fmt.Errorf("error marshaling 'algorithm': %w", err) - } - object["auth"], err = json.Marshal(t.Auth) if err != nil { return nil, fmt.Errorf("error marshaling 'auth': %w", err) @@ -28024,26 +30693,41 @@ func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) MarshalJSON() ([]byte, } } - object["password"], err = json.Marshal(t.Password) + object["keytab"], err = json.Marshal(t.Keytab) if err != nil { - return nil, fmt.Errorf("error marshaling 'password': %w", err) + return nil, fmt.Errorf("error marshaling 'keytab': %w", err) } - object["topic"], err = json.Marshal(t.Topic) + object["krb5"], err = json.Marshal(t.Krb5) if err != nil { - return nil, fmt.Errorf("error marshaling 'topic': %w", err) + return nil, fmt.Errorf("error marshaling 'krb5': %w", err) } - object["username"], err = json.Marshal(t.Username) + object["principal"], err = json.Marshal(t.Principal) if err != nil { - return nil, fmt.Errorf("error marshaling 'username': %w", err) + return nil, fmt.Errorf("error marshaling 'principal': %w", err) + } + + object["realm"], err = json.Marshal(t.Realm) + if err != nil { + return nil, fmt.Errorf("error marshaling 'realm': %w", err) + } + + object["service"], err = json.Marshal(t.Service) + if err != nil { + return nil, fmt.Errorf("error marshaling 'service': %w", err) + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) } b, err = json.Marshal(object) return b, err } -func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byte) error { +func (t *KafkaGssapiAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byte) error { err := t.union.UnmarshalJSON(b) if err != nil { return err @@ -28054,13 +30738,6 @@ func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byt return err } - if raw, found := object["algorithm"]; found { - err = json.Unmarshal(raw, &t.Algorithm) - if err != nil { - return fmt.Errorf("error reading 'algorithm': %w", err) - } - } - if raw, found := object["auth"]; found { err = json.Unmarshal(raw, &t.Auth) if err != nil { @@ -28089,72 +30766,67 @@ func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) UnmarshalJSON(b []byt } } - if raw, found := object["password"]; found { - err = json.Unmarshal(raw, &t.Password) + if raw, found := object["keytab"]; found { + err = json.Unmarshal(raw, &t.Keytab) if err != nil { - return fmt.Errorf("error reading 'password': %w", err) + return fmt.Errorf("error reading 'keytab': %w", err) } } - if raw, found := object["topic"]; found { - err = json.Unmarshal(raw, &t.Topic) + if raw, found := object["krb5"]; found { + err = json.Unmarshal(raw, &t.Krb5) if err != nil { - return fmt.Errorf("error reading 'topic': %w", err) + return fmt.Errorf("error reading 'krb5': %w", err) } } - if raw, found := object["username"]; found { - err = json.Unmarshal(raw, &t.Username) + if raw, found := object["principal"]; found { + err = json.Unmarshal(raw, &t.Principal) if err != nil { - return fmt.Errorf("error reading 'username': %w", err) + return fmt.Errorf("error reading 'principal': %w", err) } } - return err -} - -// AsVulnSeverity returns the union data inside the Predicates_Item as a VulnSeverity -func (t Predicates_Item) AsVulnSeverity() (VulnSeverity, error) { - var body VulnSeverity - err := json.Unmarshal(t.union, &body) - return body, err -} + if raw, found := object["realm"]; found { + err = json.Unmarshal(raw, &t.Realm) + if err != nil { + return fmt.Errorf("error reading 'realm': %w", err) + } + } -// FromVulnSeverity overwrites any union data inside the Predicates_Item as the provided VulnSeverity -func (t *Predicates_Item) FromVulnSeverity(v VulnSeverity) error { - b, err := json.Marshal(v) - t.union = b - return err -} + if raw, found := object["service"]; found { + err = json.Unmarshal(raw, &t.Service) + if err != nil { + return fmt.Errorf("error reading 'service': %w", err) + } + } -// MergeVulnSeverity performs a merge with any union data inside the Predicates_Item, using the provided VulnSeverity -func (t *Predicates_Item) MergeVulnSeverity(v VulnSeverity) error { - b, err := json.Marshal(v) - if err != nil { - return err + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } } - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged return err } -// AsVulnSeverityEquals returns the union data inside the Predicates_Item as a VulnSeverityEquals -func (t Predicates_Item) AsVulnSeverityEquals() (VulnSeverityEquals, error) { - var body VulnSeverityEquals +// AsKafkaPlaintext returns the union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as a KafkaPlaintext +func (t KafkaSaslPlainAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { + var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnSeverityEquals overwrites any union data inside the Predicates_Item as the provided VulnSeverityEquals -func (t *Predicates_Item) FromVulnSeverityEquals(v VulnSeverityEquals) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as the provided KafkaPlaintext +func (t *KafkaSaslPlainAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnSeverityEquals performs a merge with any union data inside the Predicates_Item, using the provided VulnSeverityEquals -func (t *Predicates_Item) MergeVulnSeverityEquals(v VulnSeverityEquals) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaSaslPlainAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -28165,22 +30837,22 @@ func (t *Predicates_Item) MergeVulnSeverityEquals(v VulnSeverityEquals) error { return err } -// AsVulnIsFixable returns the union data inside the Predicates_Item as a VulnIsFixable -func (t Predicates_Item) AsVulnIsFixable() (VulnIsFixable, error) { - var body VulnIsFixable +// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as a KafkaTlsEncrypted +func (t KafkaSaslPlainAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { + var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnIsFixable overwrites any union data inside the Predicates_Item as the provided VulnIsFixable -func (t *Predicates_Item) FromVulnIsFixable(v VulnIsFixable) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaSaslPlainAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnIsFixable performs a merge with any union data inside the Predicates_Item, using the provided VulnIsFixable -func (t *Predicates_Item) MergeVulnIsFixable(v VulnIsFixable) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslPlainAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaSaslPlainAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -28191,48 +30863,131 @@ func (t *Predicates_Item) MergeVulnIsFixable(v VulnIsFixable) error { return err } -// AsVulnIsFixableWithAge returns the union data inside the Predicates_Item as a VulnIsFixableWithAge -func (t Predicates_Item) AsVulnIsFixableWithAge() (VulnIsFixableWithAge, error) { - var body VulnIsFixableWithAge - err := json.Unmarshal(t.union, &body) - return body, err -} +func (t KafkaSaslPlainAuthenticatedConnectionInfo) 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 + } + } -// FromVulnIsFixableWithAge overwrites any union data inside the Predicates_Item as the provided VulnIsFixableWithAge -func (t *Predicates_Item) FromVulnIsFixableWithAge(v VulnIsFixableWithAge) error { - b, err := json.Marshal(v) - t.union = b - return err + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + object["username"], err = json.Marshal(t.Username) + if err != nil { + return nil, fmt.Errorf("error marshaling 'username': %w", err) + } + + b, err = json.Marshal(object) + return b, err } -// MergeVulnIsFixableWithAge performs a merge with any union data inside the Predicates_Item, using the provided VulnIsFixableWithAge -func (t *Predicates_Item) MergeVulnIsFixableWithAge(v VulnIsFixableWithAge) error { - b, err := json.Marshal(v) +func (t *KafkaSaslPlainAuthenticatedConnectionInfo) 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 } - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged + if raw, found := object["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) + if err != nil { + return fmt.Errorf("error reading 'auth': %w", err) + } + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + if raw, found := object["username"]; found { + err = json.Unmarshal(raw, &t.Username) + if err != nil { + return fmt.Errorf("error reading 'username': %w", err) + } + } + return err } -// AsVulnAge returns the union data inside the Predicates_Item as a VulnAge -func (t Predicates_Item) AsVulnAge() (VulnAge, error) { - var body VulnAge +// AsKafkaPlaintext returns the union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as a KafkaPlaintext +func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { + var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnAge overwrites any union data inside the Predicates_Item as the provided VulnAge -func (t *Predicates_Item) FromVulnAge(v VulnAge) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext +func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnAge performs a merge with any union data inside the Predicates_Item, using the provided VulnAge -func (t *Predicates_Item) MergeVulnAge(v VulnAge) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -28243,22 +30998,22 @@ func (t *Predicates_Item) MergeVulnAge(v VulnAge) error { return err } -// AsVulnPkgType returns the union data inside the Predicates_Item as a VulnPkgType -func (t Predicates_Item) AsVulnPkgType() (VulnPkgType, error) { - var body VulnPkgType +// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted +func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { + var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnPkgType overwrites any union data inside the Predicates_Item as the provided VulnPkgType -func (t *Predicates_Item) FromVulnPkgType(v VulnPkgType) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnPkgType performs a merge with any union data inside the Predicates_Item, using the provided VulnPkgType -func (t *Predicates_Item) MergeVulnPkgType(v VulnPkgType) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslPlainAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -28269,48 +31024,143 @@ func (t *Predicates_Item) MergeVulnPkgType(v VulnPkgType) error { return err } -// AsVulnCvss returns the union data inside the Predicates_Item as a VulnCvss -func (t Predicates_Item) AsVulnCvss() (VulnCvss, error) { - var body VulnCvss - err := json.Unmarshal(t.union, &body) - return body, err -} +func (t KafkaSaslPlainAuthenticatedPrivateConnectionInfo) 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 + } + } -// FromVulnCvss overwrites any union data inside the Predicates_Item as the provided VulnCvss -func (t *Predicates_Item) FromVulnCvss(v VulnCvss) error { - b, err := json.Marshal(v) - t.union = b - return err + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["password"], err = json.Marshal(t.Password) + if err != nil { + return nil, fmt.Errorf("error marshaling 'password': %w", err) + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + object["username"], err = json.Marshal(t.Username) + if err != nil { + return nil, fmt.Errorf("error marshaling 'username': %w", err) + } + + b, err = json.Marshal(object) + return b, err } -// MergeVulnCvss performs a merge with any union data inside the Predicates_Item, using the provided VulnCvss -func (t *Predicates_Item) MergeVulnCvss(v VulnCvss) error { - b, err := json.Marshal(v) +func (t *KafkaSaslPlainAuthenticatedPrivateConnectionInfo) 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 } - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged + if raw, found := object["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) + if err != nil { + return fmt.Errorf("error reading 'auth': %w", err) + } + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["password"]; found { + err = json.Unmarshal(raw, &t.Password) + if err != nil { + return fmt.Errorf("error reading 'password': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + if raw, found := object["username"]; found { + err = json.Unmarshal(raw, &t.Username) + if err != nil { + return fmt.Errorf("error reading 'username': %w", err) + } + } + return err } -// AsVulnCvssEquals returns the union data inside the Predicates_Item as a VulnCvssEquals -func (t Predicates_Item) AsVulnCvssEquals() (VulnCvssEquals, error) { - var body VulnCvssEquals +// AsKafkaPlaintext returns the union data inside the KafkaSaslScramAuthenticatedConnectionInfo as a KafkaPlaintext +func (t KafkaSaslScramAuthenticatedConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { + var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnCvssEquals overwrites any union data inside the Predicates_Item as the provided VulnCvssEquals -func (t *Predicates_Item) FromVulnCvssEquals(v VulnCvssEquals) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaSaslScramAuthenticatedConnectionInfo as the provided KafkaPlaintext +func (t *KafkaSaslScramAuthenticatedConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnCvssEquals performs a merge with any union data inside the Predicates_Item, using the provided VulnCvssEquals -func (t *Predicates_Item) MergeVulnCvssEquals(v VulnCvssEquals) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslScramAuthenticatedConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -28321,22 +31171,22 @@ func (t *Predicates_Item) MergeVulnCvssEquals(v VulnCvssEquals) error { return err } -// AsVulnExploitable returns the union data inside the Predicates_Item as a VulnExploitable -func (t Predicates_Item) AsVulnExploitable() (VulnExploitable, error) { - var body VulnExploitable +// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslScramAuthenticatedConnectionInfo as a KafkaTlsEncrypted +func (t KafkaSaslScramAuthenticatedConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { + var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnExploitable overwrites any union data inside the Predicates_Item as the provided VulnExploitable -func (t *Predicates_Item) FromVulnExploitable(v VulnExploitable) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslScramAuthenticatedConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaSaslScramAuthenticatedConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnExploitable performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitable -func (t *Predicates_Item) MergeVulnExploitable(v VulnExploitable) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslScramAuthenticatedConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaSaslScramAuthenticatedConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -28347,48 +31197,143 @@ func (t *Predicates_Item) MergeVulnExploitable(v VulnExploitable) error { return err } -// AsVulnExploitableWithAge returns the union data inside the Predicates_Item as a VulnExploitableWithAge -func (t Predicates_Item) AsVulnExploitableWithAge() (VulnExploitableWithAge, error) { - var body VulnExploitableWithAge - err := json.Unmarshal(t.union, &body) - return body, err -} +func (t KafkaSaslScramAuthenticatedConnectionInfo) 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 + } + } -// FromVulnExploitableWithAge overwrites any union data inside the Predicates_Item as the provided VulnExploitableWithAge -func (t *Predicates_Item) FromVulnExploitableWithAge(v VulnExploitableWithAge) error { - b, err := json.Marshal(v) - t.union = b - return err + object["algorithm"], err = json.Marshal(t.Algorithm) + if err != nil { + return nil, fmt.Errorf("error marshaling 'algorithm': %w", err) + } + + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + object["username"], err = json.Marshal(t.Username) + if err != nil { + return nil, fmt.Errorf("error marshaling 'username': %w", err) + } + + b, err = json.Marshal(object) + return b, err } -// MergeVulnExploitableWithAge performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableWithAge -func (t *Predicates_Item) MergeVulnExploitableWithAge(v VulnExploitableWithAge) error { - b, err := json.Marshal(v) +func (t *KafkaSaslScramAuthenticatedConnectionInfo) 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 } - merged, err := runtime.JSONMerge(t.union, b) - t.union = merged + if raw, found := object["algorithm"]; found { + err = json.Unmarshal(raw, &t.Algorithm) + if err != nil { + return fmt.Errorf("error reading 'algorithm': %w", err) + } + } + + if raw, found := object["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) + if err != nil { + return fmt.Errorf("error reading 'auth': %w", err) + } + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + if raw, found := object["username"]; found { + err = json.Unmarshal(raw, &t.Username) + if err != nil { + return fmt.Errorf("error reading 'username': %w", err) + } + } + return err } -// AsVulnExploitableNoAdmin returns the union data inside the Predicates_Item as a VulnExploitableNoAdmin -func (t Predicates_Item) AsVulnExploitableNoAdmin() (VulnExploitableNoAdmin, error) { - var body VulnExploitableNoAdmin +// AsKafkaPlaintext returns the union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as a KafkaPlaintext +func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) AsKafkaPlaintext() (KafkaPlaintext, error) { + var body KafkaPlaintext err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnExploitableNoAdmin overwrites any union data inside the Predicates_Item as the provided VulnExploitableNoAdmin -func (t *Predicates_Item) FromVulnExploitableNoAdmin(v VulnExploitableNoAdmin) error { +// FromKafkaPlaintext overwrites any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as the provided KafkaPlaintext +func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) FromKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnExploitableNoAdmin performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableNoAdmin -func (t *Predicates_Item) MergeVulnExploitableNoAdmin(v VulnExploitableNoAdmin) error { +// MergeKafkaPlaintext performs a merge with any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo, using the provided KafkaPlaintext +func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaPlaintext(v KafkaPlaintext) error { b, err := json.Marshal(v) if err != nil { return err @@ -28399,22 +31344,22 @@ func (t *Predicates_Item) MergeVulnExploitableNoAdmin(v VulnExploitableNoAdmin) return err } -// AsVulnExploitableNoUser returns the union data inside the Predicates_Item as a VulnExploitableNoUser -func (t Predicates_Item) AsVulnExploitableNoUser() (VulnExploitableNoUser, error) { - var body VulnExploitableNoUser +// AsKafkaTlsEncrypted returns the union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as a KafkaTlsEncrypted +func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) AsKafkaTlsEncrypted() (KafkaTlsEncrypted, error) { + var body KafkaTlsEncrypted err := json.Unmarshal(t.union, &body) return body, err } -// FromVulnExploitableNoUser overwrites any union data inside the Predicates_Item as the provided VulnExploitableNoUser -func (t *Predicates_Item) FromVulnExploitableNoUser(v VulnExploitableNoUser) error { +// FromKafkaTlsEncrypted overwrites any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo as the provided KafkaTlsEncrypted +func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) FromKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) t.union = b return err } -// MergeVulnExploitableNoUser performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableNoUser -func (t *Predicates_Item) MergeVulnExploitableNoUser(v VulnExploitableNoUser) error { +// MergeKafkaTlsEncrypted performs a merge with any union data inside the KafkaSaslScramAuthenticatedPrivateConnectionInfo, using the provided KafkaTlsEncrypted +func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) MergeKafkaTlsEncrypted(v KafkaTlsEncrypted) error { b, err := json.Marshal(v) if err != nil { return err @@ -28425,16 +31370,461 @@ func (t *Predicates_Item) MergeVulnExploitableNoUser(v VulnExploitableNoUser) er return err } -// AsVulnExploitableViaNetwork returns the union data inside the Predicates_Item as a VulnExploitableViaNetwork -func (t Predicates_Item) AsVulnExploitableViaNetwork() (VulnExploitableViaNetwork, error) { - var body VulnExploitableViaNetwork - err := json.Unmarshal(t.union, &body) - return body, err -} - -// FromVulnExploitableViaNetwork overwrites any union data inside the Predicates_Item as the provided VulnExploitableViaNetwork -func (t *Predicates_Item) FromVulnExploitableViaNetwork(v VulnExploitableViaNetwork) error { - b, err := json.Marshal(v) +func (t KafkaSaslScramAuthenticatedPrivateConnectionInfo) 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["algorithm"], err = json.Marshal(t.Algorithm) + if err != nil { + return nil, fmt.Errorf("error marshaling 'algorithm': %w", err) + } + + object["auth"], err = json.Marshal(t.Auth) + if err != nil { + return nil, fmt.Errorf("error marshaling 'auth': %w", err) + } + + if t.Balancer != nil { + object["balancer"], err = json.Marshal(t.Balancer) + if err != nil { + return nil, fmt.Errorf("error marshaling 'balancer': %w", err) + } + } + + if t.Brokers != nil { + object["brokers"], err = json.Marshal(t.Brokers) + if err != nil { + return nil, fmt.Errorf("error marshaling 'brokers': %w", err) + } + } + + if t.Compression != nil { + object["compression"], err = json.Marshal(t.Compression) + if err != nil { + return nil, fmt.Errorf("error marshaling 'compression': %w", err) + } + } + + object["password"], err = json.Marshal(t.Password) + if err != nil { + return nil, fmt.Errorf("error marshaling 'password': %w", err) + } + + object["topic"], err = json.Marshal(t.Topic) + if err != nil { + return nil, fmt.Errorf("error marshaling 'topic': %w", err) + } + + object["username"], err = json.Marshal(t.Username) + if err != nil { + return nil, fmt.Errorf("error marshaling 'username': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *KafkaSaslScramAuthenticatedPrivateConnectionInfo) 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["algorithm"]; found { + err = json.Unmarshal(raw, &t.Algorithm) + if err != nil { + return fmt.Errorf("error reading 'algorithm': %w", err) + } + } + + if raw, found := object["auth"]; found { + err = json.Unmarshal(raw, &t.Auth) + if err != nil { + return fmt.Errorf("error reading 'auth': %w", err) + } + } + + if raw, found := object["balancer"]; found { + err = json.Unmarshal(raw, &t.Balancer) + if err != nil { + return fmt.Errorf("error reading 'balancer': %w", err) + } + } + + if raw, found := object["brokers"]; found { + err = json.Unmarshal(raw, &t.Brokers) + if err != nil { + return fmt.Errorf("error reading 'brokers': %w", err) + } + } + + if raw, found := object["compression"]; found { + err = json.Unmarshal(raw, &t.Compression) + if err != nil { + return fmt.Errorf("error reading 'compression': %w", err) + } + } + + if raw, found := object["password"]; found { + err = json.Unmarshal(raw, &t.Password) + if err != nil { + return fmt.Errorf("error reading 'password': %w", err) + } + } + + if raw, found := object["topic"]; found { + err = json.Unmarshal(raw, &t.Topic) + if err != nil { + return fmt.Errorf("error reading 'topic': %w", err) + } + } + + if raw, found := object["username"]; found { + err = json.Unmarshal(raw, &t.Username) + if err != nil { + return fmt.Errorf("error reading 'username': %w", err) + } + } + + return err +} + +// AsVulnSeverity returns the union data inside the Predicates_Item as a VulnSeverity +func (t Predicates_Item) AsVulnSeverity() (VulnSeverity, error) { + var body VulnSeverity + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnSeverity overwrites any union data inside the Predicates_Item as the provided VulnSeverity +func (t *Predicates_Item) FromVulnSeverity(v VulnSeverity) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnSeverity performs a merge with any union data inside the Predicates_Item, using the provided VulnSeverity +func (t *Predicates_Item) MergeVulnSeverity(v VulnSeverity) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnSeverityEquals returns the union data inside the Predicates_Item as a VulnSeverityEquals +func (t Predicates_Item) AsVulnSeverityEquals() (VulnSeverityEquals, error) { + var body VulnSeverityEquals + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnSeverityEquals overwrites any union data inside the Predicates_Item as the provided VulnSeverityEquals +func (t *Predicates_Item) FromVulnSeverityEquals(v VulnSeverityEquals) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnSeverityEquals performs a merge with any union data inside the Predicates_Item, using the provided VulnSeverityEquals +func (t *Predicates_Item) MergeVulnSeverityEquals(v VulnSeverityEquals) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnIsFixable returns the union data inside the Predicates_Item as a VulnIsFixable +func (t Predicates_Item) AsVulnIsFixable() (VulnIsFixable, error) { + var body VulnIsFixable + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnIsFixable overwrites any union data inside the Predicates_Item as the provided VulnIsFixable +func (t *Predicates_Item) FromVulnIsFixable(v VulnIsFixable) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnIsFixable performs a merge with any union data inside the Predicates_Item, using the provided VulnIsFixable +func (t *Predicates_Item) MergeVulnIsFixable(v VulnIsFixable) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnIsFixableWithAge returns the union data inside the Predicates_Item as a VulnIsFixableWithAge +func (t Predicates_Item) AsVulnIsFixableWithAge() (VulnIsFixableWithAge, error) { + var body VulnIsFixableWithAge + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnIsFixableWithAge overwrites any union data inside the Predicates_Item as the provided VulnIsFixableWithAge +func (t *Predicates_Item) FromVulnIsFixableWithAge(v VulnIsFixableWithAge) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnIsFixableWithAge performs a merge with any union data inside the Predicates_Item, using the provided VulnIsFixableWithAge +func (t *Predicates_Item) MergeVulnIsFixableWithAge(v VulnIsFixableWithAge) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnAge returns the union data inside the Predicates_Item as a VulnAge +func (t Predicates_Item) AsVulnAge() (VulnAge, error) { + var body VulnAge + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnAge overwrites any union data inside the Predicates_Item as the provided VulnAge +func (t *Predicates_Item) FromVulnAge(v VulnAge) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnAge performs a merge with any union data inside the Predicates_Item, using the provided VulnAge +func (t *Predicates_Item) MergeVulnAge(v VulnAge) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnPkgType returns the union data inside the Predicates_Item as a VulnPkgType +func (t Predicates_Item) AsVulnPkgType() (VulnPkgType, error) { + var body VulnPkgType + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnPkgType overwrites any union data inside the Predicates_Item as the provided VulnPkgType +func (t *Predicates_Item) FromVulnPkgType(v VulnPkgType) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnPkgType performs a merge with any union data inside the Predicates_Item, using the provided VulnPkgType +func (t *Predicates_Item) MergeVulnPkgType(v VulnPkgType) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnCvss returns the union data inside the Predicates_Item as a VulnCvss +func (t Predicates_Item) AsVulnCvss() (VulnCvss, error) { + var body VulnCvss + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnCvss overwrites any union data inside the Predicates_Item as the provided VulnCvss +func (t *Predicates_Item) FromVulnCvss(v VulnCvss) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnCvss performs a merge with any union data inside the Predicates_Item, using the provided VulnCvss +func (t *Predicates_Item) MergeVulnCvss(v VulnCvss) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnCvssEquals returns the union data inside the Predicates_Item as a VulnCvssEquals +func (t Predicates_Item) AsVulnCvssEquals() (VulnCvssEquals, error) { + var body VulnCvssEquals + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnCvssEquals overwrites any union data inside the Predicates_Item as the provided VulnCvssEquals +func (t *Predicates_Item) FromVulnCvssEquals(v VulnCvssEquals) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnCvssEquals performs a merge with any union data inside the Predicates_Item, using the provided VulnCvssEquals +func (t *Predicates_Item) MergeVulnCvssEquals(v VulnCvssEquals) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnExploitable returns the union data inside the Predicates_Item as a VulnExploitable +func (t Predicates_Item) AsVulnExploitable() (VulnExploitable, error) { + var body VulnExploitable + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnExploitable overwrites any union data inside the Predicates_Item as the provided VulnExploitable +func (t *Predicates_Item) FromVulnExploitable(v VulnExploitable) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnExploitable performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitable +func (t *Predicates_Item) MergeVulnExploitable(v VulnExploitable) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnExploitableWithAge returns the union data inside the Predicates_Item as a VulnExploitableWithAge +func (t Predicates_Item) AsVulnExploitableWithAge() (VulnExploitableWithAge, error) { + var body VulnExploitableWithAge + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnExploitableWithAge overwrites any union data inside the Predicates_Item as the provided VulnExploitableWithAge +func (t *Predicates_Item) FromVulnExploitableWithAge(v VulnExploitableWithAge) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnExploitableWithAge performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableWithAge +func (t *Predicates_Item) MergeVulnExploitableWithAge(v VulnExploitableWithAge) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnExploitableNoAdmin returns the union data inside the Predicates_Item as a VulnExploitableNoAdmin +func (t Predicates_Item) AsVulnExploitableNoAdmin() (VulnExploitableNoAdmin, error) { + var body VulnExploitableNoAdmin + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnExploitableNoAdmin overwrites any union data inside the Predicates_Item as the provided VulnExploitableNoAdmin +func (t *Predicates_Item) FromVulnExploitableNoAdmin(v VulnExploitableNoAdmin) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnExploitableNoAdmin performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableNoAdmin +func (t *Predicates_Item) MergeVulnExploitableNoAdmin(v VulnExploitableNoAdmin) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnExploitableNoUser returns the union data inside the Predicates_Item as a VulnExploitableNoUser +func (t Predicates_Item) AsVulnExploitableNoUser() (VulnExploitableNoUser, error) { + var body VulnExploitableNoUser + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnExploitableNoUser overwrites any union data inside the Predicates_Item as the provided VulnExploitableNoUser +func (t *Predicates_Item) FromVulnExploitableNoUser(v VulnExploitableNoUser) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeVulnExploitableNoUser performs a merge with any union data inside the Predicates_Item, using the provided VulnExploitableNoUser +func (t *Predicates_Item) MergeVulnExploitableNoUser(v VulnExploitableNoUser) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsVulnExploitableViaNetwork returns the union data inside the Predicates_Item as a VulnExploitableViaNetwork +func (t Predicates_Item) AsVulnExploitableViaNetwork() (VulnExploitableViaNetwork, error) { + var body VulnExploitableViaNetwork + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromVulnExploitableViaNetwork overwrites any union data inside the Predicates_Item as the provided VulnExploitableViaNetwork +func (t *Predicates_Item) FromVulnExploitableViaNetwork(v VulnExploitableViaNetwork) error { + b, err := json.Marshal(v) t.union = b return err } @@ -29395,6 +32785,156 @@ func (t *QueryTime) UnmarshalJSON(b []byte) error { return err } +// AsReportFilterV2Alpha1Value0 returns the union data inside the ReportFilterV2Alpha1_Value as a ReportFilterV2Alpha1Value0 +func (t ReportFilterV2Alpha1_Value) AsReportFilterV2Alpha1Value0() (ReportFilterV2Alpha1Value0, error) { + var body ReportFilterV2Alpha1Value0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromReportFilterV2Alpha1Value0 overwrites any union data inside the ReportFilterV2Alpha1_Value as the provided ReportFilterV2Alpha1Value0 +func (t *ReportFilterV2Alpha1_Value) FromReportFilterV2Alpha1Value0(v ReportFilterV2Alpha1Value0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeReportFilterV2Alpha1Value0 performs a merge with any union data inside the ReportFilterV2Alpha1_Value, using the provided ReportFilterV2Alpha1Value0 +func (t *ReportFilterV2Alpha1_Value) MergeReportFilterV2Alpha1Value0(v ReportFilterV2Alpha1Value0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsReportFilterV2Alpha1Value1 returns the union data inside the ReportFilterV2Alpha1_Value as a ReportFilterV2Alpha1Value1 +func (t ReportFilterV2Alpha1_Value) AsReportFilterV2Alpha1Value1() (ReportFilterV2Alpha1Value1, error) { + var body ReportFilterV2Alpha1Value1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromReportFilterV2Alpha1Value1 overwrites any union data inside the ReportFilterV2Alpha1_Value as the provided ReportFilterV2Alpha1Value1 +func (t *ReportFilterV2Alpha1_Value) FromReportFilterV2Alpha1Value1(v ReportFilterV2Alpha1Value1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeReportFilterV2Alpha1Value1 performs a merge with any union data inside the ReportFilterV2Alpha1_Value, using the provided ReportFilterV2Alpha1Value1 +func (t *ReportFilterV2Alpha1_Value) MergeReportFilterV2Alpha1Value1(v ReportFilterV2Alpha1Value1) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsReportFilterV2Alpha1Value2 returns the union data inside the ReportFilterV2Alpha1_Value as a ReportFilterV2Alpha1Value2 +func (t ReportFilterV2Alpha1_Value) AsReportFilterV2Alpha1Value2() (ReportFilterV2Alpha1Value2, error) { + var body ReportFilterV2Alpha1Value2 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromReportFilterV2Alpha1Value2 overwrites any union data inside the ReportFilterV2Alpha1_Value as the provided ReportFilterV2Alpha1Value2 +func (t *ReportFilterV2Alpha1_Value) FromReportFilterV2Alpha1Value2(v ReportFilterV2Alpha1Value2) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeReportFilterV2Alpha1Value2 performs a merge with any union data inside the ReportFilterV2Alpha1_Value, using the provided ReportFilterV2Alpha1Value2 +func (t *ReportFilterV2Alpha1_Value) MergeReportFilterV2Alpha1Value2(v ReportFilterV2Alpha1Value2) 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 ReportFilterV2Alpha1_Value) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *ReportFilterV2Alpha1_Value) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + +// AsReportFilterV2Alpha1Values0 returns the union data inside the ReportFilterV2Alpha1_Values_Item as a ReportFilterV2Alpha1Values0 +func (t ReportFilterV2Alpha1_Values_Item) AsReportFilterV2Alpha1Values0() (ReportFilterV2Alpha1Values0, error) { + var body ReportFilterV2Alpha1Values0 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromReportFilterV2Alpha1Values0 overwrites any union data inside the ReportFilterV2Alpha1_Values_Item as the provided ReportFilterV2Alpha1Values0 +func (t *ReportFilterV2Alpha1_Values_Item) FromReportFilterV2Alpha1Values0(v ReportFilterV2Alpha1Values0) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeReportFilterV2Alpha1Values0 performs a merge with any union data inside the ReportFilterV2Alpha1_Values_Item, using the provided ReportFilterV2Alpha1Values0 +func (t *ReportFilterV2Alpha1_Values_Item) MergeReportFilterV2Alpha1Values0(v ReportFilterV2Alpha1Values0) error { + b, err := json.Marshal(v) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsReportFilterV2Alpha1Values1 returns the union data inside the ReportFilterV2Alpha1_Values_Item as a ReportFilterV2Alpha1Values1 +func (t ReportFilterV2Alpha1_Values_Item) AsReportFilterV2Alpha1Values1() (ReportFilterV2Alpha1Values1, error) { + var body ReportFilterV2Alpha1Values1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromReportFilterV2Alpha1Values1 overwrites any union data inside the ReportFilterV2Alpha1_Values_Item as the provided ReportFilterV2Alpha1Values1 +func (t *ReportFilterV2Alpha1_Values_Item) FromReportFilterV2Alpha1Values1(v ReportFilterV2Alpha1Values1) error { + b, err := json.Marshal(v) + t.union = b + return err +} + +// MergeReportFilterV2Alpha1Values1 performs a merge with any union data inside the ReportFilterV2Alpha1_Values_Item, using the provided ReportFilterV2Alpha1Values1 +func (t *ReportFilterV2Alpha1_Values_Item) MergeReportFilterV2Alpha1Values1(v ReportFilterV2Alpha1Values1) 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 ReportFilterV2Alpha1_Values_Item) MarshalJSON() ([]byte, error) { + b, err := t.union.MarshalJSON() + return b, err +} + +func (t *ReportFilterV2Alpha1_Values_Item) UnmarshalJSON(b []byte) error { + err := t.union.UnmarshalJSON(b) + return err +} + // AsResourceFilterV2Request0 returns the union data inside the ResourceFilterV2Request as a ResourceFilterV2Request0 func (t ResourceFilterV2Request) AsResourceFilterV2Request0() (ResourceFilterV2Request0, error) { var body ResourceFilterV2Request0 @@ -30045,6 +33585,232 @@ func (t *Rule_Failures_Item) UnmarshalJSON(b []byte) error { return err } +// AsRunPendingV2Alpha1 returns the union data inside the RunResponseV2Alpha1 as a RunPendingV2Alpha1 +func (t RunResponseV2Alpha1) AsRunPendingV2Alpha1() (RunPendingV2Alpha1, error) { + var body RunPendingV2Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromRunPendingV2Alpha1 overwrites any union data inside the RunResponseV2Alpha1 as the provided RunPendingV2Alpha1 +func (t *RunResponseV2Alpha1) FromRunPendingV2Alpha1(v RunPendingV2Alpha1) error { + t.Status = "pending" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"pending"}`)) + t.union = b + return err +} + +// MergeRunPendingV2Alpha1 performs a merge with any union data inside the RunResponseV2Alpha1, using the provided RunPendingV2Alpha1 +func (t *RunResponseV2Alpha1) MergeRunPendingV2Alpha1(v RunPendingV2Alpha1) error { + t.Status = "pending" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"pending"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsRunRunningV2Alpha1 returns the union data inside the RunResponseV2Alpha1 as a RunRunningV2Alpha1 +func (t RunResponseV2Alpha1) AsRunRunningV2Alpha1() (RunRunningV2Alpha1, error) { + var body RunRunningV2Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromRunRunningV2Alpha1 overwrites any union data inside the RunResponseV2Alpha1 as the provided RunRunningV2Alpha1 +func (t *RunResponseV2Alpha1) FromRunRunningV2Alpha1(v RunRunningV2Alpha1) error { + t.Status = "running" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"running"}`)) + t.union = b + return err +} + +// MergeRunRunningV2Alpha1 performs a merge with any union data inside the RunResponseV2Alpha1, using the provided RunRunningV2Alpha1 +func (t *RunResponseV2Alpha1) MergeRunRunningV2Alpha1(v RunRunningV2Alpha1) error { + t.Status = "running" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"running"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsRunCompletedV2Alpha1 returns the union data inside the RunResponseV2Alpha1 as a RunCompletedV2Alpha1 +func (t RunResponseV2Alpha1) AsRunCompletedV2Alpha1() (RunCompletedV2Alpha1, error) { + var body RunCompletedV2Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromRunCompletedV2Alpha1 overwrites any union data inside the RunResponseV2Alpha1 as the provided RunCompletedV2Alpha1 +func (t *RunResponseV2Alpha1) FromRunCompletedV2Alpha1(v RunCompletedV2Alpha1) error { + t.Status = "completed" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"completed"}`)) + t.union = b + return err +} + +// MergeRunCompletedV2Alpha1 performs a merge with any union data inside the RunResponseV2Alpha1, using the provided RunCompletedV2Alpha1 +func (t *RunResponseV2Alpha1) MergeRunCompletedV2Alpha1(v RunCompletedV2Alpha1) error { + t.Status = "completed" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"completed"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +// AsRunFailedV2Alpha1 returns the union data inside the RunResponseV2Alpha1 as a RunFailedV2Alpha1 +func (t RunResponseV2Alpha1) AsRunFailedV2Alpha1() (RunFailedV2Alpha1, error) { + var body RunFailedV2Alpha1 + err := json.Unmarshal(t.union, &body) + return body, err +} + +// FromRunFailedV2Alpha1 overwrites any union data inside the RunResponseV2Alpha1 as the provided RunFailedV2Alpha1 +func (t *RunResponseV2Alpha1) FromRunFailedV2Alpha1(v RunFailedV2Alpha1) error { + t.Status = "failed" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"failed"}`)) + t.union = b + return err +} + +// MergeRunFailedV2Alpha1 performs a merge with any union data inside the RunResponseV2Alpha1, using the provided RunFailedV2Alpha1 +func (t *RunResponseV2Alpha1) MergeRunFailedV2Alpha1(v RunFailedV2Alpha1) error { + t.Status = "failed" + b, err := json.Marshal(v) + if err != nil { + return err + } + b, err = runtime.JSONMerge(b, []byte(`{"status":"failed"}`)) + if err != nil { + return err + } + + merged, err := runtime.JSONMerge(t.union, b) + t.union = merged + return err +} + +func (t RunResponseV2Alpha1) Discriminator() (string, error) { + var discriminator struct { + Discriminator string `json:"status"` + } + err := json.Unmarshal(t.union, &discriminator) + return discriminator.Discriminator, err +} + +func (t RunResponseV2Alpha1) ValueByDiscriminator() (interface{}, error) { + discriminator, err := t.Discriminator() + if err != nil { + return nil, err + } + switch discriminator { + case "completed": + return t.AsRunCompletedV2Alpha1() + case "failed": + return t.AsRunFailedV2Alpha1() + case "pending": + return t.AsRunPendingV2Alpha1() + case "running": + return t.AsRunRunningV2Alpha1() + default: + return nil, errors.New("unknown discriminator value: " + discriminator) + } +} + +func (t RunResponseV2Alpha1) 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["id"], err = json.Marshal(t.Id) + if err != nil { + return nil, fmt.Errorf("error marshaling 'id': %w", err) + } + + object["status"], err = json.Marshal(t.Status) + if err != nil { + return nil, fmt.Errorf("error marshaling 'status': %w", err) + } + + b, err = json.Marshal(object) + return b, err +} + +func (t *RunResponseV2Alpha1) 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["id"]; found { + err = json.Unmarshal(raw, &t.Id) + if err != nil { + return fmt.Errorf("error reading 'id': %w", err) + } + } + + if raw, found := object["status"]; found { + err = json.Unmarshal(raw, &t.Status) + if err != nil { + return fmt.Errorf("error reading 'status': %w", err) + } + } + + return err +} + // AsImageMetadata returns the union data inside the ScanResultResponse_Metadata as a ImageMetadata func (t ScanResultResponse_Metadata) AsImageMetadata() (ImageMetadata, error) { var body ImageMetadata @@ -32386,6 +36152,366 @@ type ClientInterface interface { // Corresponds with GET /platform/reporting/v1/schedules (the `ListSchedulesV1` operationId). ListSchedulesV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + // ListReportsV2Alpha1 List Reports + // + // Retrieve the list of reports.\ + // \ + // **Visibility scope:** returns reports belonging to the caller's team within the caller's + // customer account, not the whole tenant.\ + // \ + // **Reports of a superseded kind are omitted.** A report created from a template of an earlier + // resource-posture generation has no `kind` this API can express, so it is not listed here and + // `GET /reports/{reportId}` returns `404` for it. Such reports still exist and stay readable through + // the v1 API and the Sysdig UI — nothing is deleted — so a report visible in the UI may be absent + // here.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Corresponds with GET /platform/reporting/v2alpha1/reports (the `ListReportsV2Alpha1` operationId). + ListReportsV2Alpha1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateReportV2Alpha1WithBody Create Report + // + // Create a report from a template. Optionally create a schedule in the same request by including + // a `schedule` object.\ + // \ + // **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is + // invalid or cannot be created, the report is not created either and nothing is left behind. + // Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains + // supported.\ + // \ + // The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and + // `Location` points at the report.\ + // \ + // **Required permissions:** platform.reporting.reports.edit, plus + // `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a + // schedule as well, and is refused as a whole if either permission is missing. + // + // Takes any type of body and a specified content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). + CreateReportV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateReportV2Alpha1 Create Report + // + // Create a report from a template. Optionally create a schedule in the same request by including + // a `schedule` object.\ + // \ + // **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is + // invalid or cannot be created, the report is not created either and nothing is left behind. + // Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains + // supported.\ + // \ + // The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and + // `Location` points at the report.\ + // \ + // **Required permissions:** platform.reporting.reports.edit, plus + // `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a + // schedule as well, and is refused as a whole if either permission is missing. + // + // Takes a body of the `application/json` content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). + CreateReportV2Alpha1(ctx context.Context, body CreateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReportV2Alpha1 Delete Report + // + // Delete a report. Cascades to its schedules and run history.\ + // \ + // `If-Match` is **optional** here, unlike on `PUT` and `PATCH`: an unconditional delete is accepted. + // Supply the report's `ETag` to abort the delete if the report has changed since you read it.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Corresponds with DELETE /platform/reporting/v2alpha1/reports/{reportId} (the `DeleteReportV2Alpha1` operationId). + DeleteReportV2Alpha1(ctx context.Context, reportID ReportID, params *DeleteReportV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReportV2Alpha1 Get Report + // + // Retrieve a report by its identifier.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Corresponds with GET /platform/reporting/v2alpha1/reports/{reportId} (the `GetReportV2Alpha1` operationId). + GetReportV2Alpha1(ctx context.Context, reportID ReportID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReportV2Alpha1WithBody Patch Report + // + // Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `templateId` and + // `kind` are immutable.\ + // \ + // Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that + // is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Takes any type of body and a specified content type. + // + // Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). + PatchReportV2Alpha1WithBody(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody Patch Report + // + // Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `templateId` and + // `kind` are immutable.\ + // \ + // Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that + // is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Takes a body of the `application/merge-patch+json` content type. + // + // Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). + PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, body PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateReportV2Alpha1WithBody Update Report + // + // Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. + // `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use + // `PATCH` to change a subset.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Takes any type of body and a specified content type. + // + // Corresponds with PUT /platform/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). + UpdateReportV2Alpha1WithBody(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateReportV2Alpha1 Update Report + // + // Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. + // `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use + // `PATCH` to change a subset.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Takes a body of the `application/json` content type. + // + // Corresponds with PUT /platform/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). + UpdateReportV2Alpha1(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, body UpdateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListRunsV2Alpha1 List Report Runs + // + // Retrieve report runs, optionally filtered by report, schedule, how they were triggered, status, + // or activity time.\ + // \ + // **`reportId` and `scheduleId` are mutually exclusive** — supply at most one. Sending both is + // rejected with `400`.\ + // \ + // To count or list a report's ad-hoc downloads — for instance to warn a user how many produced files + // deleting the report would destroy — combine `reportId` with `trigger=on_demand`.\ + // \ + // **Incremental polling:** use `sinceAt` to fetch only runs with activity at or after a given + // instant. Because this listing is unpaginated, `sinceAt` is the recommended way to avoid + // re-reading the whole retained history on every poll. `sinceAt` cannot be combined with + // `status=pending` or `status=running` (`400`).\ + // \ + // **Retention:** this listing is not a complete history. Completed runs — including truncated + // ones — are returned only while their produced file is still retrievable (a fixed retention + // window, currently expressed in days); older completed runs are omitted. Runs in any other + // state, including failed runs, are not subject to this window. Treat + // the listing as "runs whose output is still available", not "everything that ever ran".\ + // \ + // **Downloadable files:** to list the files currently available for download, filter with + // `status=completed` — each such run carries its `resultUri` until its file expires.\ + // \ + // **Visibility scope:** returns runs belonging to the caller's team within the caller's customer + // account, not the whole tenant.\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Corresponds with GET /platform/reporting/v2alpha1/runs (the `ListRunsV2Alpha1` operationId). + ListRunsV2Alpha1(ctx context.Context, params *ListRunsV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateRunV2Alpha1WithBody Generate Report Run + // + // Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then + // download the file from its `resultUri`.\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Takes any type of body and a specified content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). + CreateRunV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateRunV2Alpha1 Generate Report Run + // + // Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then + // download the file from its `resultUri`.\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Takes a body of the `application/json` content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). + CreateRunV2Alpha1(ctx context.Context, body CreateRunV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRunV2Alpha1 Get Report Run + // + // Retrieve a report run by its identifier (poll for status).\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Corresponds with GET /platform/reporting/v2alpha1/runs/{runId} (the `GetRunV2Alpha1` operationId). + GetRunV2Alpha1(ctx context.Context, runID RunID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListSchedulesV2Alpha1 List Report Schedules + // + // Retrieve the list of report schedules, optionally filtered by report.\ + // \ + // **Visibility scope:** returns schedules belonging to the caller's team within the caller's customer + // account, and only schedules attached to a **report**. The reporting service also stores schedules of + // other kinds — ones attached directly to a template, and data-export schedules — which have no + // representation in this API and are never returned here. A schedule visible in the Sysdig UI may + // therefore be absent from this listing.\ + // \ + // **Required permissions:** platform.reporting.schedules.read + // + // Corresponds with GET /platform/reporting/v2alpha1/schedules (the `ListSchedulesV2Alpha1` operationId). + ListSchedulesV2Alpha1(ctx context.Context, params *ListSchedulesV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateScheduleV2Alpha1WithBody Create Report Schedule + // + // Create a schedule for an existing report.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes any type of body and a specified content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). + CreateScheduleV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateScheduleV2Alpha1 Create Report Schedule + // + // Create a schedule for an existing report.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes a body of the `application/json` content type. + // + // Corresponds with POST /platform/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). + CreateScheduleV2Alpha1(ctx context.Context, body CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteScheduleV2Alpha1 Delete Report Schedule + // + // Delete a schedule. Cascades to its run history.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Corresponds with DELETE /platform/reporting/v2alpha1/schedules/{scheduleId} (the `DeleteScheduleV2Alpha1` operationId). + DeleteScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetScheduleV2Alpha1 Get Report Schedule + // + // Retrieve a schedule by its identifier.\ + // \ + // **Required permissions:** platform.reporting.schedules.read + // + // Corresponds with GET /platform/reporting/v2alpha1/schedules/{scheduleId} (the `GetScheduleV2Alpha1` operationId). + GetScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchScheduleV2Alpha1WithBody Patch Report Schedule + // + // Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `reportId` is + // immutable and `status` is server-computed.\ + // \ + // Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ + // \ + // Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite + // the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are + // unconditional.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes any type of body and a specified content type. + // + // Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). + PatchScheduleV2Alpha1WithBody(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody Patch Report Schedule + // + // Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `reportId` is + // immutable and `status` is server-computed.\ + // \ + // Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ + // \ + // Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite + // the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are + // unconditional.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes a body of the `application/merge-patch+json` content type. + // + // Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). + PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, scheduleID ScheduleID, body PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateScheduleV2Alpha1WithBody Update Report Schedule + // + // Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes any type of body and a specified content type. + // + // Corresponds with PUT /platform/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). + UpdateScheduleV2Alpha1WithBody(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // UpdateScheduleV2Alpha1 Update Report Schedule + // + // Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes a body of the `application/json` content type. + // + // Corresponds with PUT /platform/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). + UpdateScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, body UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListReportTemplatesV2Alpha1 List Report Templates + // + // Retrieve the catalog of available report templates.\ + // \ + // **The catalog is not the same for every customer.** Templates gated by controlled availability + // or by product entitlement are omitted for customers that do not have them enabled, so this + // listing is the authoritative set of templates the caller may create reports from. Do not + // hard-code template ids — read them from here. A template absent from this listing also cannot be + // fetched by id (`404`).\ + // \ + // **Superseded templates are omitted for everyone.** The reporting service still stores templates of + // an earlier resource-posture generation that the Sysdig UI no longer offers; those have no `kind` in + // this API and never appear here. Their replacements are the `posture_v2` templates. Reports created + // from a superseded template before it was retired remain readable through the v1 API and the UI, but + // are not exposed here — see `GET /reports`.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Corresponds with GET /platform/reporting/v2alpha1/templates (the `ListReportTemplatesV2Alpha1` operationId). + ListReportTemplatesV2Alpha1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReportTemplateV2Alpha1 Get Report Template + // + // Retrieve a single report template by its identifier.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Corresponds with GET /platform/reporting/v2alpha1/templates/{templateId} (the `GetReportTemplateV2Alpha1` operationId). + GetReportTemplateV2Alpha1(ctx context.Context, templateID TemplateID, reqEditors ...RequestEditorFn) (*http.Response, error) + // GetAccessKeysV1 List Access Keys // // Retrieve a paginated list of access keys.\ @@ -35992,15 +40118,24 @@ func (c *Client) ListSchedulesV1(ctx context.Context, reqEditors ...RequestEdito return c.Client.Do(req) } -// GetAccessKeysV1 List Access Keys +// ListReportsV2Alpha1 List Reports // -// Retrieve a paginated list of access keys.\ +// Retrieve the list of reports.\ // \ -// **Required permissions:** _customer-access-keys.read_ +// **Visibility scope:** returns reports belonging to the caller's team within the caller's +// customer account, not the whole tenant.\ +// \ +// **Reports of a superseded kind are omitted.** A report created from a template of an earlier +// resource-posture generation has no `kind` this API can express, so it is not listed here and +// `GET /reports/{reportId}` returns `404` for it. Such reports still exist and stay readable through +// the v1 API and the Sysdig UI — nothing is deleted — so a report visible in the UI may be absent +// here.\ +// \ +// **Required permissions:** platform.reporting.reports.read // -// Corresponds with GET /platform/v1/access-keys (the `GetAccessKeysV1` operationId). -func (c *Client) GetAccessKeysV1(ctx context.Context, params *GetAccessKeysV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAccessKeysV1Request(c.Server, params) +// Corresponds with GET /platform/reporting/v2alpha1/reports (the `ListReportsV2Alpha1` operationId). +func (c *Client) ListReportsV2Alpha1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListReportsV2Alpha1Request(c.Server) if err != nil { return nil, err } @@ -36011,17 +40146,28 @@ func (c *Client) GetAccessKeysV1(ctx context.Context, params *GetAccessKeysV1Par return c.Client.Do(req) } -// CreateAccessKeyV1WithBody Create Access Key +// CreateReportV2Alpha1WithBody Create Report // -// Create a new access key.\ +// Create a report from a template. Optionally create a schedule in the same request by including +// a `schedule` object.\ // \ -// **Required permissions:** _customer-access-keys.edit_ +// **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is +// invalid or cannot be created, the report is not created either and nothing is left behind. +// Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains +// supported.\ +// \ +// The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and +// `Location` points at the report.\ +// \ +// **Required permissions:** platform.reporting.reports.edit, plus +// `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a +// schedule as well, and is refused as a whole if either permission is missing. // // Takes any type of body and a specified content type. // -// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). -func (c *Client) CreateAccessKeyV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAccessKeyV1RequestWithBody(c.Server, contentType, body) +// Corresponds with POST /platform/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). +func (c *Client) CreateReportV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportV2Alpha1RequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -36032,17 +40178,28 @@ func (c *Client) CreateAccessKeyV1WithBody(ctx context.Context, contentType stri return c.Client.Do(req) } -// CreateAccessKeyV1 Create Access Key +// CreateReportV2Alpha1 Create Report // -// Create a new access key.\ +// Create a report from a template. Optionally create a schedule in the same request by including +// a `schedule` object.\ // \ -// **Required permissions:** _customer-access-keys.edit_ +// **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is +// invalid or cannot be created, the report is not created either and nothing is left behind. +// Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains +// supported.\ +// \ +// The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and +// `Location` points at the report.\ +// \ +// **Required permissions:** platform.reporting.reports.edit, plus +// `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a +// schedule as well, and is refused as a whole if either permission is missing. // // Takes a body of the `application/json` content type. // -// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). -func (c *Client) CreateAccessKeyV1(ctx context.Context, body CreateAccessKeyV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateAccessKeyV1Request(c.Server, body) +// Corresponds with POST /platform/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). +func (c *Client) CreateReportV2Alpha1(ctx context.Context, body CreateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateReportV2Alpha1Request(c.Server, body) if err != nil { return nil, err } @@ -36053,15 +40210,18 @@ func (c *Client) CreateAccessKeyV1(ctx context.Context, body CreateAccessKeyV1JS return c.Client.Do(req) } -// DeleteAccessKeyByIdV1 Delete Access Key +// DeleteReportV2Alpha1 Delete Report // -// Delete an access key by id.\ +// Delete a report. Cascades to its schedules and run history.\ // \ -// **Required permissions:** customer-access-keys.edit_ +// `If-Match` is **optional** here, unlike on `PUT` and `PATCH`: an unconditional delete is accepted. +// Supply the report's `ETag` to abort the delete if the report has changed since you read it.\ +// \ +// **Required permissions:** platform.reporting.reports.edit // -// Corresponds with DELETE /platform/v1/access-keys/{accessKeyId} (the `DeleteAccessKeyByIdV1` operationId). -func (c *Client) DeleteAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteAccessKeyByIdV1Request(c.Server, accessKeyId) +// Corresponds with DELETE /platform/reporting/v2alpha1/reports/{reportId} (the `DeleteReportV2Alpha1` operationId). +func (c *Client) DeleteReportV2Alpha1(ctx context.Context, reportID ReportID, params *DeleteReportV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReportV2Alpha1Request(c.Server, reportID, params) if err != nil { return nil, err } @@ -36072,15 +40232,15 @@ func (c *Client) DeleteAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKe return c.Client.Do(req) } -// GetAccessKeyByIdV1 Get Access Key +// GetReportV2Alpha1 Get Report // -// Return an access key by id.\ +// Retrieve a report by its identifier.\ // \ -// **Required permissions:** _customer-access-keys.read_ +// **Required permissions:** platform.reporting.reports.read // -// Corresponds with GET /platform/v1/access-keys/{accessKeyId} (the `GetAccessKeyByIdV1` operationId). -func (c *Client) GetAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetAccessKeyByIdV1Request(c.Server, accessKeyId) +// Corresponds with GET /platform/reporting/v2alpha1/reports/{reportId} (the `GetReportV2Alpha1` operationId). +func (c *Client) GetReportV2Alpha1(ctx context.Context, reportID ReportID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReportV2Alpha1Request(c.Server, reportID) if err != nil { return nil, err } @@ -36091,17 +40251,24 @@ func (c *Client) GetAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyId return c.Client.Do(req) } -// UpdateAccessKeyByIdV1WithBody Update Access Key +// PatchReportV2Alpha1WithBody Patch Report // -// Update an access key by id.\ +// Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `templateId` and +// `kind` are immutable.\ // \ -// **Required permissions:** _customer-access-keys.edit_ +// Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that +// is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.edit // // Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). -func (c *Client) UpdateAccessKeyByIdV1WithBody(ctx context.Context, accessKeyId AccessKeyIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAccessKeyByIdV1RequestWithBody(c.Server, accessKeyId, contentType, body) +// Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). +func (c *Client) PatchReportV2Alpha1WithBody(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReportV2Alpha1RequestWithBody(c.Server, reportID, params, contentType, body) if err != nil { return nil, err } @@ -36112,17 +40279,24 @@ func (c *Client) UpdateAccessKeyByIdV1WithBody(ctx context.Context, accessKeyId return c.Client.Do(req) } -// UpdateAccessKeyByIdV1 Update Access Key +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody Patch Report // -// Update an access key by id.\ +// Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `templateId` and +// `kind` are immutable.\ // \ -// **Required permissions:** _customer-access-keys.edit_ +// Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that +// is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.edit // -// Takes a body of the `application/json` content type. +// Takes a body of the `application/merge-patch+json` content type. // -// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). -func (c *Client) UpdateAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateAccessKeyByIdV1Request(c.Server, accessKeyId, body) +// Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). +func (c *Client) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, body PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReportV2Alpha1RequestWithApplicationMergePatchPlusJSONBody(c.Server, reportID, params, body) if err != nil { return nil, err } @@ -36133,36 +40307,21 @@ func (c *Client) UpdateAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKe return c.Client.Do(req) } -// GetCaptureStorageConfigurationV1 Get Capture Storage Configuration +// UpdateReportV2Alpha1WithBody Update Report // -// Retrieve the capture storage configuration.\ +// Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. +// `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use +// `PATCH` to change a subset.\ // \ -// **Required permissions:** _sysdig-storage.read_ -// -// Corresponds with GET /platform/v1/configuration/capture-storage (the `GetCaptureStorageConfigurationV1` operationId). -func (c *Client) GetCaptureStorageConfigurationV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetCaptureStorageConfigurationV1Request(c.Server) - if err != nil { - return nil, err - } - req = req.WithContext(ctx) - if err := c.applyEditors(ctx, req, reqEditors); err != nil { - return nil, err - } - return c.Client.Do(req) -} - -// UpdateCaptureStorageConfigurationV1WithBody Update or Create Capture Storage Configuration -// -// Update or Create Capture Storage configuration.\ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ // \ -// **Required permissions:** _sysdig-storage.edit_ +// **Required permissions:** platform.reporting.reports.edit // // Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). -func (c *Client) UpdateCaptureStorageConfigurationV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCaptureStorageConfigurationV1RequestWithBody(c.Server, contentType, body) +// Corresponds with PUT /platform/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). +func (c *Client) UpdateReportV2Alpha1WithBody(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportV2Alpha1RequestWithBody(c.Server, reportID, params, contentType, body) if err != nil { return nil, err } @@ -36173,17 +40332,21 @@ func (c *Client) UpdateCaptureStorageConfigurationV1WithBody(ctx context.Context return c.Client.Do(req) } -// UpdateCaptureStorageConfigurationV1 Update or Create Capture Storage Configuration +// UpdateReportV2Alpha1 Update Report // -// Update or Create Capture Storage configuration.\ +// Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. +// `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use +// `PATCH` to change a subset.\ // \ -// **Required permissions:** _sysdig-storage.edit_ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.edit // // Takes a body of the `application/json` content type. // -// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). -func (c *Client) UpdateCaptureStorageConfigurationV1(ctx context.Context, body UpdateCaptureStorageConfigurationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateCaptureStorageConfigurationV1Request(c.Server, body) +// Corresponds with PUT /platform/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). +func (c *Client) UpdateReportV2Alpha1(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, body UpdateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateReportV2Alpha1Request(c.Server, reportID, params, body) if err != nil { return nil, err } @@ -36194,15 +40357,39 @@ func (c *Client) UpdateCaptureStorageConfigurationV1(ctx context.Context, body U return c.Client.Do(req) } -// GetUserDeactivationConfigurationV1 Get User Deactivation Configuration +// ListRunsV2Alpha1 List Report Runs // -// Retrieve the user deactivation configuration.\ +// Retrieve report runs, optionally filtered by report, schedule, how they were triggered, status, +// or activity time.\ // \ -// **Required permissions:** _customer-user-deactivation-configuration.read_ +// **`reportId` and `scheduleId` are mutually exclusive** — supply at most one. Sending both is +// rejected with `400`.\ +// \ +// To count or list a report's ad-hoc downloads — for instance to warn a user how many produced files +// deleting the report would destroy — combine `reportId` with `trigger=on_demand`.\ +// \ +// **Incremental polling:** use `sinceAt` to fetch only runs with activity at or after a given +// instant. Because this listing is unpaginated, `sinceAt` is the recommended way to avoid +// re-reading the whole retained history on every poll. `sinceAt` cannot be combined with +// `status=pending` or `status=running` (`400`).\ +// \ +// **Retention:** this listing is not a complete history. Completed runs — including truncated +// ones — are returned only while their produced file is still retrievable (a fixed retention +// window, currently expressed in days); older completed runs are omitted. Runs in any other +// state, including failed runs, are not subject to this window. Treat +// the listing as "runs whose output is still available", not "everything that ever ran".\ +// \ +// **Downloadable files:** to list the files currently available for download, filter with +// `status=completed` — each such run carries its `resultUri` until its file expires.\ +// \ +// **Visibility scope:** returns runs belonging to the caller's team within the caller's customer +// account, not the whole tenant.\ +// \ +// **Required permissions:** platform.reporting.report-downloads.read // -// Corresponds with GET /platform/v1/configuration/user-deactivation (the `GetUserDeactivationConfigurationV1` operationId). -func (c *Client) GetUserDeactivationConfigurationV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetUserDeactivationConfigurationV1Request(c.Server) +// Corresponds with GET /platform/reporting/v2alpha1/runs (the `ListRunsV2Alpha1` operationId). +func (c *Client) ListRunsV2Alpha1(ctx context.Context, params *ListRunsV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListRunsV2Alpha1Request(c.Server, params) if err != nil { return nil, err } @@ -36213,17 +40400,18 @@ func (c *Client) GetUserDeactivationConfigurationV1(ctx context.Context, reqEdit return c.Client.Do(req) } -// UpdateUserDeactivationConfigurationByIdV1WithBody Update or Create User Deactivation Configuration +// CreateRunV2Alpha1WithBody Generate Report Run // -// Update or Create User deactivation configuration.\ +// Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then +// download the file from its `resultUri`.\ // \ -// **Required permissions:** _customer-user-deactivation-configuration.edit_ +// **Required permissions:** platform.reporting.report-downloads.read // // Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). -func (c *Client) UpdateUserDeactivationConfigurationByIdV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(c.Server, contentType, body) +// Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). +func (c *Client) CreateRunV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRunV2Alpha1RequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -36234,17 +40422,18 @@ func (c *Client) UpdateUserDeactivationConfigurationByIdV1WithBody(ctx context.C return c.Client.Do(req) } -// UpdateUserDeactivationConfigurationByIdV1 Update or Create User Deactivation Configuration +// CreateRunV2Alpha1 Generate Report Run // -// Update or Create User deactivation configuration.\ +// Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then +// download the file from its `resultUri`.\ // \ -// **Required permissions:** _customer-user-deactivation-configuration.edit_ +// **Required permissions:** platform.reporting.report-downloads.read // // Takes a body of the `application/json` content type. // -// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). -func (c *Client) UpdateUserDeactivationConfigurationByIdV1(ctx context.Context, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateUserDeactivationConfigurationByIdV1Request(c.Server, body) +// Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). +func (c *Client) CreateRunV2Alpha1(ctx context.Context, body CreateRunV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateRunV2Alpha1Request(c.Server, body) if err != nil { return nil, err } @@ -36255,15 +40444,15 @@ func (c *Client) UpdateUserDeactivationConfigurationByIdV1(ctx context.Context, return c.Client.Do(req) } -// GetDefaultNotificationTemplateV1 Get Default Notification Template +// GetRunV2Alpha1 Get Report Run // -// Retrieve the default notification template for a channel type and use case.\ +// Retrieve a report run by its identifier (poll for status).\ // \ -// **Required permissions:** _notification-templates.read_ +// **Required permissions:** platform.reporting.report-downloads.read // -// Corresponds with GET /platform/v1/default-notification-templates (the `GetDefaultNotificationTemplateV1` operationId). -func (c *Client) GetDefaultNotificationTemplateV1(ctx context.Context, params *GetDefaultNotificationTemplateV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDefaultNotificationTemplateV1Request(c.Server, params) +// Corresponds with GET /platform/reporting/v2alpha1/runs/{runId} (the `GetRunV2Alpha1` operationId). +func (c *Client) GetRunV2Alpha1(ctx context.Context, runID RunID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRunV2Alpha1Request(c.Server, runID) if err != nil { return nil, err } @@ -36274,15 +40463,21 @@ func (c *Client) GetDefaultNotificationTemplateV1(ctx context.Context, params *G return c.Client.Do(req) } -// GetDefaultRoleByDisplayNameV1 Get Default Role +// ListSchedulesV2Alpha1 List Report Schedules // -// Return a default role by its display name.\ +// Retrieve the list of report schedules, optionally filtered by report.\ // \ -// **Required permissions:** _roles.read_ +// **Visibility scope:** returns schedules belonging to the caller's team within the caller's customer +// account, and only schedules attached to a **report**. The reporting service also stores schedules of +// other kinds — ones attached directly to a template, and data-export schedules — which have no +// representation in this API and are never returned here. A schedule visible in the Sysdig UI may +// therefore be absent from this listing.\ +// \ +// **Required permissions:** platform.reporting.schedules.read // -// Corresponds with GET /platform/v1/default-roles/{roleDisplayName} (the `GetDefaultRoleByDisplayNameV1` operationId). -func (c *Client) GetDefaultRoleByDisplayNameV1(ctx context.Context, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetDefaultRoleByDisplayNameV1Request(c.Server, roleDisplayName) +// Corresponds with GET /platform/reporting/v2alpha1/schedules (the `ListSchedulesV2Alpha1` operationId). +func (c *Client) ListSchedulesV2Alpha1(ctx context.Context, params *ListSchedulesV2Alpha1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListSchedulesV2Alpha1Request(c.Server, params) if err != nil { return nil, err } @@ -36293,15 +40488,17 @@ func (c *Client) GetDefaultRoleByDisplayNameV1(ctx context.Context, roleDisplayN return c.Client.Do(req) } -// GetGlobalSsoSettingsV1 Get Global SSO Settings +// CreateScheduleV2Alpha1WithBody Create Report Schedule // -// Get Global SSO Settings.\ +// Create a schedule for an existing report.\ // \ -// **Required permissions:** _sso.config_ +// **Required permissions:** platform.reporting.schedules.edit // -// Corresponds with GET /platform/v1/global-sso-settings/{ssoProductId} (the `GetGlobalSsoSettingsV1` operationId). -func (c *Client) GetGlobalSsoSettingsV1(ctx context.Context, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGlobalSsoSettingsV1Request(c.Server, ssoProductId) +// Takes any type of body and a specified content type. +// +// Corresponds with POST /platform/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). +func (c *Client) CreateScheduleV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateScheduleV2Alpha1RequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -36312,17 +40509,17 @@ func (c *Client) GetGlobalSsoSettingsV1(ctx context.Context, ssoProductId GetGlo return c.Client.Do(req) } -// UpdateGlobalSsoSettingsV1WithBody Update Global SSO Settings +// CreateScheduleV2Alpha1 Create Report Schedule // -// Update Global SSO Settings.\ +// Create a schedule for an existing report.\ // \ -// **Required permissions:** _sso-setting.edit_ +// **Required permissions:** platform.reporting.schedules.edit // -// Takes any type of body and a specified content type. +// Takes a body of the `application/json` content type. // -// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). -func (c *Client) UpdateGlobalSsoSettingsV1WithBody(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateGlobalSsoSettingsV1RequestWithBody(c.Server, ssoProductId, contentType, body) +// Corresponds with POST /platform/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). +func (c *Client) CreateScheduleV2Alpha1(ctx context.Context, body CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateScheduleV2Alpha1Request(c.Server, body) if err != nil { return nil, err } @@ -36333,17 +40530,15 @@ func (c *Client) UpdateGlobalSsoSettingsV1WithBody(ctx context.Context, ssoProdu return c.Client.Do(req) } -// UpdateGlobalSsoSettingsV1 Update Global SSO Settings +// DeleteScheduleV2Alpha1 Delete Report Schedule // -// Update Global SSO Settings.\ +// Delete a schedule. Cascades to its run history.\ // \ -// **Required permissions:** _sso-setting.edit_ +// **Required permissions:** platform.reporting.schedules.edit // -// Takes a body of the `application/json` content type. -// -// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). -func (c *Client) UpdateGlobalSsoSettingsV1(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateGlobalSsoSettingsV1Request(c.Server, ssoProductId, body) +// Corresponds with DELETE /platform/reporting/v2alpha1/schedules/{scheduleId} (the `DeleteScheduleV2Alpha1` operationId). +func (c *Client) DeleteScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteScheduleV2Alpha1Request(c.Server, scheduleID) if err != nil { return nil, err } @@ -36354,15 +40549,15 @@ func (c *Client) UpdateGlobalSsoSettingsV1(ctx context.Context, ssoProductId Upd return c.Client.Do(req) } -// GetGroupMappingsV1 List Group Mappings +// GetScheduleV2Alpha1 Get Report Schedule // -// Retrieve a paginated list of group mappings.\ +// Retrieve a schedule by its identifier.\ // \ -// **Required permissions:** _group-mappings.read_ +// **Required permissions:** platform.reporting.schedules.read // -// Corresponds with GET /platform/v1/group-mappings (the `GetGroupMappingsV1` operationId). -func (c *Client) GetGroupMappingsV1(ctx context.Context, params *GetGroupMappingsV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupMappingsV1Request(c.Server, params) +// Corresponds with GET /platform/reporting/v2alpha1/schedules/{scheduleId} (the `GetScheduleV2Alpha1` operationId). +func (c *Client) GetScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetScheduleV2Alpha1Request(c.Server, scheduleID) if err != nil { return nil, err } @@ -36373,17 +40568,25 @@ func (c *Client) GetGroupMappingsV1(ctx context.Context, params *GetGroupMapping return c.Client.Do(req) } -// CreateGroupMappingV1WithBody Create Group Mapping +// PatchScheduleV2Alpha1WithBody Patch Report Schedule // -// Create a new group mapping.\ +// Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `reportId` is +// immutable and `status` is server-computed.\ // \ -// **Required permissions:** _group-mappings.edit_ +// Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ +// \ +// Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite +// the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are +// unconditional.\ +// \ +// **Required permissions:** platform.reporting.schedules.edit // // Takes any type of body and a specified content type. // -// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). -func (c *Client) CreateGroupMappingV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateGroupMappingV1RequestWithBody(c.Server, contentType, body) +// Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). +func (c *Client) PatchScheduleV2Alpha1WithBody(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchScheduleV2Alpha1RequestWithBody(c.Server, scheduleID, contentType, body) if err != nil { return nil, err } @@ -36394,17 +40597,25 @@ func (c *Client) CreateGroupMappingV1WithBody(ctx context.Context, contentType s return c.Client.Do(req) } -// CreateGroupMappingV1 Create Group Mapping +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody Patch Report Schedule // -// Create a new group mapping.\ +// Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `reportId` is +// immutable and `status` is server-computed.\ // \ -// **Required permissions:** _group-mappings.edit_ +// Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ +// \ +// Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite +// the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are +// unconditional.\ +// \ +// **Required permissions:** platform.reporting.schedules.edit // -// Takes a body of the `application/json` content type. +// Takes a body of the `application/merge-patch+json` content type. // -// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). -func (c *Client) CreateGroupMappingV1(ctx context.Context, body CreateGroupMappingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateGroupMappingV1Request(c.Server, body) +// Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). +func (c *Client) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, scheduleID ScheduleID, body PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchScheduleV2Alpha1RequestWithApplicationMergePatchPlusJSONBody(c.Server, scheduleID, body) if err != nil { return nil, err } @@ -36415,15 +40626,17 @@ func (c *Client) CreateGroupMappingV1(ctx context.Context, body CreateGroupMappi return c.Client.Do(req) } -// GetGroupMappingSettingsV1 Get Group Mappings Settings +// UpdateScheduleV2Alpha1WithBody Update Report Schedule // -// Retrieves your group mapping settings.\ +// Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ // \ -// **Required permissions:** _group-mappings.read_ +// **Required permissions:** platform.reporting.schedules.edit // -// Corresponds with GET /platform/v1/group-mappings-settings (the `GetGroupMappingSettingsV1` operationId). -func (c *Client) GetGroupMappingSettingsV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupMappingSettingsV1Request(c.Server) +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). +func (c *Client) UpdateScheduleV2Alpha1WithBody(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateScheduleV2Alpha1RequestWithBody(c.Server, scheduleID, contentType, body) if err != nil { return nil, err } @@ -36434,17 +40647,17 @@ func (c *Client) GetGroupMappingSettingsV1(ctx context.Context, reqEditors ...Re return c.Client.Do(req) } -// SaveGroupMappingSettingsV1WithBody Save Group Mapping settings +// UpdateScheduleV2Alpha1 Update Report Schedule // -// Saves your group mapping settings.\ +// Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ // \ -// **Required permissions:** _group-mappings.edit_ +// **Required permissions:** platform.reporting.schedules.edit // -// Takes any type of body and a specified content type. +// Takes a body of the `application/json` content type. // -// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). -func (c *Client) SaveGroupMappingSettingsV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveGroupMappingSettingsV1RequestWithBody(c.Server, contentType, body) +// Corresponds with PUT /platform/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). +func (c *Client) UpdateScheduleV2Alpha1(ctx context.Context, scheduleID ScheduleID, body UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateScheduleV2Alpha1Request(c.Server, scheduleID, body) if err != nil { return nil, err } @@ -36455,17 +40668,27 @@ func (c *Client) SaveGroupMappingSettingsV1WithBody(ctx context.Context, content return c.Client.Do(req) } -// SaveGroupMappingSettingsV1 Save Group Mapping settings +// ListReportTemplatesV2Alpha1 List Report Templates // -// Saves your group mapping settings.\ +// Retrieve the catalog of available report templates.\ // \ -// **Required permissions:** _group-mappings.edit_ -// -// Takes a body of the `application/json` content type. +// **The catalog is not the same for every customer.** Templates gated by controlled availability +// or by product entitlement are omitted for customers that do not have them enabled, so this +// listing is the authoritative set of templates the caller may create reports from. Do not +// hard-code template ids — read them from here. A template absent from this listing also cannot be +// fetched by id (`404`).\ +// \ +// **Superseded templates are omitted for everyone.** The reporting service still stores templates of +// an earlier resource-posture generation that the Sysdig UI no longer offers; those have no `kind` in +// this API and never appear here. Their replacements are the `posture_v2` templates. Reports created +// from a superseded template before it was retired remain readable through the v1 API and the UI, but +// are not exposed here — see `GET /reports`.\ +// \ +// **Required permissions:** platform.reporting.reports.read // -// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). -func (c *Client) SaveGroupMappingSettingsV1(ctx context.Context, body SaveGroupMappingSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveGroupMappingSettingsV1Request(c.Server, body) +// Corresponds with GET /platform/reporting/v2alpha1/templates (the `ListReportTemplatesV2Alpha1` operationId). +func (c *Client) ListReportTemplatesV2Alpha1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListReportTemplatesV2Alpha1Request(c.Server) if err != nil { return nil, err } @@ -36476,15 +40699,15 @@ func (c *Client) SaveGroupMappingSettingsV1(ctx context.Context, body SaveGroupM return c.Client.Do(req) } -// DeleteGroupMappingByIdV1 Delete Group Mapping +// GetReportTemplateV2Alpha1 Get Report Template // -// Delete a group mapping by its ID.\ +// Retrieve a single report template by its identifier.\ // \ -// **Required permissions:** _group-mappings.edit_ +// **Required permissions:** platform.reporting.reports.read // -// Corresponds with DELETE /platform/v1/group-mappings/{groupMappingId} (the `DeleteGroupMappingByIdV1` operationId). -func (c *Client) DeleteGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteGroupMappingByIdV1Request(c.Server, groupMappingId) +// Corresponds with GET /platform/reporting/v2alpha1/templates/{templateId} (the `GetReportTemplateV2Alpha1` operationId). +func (c *Client) GetReportTemplateV2Alpha1(ctx context.Context, templateID TemplateID, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReportTemplateV2Alpha1Request(c.Server, templateID) if err != nil { return nil, err } @@ -36495,15 +40718,15 @@ func (c *Client) DeleteGroupMappingByIdV1(ctx context.Context, groupMappingId Gr return c.Client.Do(req) } -// GetGroupMappingByIdV1 Get Group Mapping +// GetAccessKeysV1 List Access Keys // -// Return a group mapping by its ID.\ +// Retrieve a paginated list of access keys.\ // \ -// **Required permissions:** _group-mappings.read_ +// **Required permissions:** _customer-access-keys.read_ // -// Corresponds with GET /platform/v1/group-mappings/{groupMappingId} (the `GetGroupMappingByIdV1` operationId). -func (c *Client) GetGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetGroupMappingByIdV1Request(c.Server, groupMappingId) +// Corresponds with GET /platform/v1/access-keys (the `GetAccessKeysV1` operationId). +func (c *Client) GetAccessKeysV1(ctx context.Context, params *GetAccessKeysV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAccessKeysV1Request(c.Server, params) if err != nil { return nil, err } @@ -36514,17 +40737,17 @@ func (c *Client) GetGroupMappingByIdV1(ctx context.Context, groupMappingId Group return c.Client.Do(req) } -// UpdateGroupMappingByIdV1WithBody Update Group Mapping +// CreateAccessKeyV1WithBody Create Access Key // -// Update a group mapping by its ID.\ +// Create a new access key.\ // \ -// **Required permissions:** _group-mappings.edit_ +// **Required permissions:** _customer-access-keys.edit_ // // Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). -func (c *Client) UpdateGroupMappingByIdV1WithBody(ctx context.Context, groupMappingId GroupMappingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateGroupMappingByIdV1RequestWithBody(c.Server, groupMappingId, contentType, body) +// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). +func (c *Client) CreateAccessKeyV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAccessKeyV1RequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -36535,17 +40758,17 @@ func (c *Client) UpdateGroupMappingByIdV1WithBody(ctx context.Context, groupMapp return c.Client.Do(req) } -// UpdateGroupMappingByIdV1 Update Group Mapping +// CreateAccessKeyV1 Create Access Key // -// Update a group mapping by its ID.\ +// Create a new access key.\ // \ -// **Required permissions:** _group-mappings.edit_ +// **Required permissions:** _customer-access-keys.edit_ // // Takes a body of the `application/json` content type. // -// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). -func (c *Client) UpdateGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewUpdateGroupMappingByIdV1Request(c.Server, groupMappingId, body) +// Corresponds with POST /platform/v1/access-keys (the `CreateAccessKeyV1` operationId). +func (c *Client) CreateAccessKeyV1(ctx context.Context, body CreateAccessKeyV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAccessKeyV1Request(c.Server, body) if err != nil { return nil, err } @@ -36556,15 +40779,15 @@ func (c *Client) UpdateGroupMappingByIdV1(ctx context.Context, groupMappingId Gr return c.Client.Do(req) } -// GetIpFiltersV1 List IP Filters +// DeleteAccessKeyByIdV1 Delete Access Key // -// Retrieve a paginated list of IP filters.\ +// Delete an access key by id.\ // \ -// **Required permissions:** _ip-filters.read_ +// **Required permissions:** customer-access-keys.edit_ // -// Corresponds with GET /platform/v1/ip-filters (the `GetIpFiltersV1` operationId). -func (c *Client) GetIpFiltersV1(ctx context.Context, params *GetIpFiltersV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIpFiltersV1Request(c.Server, params) +// Corresponds with DELETE /platform/v1/access-keys/{accessKeyId} (the `DeleteAccessKeyByIdV1` operationId). +func (c *Client) DeleteAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAccessKeyByIdV1Request(c.Server, accessKeyId) if err != nil { return nil, err } @@ -36575,17 +40798,15 @@ func (c *Client) GetIpFiltersV1(ctx context.Context, params *GetIpFiltersV1Param return c.Client.Do(req) } -// CreateIpFilterV1WithBody Create IP Filter +// GetAccessKeyByIdV1 Get Access Key // -// Create a new IP filter.\ +// Return an access key by id.\ // \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes any type of body and a specified content type. +// **Required permissions:** _customer-access-keys.read_ // -// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). -func (c *Client) CreateIpFilterV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateIpFilterV1RequestWithBody(c.Server, contentType, body) +// Corresponds with GET /platform/v1/access-keys/{accessKeyId} (the `GetAccessKeyByIdV1` operationId). +func (c *Client) GetAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAccessKeyByIdV1Request(c.Server, accessKeyId) if err != nil { return nil, err } @@ -36596,17 +40817,17 @@ func (c *Client) CreateIpFilterV1WithBody(ctx context.Context, contentType strin return c.Client.Do(req) } -// CreateIpFilterV1 Create IP Filter +// UpdateAccessKeyByIdV1WithBody Update Access Key // -// Create a new IP filter.\ +// Update an access key by id.\ // \ -// **Required permissions:** _ip-filters.edit_ +// **Required permissions:** _customer-access-keys.edit_ // -// Takes a body of the `application/json` content type. +// Takes any type of body and a specified content type. // -// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). -func (c *Client) CreateIpFilterV1(ctx context.Context, body CreateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewCreateIpFilterV1Request(c.Server, body) +// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). +func (c *Client) UpdateAccessKeyByIdV1WithBody(ctx context.Context, accessKeyId AccessKeyIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAccessKeyByIdV1RequestWithBody(c.Server, accessKeyId, contentType, body) if err != nil { return nil, err } @@ -36617,15 +40838,17 @@ func (c *Client) CreateIpFilterV1(ctx context.Context, body CreateIpFilterV1JSON return c.Client.Do(req) } -// GetIpFiltersSettingsV1 Get IP Filters Settings +// UpdateAccessKeyByIdV1 Update Access Key // -// Retrieves your IP filters settings.\ +// Update an access key by id.\ // \ -// **Required permissions:** _ip-filters.read_ +// **Required permissions:** _customer-access-keys.edit_ // -// Corresponds with GET /platform/v1/ip-filters-settings (the `GetIpFiltersSettingsV1` operationId). -func (c *Client) GetIpFiltersSettingsV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIpFiltersSettingsV1Request(c.Server) +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/access-keys/{accessKeyId} (the `UpdateAccessKeyByIdV1` operationId). +func (c *Client) UpdateAccessKeyByIdV1(ctx context.Context, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateAccessKeyByIdV1Request(c.Server, accessKeyId, body) if err != nil { return nil, err } @@ -36636,17 +40859,15 @@ func (c *Client) GetIpFiltersSettingsV1(ctx context.Context, reqEditors ...Reque return c.Client.Do(req) } -// SaveIpFiltersSettingsV1WithBody Save IP Filters settings +// GetCaptureStorageConfigurationV1 Get Capture Storage Configuration // -// Saves your IP filters settings.\ +// Retrieve the capture storage configuration.\ // \ -// **Required permissions:** _ip-filters.edit_ -// -// Takes any type of body and a specified content type. +// **Required permissions:** _sysdig-storage.read_ // -// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). -func (c *Client) SaveIpFiltersSettingsV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveIpFiltersSettingsV1RequestWithBody(c.Server, contentType, body) +// Corresponds with GET /platform/v1/configuration/capture-storage (the `GetCaptureStorageConfigurationV1` operationId). +func (c *Client) GetCaptureStorageConfigurationV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCaptureStorageConfigurationV1Request(c.Server) if err != nil { return nil, err } @@ -36657,17 +40878,17 @@ func (c *Client) SaveIpFiltersSettingsV1WithBody(ctx context.Context, contentTyp return c.Client.Do(req) } -// SaveIpFiltersSettingsV1 Save IP Filters settings +// UpdateCaptureStorageConfigurationV1WithBody Update or Create Capture Storage Configuration // -// Saves your IP filters settings.\ +// Update or Create Capture Storage configuration.\ // \ -// **Required permissions:** _ip-filters.edit_ +// **Required permissions:** _sysdig-storage.edit_ // -// Takes a body of the `application/json` content type. +// Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). -func (c *Client) SaveIpFiltersSettingsV1(ctx context.Context, body SaveIpFiltersSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewSaveIpFiltersSettingsV1Request(c.Server, body) +// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). +func (c *Client) UpdateCaptureStorageConfigurationV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCaptureStorageConfigurationV1RequestWithBody(c.Server, contentType, body) if err != nil { return nil, err } @@ -36678,15 +40899,17 @@ func (c *Client) SaveIpFiltersSettingsV1(ctx context.Context, body SaveIpFilters return c.Client.Do(req) } -// DeleteIpFilterByIdV1 Delete IP Filter +// UpdateCaptureStorageConfigurationV1 Update or Create Capture Storage Configuration // -// Delete IP filter by its ID.\ +// Update or Create Capture Storage configuration.\ // \ -// **Required permissions:** _ip-filters.edit_ +// **Required permissions:** _sysdig-storage.edit_ // -// Corresponds with DELETE /platform/v1/ip-filters/{ipFilterId} (the `DeleteIpFilterByIdV1` operationId). -func (c *Client) DeleteIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewDeleteIpFilterByIdV1Request(c.Server, ipFilterId) +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/configuration/capture-storage (the `UpdateCaptureStorageConfigurationV1` operationId). +func (c *Client) UpdateCaptureStorageConfigurationV1(ctx context.Context, body UpdateCaptureStorageConfigurationV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateCaptureStorageConfigurationV1Request(c.Server, body) if err != nil { return nil, err } @@ -36697,15 +40920,15 @@ func (c *Client) DeleteIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterId return c.Client.Do(req) } -// GetIpFilterByIdV1 Get IP Filter by ID +// GetUserDeactivationConfigurationV1 Get User Deactivation Configuration // -// Get IP Filter by ID.\ +// Retrieve the user deactivation configuration.\ // \ -// **Required permissions:** _ip-filters.read_ +// **Required permissions:** _customer-user-deactivation-configuration.read_ // -// Corresponds with GET /platform/v1/ip-filters/{ipFilterId} (the `GetIpFilterByIdV1` operationId). -func (c *Client) GetIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { - req, err := NewGetIpFilterByIdV1Request(c.Server, ipFilterId) +// Corresponds with GET /platform/v1/configuration/user-deactivation (the `GetUserDeactivationConfigurationV1` operationId). +func (c *Client) GetUserDeactivationConfigurationV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserDeactivationConfigurationV1Request(c.Server) if err != nil { return nil, err } @@ -36716,15 +40939,518 @@ func (c *Client) GetIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterIdPat return c.Client.Do(req) } -// UpdateIpFilterV1WithBody Update IP Filter +// UpdateUserDeactivationConfigurationByIdV1WithBody Update or Create User Deactivation Configuration // -// Update IP filter by its ID. \ +// Update or Create User deactivation configuration.\ // \ -// **Required permissions:** _ip-filters.edit_ +// **Required permissions:** _customer-user-deactivation-configuration.edit_ // // Takes any type of body and a specified content type. // -// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). +// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). +func (c *Client) UpdateUserDeactivationConfigurationByIdV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// UpdateUserDeactivationConfigurationByIdV1 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. +// +// Corresponds with PUT /platform/v1/configuration/user-deactivation (the `UpdateUserDeactivationConfigurationByIdV1` operationId). +func (c *Client) UpdateUserDeactivationConfigurationByIdV1(ctx context.Context, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateUserDeactivationConfigurationByIdV1Request(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// GetDefaultNotificationTemplateV1 Get Default Notification Template +// +// Retrieve the default notification template for a channel type and use case.\ +// \ +// **Required permissions:** _notification-templates.read_ +// +// Corresponds with GET /platform/v1/default-notification-templates (the `GetDefaultNotificationTemplateV1` operationId). +func (c *Client) GetDefaultNotificationTemplateV1(ctx context.Context, params *GetDefaultNotificationTemplateV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDefaultNotificationTemplateV1Request(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) +} + +// GetDefaultRoleByDisplayNameV1 Get Default Role +// +// Return a default role by its display name.\ +// \ +// **Required permissions:** _roles.read_ +// +// Corresponds with GET /platform/v1/default-roles/{roleDisplayName} (the `GetDefaultRoleByDisplayNameV1` operationId). +func (c *Client) GetDefaultRoleByDisplayNameV1(ctx context.Context, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDefaultRoleByDisplayNameV1Request(c.Server, roleDisplayName) + 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) +} + +// GetGlobalSsoSettingsV1 Get Global SSO Settings +// +// Get Global SSO Settings.\ +// \ +// **Required permissions:** _sso.config_ +// +// Corresponds with GET /platform/v1/global-sso-settings/{ssoProductId} (the `GetGlobalSsoSettingsV1` operationId). +func (c *Client) GetGlobalSsoSettingsV1(ctx context.Context, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetGlobalSsoSettingsV1Request(c.Server, ssoProductId) + 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) +} + +// UpdateGlobalSsoSettingsV1WithBody Update Global SSO Settings +// +// Update Global SSO Settings.\ +// \ +// **Required permissions:** _sso-setting.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). +func (c *Client) UpdateGlobalSsoSettingsV1WithBody(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateGlobalSsoSettingsV1RequestWithBody(c.Server, ssoProductId, 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) +} + +// UpdateGlobalSsoSettingsV1 Update Global SSO Settings +// +// Update Global SSO Settings.\ +// \ +// **Required permissions:** _sso-setting.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/global-sso-settings/{ssoProductId} (the `UpdateGlobalSsoSettingsV1` operationId). +func (c *Client) UpdateGlobalSsoSettingsV1(ctx context.Context, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateGlobalSsoSettingsV1Request(c.Server, ssoProductId, 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) +} + +// GetGroupMappingsV1 List Group Mappings +// +// Retrieve a paginated list of group mappings.\ +// \ +// **Required permissions:** _group-mappings.read_ +// +// Corresponds with GET /platform/v1/group-mappings (the `GetGroupMappingsV1` operationId). +func (c *Client) GetGroupMappingsV1(ctx context.Context, params *GetGroupMappingsV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetGroupMappingsV1Request(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) +} + +// CreateGroupMappingV1WithBody Create Group Mapping +// +// Create a new group mapping.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). +func (c *Client) CreateGroupMappingV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateGroupMappingV1RequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// CreateGroupMappingV1 Create Group Mapping +// +// Create a new group mapping.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with POST /platform/v1/group-mappings (the `CreateGroupMappingV1` operationId). +func (c *Client) CreateGroupMappingV1(ctx context.Context, body CreateGroupMappingV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateGroupMappingV1Request(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// GetGroupMappingSettingsV1 Get Group Mappings Settings +// +// Retrieves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.read_ +// +// Corresponds with GET /platform/v1/group-mappings-settings (the `GetGroupMappingSettingsV1` operationId). +func (c *Client) GetGroupMappingSettingsV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetGroupMappingSettingsV1Request(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// SaveGroupMappingSettingsV1WithBody Save Group Mapping settings +// +// Saves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). +func (c *Client) SaveGroupMappingSettingsV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveGroupMappingSettingsV1RequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// SaveGroupMappingSettingsV1 Save Group Mapping settings +// +// Saves your group mapping settings.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/group-mappings-settings (the `SaveGroupMappingSettingsV1` operationId). +func (c *Client) SaveGroupMappingSettingsV1(ctx context.Context, body SaveGroupMappingSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveGroupMappingSettingsV1Request(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// DeleteGroupMappingByIdV1 Delete Group Mapping +// +// Delete a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Corresponds with DELETE /platform/v1/group-mappings/{groupMappingId} (the `DeleteGroupMappingByIdV1` operationId). +func (c *Client) DeleteGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteGroupMappingByIdV1Request(c.Server, groupMappingId) + 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) +} + +// GetGroupMappingByIdV1 Get Group Mapping +// +// Return a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.read_ +// +// Corresponds with GET /platform/v1/group-mappings/{groupMappingId} (the `GetGroupMappingByIdV1` operationId). +func (c *Client) GetGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetGroupMappingByIdV1Request(c.Server, groupMappingId) + 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) +} + +// UpdateGroupMappingByIdV1WithBody 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. +// +// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). +func (c *Client) UpdateGroupMappingByIdV1WithBody(ctx context.Context, groupMappingId GroupMappingIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateGroupMappingByIdV1RequestWithBody(c.Server, groupMappingId, 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) +} + +// UpdateGroupMappingByIdV1 Update Group Mapping +// +// Update a group mapping by its ID.\ +// \ +// **Required permissions:** _group-mappings.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/group-mappings/{groupMappingId} (the `UpdateGroupMappingByIdV1` operationId). +func (c *Client) UpdateGroupMappingByIdV1(ctx context.Context, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewUpdateGroupMappingByIdV1Request(c.Server, groupMappingId, 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) +} + +// GetIpFiltersV1 List IP Filters +// +// Retrieve a paginated list of IP filters.\ +// \ +// **Required permissions:** _ip-filters.read_ +// +// Corresponds with GET /platform/v1/ip-filters (the `GetIpFiltersV1` operationId). +func (c *Client) GetIpFiltersV1(ctx context.Context, params *GetIpFiltersV1Params, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetIpFiltersV1Request(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) +} + +// CreateIpFilterV1WithBody Create IP Filter +// +// Create a new IP filter.\ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). +func (c *Client) CreateIpFilterV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateIpFilterV1RequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// CreateIpFilterV1 Create IP Filter +// +// Create a new IP filter.\ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with POST /platform/v1/ip-filters (the `CreateIpFilterV1` operationId). +func (c *Client) CreateIpFilterV1(ctx context.Context, body CreateIpFilterV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateIpFilterV1Request(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// GetIpFiltersSettingsV1 Get IP Filters Settings +// +// Retrieves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.read_ +// +// Corresponds with GET /platform/v1/ip-filters-settings (the `GetIpFiltersSettingsV1` operationId). +func (c *Client) GetIpFiltersSettingsV1(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetIpFiltersSettingsV1Request(c.Server) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// SaveIpFiltersSettingsV1WithBody Save IP Filters settings +// +// Saves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). +func (c *Client) SaveIpFiltersSettingsV1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveIpFiltersSettingsV1RequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// SaveIpFiltersSettingsV1 Save IP Filters settings +// +// Saves your IP filters settings.\ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Takes a body of the `application/json` content type. +// +// Corresponds with PUT /platform/v1/ip-filters-settings (the `SaveIpFiltersSettingsV1` operationId). +func (c *Client) SaveIpFiltersSettingsV1(ctx context.Context, body SaveIpFiltersSettingsV1JSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewSaveIpFiltersSettingsV1Request(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +// DeleteIpFilterByIdV1 Delete IP Filter +// +// Delete IP filter by its ID.\ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Corresponds with DELETE /platform/v1/ip-filters/{ipFilterId} (the `DeleteIpFilterByIdV1` operationId). +func (c *Client) DeleteIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteIpFilterByIdV1Request(c.Server, ipFilterId) + 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) +} + +// GetIpFilterByIdV1 Get IP Filter by ID +// +// Get IP Filter by ID.\ +// \ +// **Required permissions:** _ip-filters.read_ +// +// Corresponds with GET /platform/v1/ip-filters/{ipFilterId} (the `GetIpFilterByIdV1` operationId). +func (c *Client) GetIpFilterByIdV1(ctx context.Context, ipFilterId IpFilterIdPath, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetIpFilterByIdV1Request(c.Server, ipFilterId) + 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) +} + +// UpdateIpFilterV1WithBody Update IP Filter +// +// Update IP filter by its ID. \ +// \ +// **Required permissions:** _ip-filters.edit_ +// +// Takes any type of body and a specified content type. +// +// Corresponds with PUT /platform/v1/ip-filters/{ipFilterId} (the `UpdateIpFilterV1` operationId). func (c *Client) UpdateIpFilterV1WithBody(ctx context.Context, ipFilterId IpFilterIdPath, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { req, err := NewUpdateIpFilterV1RequestWithBody(c.Server, ipFilterId, contentType, body) if err != nil { @@ -42896,8 +47622,8 @@ func NewListSchedulesV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetAccessKeysV1Request constructs an http.Request for the GetAccessKeysV1 method -func NewGetAccessKeysV1Request(server string, params *GetAccessKeysV1Params) (*http.Request, error) { +// NewListReportsV2Alpha1Request constructs an http.Request for the ListReportsV2Alpha1 method +func NewListReportsV2Alpha1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -42905,7 +47631,7 @@ func NewGetAccessKeysV1Request(server string, params *GetAccessKeysV1Params) (*h return nil, err } - operationPath := fmt.Sprintf("/platform/v1/access-keys") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -42915,69 +47641,6 @@ func NewGetAccessKeysV1Request(server string, params *GetAccessKeysV1Params) (*h return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.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 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 @@ -42986,19 +47649,19 @@ func NewGetAccessKeysV1Request(server string, params *GetAccessKeysV1Params) (*h return req, nil } -// NewCreateAccessKeyV1Request calls the generic CreateAccessKeyV1 builder with application/json body -func NewCreateAccessKeyV1Request(server string, body CreateAccessKeyV1JSONRequestBody) (*http.Request, error) { +// NewCreateReportV2Alpha1Request calls the generic CreateReportV2Alpha1 builder with application/json body +func NewCreateReportV2Alpha1Request(server string, body CreateReportV2Alpha1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAccessKeyV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateReportV2Alpha1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateAccessKeyV1RequestWithBody constructs an http.Request for the CreateAccessKeyV1 method, with any body, and a specified content type -func NewCreateAccessKeyV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateReportV2Alpha1RequestWithBody constructs an http.Request for the CreateReportV2Alpha1 method, with any body, and a specified content type +func NewCreateReportV2Alpha1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43006,7 +47669,7 @@ func NewCreateAccessKeyV1RequestWithBody(server string, contentType string, body return nil, err } - operationPath := fmt.Sprintf("/platform/v1/access-keys") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43026,13 +47689,13 @@ func NewCreateAccessKeyV1RequestWithBody(server string, contentType string, body return req, nil } -// NewDeleteAccessKeyByIdV1Request constructs an http.Request for the DeleteAccessKeyByIdV1 method -func NewDeleteAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (*http.Request, error) { +// NewDeleteReportV2Alpha1Request constructs an http.Request for the DeleteReportV2Alpha1 method +func NewDeleteReportV2Alpha1Request(server string, reportID ReportID, params *DeleteReportV2Alpha1Params) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reportId", reportID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -43042,7 +47705,7 @@ func NewDeleteAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) return nil, err } - operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43057,16 +47720,31 @@ func NewDeleteAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) return nil, err } + if params != nil { + + if params.IfMatch != 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 } -// NewGetAccessKeyByIdV1Request constructs an http.Request for the GetAccessKeyByIdV1 method -func NewGetAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (*http.Request, error) { +// NewGetReportV2Alpha1Request constructs an http.Request for the GetReportV2Alpha1 method +func NewGetReportV2Alpha1Request(server string, reportID ReportID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reportId", reportID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -43076,7 +47754,7 @@ func NewGetAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (* return nil, err } - operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43094,24 +47772,24 @@ func NewGetAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (* return req, nil } -// NewUpdateAccessKeyByIdV1Request calls the generic UpdateAccessKeyByIdV1 builder with application/json body -func NewUpdateAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody) (*http.Request, error) { +// NewPatchReportV2Alpha1RequestWithApplicationMergePatchPlusJSONBody calls the generic PatchReportV2Alpha1 builder with application/merge-patch+json body +func NewPatchReportV2Alpha1RequestWithApplicationMergePatchPlusJSONBody(server string, reportID ReportID, params *PatchReportV2Alpha1Params, body PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateAccessKeyByIdV1RequestWithBody(server, accessKeyId, "application/json", bodyReader) + return NewPatchReportV2Alpha1RequestWithBody(server, reportID, params, "application/merge-patch+json", bodyReader) } -// NewUpdateAccessKeyByIdV1RequestWithBody constructs an http.Request for the UpdateAccessKeyByIdV1 method, with any body, and a specified content type -func NewUpdateAccessKeyByIdV1RequestWithBody(server string, accessKeyId AccessKeyIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewPatchReportV2Alpha1RequestWithBody constructs an http.Request for the PatchReportV2Alpha1 method, with any body, and a specified content type +func NewPatchReportV2Alpha1RequestWithBody(server string, reportID ReportID, params *PatchReportV2Alpha1Params, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reportId", reportID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -43121,7 +47799,7 @@ func NewUpdateAccessKeyByIdV1RequestWithBody(server string, accessKeyId AccessKe return nil, err } - operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43131,93 +47809,59 @@ func NewUpdateAccessKeyByIdV1RequestWithBody(server string, accessKeyId AccessKe return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } req.Header.Add("Content-Type", contentType) - return req, nil -} - -// NewGetCaptureStorageConfigurationV1Request constructs an http.Request for the GetCaptureStorageConfigurationV1 method -func NewGetCaptureStorageConfigurationV1Request(server string) (*http.Request, error) { - var err error + if params != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.IfMatch != nil { + var headerParam0 string - operationPath := fmt.Sprintf("/platform/v1/configuration/capture-storage") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-Match", *params.IfMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + req.Header.Set("If-Match", headerParam0) + } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err } return req, nil } -// NewUpdateCaptureStorageConfigurationV1Request calls the generic UpdateCaptureStorageConfigurationV1 builder with application/json body -func NewUpdateCaptureStorageConfigurationV1Request(server string, body UpdateCaptureStorageConfigurationV1JSONRequestBody) (*http.Request, error) { +// NewUpdateReportV2Alpha1Request calls the generic UpdateReportV2Alpha1 builder with application/json body +func NewUpdateReportV2Alpha1Request(server string, reportID ReportID, params *UpdateReportV2Alpha1Params, body UpdateReportV2Alpha1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateCaptureStorageConfigurationV1RequestWithBody(server, "application/json", bodyReader) + return NewUpdateReportV2Alpha1RequestWithBody(server, reportID, params, "application/json", bodyReader) } -// NewUpdateCaptureStorageConfigurationV1RequestWithBody constructs an http.Request for the UpdateCaptureStorageConfigurationV1 method, with any body, and a specified content type -func NewUpdateCaptureStorageConfigurationV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateReportV2Alpha1RequestWithBody constructs an http.Request for the UpdateReportV2Alpha1 method, with any body, and a specified content type +func NewUpdateReportV2Alpha1RequestWithBody(server string, reportID ReportID, params *UpdateReportV2Alpha1Params, contentType string, body io.Reader) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/platform/v1/configuration/capture-storage") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + var pathParam0 string - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "reportId", reportID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - - return req, nil -} - -// NewGetUserDeactivationConfigurationV1Request constructs an http.Request for the GetUserDeactivationConfigurationV1 method -func NewGetUserDeactivationConfigurationV1Request(server string) (*http.Request, error) { - var err error - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/configuration/user-deactivation") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/reports/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43227,56 +47871,33 @@ func NewGetUserDeactivationConfigurationV1Request(server string) (*http.Request, return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} - -// NewUpdateUserDeactivationConfigurationByIdV1Request calls the generic UpdateUserDeactivationConfigurationByIdV1 builder with application/json body -func NewUpdateUserDeactivationConfigurationByIdV1Request(server string, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(server, "application/json", bodyReader) -} + req.Header.Add("Content-Type", contentType) -// NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody constructs an http.Request for the UpdateUserDeactivationConfigurationByIdV1 method, with any body, and a specified content type -func NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error + if params != nil { - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + if params.IfMatch != nil { + var headerParam0 string - operationPath := fmt.Sprintf("/platform/v1/configuration/user-deactivation") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + headerParam0, err = runtime.StyleParamWithOptions("simple", false, "If-Match", *params.IfMatch, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationHeader, Type: "string", Format: ""}) + if err != nil { + return nil, err + } - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + req.Header.Set("If-Match", headerParam0) + } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) - if err != nil { - return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetDefaultNotificationTemplateV1Request constructs an http.Request for the GetDefaultNotificationTemplateV1 method -func NewGetDefaultNotificationTemplateV1Request(server string, params *GetDefaultNotificationTemplateV1Params) (*http.Request, error) { +// NewListRunsV2Alpha1Request constructs an http.Request for the ListRunsV2Alpha1 method +func NewListRunsV2Alpha1Request(server string, params *ListRunsV2Alpha1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43284,7 +47905,7 @@ func NewGetDefaultNotificationTemplateV1Request(server string, params *GetDefaul return nil, err } - operationPath := fmt.Sprintf("/platform/v1/default-notification-templates") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/runs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43303,60 +47924,70 @@ func NewGetDefaultNotificationTemplateV1Request(server string, params *GetDefaul // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channelType", params.ChannelType, 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.ReportId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reportId", *params.ReportId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } } + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "useCase", params.UseCase, 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.ScheduleId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "scheduleId", *params.ScheduleId, 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 - } + if params.Trigger != nil { - return req, nil -} + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "trigger", *params.Trigger, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } -// NewGetDefaultRoleByDisplayNameV1Request constructs an http.Request for the GetDefaultRoleByDisplayNameV1 method -func NewGetDefaultRoleByDisplayNameV1Request(server string, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName) (*http.Request, error) { - var err error + } - var pathParam0 string + if params.Status != nil { - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleDisplayName", roleDisplayName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) - if err != nil { - return nil, err - } + 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, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } + } - operationPath := fmt.Sprintf("/platform/v1/default-roles/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } + if params.SinceAt != nil { - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sinceAt", *params.SinceAt, 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 encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) @@ -43367,23 +47998,27 @@ func NewGetDefaultRoleByDisplayNameV1Request(server string, roleDisplayName GetD return req, nil } -// NewGetGlobalSsoSettingsV1Request constructs an http.Request for the GetGlobalSsoSettingsV1 method -func NewGetGlobalSsoSettingsV1Request(server string, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoProductId", ssoProductId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) +// NewCreateRunV2Alpha1Request calls the generic CreateRunV2Alpha1 builder with application/json body +func NewCreateRunV2Alpha1Request(server string, body CreateRunV2Alpha1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewCreateRunV2Alpha1RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateRunV2Alpha1RequestWithBody constructs an http.Request for the CreateRunV2Alpha1 method, with any body, and a specified content type +func NewCreateRunV2Alpha1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/global-sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/runs") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43393,32 +48028,23 @@ func NewGetGlobalSsoSettingsV1Request(server string, ssoProductId GetGlobalSsoSe return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateGlobalSsoSettingsV1Request calls the generic UpdateGlobalSsoSettingsV1 builder with application/json body -func NewUpdateGlobalSsoSettingsV1Request(server string, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateGlobalSsoSettingsV1RequestWithBody(server, ssoProductId, "application/json", bodyReader) + return req, nil } -// NewUpdateGlobalSsoSettingsV1RequestWithBody constructs an http.Request for the UpdateGlobalSsoSettingsV1 method, with any body, and a specified content type -func NewUpdateGlobalSsoSettingsV1RequestWithBody(server string, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader) (*http.Request, error) { +// NewGetRunV2Alpha1Request constructs an http.Request for the GetRunV2Alpha1 method +func NewGetRunV2Alpha1Request(server string, runID RunID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoProductId", ssoProductId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "runId", runID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -43428,7 +48054,7 @@ func NewUpdateGlobalSsoSettingsV1RequestWithBody(server string, ssoProductId Upd return nil, err } - operationPath := fmt.Sprintf("/platform/v1/global-sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/runs/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43438,18 +48064,16 @@ func NewUpdateGlobalSsoSettingsV1RequestWithBody(server string, ssoProductId Upd return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetGroupMappingsV1Request constructs an http.Request for the GetGroupMappingsV1 method -func NewGetGroupMappingsV1Request(server string, params *GetGroupMappingsV1Params) (*http.Request, error) { +// NewListSchedulesV2Alpha1Request constructs an http.Request for the ListSchedulesV2Alpha1 method +func NewListSchedulesV2Alpha1Request(server string, params *ListSchedulesV2Alpha1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43457,7 +48081,7 @@ func NewGetGroupMappingsV1Request(server string, params *GetGroupMappingsV1Param return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43476,45 +48100,9 @@ func NewGetGroupMappingsV1Request(server string, params *GetGroupMappingsV1Param // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { + if params.ReportId != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reportId", *params.ReportId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -43538,19 +48126,19 @@ func NewGetGroupMappingsV1Request(server string, params *GetGroupMappingsV1Param return req, nil } -// NewCreateGroupMappingV1Request calls the generic CreateGroupMappingV1 builder with application/json body -func NewCreateGroupMappingV1Request(server string, body CreateGroupMappingV1JSONRequestBody) (*http.Request, error) { +// NewCreateScheduleV2Alpha1Request calls the generic CreateScheduleV2Alpha1 builder with application/json body +func NewCreateScheduleV2Alpha1Request(server string, body CreateScheduleV2Alpha1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateGroupMappingV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateScheduleV2Alpha1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateGroupMappingV1RequestWithBody constructs an http.Request for the CreateGroupMappingV1 method, with any body, and a specified content type -func NewCreateGroupMappingV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateScheduleV2Alpha1RequestWithBody constructs an http.Request for the CreateScheduleV2Alpha1 method, with any body, and a specified content type +func NewCreateScheduleV2Alpha1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43558,7 +48146,7 @@ func NewCreateGroupMappingV1RequestWithBody(server string, contentType string, b return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43578,16 +48166,23 @@ func NewCreateGroupMappingV1RequestWithBody(server string, contentType string, b return req, nil } -// NewGetGroupMappingSettingsV1Request constructs an http.Request for the GetGroupMappingSettingsV1 method -func NewGetGroupMappingSettingsV1Request(server string) (*http.Request, error) { +// NewDeleteScheduleV2Alpha1Request constructs an http.Request for the DeleteScheduleV2Alpha1 method +func NewDeleteScheduleV2Alpha1Request(server string, scheduleID ScheduleID) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "scheduleId", scheduleID, 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("/platform/v1/group-mappings-settings") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43597,7 +48192,7 @@ func NewGetGroupMappingSettingsV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -43605,27 +48200,23 @@ func NewGetGroupMappingSettingsV1Request(server string) (*http.Request, error) { return req, nil } -// NewSaveGroupMappingSettingsV1Request calls the generic SaveGroupMappingSettingsV1 builder with application/json body -func NewSaveGroupMappingSettingsV1Request(server string, body SaveGroupMappingSettingsV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewGetScheduleV2Alpha1Request constructs an http.Request for the GetScheduleV2Alpha1 method +func NewGetScheduleV2Alpha1Request(server string, scheduleID ScheduleID) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "scheduleId", scheduleID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewSaveGroupMappingSettingsV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewSaveGroupMappingSettingsV1RequestWithBody constructs an http.Request for the SaveGroupMappingSettingsV1 method, with any body, and a specified content type -func NewSaveGroupMappingSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings-settings") + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43635,23 +48226,32 @@ func NewSaveGroupMappingSettingsV1RequestWithBody(server string, contentType str return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteGroupMappingByIdV1Request constructs an http.Request for the DeleteGroupMappingByIdV1 method -func NewDeleteGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath) (*http.Request, error) { +// NewPatchScheduleV2Alpha1RequestWithApplicationMergePatchPlusJSONBody calls the generic PatchScheduleV2Alpha1 builder with application/merge-patch+json body +func NewPatchScheduleV2Alpha1RequestWithApplicationMergePatchPlusJSONBody(server string, scheduleID ScheduleID, body PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchScheduleV2Alpha1RequestWithBody(server, scheduleID, "application/merge-patch+json", bodyReader) +} + +// NewPatchScheduleV2Alpha1RequestWithBody constructs an http.Request for the PatchScheduleV2Alpha1 method, with any body, and a specified content type +func NewPatchScheduleV2Alpha1RequestWithBody(server string, scheduleID ScheduleID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "scheduleId", scheduleID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -43661,7 +48261,7 @@ func NewDeleteGroupMappingByIdV1Request(server string, groupMappingId GroupMappi return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43671,21 +48271,34 @@ func NewDeleteGroupMappingByIdV1Request(server string, groupMappingId GroupMappi return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPatch, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetGroupMappingByIdV1Request constructs an http.Request for the GetGroupMappingByIdV1 method -func NewGetGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath) (*http.Request, error) { +// NewUpdateScheduleV2Alpha1Request calls the generic UpdateScheduleV2Alpha1 builder with application/json body +func NewUpdateScheduleV2Alpha1Request(server string, scheduleID ScheduleID, body UpdateScheduleV2Alpha1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateScheduleV2Alpha1RequestWithBody(server, scheduleID, "application/json", bodyReader) +} + +// NewUpdateScheduleV2Alpha1RequestWithBody constructs an http.Request for the UpdateScheduleV2Alpha1 method, with any body, and a specified content type +func NewUpdateScheduleV2Alpha1RequestWithBody(server string, scheduleID ScheduleID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "scheduleId", scheduleID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -43695,7 +48308,7 @@ func NewGetGroupMappingByIdV1Request(server string, groupMappingId GroupMappingI return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/schedules/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43705,32 +48318,50 @@ func NewGetGroupMappingByIdV1Request(server string, groupMappingId GroupMappingI return nil, err } - req, err := http.NewRequest(http.MethodGet, 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 } -// NewUpdateGroupMappingByIdV1Request calls the generic UpdateGroupMappingByIdV1 builder with application/json body -func NewUpdateGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewListReportTemplatesV2Alpha1Request constructs an http.Request for the ListReportTemplatesV2Alpha1 method +func NewListReportTemplatesV2Alpha1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateGroupMappingByIdV1RequestWithBody(server, groupMappingId, "application/json", bodyReader) + + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/templates") + 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 } -// NewUpdateGroupMappingByIdV1RequestWithBody constructs an http.Request for the UpdateGroupMappingByIdV1 method, with any body, and a specified content type -func NewUpdateGroupMappingByIdV1RequestWithBody(server string, groupMappingId GroupMappingIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewGetReportTemplateV2Alpha1Request constructs an http.Request for the GetReportTemplateV2Alpha1 method +func NewGetReportTemplateV2Alpha1Request(server string, templateID TemplateID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "templateId", templateID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -43740,7 +48371,7 @@ func NewUpdateGroupMappingByIdV1RequestWithBody(server string, groupMappingId Gr return nil, err } - operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/reporting/v2alpha1/templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43750,18 +48381,16 @@ func NewUpdateGroupMappingByIdV1RequestWithBody(server string, groupMappingId Gr return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetIpFiltersV1Request constructs an http.Request for the GetIpFiltersV1 method -func NewGetIpFiltersV1Request(server string, params *GetIpFiltersV1Params) (*http.Request, error) { +// NewGetAccessKeysV1Request constructs an http.Request for the GetAccessKeysV1 method +func NewGetAccessKeysV1Request(server string, params *GetAccessKeysV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43769,7 +48398,7 @@ func NewGetIpFiltersV1Request(server string, params *GetIpFiltersV1Params) (*htt return nil, err } - operationPath := fmt.Sprintf("/platform/v1/ip-filters") + operationPath := fmt.Sprintf("/platform/v1/access-keys") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43812,9 +48441,21 @@ func NewGetIpFiltersV1Request(server string, params *GetIpFiltersV1Params) (*htt } + if params.Orderby != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -43838,19 +48479,19 @@ func NewGetIpFiltersV1Request(server string, params *GetIpFiltersV1Params) (*htt return req, nil } -// NewCreateIpFilterV1Request calls the generic CreateIpFilterV1 builder with application/json body -func NewCreateIpFilterV1Request(server string, body CreateIpFilterV1JSONRequestBody) (*http.Request, error) { +// NewCreateAccessKeyV1Request calls the generic CreateAccessKeyV1 builder with application/json body +func NewCreateAccessKeyV1Request(server string, body CreateAccessKeyV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateIpFilterV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateAccessKeyV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateIpFilterV1RequestWithBody constructs an http.Request for the CreateIpFilterV1 method, with any body, and a specified content type -func NewCreateIpFilterV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateAccessKeyV1RequestWithBody constructs an http.Request for the CreateAccessKeyV1 method, with any body, and a specified content type +func NewCreateAccessKeyV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -43858,7 +48499,7 @@ func NewCreateIpFilterV1RequestWithBody(server string, contentType string, body return nil, err } - operationPath := fmt.Sprintf("/platform/v1/ip-filters") + operationPath := fmt.Sprintf("/platform/v1/access-keys") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43878,16 +48519,23 @@ func NewCreateIpFilterV1RequestWithBody(server string, contentType string, body return req, nil } -// NewGetIpFiltersSettingsV1Request constructs an http.Request for the GetIpFiltersSettingsV1 method -func NewGetIpFiltersSettingsV1Request(server string) (*http.Request, error) { +// NewDeleteAccessKeyByIdV1Request constructs an http.Request for the DeleteAccessKeyByIdV1 method +func NewDeleteAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, 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("/platform/v1/ip-filters-settings") + operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43897,7 +48545,7 @@ func NewGetIpFiltersSettingsV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -43905,27 +48553,23 @@ func NewGetIpFiltersSettingsV1Request(server string) (*http.Request, error) { return req, nil } -// NewSaveIpFiltersSettingsV1Request calls the generic SaveIpFiltersSettingsV1 builder with application/json body -func NewSaveIpFiltersSettingsV1Request(server string, body SaveIpFiltersSettingsV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewGetAccessKeyByIdV1Request constructs an http.Request for the GetAccessKeyByIdV1 method +func NewGetAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewSaveIpFiltersSettingsV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewSaveIpFiltersSettingsV1RequestWithBody constructs an http.Request for the SaveIpFiltersSettingsV1 method, with any body, and a specified content type -func NewSaveIpFiltersSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/ip-filters-settings") + operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43935,23 +48579,32 @@ func NewSaveIpFiltersSettingsV1RequestWithBody(server string, contentType string return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteIpFilterByIdV1Request constructs an http.Request for the DeleteIpFilterByIdV1 method -func NewDeleteIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (*http.Request, error) { +// NewUpdateAccessKeyByIdV1Request calls the generic UpdateAccessKeyByIdV1 builder with application/json body +func NewUpdateAccessKeyByIdV1Request(server string, accessKeyId AccessKeyIdPath, body UpdateAccessKeyByIdV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateAccessKeyByIdV1RequestWithBody(server, accessKeyId, "application/json", bodyReader) +} + +// NewUpdateAccessKeyByIdV1RequestWithBody constructs an http.Request for the UpdateAccessKeyByIdV1 method, with any body, and a specified content type +func NewUpdateAccessKeyByIdV1RequestWithBody(server string, accessKeyId AccessKeyIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "accessKeyId", accessKeyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -43961,7 +48614,7 @@ func NewDeleteIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (* return nil, err } - operationPath := fmt.Sprintf("/platform/v1/ip-filters/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/access-keys/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -43971,31 +48624,26 @@ func NewDeleteIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (* return nil, err } - req, err := http.NewRequest(http.MethodDelete, 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 } -// NewGetIpFilterByIdV1Request constructs an http.Request for the GetIpFilterByIdV1 method -func NewGetIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (*http.Request, error) { +// NewGetCaptureStorageConfigurationV1Request constructs an http.Request for the GetCaptureStorageConfigurationV1 method +func NewGetCaptureStorageConfigurationV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, 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("/platform/v1/ip-filters/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/configuration/capture-storage") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44013,34 +48661,27 @@ func NewGetIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (*htt return req, nil } -// NewUpdateIpFilterV1Request calls the generic UpdateIpFilterV1 builder with application/json body -func NewUpdateIpFilterV1Request(server string, ipFilterId IpFilterIdPath, body UpdateIpFilterV1JSONRequestBody) (*http.Request, error) { +// NewUpdateCaptureStorageConfigurationV1Request calls the generic UpdateCaptureStorageConfigurationV1 builder with application/json body +func NewUpdateCaptureStorageConfigurationV1Request(server string, body UpdateCaptureStorageConfigurationV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateIpFilterV1RequestWithBody(server, ipFilterId, "application/json", bodyReader) + return NewUpdateCaptureStorageConfigurationV1RequestWithBody(server, "application/json", bodyReader) } -// NewUpdateIpFilterV1RequestWithBody constructs an http.Request for the UpdateIpFilterV1 method, with any body, and a specified content type -func NewUpdateIpFilterV1RequestWithBody(server string, ipFilterId IpFilterIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateCaptureStorageConfigurationV1RequestWithBody constructs an http.Request for the UpdateCaptureStorageConfigurationV1 method, with any body, and a specified content type +func NewUpdateCaptureStorageConfigurationV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, 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("/platform/v1/ip-filters/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/configuration/capture-storage") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44060,8 +48701,8 @@ func NewUpdateIpFilterV1RequestWithBody(server string, ipFilterId IpFilterIdPath return req, nil } -// NewGetNotificationChannelsRequest constructs an http.Request for the GetNotificationChannels method -func NewGetNotificationChannelsRequest(server string, params *GetNotificationChannelsParams) (*http.Request, error) { +// NewGetUserDeactivationConfigurationV1Request constructs an http.Request for the GetUserDeactivationConfigurationV1 method +func NewGetUserDeactivationConfigurationV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44069,7 +48710,7 @@ func NewGetNotificationChannelsRequest(server string, params *GetNotificationCha return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-channels") + operationPath := fmt.Sprintf("/platform/v1/configuration/user-deactivation") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44079,45 +48720,6 @@ func NewGetNotificationChannelsRequest(server string, params *GetNotificationCha return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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 @@ -44126,19 +48728,19 @@ func NewGetNotificationChannelsRequest(server string, params *GetNotificationCha return req, nil } -// NewCreateNotificationChannelRequest calls the generic CreateNotificationChannel builder with application/json body -func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error) { +// NewUpdateUserDeactivationConfigurationByIdV1Request calls the generic UpdateUserDeactivationConfigurationByIdV1 builder with application/json body +func NewUpdateUserDeactivationConfigurationByIdV1Request(server string, body UpdateUserDeactivationConfigurationByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateNotificationChannelRequestWithBody(server, "application/json", bodyReader) + return NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateNotificationChannelRequestWithBody constructs an http.Request for the CreateNotificationChannel method, with any body, and a specified content type -func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody constructs an http.Request for the UpdateUserDeactivationConfigurationByIdV1 method, with any body, and a specified content type +func NewUpdateUserDeactivationConfigurationByIdV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44146,7 +48748,7 @@ func NewCreateNotificationChannelRequestWithBody(server string, contentType stri return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-channels") + operationPath := fmt.Sprintf("/platform/v1/configuration/user-deactivation") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44156,7 +48758,7 @@ func NewCreateNotificationChannelRequestWithBody(server string, contentType stri return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } @@ -44166,13 +48768,71 @@ func NewCreateNotificationChannelRequestWithBody(server string, contentType stri return req, nil } -// NewDeleteNotificationChannelByIdRequest constructs an http.Request for the DeleteNotificationChannelById method -func NewDeleteNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID) (*http.Request, error) { +// NewGetDefaultNotificationTemplateV1Request constructs an http.Request for the GetDefaultNotificationTemplateV1 method +func NewGetDefaultNotificationTemplateV1Request(server string, params *GetDefaultNotificationTemplateV1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/platform/v1/default-notification-templates") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channelType", params.ChannelType, 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 queryFrag, err := runtime.StyleParamWithOptions("form", true, "useCase", params.UseCase, 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 +} + +// NewGetDefaultRoleByDisplayNameV1Request constructs an http.Request for the GetDefaultRoleByDisplayNameV1 method +func NewGetDefaultRoleByDisplayNameV1Request(server string, roleDisplayName GetDefaultRoleByDisplayNameV1ParamsRoleDisplayName) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleDisplayName", roleDisplayName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -44182,7 +48842,7 @@ func NewDeleteNotificationChannelByIdRequest(server string, notificationChannelI return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/default-roles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44192,7 +48852,7 @@ func NewDeleteNotificationChannelByIdRequest(server string, notificationChannelI return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -44200,13 +48860,13 @@ func NewDeleteNotificationChannelByIdRequest(server string, notificationChannelI return req, nil } -// NewGetNotificationChannelByIdRequest constructs an http.Request for the GetNotificationChannelById method -func NewGetNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID) (*http.Request, error) { +// NewGetGlobalSsoSettingsV1Request constructs an http.Request for the GetGlobalSsoSettingsV1 method +func NewGetGlobalSsoSettingsV1Request(server string, ssoProductId GetGlobalSsoSettingsV1ParamsSsoProductId) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoProductId", ssoProductId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -44216,7 +48876,7 @@ func NewGetNotificationChannelByIdRequest(server string, notificationChannelID N return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/global-sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44234,24 +48894,24 @@ func NewGetNotificationChannelByIdRequest(server string, notificationChannelID N return req, nil } -// NewUpdateNotificationChannelByIdRequest calls the generic UpdateNotificationChannelById builder with application/json body -func NewUpdateNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID, body UpdateNotificationChannelByIdJSONRequestBody) (*http.Request, error) { +// NewUpdateGlobalSsoSettingsV1Request calls the generic UpdateGlobalSsoSettingsV1 builder with application/json body +func NewUpdateGlobalSsoSettingsV1Request(server string, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, body UpdateGlobalSsoSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateNotificationChannelByIdRequestWithBody(server, notificationChannelID, "application/json", bodyReader) + return NewUpdateGlobalSsoSettingsV1RequestWithBody(server, ssoProductId, "application/json", bodyReader) } -// NewUpdateNotificationChannelByIdRequestWithBody constructs an http.Request for the UpdateNotificationChannelById method, with any body, and a specified content type -func NewUpdateNotificationChannelByIdRequestWithBody(server string, notificationChannelID NotificationChannelID, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateGlobalSsoSettingsV1RequestWithBody constructs an http.Request for the UpdateGlobalSsoSettingsV1 method, with any body, and a specified content type +func NewUpdateGlobalSsoSettingsV1RequestWithBody(server string, ssoProductId UpdateGlobalSsoSettingsV1ParamsSsoProductId, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoProductId", ssoProductId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) if err != nil { return nil, err } @@ -44261,7 +48921,7 @@ func NewUpdateNotificationChannelByIdRequestWithBody(server string, notification return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/global-sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44281,8 +48941,8 @@ func NewUpdateNotificationChannelByIdRequestWithBody(server string, notification return req, nil } -// NewGetNotificationTemplatesV1Request constructs an http.Request for the GetNotificationTemplatesV1 method -func NewGetNotificationTemplatesV1Request(server string, params *GetNotificationTemplatesV1Params) (*http.Request, error) { +// NewGetGroupMappingsV1Request constructs an http.Request for the GetGroupMappingsV1 method +func NewGetGroupMappingsV1Request(server string, params *GetGroupMappingsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44290,7 +48950,7 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-templates") + operationPath := fmt.Sprintf("/platform/v1/group-mappings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44309,9 +48969,9 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.ChannelType != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channelType", *params.ChannelType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -44321,9 +48981,9 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification } - if params.UseCase != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "useCase", *params.UseCase, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -44333,9 +48993,9 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification } - if params.Limit != nil { + if params.Orderby != 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, "orderby", *params.Orderby, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44345,9 +49005,9 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification } - if params.Offset != nil { + if params.Filter != 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, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -44371,19 +49031,19 @@ func NewGetNotificationTemplatesV1Request(server string, params *GetNotification return req, nil } -// NewCreateNotificationTemplateV1Request calls the generic CreateNotificationTemplateV1 builder with application/json body -func NewCreateNotificationTemplateV1Request(server string, body CreateNotificationTemplateV1JSONRequestBody) (*http.Request, error) { +// NewCreateGroupMappingV1Request calls the generic CreateGroupMappingV1 builder with application/json body +func NewCreateGroupMappingV1Request(server string, body CreateGroupMappingV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateNotificationTemplateV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateGroupMappingV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateNotificationTemplateV1RequestWithBody constructs an http.Request for the CreateNotificationTemplateV1 method, with any body, and a specified content type -func NewCreateNotificationTemplateV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateGroupMappingV1RequestWithBody constructs an http.Request for the CreateGroupMappingV1 method, with any body, and a specified content type +func NewCreateGroupMappingV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44391,7 +49051,7 @@ func NewCreateNotificationTemplateV1RequestWithBody(server string, contentType s return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-templates") + operationPath := fmt.Sprintf("/platform/v1/group-mappings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44411,23 +49071,16 @@ func NewCreateNotificationTemplateV1RequestWithBody(server string, contentType s return req, nil } -// NewDeleteNotificationTemplateByIdV1Request constructs an http.Request for the DeleteNotificationTemplateByIdV1 method -func NewDeleteNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath) (*http.Request, error) { +// NewGetGroupMappingSettingsV1Request constructs an http.Request for the GetGroupMappingSettingsV1 method +func NewGetGroupMappingSettingsV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) - if err != nil { - return nil, err - } - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/group-mappings-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44437,7 +49090,7 @@ func NewDeleteNotificationTemplateByIdV1Request(server string, notificationTempl return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -44445,23 +49098,27 @@ func NewDeleteNotificationTemplateByIdV1Request(server string, notificationTempl return req, nil } -// NewGetNotificationTemplateByIdV1Request constructs an http.Request for the GetNotificationTemplateByIdV1 method -func NewGetNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) +// NewSaveGroupMappingSettingsV1Request calls the generic SaveGroupMappingSettingsV1 builder with application/json body +func NewSaveGroupMappingSettingsV1Request(server string, body SaveGroupMappingSettingsV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) if err != nil { return nil, err } + bodyReader = bytes.NewReader(buf) + return NewSaveGroupMappingSettingsV1RequestWithBody(server, "application/json", bodyReader) +} + +// NewSaveGroupMappingSettingsV1RequestWithBody constructs an http.Request for the SaveGroupMappingSettingsV1 method, with any body, and a specified content type +func NewSaveGroupMappingSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/group-mappings-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44471,32 +49128,23 @@ func NewGetNotificationTemplateByIdV1Request(server string, notificationTemplate return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } - return req, nil -} + req.Header.Add("Content-Type", contentType) -// NewUpdateNotificationTemplateByIdV1Request calls the generic UpdateNotificationTemplateByIdV1 builder with application/json body -func NewUpdateNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath, body UpdateNotificationTemplateByIdV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewUpdateNotificationTemplateByIdV1RequestWithBody(server, notificationTemplateId, "application/json", bodyReader) + return req, nil } -// NewUpdateNotificationTemplateByIdV1RequestWithBody constructs an http.Request for the UpdateNotificationTemplateByIdV1 method, with any body, and a specified content type -func NewUpdateNotificationTemplateByIdV1RequestWithBody(server string, notificationTemplateId NotificationTemplateIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewDeleteGroupMappingByIdV1Request constructs an http.Request for the DeleteGroupMappingByIdV1 method +func NewDeleteGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -44506,7 +49154,7 @@ func NewUpdateNotificationTemplateByIdV1RequestWithBody(server string, notificat return nil, err } - operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44516,26 +49164,31 @@ func NewUpdateNotificationTemplateByIdV1RequestWithBody(server string, notificat return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewGetPermissionsV1Request constructs an http.Request for the GetPermissionsV1 method -func NewGetPermissionsV1Request(server string, params *GetPermissionsV1Params) (*http.Request, error) { +// NewGetGroupMappingByIdV1Request constructs an http.Request for the GetGroupMappingByIdV1 method +func NewGetGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, 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("/platform/v1/permissions") + operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44545,33 +49198,6 @@ func NewGetPermissionsV1Request(server string, params *GetPermissionsV1Params) ( 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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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 @@ -44580,16 +49206,34 @@ func NewGetPermissionsV1Request(server string, params *GetPermissionsV1Params) ( return req, nil } -// NewGetPlatformAuditEventsV1Request constructs an http.Request for the GetPlatformAuditEventsV1 method -func NewGetPlatformAuditEventsV1Request(server string, params *GetPlatformAuditEventsV1Params) (*http.Request, error) { +// NewUpdateGroupMappingByIdV1Request calls the generic UpdateGroupMappingByIdV1 builder with application/json body +func NewUpdateGroupMappingByIdV1Request(server string, groupMappingId GroupMappingIdPath, body UpdateGroupMappingByIdV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateGroupMappingByIdV1RequestWithBody(server, groupMappingId, "application/json", bodyReader) +} + +// NewUpdateGroupMappingByIdV1RequestWithBody constructs an http.Request for the UpdateGroupMappingByIdV1 method, with any body, and a specified content type +func NewUpdateGroupMappingByIdV1RequestWithBody(server string, groupMappingId GroupMappingIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "groupMappingId", groupMappingId, 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("/platform/v1/platform-audit-events") + operationPath := fmt.Sprintf("/platform/v1/group-mappings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44599,83 +49243,18 @@ func NewGetPlatformAuditEventsV1Request(server string, params *GetPlatformAuditE return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); 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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { return nil, err } + req.Header.Add("Content-Type", contentType) + return req, nil } -// NewGetRolesV1Request constructs an http.Request for the GetRolesV1 method -func NewGetRolesV1Request(server string, params *GetRolesV1Params) (*http.Request, error) { +// NewGetIpFiltersV1Request constructs an http.Request for the GetIpFiltersV1 method +func NewGetIpFiltersV1Request(server string, params *GetIpFiltersV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44683,7 +49262,7 @@ func NewGetRolesV1Request(server string, params *GetRolesV1Params) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/platform/v1/roles") + operationPath := fmt.Sprintf("/platform/v1/ip-filters") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44726,18 +49305,6 @@ func NewGetRolesV1Request(server string, params *GetRolesV1Params) (*http.Reques } - if params.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { @@ -44764,19 +49331,19 @@ func NewGetRolesV1Request(server string, params *GetRolesV1Params) (*http.Reques return req, nil } -// NewCreateRoleV1Request calls the generic CreateRoleV1 builder with application/json body -func NewCreateRoleV1Request(server string, body CreateRoleV1JSONRequestBody) (*http.Request, error) { +// NewCreateIpFilterV1Request calls the generic CreateIpFilterV1 builder with application/json body +func NewCreateIpFilterV1Request(server string, body CreateIpFilterV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateRoleV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateIpFilterV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateRoleV1RequestWithBody constructs an http.Request for the CreateRoleV1 method, with any body, and a specified content type -func NewCreateRoleV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateIpFilterV1RequestWithBody constructs an http.Request for the CreateIpFilterV1 method, with any body, and a specified content type +func NewCreateIpFilterV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -44784,7 +49351,7 @@ func NewCreateRoleV1RequestWithBody(server string, contentType string, body io.R return nil, err } - operationPath := fmt.Sprintf("/platform/v1/roles") + operationPath := fmt.Sprintf("/platform/v1/ip-filters") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44804,23 +49371,16 @@ func NewCreateRoleV1RequestWithBody(server string, contentType string, body io.R return req, nil } -// NewDeleteRoleByIdV1Request constructs an http.Request for the DeleteRoleByIdV1 method -func NewDeleteRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request, error) { +// NewGetIpFiltersSettingsV1Request constructs an http.Request for the GetIpFiltersSettingsV1 method +func NewGetIpFiltersSettingsV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, 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("/platform/v1/roles/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/ip-filters-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44830,7 +49390,7 @@ func NewDeleteRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -44838,68 +49398,27 @@ func NewDeleteRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request return req, nil } -// NewGetRoleByIdV1Request constructs an http.Request for the GetRoleByIdV1 method -func NewGetRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, 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("/platform/v1/roles/%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 -} - -// NewUpdateRoleByIdV1Request calls the generic UpdateRoleByIdV1 builder with application/json body -func NewUpdateRoleByIdV1Request(server string, roleId RoleIdPath, body UpdateRoleByIdV1JSONRequestBody) (*http.Request, error) { +// NewSaveIpFiltersSettingsV1Request calls the generic SaveIpFiltersSettingsV1 builder with application/json body +func NewSaveIpFiltersSettingsV1Request(server string, body SaveIpFiltersSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateRoleByIdV1RequestWithBody(server, roleId, "application/json", bodyReader) + return NewSaveIpFiltersSettingsV1RequestWithBody(server, "application/json", bodyReader) } -// NewUpdateRoleByIdV1RequestWithBody constructs an http.Request for the UpdateRoleByIdV1 method, with any body, and a specified content type -func NewUpdateRoleByIdV1RequestWithBody(server string, roleId RoleIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewSaveIpFiltersSettingsV1RequestWithBody constructs an http.Request for the SaveIpFiltersSettingsV1 method, with any body, and a specified content type +func NewSaveIpFiltersSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, 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("/platform/v1/roles/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/ip-filters-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -44919,117 +49438,23 @@ func NewUpdateRoleByIdV1RequestWithBody(server string, roleId RoleIdPath, conten return req, nil } -// NewGetGlobalServiceAccountsV1Request constructs an http.Request for the GetGlobalServiceAccountsV1 method -func NewGetGlobalServiceAccountsV1Request(server string, params *GetGlobalServiceAccountsV1Params) (*http.Request, error) { +// NewDeleteIpFilterByIdV1Request constructs an http.Request for the DeleteIpFilterByIdV1 method +func NewDeleteIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/platform/v1/service-accounts") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.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 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 -} + var pathParam0 string -// NewCreateGlobalServiceAccountV1Request calls the generic CreateGlobalServiceAccountV1 builder with application/json body -func NewCreateGlobalServiceAccountV1Request(server string, body CreateGlobalServiceAccountV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewCreateGlobalServiceAccountV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewCreateGlobalServiceAccountV1RequestWithBody constructs an http.Request for the CreateGlobalServiceAccountV1 method, with any body, and a specified content type -func NewCreateGlobalServiceAccountV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/service-accounts") + operationPath := fmt.Sprintf("/platform/v1/ip-filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45039,53 +49464,31 @@ func NewCreateGlobalServiceAccountV1RequestWithBody(server string, contentType s return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteGlobalServiceAccountsNotificationSettingsV1Request constructs an http.Request for the DeleteGlobalServiceAccountsNotificationSettingsV1 method -func NewDeleteGlobalServiceAccountsNotificationSettingsV1Request(server string) (*http.Request, error) { +// NewGetIpFilterByIdV1Request constructs an http.Request for the GetIpFilterByIdV1 method +func NewGetIpFilterByIdV1Request(server string, ipFilterId IpFilterIdPath) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + var pathParam0 string - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - return req, nil -} - -// NewGetGlobalServiceAccountsNotificationSettingsV1Request constructs an http.Request for the GetGlobalServiceAccountsNotificationSettingsV1 method -func NewGetGlobalServiceAccountsNotificationSettingsV1Request(server string) (*http.Request, error) { - var err error - serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") + operationPath := fmt.Sprintf("/platform/v1/ip-filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45103,67 +49506,34 @@ func NewGetGlobalServiceAccountsNotificationSettingsV1Request(server string) (*h return req, nil } -// NewCreateGlobalServiceAccountsNotificationSettingsV1Request calls the generic CreateGlobalServiceAccountsNotificationSettingsV1 builder with application/json body -func NewCreateGlobalServiceAccountsNotificationSettingsV1Request(server string, body CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { +// NewUpdateIpFilterV1Request calls the generic UpdateIpFilterV1 builder with application/json body +func NewUpdateIpFilterV1Request(server string, ipFilterId IpFilterIdPath, body UpdateIpFilterV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server, "application/json", bodyReader) + return NewUpdateIpFilterV1RequestWithBody(server, ipFilterId, "application/json", bodyReader) } -// NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the CreateGlobalServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type -func NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateIpFilterV1RequestWithBody constructs an http.Request for the UpdateIpFilterV1 method, with any body, and a specified content type +func NewUpdateIpFilterV1RequestWithBody(server string, ipFilterId IpFilterIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") - 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 -} + var pathParam0 string -// NewUpdateGlobalServiceAccountsNotificationSettingsV1Request calls the generic UpdateGlobalServiceAccountsNotificationSettingsV1 builder with application/json body -func NewUpdateGlobalServiceAccountsNotificationSettingsV1Request(server string, body UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ipFilterId", ipFilterId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the UpdateGlobalServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type -func NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { - var err error serverURL, err := url.Parse(server) if err != nil { return nil, err } - operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") + operationPath := fmt.Sprintf("/platform/v1/ip-filters/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45183,76 +49553,8 @@ func NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server return req, nil } -// NewDeleteGlobalServiceAccountByIdV1Request constructs an http.Request for the DeleteGlobalServiceAccountByIdV1 method -func NewDeleteGlobalServiceAccountByIdV1Request(server string, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, 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("/platform/v1/service-accounts/%s", pathParam0) - if operationPath[0] == '/' { - operationPath = "." + operationPath - } - - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } - - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewGetGlobalServiceAccountByIdV1Request constructs an http.Request for the GetGlobalServiceAccountByIdV1 method -func NewGetGlobalServiceAccountByIdV1Request(server string, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { - var err error - - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, 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("/platform/v1/service-accounts/%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 -} - -// NewGetSsoSettingsV1Request constructs an http.Request for the GetSsoSettingsV1 method -func NewGetSsoSettingsV1Request(server string, params *GetSsoSettingsV1Params) (*http.Request, error) { +// NewGetNotificationChannelsRequest constructs an http.Request for the GetNotificationChannels method +func NewGetNotificationChannelsRequest(server string, params *GetNotificationChannelsParams) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45260,7 +49562,7 @@ func NewGetSsoSettingsV1Request(server string, params *GetSsoSettingsV1Params) ( return nil, err } - operationPath := fmt.Sprintf("/platform/v1/sso-settings") + operationPath := fmt.Sprintf("/platform/v1/notification-channels") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45279,9 +49581,21 @@ func NewGetSsoSettingsV1Request(server string, params *GetSsoSettingsV1Params) ( // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Filter != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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.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, "&") { @@ -45305,19 +49619,19 @@ func NewGetSsoSettingsV1Request(server string, params *GetSsoSettingsV1Params) ( return req, nil } -// NewCreateSsoSettingsV1Request calls the generic CreateSsoSettingsV1 builder with application/json body -func NewCreateSsoSettingsV1Request(server string, body CreateSsoSettingsV1JSONRequestBody) (*http.Request, error) { +// NewCreateNotificationChannelRequest calls the generic CreateNotificationChannel builder with application/json body +func NewCreateNotificationChannelRequest(server string, body CreateNotificationChannelJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSsoSettingsV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateNotificationChannelRequestWithBody(server, "application/json", bodyReader) } -// NewCreateSsoSettingsV1RequestWithBody constructs an http.Request for the CreateSsoSettingsV1 method, with any body, and a specified content type -func NewCreateSsoSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNotificationChannelRequestWithBody constructs an http.Request for the CreateNotificationChannel method, with any body, and a specified content type +func NewCreateNotificationChannelRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45325,7 +49639,7 @@ func NewCreateSsoSettingsV1RequestWithBody(server string, contentType string, bo return nil, err } - operationPath := fmt.Sprintf("/platform/v1/sso-settings") + operationPath := fmt.Sprintf("/platform/v1/notification-channels") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45345,13 +49659,13 @@ func NewCreateSsoSettingsV1RequestWithBody(server string, contentType string, bo return req, nil } -// NewDeleteSsoSettingsByIdV1Request constructs an http.Request for the DeleteSsoSettingsByIdV1 method -func NewDeleteSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { +// NewDeleteNotificationChannelByIdRequest constructs an http.Request for the DeleteNotificationChannelById method +func NewDeleteNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45361,7 +49675,7 @@ func NewDeleteSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsI return nil, err } - operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45379,13 +49693,13 @@ func NewDeleteSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsI return req, nil } -// NewGetSsoSettingsByIdV1Request constructs an http.Request for the GetSsoSettingsByIdV1 method -func NewGetSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { +// NewGetNotificationChannelByIdRequest constructs an http.Request for the GetNotificationChannelById method +func NewGetNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45395,7 +49709,7 @@ func NewGetSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPa return nil, err } - operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45413,24 +49727,24 @@ func NewGetSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPa return req, nil } -// NewUpdateSsoSettingsByIdV1Request calls the generic UpdateSsoSettingsByIdV1 builder with application/json body -func NewUpdateSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath, body UpdateSsoSettingsByIdV1JSONRequestBody) (*http.Request, error) { +// NewUpdateNotificationChannelByIdRequest calls the generic UpdateNotificationChannelById builder with application/json body +func NewUpdateNotificationChannelByIdRequest(server string, notificationChannelID NotificationChannelID, body UpdateNotificationChannelByIdJSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSsoSettingsByIdV1RequestWithBody(server, ssoSettingsId, "application/json", bodyReader) + return NewUpdateNotificationChannelByIdRequestWithBody(server, notificationChannelID, "application/json", bodyReader) } -// NewUpdateSsoSettingsByIdV1RequestWithBody constructs an http.Request for the UpdateSsoSettingsByIdV1 method, with any body, and a specified content type -func NewUpdateSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateNotificationChannelByIdRequestWithBody constructs an http.Request for the UpdateNotificationChannelById method, with any body, and a specified content type +func NewUpdateNotificationChannelByIdRequestWithBody(server string, notificationChannelID NotificationChannelID, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationChannelId", notificationChannelID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45440,7 +49754,7 @@ func NewUpdateSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoS return nil, err } - operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-channels/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45460,8 +49774,8 @@ func NewUpdateSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoS return req, nil } -// NewGetSystemSsoSettingsV1Request constructs an http.Request for the GetSystemSsoSettingsV1 method -func NewGetSystemSsoSettingsV1Request(server string, params *GetSystemSsoSettingsV1Params) (*http.Request, error) { +// NewGetNotificationTemplatesV1Request constructs an http.Request for the GetNotificationTemplatesV1 method +func NewGetNotificationTemplatesV1Request(server string, params *GetNotificationTemplatesV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45469,7 +49783,7 @@ func NewGetSystemSsoSettingsV1Request(server string, params *GetSystemSsoSetting return nil, err } - operationPath := fmt.Sprintf("/platform/v1/system-sso-settings") + operationPath := fmt.Sprintf("/platform/v1/notification-templates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45488,9 +49802,45 @@ func NewGetSystemSsoSettingsV1Request(server string, params *GetSystemSsoSetting // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Filter != nil { + if params.ChannelType != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "channelType", *params.ChannelType, 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.UseCase != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "useCase", *params.UseCase, 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.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, "&") { @@ -45514,19 +49864,19 @@ func NewGetSystemSsoSettingsV1Request(server string, params *GetSystemSsoSetting return req, nil } -// NewCreateSystemSsoSettingsV1Request calls the generic CreateSystemSsoSettingsV1 builder with application/json body -func NewCreateSystemSsoSettingsV1Request(server string, body CreateSystemSsoSettingsV1JSONRequestBody) (*http.Request, error) { +// NewCreateNotificationTemplateV1Request calls the generic CreateNotificationTemplateV1 builder with application/json body +func NewCreateNotificationTemplateV1Request(server string, body CreateNotificationTemplateV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateSystemSsoSettingsV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateNotificationTemplateV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateSystemSsoSettingsV1RequestWithBody constructs an http.Request for the CreateSystemSsoSettingsV1 method, with any body, and a specified content type -func NewCreateSystemSsoSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateNotificationTemplateV1RequestWithBody constructs an http.Request for the CreateNotificationTemplateV1 method, with any body, and a specified content type +func NewCreateNotificationTemplateV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45534,7 +49884,7 @@ func NewCreateSystemSsoSettingsV1RequestWithBody(server string, contentType stri return nil, err } - operationPath := fmt.Sprintf("/platform/v1/system-sso-settings") + operationPath := fmt.Sprintf("/platform/v1/notification-templates") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45554,13 +49904,13 @@ func NewCreateSystemSsoSettingsV1RequestWithBody(server string, contentType stri return req, nil } -// NewDeleteSystemSsoSettingsByIdV1Request constructs an http.Request for the DeleteSystemSsoSettingsByIdV1 method -func NewDeleteSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { +// NewDeleteNotificationTemplateByIdV1Request constructs an http.Request for the DeleteNotificationTemplateByIdV1 method +func NewDeleteNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -45570,7 +49920,7 @@ func NewDeleteSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSet return nil, err } - operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45588,13 +49938,13 @@ func NewDeleteSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSet return req, nil } -// NewGetSystemSsoSettingsByIdV1Request constructs an http.Request for the GetSystemSsoSettingsByIdV1 method -func NewGetSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { +// NewGetNotificationTemplateByIdV1Request constructs an http.Request for the GetNotificationTemplateByIdV1 method +func NewGetNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -45604,7 +49954,7 @@ func NewGetSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettin return nil, err } - operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45622,24 +49972,24 @@ func NewGetSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettin return req, nil } -// NewUpdateSystemSsoSettingsByIdV1Request calls the generic UpdateSystemSsoSettingsByIdV1 builder with application/json body -func NewUpdateSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath, body UpdateSystemSsoSettingsByIdV1JSONRequestBody) (*http.Request, error) { +// NewUpdateNotificationTemplateByIdV1Request calls the generic UpdateNotificationTemplateByIdV1 builder with application/json body +func NewUpdateNotificationTemplateByIdV1Request(server string, notificationTemplateId NotificationTemplateIdPath, body UpdateNotificationTemplateByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server, ssoSettingsId, "application/json", bodyReader) + return NewUpdateNotificationTemplateByIdV1RequestWithBody(server, notificationTemplateId, "application/json", bodyReader) } -// NewUpdateSystemSsoSettingsByIdV1RequestWithBody constructs an http.Request for the UpdateSystemSsoSettingsByIdV1 method, with any body, and a specified content type -func NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateNotificationTemplateByIdV1RequestWithBody constructs an http.Request for the UpdateNotificationTemplateByIdV1 method, with any body, and a specified content type +func NewUpdateNotificationTemplateByIdV1RequestWithBody(server string, notificationTemplateId NotificationTemplateIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "notificationTemplateId", notificationTemplateId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -45649,7 +49999,7 @@ func NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsI return nil, err } - operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/notification-templates/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45669,8 +50019,8 @@ func NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsI return req, nil } -// NewGetTeamsV1Request constructs an http.Request for the GetTeamsV1 method -func NewGetTeamsV1Request(server string, params *GetTeamsV1Params) (*http.Request, error) { +// NewGetPermissionsV1Request constructs an http.Request for the GetPermissionsV1 method +func NewGetPermissionsV1Request(server string, params *GetPermissionsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45678,7 +50028,7 @@ func NewGetTeamsV1Request(server string, params *GetTeamsV1Params) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams") + operationPath := fmt.Sprintf("/platform/v1/permissions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45697,42 +50047,6 @@ func NewGetTeamsV1Request(server string, params *GetTeamsV1Params) (*http.Reques // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { @@ -45759,19 +50073,8 @@ func NewGetTeamsV1Request(server string, params *GetTeamsV1Params) (*http.Reques return req, nil } -// NewCreateTeamV1Request calls the generic CreateTeamV1 builder with application/json body -func NewCreateTeamV1Request(server string, body CreateTeamV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateTeamV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewCreateTeamV1RequestWithBody constructs an http.Request for the CreateTeamV1 method, with any body, and a specified content type -func NewCreateTeamV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetPlatformAuditEventsV1Request constructs an http.Request for the GetPlatformAuditEventsV1 method +func NewGetPlatformAuditEventsV1Request(server string, params *GetPlatformAuditEventsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -45779,7 +50082,202 @@ func NewCreateTeamV1RequestWithBody(server string, contentType string, body io.R return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams") + operationPath := fmt.Sprintf("/platform/v1/platform-audit-events") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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 +} + +// NewGetRolesV1Request constructs an http.Request for the GetRolesV1 method +func NewGetRolesV1Request(server string, params *GetRolesV1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/platform/v1/roles") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if params.Offset != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.Orderby != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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 +} + +// NewCreateRoleV1Request calls the generic CreateRoleV1 builder with application/json body +func NewCreateRoleV1Request(server string, body CreateRoleV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateRoleV1RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateRoleV1RequestWithBody constructs an http.Request for the CreateRoleV1 method, with any body, and a specified content type +func NewCreateRoleV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/platform/v1/roles") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45799,13 +50297,13 @@ func NewCreateTeamV1RequestWithBody(server string, contentType string, body io.R return req, nil } -// NewDeleteTeamByIdV1Request constructs an http.Request for the DeleteTeamByIdV1 method -func NewDeleteTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request, error) { +// NewDeleteRoleByIdV1Request constructs an http.Request for the DeleteRoleByIdV1 method +func NewDeleteRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45815,7 +50313,7 @@ func NewDeleteTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/roles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45833,13 +50331,13 @@ func NewDeleteTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request return req, nil } -// NewGetTeamByIdV1Request constructs an http.Request for the GetTeamByIdV1 method -func NewGetTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request, error) { +// NewGetRoleByIdV1Request constructs an http.Request for the GetRoleByIdV1 method +func NewGetRoleByIdV1Request(server string, roleId RoleIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45849,7 +50347,7 @@ func NewGetTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request, e return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/roles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45867,24 +50365,24 @@ func NewGetTeamByIdV1Request(server string, teamId TeamIdPath) (*http.Request, e return req, nil } -// NewUpdateTeamByIdV1Request calls the generic UpdateTeamByIdV1 builder with application/json body -func NewUpdateTeamByIdV1Request(server string, teamId TeamIdPath, body UpdateTeamByIdV1JSONRequestBody) (*http.Request, error) { +// NewUpdateRoleByIdV1Request calls the generic UpdateRoleByIdV1 builder with application/json body +func NewUpdateRoleByIdV1Request(server string, roleId RoleIdPath, body UpdateRoleByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateTeamByIdV1RequestWithBody(server, teamId, "application/json", bodyReader) + return NewUpdateRoleByIdV1RequestWithBody(server, roleId, "application/json", bodyReader) } -// NewUpdateTeamByIdV1RequestWithBody constructs an http.Request for the UpdateTeamByIdV1 method, with any body, and a specified content type -func NewUpdateTeamByIdV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateRoleByIdV1RequestWithBody constructs an http.Request for the UpdateRoleByIdV1 method, with any body, and a specified content type +func NewUpdateRoleByIdV1RequestWithBody(server string, roleId RoleIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "roleId", roleId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -45894,7 +50392,7 @@ func NewUpdateTeamByIdV1RequestWithBody(server string, teamId TeamIdPath, conten return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/roles/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -45914,23 +50412,16 @@ func NewUpdateTeamByIdV1RequestWithBody(server string, teamId TeamIdPath, conten return req, nil } -// NewGetTeamServiceAccountsV1Request constructs an http.Request for the GetTeamServiceAccountsV1 method -func NewGetTeamServiceAccountsV1Request(server string, teamId TeamIdPath, params *GetTeamServiceAccountsV1Params) (*http.Request, error) { +// NewGetGlobalServiceAccountsV1Request constructs an http.Request for the GetGlobalServiceAccountsV1 method +func NewGetGlobalServiceAccountsV1Request(server string, params *GetGlobalServiceAccountsV1Params) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46011,34 +50502,27 @@ func NewGetTeamServiceAccountsV1Request(server string, teamId TeamIdPath, params return req, nil } -// NewCreateTeamServiceAccountV1Request calls the generic CreateTeamServiceAccountV1 builder with application/json body -func NewCreateTeamServiceAccountV1Request(server string, teamId TeamIdPath, body CreateTeamServiceAccountV1JSONRequestBody) (*http.Request, error) { +// NewCreateGlobalServiceAccountV1Request calls the generic CreateGlobalServiceAccountV1 builder with application/json body +func NewCreateGlobalServiceAccountV1Request(server string, body CreateGlobalServiceAccountV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateTeamServiceAccountV1RequestWithBody(server, teamId, "application/json", bodyReader) + return NewCreateGlobalServiceAccountV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateTeamServiceAccountV1RequestWithBody constructs an http.Request for the CreateTeamServiceAccountV1 method, with any body, and a specified content type -func NewCreateTeamServiceAccountV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateGlobalServiceAccountV1RequestWithBody constructs an http.Request for the CreateGlobalServiceAccountV1 method, with any body, and a specified content type +func NewCreateGlobalServiceAccountV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46058,23 +50542,16 @@ func NewCreateTeamServiceAccountV1RequestWithBody(server string, teamId TeamIdPa return req, nil } -// NewDeleteServiceAccountsNotificationSettingsV1Request constructs an http.Request for the DeleteServiceAccountsNotificationSettingsV1 method -func NewDeleteServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath) (*http.Request, error) { +// NewDeleteGlobalServiceAccountsNotificationSettingsV1Request constructs an http.Request for the DeleteGlobalServiceAccountsNotificationSettingsV1 method +func NewDeleteGlobalServiceAccountsNotificationSettingsV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46092,23 +50569,16 @@ func NewDeleteServiceAccountsNotificationSettingsV1Request(server string, teamId return req, nil } -// NewGetServiceAccountsNotificationSettingsV1Request constructs an http.Request for the GetServiceAccountsNotificationSettingsV1 method -func NewGetServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath) (*http.Request, error) { +// NewGetGlobalServiceAccountsNotificationSettingsV1Request constructs an http.Request for the GetGlobalServiceAccountsNotificationSettingsV1 method +func NewGetGlobalServiceAccountsNotificationSettingsV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46126,34 +50596,27 @@ func NewGetServiceAccountsNotificationSettingsV1Request(server string, teamId Te return req, nil } -// NewCreateServiceAccountsNotificationSettingsV1Request calls the generic CreateServiceAccountsNotificationSettingsV1 builder with application/json body -func NewCreateServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath, body CreateServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { +// NewCreateGlobalServiceAccountsNotificationSettingsV1Request calls the generic CreateGlobalServiceAccountsNotificationSettingsV1 builder with application/json body +func NewCreateGlobalServiceAccountsNotificationSettingsV1Request(server string, body CreateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateServiceAccountsNotificationSettingsV1RequestWithBody(server, teamId, "application/json", bodyReader) + return NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the CreateServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type -func NewCreateServiceAccountsNotificationSettingsV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the CreateGlobalServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type +func NewCreateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46173,34 +50636,27 @@ func NewCreateServiceAccountsNotificationSettingsV1RequestWithBody(server string return req, nil } -// NewUpdateServiceAccountsNotificationSettingsV1Request calls the generic UpdateServiceAccountsNotificationSettingsV1 builder with application/json body -func NewUpdateServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath, body UpdateServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { +// NewUpdateGlobalServiceAccountsNotificationSettingsV1Request calls the generic UpdateGlobalServiceAccountsNotificationSettingsV1 builder with application/json body +func NewUpdateGlobalServiceAccountsNotificationSettingsV1Request(server string, body UpdateGlobalServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody(server, teamId, "application/json", bodyReader) + return NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server, "application/json", bodyReader) } -// NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the UpdateServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type -func NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the UpdateGlobalServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type +func NewUpdateGlobalServiceAccountsNotificationSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/notification-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46220,20 +50676,13 @@ func NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody(server string return req, nil } -// NewDeleteTeamServiceAccountByIdV1Request constructs an http.Request for the DeleteTeamServiceAccountByIdV1 method -func NewDeleteTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { +// NewDeleteGlobalServiceAccountByIdV1Request constructs an http.Request for the DeleteGlobalServiceAccountByIdV1 method +func NewDeleteGlobalServiceAccountByIdV1Request(server string, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46243,7 +50692,7 @@ func NewDeleteTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46261,20 +50710,13 @@ func NewDeleteTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, return req, nil } -// NewGetTeamServiceAccountByIdV1Request constructs an http.Request for the GetTeamServiceAccountByIdV1 method -func NewGetTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { +// NewGetGlobalServiceAccountByIdV1Request constructs an http.Request for the GetGlobalServiceAccountByIdV1 method +func NewGetGlobalServiceAccountByIdV1Request(server string, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46284,7 +50726,7 @@ func NewGetTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, ser return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform/v1/service-accounts/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46302,23 +50744,16 @@ func NewGetTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, ser return req, nil } -// NewGetTeamUsersV1Request constructs an http.Request for the GetTeamUsersV1 method -func NewGetTeamUsersV1Request(server string, teamId TeamIdPath, params *GetTeamUsersV1Params) (*http.Request, error) { +// NewGetSsoSettingsV1Request constructs an http.Request for the GetSsoSettingsV1 method +func NewGetSsoSettingsV1Request(server string, params *GetSsoSettingsV1Params) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1/teams/%s/users", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/sso-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46337,33 +50772,9 @@ func NewGetTeamUsersV1Request(server string, teamId TeamIdPath, params *GetTeamU // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Offset != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); 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.WithAdminUsers != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "withAdminUsers", *params.WithAdminUsers, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -46387,20 +50798,53 @@ func NewGetTeamUsersV1Request(server string, teamId TeamIdPath, params *GetTeamU return req, nil } -// NewDeleteTeamUserByIdV1Request constructs an http.Request for the DeleteTeamUserByIdV1 method -func NewDeleteTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserIdPath) (*http.Request, error) { +// NewCreateSsoSettingsV1Request calls the generic CreateSsoSettingsV1 builder with application/json body +func NewCreateSsoSettingsV1Request(server string, body CreateSsoSettingsV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSsoSettingsV1RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateSsoSettingsV1RequestWithBody constructs an http.Request for the CreateSsoSettingsV1 method, with any body, and a specified content type +func NewCreateSsoSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error - var pathParam0 string + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + operationPath := fmt.Sprintf("/platform/v1/sso-settings") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) if err != nil { return nil, err } - var pathParam1 string + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewDeleteSsoSettingsByIdV1Request constructs an http.Request for the DeleteSsoSettingsByIdV1 method +func NewDeleteSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46410,7 +50854,7 @@ func NewDeleteTeamUserByIdV1Request(server string, teamId TeamIdPath, userId Use return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46428,20 +50872,13 @@ func NewDeleteTeamUserByIdV1Request(server string, teamId TeamIdPath, userId Use return req, nil } -// NewGetTeamUserByIdV1Request constructs an http.Request for the GetTeamUserByIdV1 method -func NewGetTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserIdPath) (*http.Request, error) { +// NewGetSsoSettingsByIdV1Request constructs an http.Request for the GetSsoSettingsByIdV1 method +func NewGetSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46451,7 +50888,7 @@ func NewGetTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserId return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46469,31 +50906,24 @@ func NewGetTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserId return req, nil } -// NewSaveTeamUserV1Request calls the generic SaveTeamUserV1 builder with application/json body -func NewSaveTeamUserV1Request(server string, teamId TeamIdPath, userId UserIdPath, body SaveTeamUserV1JSONRequestBody) (*http.Request, error) { +// NewUpdateSsoSettingsByIdV1Request calls the generic UpdateSsoSettingsByIdV1 builder with application/json body +func NewUpdateSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath, body UpdateSsoSettingsByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewSaveTeamUserV1RequestWithBody(server, teamId, userId, "application/json", bodyReader) + return NewUpdateSsoSettingsByIdV1RequestWithBody(server, ssoSettingsId, "application/json", bodyReader) } -// NewSaveTeamUserV1RequestWithBody constructs an http.Request for the SaveTeamUserV1 method, with any body, and a specified content type -func NewSaveTeamUserV1RequestWithBody(server string, teamId TeamIdPath, userId UserIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSsoSettingsByIdV1RequestWithBody constructs an http.Request for the UpdateSsoSettingsByIdV1 method, with any body, and a specified content type +func NewUpdateSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) - if err != nil { - return nil, err - } - - var pathParam1 string - - pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46503,7 +50933,7 @@ func NewSaveTeamUserV1RequestWithBody(server string, teamId TeamIdPath, userId U return nil, err } - operationPath := fmt.Sprintf("/platform/v1/teams/%s/users/%s", pathParam0, pathParam1) + operationPath := fmt.Sprintf("/platform/v1/sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46523,8 +50953,8 @@ func NewSaveTeamUserV1RequestWithBody(server string, teamId TeamIdPath, userId U return req, nil } -// NewGetUsersV1Request constructs an http.Request for the GetUsersV1 method -func NewGetUsersV1Request(server string, params *GetUsersV1Params) (*http.Request, error) { +// NewGetSystemSsoSettingsV1Request constructs an http.Request for the GetSystemSsoSettingsV1 method +func NewGetSystemSsoSettingsV1Request(server string, params *GetSystemSsoSettingsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -46532,7 +50962,7 @@ func NewGetUsersV1Request(server string, params *GetUsersV1Params) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/platform/v1/users") + operationPath := fmt.Sprintf("/platform/v1/system-sso-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46551,9 +50981,9 @@ func NewGetUsersV1Request(server string, params *GetUsersV1Params) (*http.Reques // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Offset != nil { + if params.Filter != 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, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -46563,69 +50993,33 @@ func NewGetUsersV1Request(server string, params *GetUsersV1Params) (*http.Reques } - 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, "&") + } - if params.Orderby != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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 - } + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } return req, nil } -// NewCreateUserV1Request calls the generic CreateUserV1 builder with application/json body -func NewCreateUserV1Request(server string, params *CreateUserV1Params, body CreateUserV1JSONRequestBody) (*http.Request, error) { +// NewCreateSystemSsoSettingsV1Request calls the generic CreateSystemSsoSettingsV1 builder with application/json body +func NewCreateSystemSsoSettingsV1Request(server string, body CreateSystemSsoSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateUserV1RequestWithBody(server, params, "application/json", bodyReader) + return NewCreateSystemSsoSettingsV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateUserV1RequestWithBody constructs an http.Request for the CreateUserV1 method, with any body, and a specified content type -func NewCreateUserV1RequestWithBody(server string, params *CreateUserV1Params, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateSystemSsoSettingsV1RequestWithBody constructs an http.Request for the CreateSystemSsoSettingsV1 method, with any body, and a specified content type +func NewCreateSystemSsoSettingsV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -46633,7 +51027,7 @@ func NewCreateUserV1RequestWithBody(server string, params *CreateUserV1Params, c return nil, err } - operationPath := fmt.Sprintf("/platform/v1/users") + operationPath := fmt.Sprintf("/platform/v1/system-sso-settings") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46643,33 +51037,6 @@ func NewCreateUserV1RequestWithBody(server string, params *CreateUserV1Params, c 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.ActivationFlow != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "activationFlow", *params.ActivationFlow, 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 encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) if err != nil { return nil, err @@ -46680,13 +51047,13 @@ func NewCreateUserV1RequestWithBody(server string, params *CreateUserV1Params, c return req, nil } -// NewDeleteUserByIdV1Request constructs an http.Request for the DeleteUserByIdV1 method -func NewDeleteUserByIdV1Request(server string, userId UserIdPath) (*http.Request, error) { +// NewDeleteSystemSsoSettingsByIdV1Request constructs an http.Request for the DeleteSystemSsoSettingsByIdV1 method +func NewDeleteSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46696,7 +51063,7 @@ func NewDeleteUserByIdV1Request(server string, userId UserIdPath) (*http.Request return nil, err } - operationPath := fmt.Sprintf("/platform/v1/users/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46714,13 +51081,13 @@ func NewDeleteUserByIdV1Request(server string, userId UserIdPath) (*http.Request return req, nil } -// NewGetUserByIdV1Request constructs an http.Request for the GetUserByIdV1 method -func NewGetUserByIdV1Request(server string, userId UserIdPath) (*http.Request, error) { +// NewGetSystemSsoSettingsByIdV1Request constructs an http.Request for the GetSystemSsoSettingsByIdV1 method +func NewGetSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46730,7 +51097,7 @@ func NewGetUserByIdV1Request(server string, userId UserIdPath) (*http.Request, e return nil, err } - operationPath := fmt.Sprintf("/platform/v1/users/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46748,24 +51115,24 @@ func NewGetUserByIdV1Request(server string, userId UserIdPath) (*http.Request, e return req, nil } -// NewUpdateUserV1Request calls the generic UpdateUserV1 builder with application/json body -func NewUpdateUserV1Request(server string, userId UserIdPath, body UpdateUserV1JSONRequestBody) (*http.Request, error) { +// NewUpdateSystemSsoSettingsByIdV1Request calls the generic UpdateSystemSsoSettingsByIdV1 builder with application/json body +func NewUpdateSystemSsoSettingsByIdV1Request(server string, ssoSettingsId SsoSettingsIdPath, body UpdateSystemSsoSettingsByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewUpdateUserV1RequestWithBody(server, userId, "application/json", bodyReader) + return NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server, ssoSettingsId, "application/json", bodyReader) } -// NewUpdateUserV1RequestWithBody constructs an http.Request for the UpdateUserV1 method, with any body, and a specified content type -func NewUpdateUserV1RequestWithBody(server string, userId UserIdPath, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateSystemSsoSettingsByIdV1RequestWithBody constructs an http.Request for the UpdateSystemSsoSettingsByIdV1 method, with any body, and a specified content type +func NewUpdateSystemSsoSettingsByIdV1RequestWithBody(server string, ssoSettingsId SsoSettingsIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "ssoSettingsId", ssoSettingsId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46775,7 +51142,7 @@ func NewUpdateUserV1RequestWithBody(server string, userId UserIdPath, contentTyp return nil, err } - operationPath := fmt.Sprintf("/platform/v1/users/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/system-sso-settings/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46795,8 +51162,8 @@ func NewUpdateUserV1RequestWithBody(server string, userId UserIdPath, contentTyp return req, nil } -// NewListZonesV1Request constructs an http.Request for the ListZonesV1 method -func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Request, error) { +// NewGetTeamsV1Request constructs an http.Request for the GetTeamsV1 method +func NewGetTeamsV1Request(server string, params *GetTeamsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -46804,7 +51171,7 @@ func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/platform/v1/zones") + operationPath := fmt.Sprintf("/platform/v1/teams") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46823,9 +51190,9 @@ func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Requ // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Filter != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != 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, "&") { @@ -46847,9 +51214,9 @@ func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Requ } - if params.Offset != nil { + if params.Orderby != 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, "orderby", *params.Orderby, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -46859,9 +51226,9 @@ func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Requ } - if params.Orderby != nil { + if params.Filter != 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, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -46885,19 +51252,19 @@ func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Requ return req, nil } -// NewCreateZoneV1Request calls the generic CreateZoneV1 builder with application/json body -func NewCreateZoneV1Request(server string, body CreateZoneV1JSONRequestBody) (*http.Request, error) { +// NewCreateTeamV1Request calls the generic CreateTeamV1 builder with application/json body +func NewCreateTeamV1Request(server string, body CreateTeamV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateZoneV1RequestWithBody(server, "application/json", bodyReader) + return NewCreateTeamV1RequestWithBody(server, "application/json", bodyReader) } -// NewCreateZoneV1RequestWithBody constructs an http.Request for the CreateZoneV1 method, with any body, and a specified content type -func NewCreateZoneV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewCreateTeamV1RequestWithBody constructs an http.Request for the CreateTeamV1 method, with any body, and a specified content type +func NewCreateTeamV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -46905,7 +51272,7 @@ func NewCreateZoneV1RequestWithBody(server string, contentType string, body io.R return nil, err } - operationPath := fmt.Sprintf("/platform/v1/zones") + operationPath := fmt.Sprintf("/platform/v1/teams") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46925,13 +51292,13 @@ func NewCreateZoneV1RequestWithBody(server string, contentType string, body io.R return req, nil } -// NewDeleteZoneV1Request constructs an http.Request for the DeleteZoneV1 method -func NewDeleteZoneV1Request(server string, zoneId ZoneId) (*http.Request, error) { +// NewDeleteTeamByIdV1Request constructs an http.Request for the DeleteTeamByIdV1 method +func NewDeleteTeamByIdV1Request(server string, teamId TeamIdPath) (*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, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46941,7 +51308,7 @@ func NewDeleteZoneV1Request(server string, zoneId ZoneId) (*http.Request, error) return nil, err } - operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46959,13 +51326,13 @@ func NewDeleteZoneV1Request(server string, zoneId ZoneId) (*http.Request, error) return req, nil } -// NewGetZoneByIdV1Request constructs an http.Request for the GetZoneByIdV1 method -func NewGetZoneByIdV1Request(server string, zoneId ZoneId) (*http.Request, error) { +// NewGetTeamByIdV1Request constructs an http.Request for the GetTeamByIdV1 method +func NewGetTeamByIdV1Request(server string, teamId TeamIdPath) (*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, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -46975,7 +51342,7 @@ func NewGetZoneByIdV1Request(server string, zoneId ZoneId) (*http.Request, error return nil, err } - operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -46993,24 +51360,24 @@ func NewGetZoneByIdV1Request(server string, zoneId ZoneId) (*http.Request, error return req, nil } -// NewEditZoneV1Request calls the generic EditZoneV1 builder with application/json body -func NewEditZoneV1Request(server string, zoneId ZoneId, body EditZoneV1JSONRequestBody) (*http.Request, error) { +// NewUpdateTeamByIdV1Request calls the generic UpdateTeamByIdV1 builder with application/json body +func NewUpdateTeamByIdV1Request(server string, teamId TeamIdPath, body UpdateTeamByIdV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewEditZoneV1RequestWithBody(server, zoneId, "application/json", bodyReader) + return NewUpdateTeamByIdV1RequestWithBody(server, teamId, "application/json", bodyReader) } -// NewEditZoneV1RequestWithBody constructs an http.Request for the EditZoneV1 method, with any body, and a specified content type -func NewEditZoneV1RequestWithBody(server string, zoneId ZoneId, contentType string, body io.Reader) (*http.Request, error) { +// NewUpdateTeamByIdV1RequestWithBody constructs an http.Request for the UpdateTeamByIdV1 method, with any body, and a specified content type +func NewUpdateTeamByIdV1RequestWithBody(server string, teamId TeamIdPath, 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, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47020,7 +51387,7 @@ func NewEditZoneV1RequestWithBody(server string, zoneId ZoneId, contentType stri return nil, err } - operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47040,16 +51407,23 @@ func NewEditZoneV1RequestWithBody(server string, zoneId ZoneId, contentType stri return req, nil } -// NewListAutomationExecutionsRequest constructs an http.Request for the ListAutomationExecutions method -func NewListAutomationExecutionsRequest(server string, params *ListAutomationExecutionsParams) (*http.Request, error) { +// NewGetTeamServiceAccountsV1Request constructs an http.Request for the GetTeamServiceAccountsV1 method +func NewGetTeamServiceAccountsV1Request(server string, teamId TeamIdPath, params *GetTeamServiceAccountsV1Params) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1alpha1/automation-executions") + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47068,17 +51442,9 @@ func NewListAutomationExecutionsRequest(server string, params *ListAutomationExe // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - 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 params.Limit != nil { + if params.Offset != 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, "offset", *params.Offset, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -47088,9 +51454,9 @@ func NewListAutomationExecutionsRequest(server string, params *ListAutomationExe } - if params.Sort != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "sort", *params.Sort, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -47100,9 +51466,9 @@ func NewListAutomationExecutionsRequest(server string, params *ListAutomationExe } - if params.Status != nil { + if params.Orderby != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "status", *params.Status, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -47112,9 +51478,9 @@ func NewListAutomationExecutionsRequest(server string, params *ListAutomationExe } - if params.Cursor != nil { + if params.Filter != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -47138,13 +51504,24 @@ func NewListAutomationExecutionsRequest(server string, params *ListAutomationExe return req, nil } -// NewGetAutomationExecutionRequest constructs an http.Request for the GetAutomationExecution method -func NewGetAutomationExecutionRequest(server string, automationExecutionID AutomationExecutionID) (*http.Request, error) { +// NewCreateTeamServiceAccountV1Request calls the generic CreateTeamServiceAccountV1 builder with application/json body +func NewCreateTeamServiceAccountV1Request(server string, teamId TeamIdPath, body CreateTeamServiceAccountV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateTeamServiceAccountV1RequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateTeamServiceAccountV1RequestWithBody constructs an http.Request for the CreateTeamServiceAccountV1 method, with any body, and a specified content type +func NewCreateTeamServiceAccountV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*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"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47154,7 +51531,7 @@ func NewGetAutomationExecutionRequest(server string, automationExecutionID Autom return nil, err } - operationPath := fmt.Sprintf("/platform/v1alpha1/automation-executions/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47164,24 +51541,33 @@ func NewGetAutomationExecutionRequest(server string, automationExecutionID Autom return nil, err } - req, err := http.NewRequest(http.MethodGet, 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 } -// NewListAutomationsRequest constructs an http.Request for the ListAutomations method -func NewListAutomationsRequest(server string, params *ListAutomationsParams) (*http.Request, error) { +// NewDeleteServiceAccountsNotificationSettingsV1Request constructs an http.Request for the DeleteServiceAccountsNotificationSettingsV1 method +func NewDeleteServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1alpha1/automations") + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47191,103 +51577,38 @@ func NewListAutomationsRequest(server string, params *ListAutomationsParams) (*h 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) - } - } - - } + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } - if params.Limit != nil { + return req, 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) - } - } +// NewGetServiceAccountsNotificationSettingsV1Request constructs an http.Request for the GetServiceAccountsNotificationSettingsV1 method +func NewGetServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Cursor != nil { + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } - 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) - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) @@ -47298,27 +51619,34 @@ func NewListAutomationsRequest(server string, params *ListAutomationsParams) (*h return req, nil } -// NewCreateAutomationRequest calls the generic CreateAutomation builder with application/json body -func NewCreateAutomationRequest(server string, params *CreateAutomationParams, body CreateAutomationJSONRequestBody) (*http.Request, error) { +// NewCreateServiceAccountsNotificationSettingsV1Request calls the generic CreateServiceAccountsNotificationSettingsV1 builder with application/json body +func NewCreateServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath, body CreateServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { var bodyReader io.Reader buf, err := json.Marshal(body) if err != nil { return nil, err } bodyReader = bytes.NewReader(buf) - return NewCreateAutomationRequestWithBody(server, params, "application/json", bodyReader) + return NewCreateServiceAccountsNotificationSettingsV1RequestWithBody(server, teamId, "application/json", bodyReader) } -// 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) { +// NewCreateServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the CreateServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type +func NewCreateServiceAccountsNotificationSettingsV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v1alpha1/automations") + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47335,31 +51663,27 @@ func NewCreateAutomationRequestWithBody(server string, params *CreateAutomationP 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 +} +// NewUpdateServiceAccountsNotificationSettingsV1Request calls the generic UpdateServiceAccountsNotificationSettingsV1 builder with application/json body +func NewUpdateServiceAccountsNotificationSettingsV1Request(server string, teamId TeamIdPath, body UpdateServiceAccountsNotificationSettingsV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err } - - return req, nil + bodyReader = bytes.NewReader(buf) + return NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody(server, teamId, "application/json", bodyReader) } -// NewDeleteAutomationByIdRequest constructs an http.Request for the DeleteAutomationById method -func NewDeleteAutomationByIdRequest(server string, automationID AutomationID, params *DeleteAutomationByIdParams) (*http.Request, error) { +// NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody constructs an http.Request for the UpdateServiceAccountsNotificationSettingsV1 method, with any body, and a specified content type +func NewUpdateServiceAccountsNotificationSettingsV1RequestWithBody(server string, teamId TeamIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47369,7 +51693,7 @@ func NewDeleteAutomationByIdRequest(server string, automationID AutomationID, pa return nil, err } - operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/notification-settings", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47379,34 +51703,30 @@ func NewDeleteAutomationByIdRequest(server string, automationID AutomationID, pa return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) if err != nil { 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) - - } + req.Header.Add("Content-Type", contentType) return req, nil } -// NewGetAutomationByIdRequest constructs an http.Request for the GetAutomationById method -func NewGetAutomationByIdRequest(server string, automationID AutomationID) (*http.Request, error) { +// NewDeleteTeamServiceAccountByIdV1Request constructs an http.Request for the DeleteTeamServiceAccountByIdV1 method +func NewDeleteTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { var err error var pathParam0 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47416,7 +51736,7 @@ func NewGetAutomationByIdRequest(server string, automationID AutomationID) (*htt return nil, err } - operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47426,7 +51746,7 @@ func NewGetAutomationByIdRequest(server string, automationID AutomationID) (*htt return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -47434,24 +51754,20 @@ func NewGetAutomationByIdRequest(server string, automationID AutomationID) (*htt return req, nil } -// 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) +// NewGetTeamServiceAccountByIdV1Request constructs an http.Request for the GetTeamServiceAccountByIdV1 method +func NewGetTeamServiceAccountByIdV1Request(server string, teamId TeamIdPath, serviceAccountId ServiceAccountIdPath) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } - bodyReader = bytes.NewReader(buf) - return NewUpdateAutomationRequestWithBody(server, automationID, params, "application/json", bodyReader) -} - -// 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 + var pathParam1 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceAccountId", serviceAccountId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47461,7 +51777,7 @@ func NewUpdateAutomationRequestWithBody(server string, automationID AutomationID return nil, err } - operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s/service-accounts/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47471,39 +51787,31 @@ func NewUpdateAutomationRequestWithBody(server string, automationID AutomationID return nil, err } - req, err := http.NewRequest(http.MethodPut, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - 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 } -// NewListZonesV2Request constructs an http.Request for the ListZonesV2 method -func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Request, error) { +// NewGetTeamUsersV1Request constructs an http.Request for the GetTeamUsersV1 method +func NewGetTeamUsersV1Request(server string, teamId TeamIdPath, params *GetTeamUsersV1Params) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, 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("/platform/v2/zones") + operationPath := fmt.Sprintf("/platform/v1/teams/%s/users", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47522,9 +51830,9 @@ 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 params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != 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, "&") { @@ -47546,21 +51854,9 @@ func NewListZonesV2Request(server string, params *ListZonesV2Params) (*http.Requ } - 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 params.WithAdminUsers != 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, "withAdminUsers", *params.WithAdminUsers, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -47584,53 +51880,20 @@ 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) { - var bodyReader io.Reader - buf, err := json.Marshal(body) +// NewDeleteTeamUserByIdV1Request constructs an http.Request for the DeleteTeamUserByIdV1 method +func NewDeleteTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserIdPath) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) 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) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/platform/v2/zones") - 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 -} -// NewDeleteZoneV2Request constructs an http.Request for the DeleteZoneV2 method -func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) { - var err error - - var pathParam0 string + var pathParam1 string - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47640,7 +51903,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/v1/teams/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47658,13 +51921,20 @@ func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) return req, nil } -// NewGetZoneByIdV2Request constructs an http.Request for the GetZoneByIdV2 method -func NewGetZoneByIdV2Request(server string, zoneId ZoneId) (*http.Request, error) { +// NewGetTeamUserByIdV1Request constructs an http.Request for the GetTeamUserByIdV1 method +func NewGetTeamUserByIdV1Request(server string, teamId TeamIdPath, userId UserIdPath) (*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, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47674,7 +51944,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/v1/teams/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47692,24 +51962,31 @@ 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) { +// NewSaveTeamUserV1Request calls the generic SaveTeamUserV1 builder with application/json body +func NewSaveTeamUserV1Request(server string, teamId TeamIdPath, userId UserIdPath, body SaveTeamUserV1JSONRequestBody) (*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 NewSaveTeamUserV1RequestWithBody(server, teamId, userId, "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) { +// NewSaveTeamUserV1RequestWithBody constructs an http.Request for the SaveTeamUserV1 method, with any body, and a specified content type +func NewSaveTeamUserV1RequestWithBody(server string, teamId TeamIdPath, userId UserIdPath, 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, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -47719,7 +51996,7 @@ func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType stri return nil, err } - operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) + operationPath := fmt.Sprintf("/platform/v1/teams/%s/users/%s", pathParam0, pathParam1) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47739,8 +52016,8 @@ func NewEditZoneV2RequestWithBody(server string, zoneId ZoneId, contentType stri return req, nil } -// NewGetAdminTsdbCleanTombstonesV1Request constructs an http.Request for the GetAdminTsdbCleanTombstonesV1 method -func NewGetAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { +// NewGetUsersV1Request constructs an http.Request for the GetUsersV1 method +func NewGetUsersV1Request(server string, params *GetUsersV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -47748,7 +52025,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/v1/users") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47758,7 +52035,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.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.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.Orderby != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "orderby", *params.Orderby, 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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 } @@ -47766,8 +52106,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) { +// NewCreateUserV1Request calls the generic CreateUserV1 builder with application/json body +func NewCreateUserV1Request(server string, params *CreateUserV1Params, body CreateUserV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateUserV1RequestWithBody(server, params, "application/json", bodyReader) +} + +// NewCreateUserV1RequestWithBody constructs an http.Request for the CreateUserV1 method, with any body, and a specified content type +func NewCreateUserV1RequestWithBody(server string, params *CreateUserV1Params, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -47775,7 +52126,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/v1/users") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47785,24 +52136,60 @@ func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, err return nil, err } - req, err := http.NewRequest(http.MethodPut, 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.ActivationFlow != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "activationFlow", *params.ActivationFlow, 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 encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } + + 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) { +// NewDeleteUserByIdV1Request constructs an http.Request for the DeleteUserByIdV1 method +func NewDeleteUserByIdV1Request(server string, userId UserIdPath) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, 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/v1/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47812,7 +52199,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 } @@ -47820,16 +52207,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) { +// NewGetUserByIdV1Request constructs an http.Request for the GetUserByIdV1 method +func NewGetUserByIdV1Request(server string, userId UserIdPath) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, 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/v1/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47839,7 +52233,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 } @@ -47847,16 +52241,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) { +// NewUpdateUserV1Request calls the generic UpdateUserV1 builder with application/json body +func NewUpdateUserV1Request(server string, userId UserIdPath, body UpdateUserV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewUpdateUserV1RequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewUpdateUserV1RequestWithBody constructs an http.Request for the UpdateUserV1 method, with any body, and a specified content type +func NewUpdateUserV1RequestWithBody(server string, userId UserIdPath, contentType string, body io.Reader) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, 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/v1/users/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47866,16 +52278,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) { +// NewListZonesV1Request constructs an http.Request for the ListZonesV1 method +func NewListZonesV1Request(server string, params *ListZonesV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -47883,7 +52297,7 @@ func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + operationPath := fmt.Sprintf("/platform/v1/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47893,7 +52307,70 @@ func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPut, 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 } @@ -47901,8 +52378,19 @@ 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) { +// NewCreateZoneV1Request calls the generic CreateZoneV1 builder with application/json body +func NewCreateZoneV1Request(server string, body CreateZoneV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateZoneV1RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateZoneV1RequestWithBody constructs an http.Request for the CreateZoneV1 method, with any body, and a specified content type +func NewCreateZoneV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -47910,7 +52398,7 @@ func NewGetAlertManagersV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/alertmanagers") + operationPath := fmt.Sprintf("/platform/v1/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47920,24 +52408,33 @@ func NewGetAlertManagersV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, 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 } -// NewGetAlertsV1Request constructs an http.Request for the GetAlertsV1 method -func NewGetAlertsV1Request(server string) (*http.Request, error) { +// NewDeleteZoneV1Request constructs an http.Request for the DeleteZoneV1 method +func NewDeleteZoneV1Request(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/alerts") + operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47947,7 +52444,7 @@ func NewGetAlertsV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { return nil, err } @@ -47955,16 +52452,23 @@ func NewGetAlertsV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetFormatQueryV1Request constructs an http.Request for the GetFormatQueryV1 method -func NewGetFormatQueryV1Request(server string) (*http.Request, error) { +// NewGetZoneByIdV1Request constructs an http.Request for the GetZoneByIdV1 method +func NewGetZoneByIdV1Request(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/format_query") + operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -47982,16 +52486,34 @@ func NewGetFormatQueryV1Request(server string) (*http.Request, error) { return req, nil } -// NewPostFormatQueryV1Request constructs an http.Request for the PostFormatQueryV1 method -func NewPostFormatQueryV1Request(server string) (*http.Request, error) { +// NewEditZoneV1Request calls the generic EditZoneV1 builder with application/json body +func NewEditZoneV1Request(server string, zoneId ZoneId, body EditZoneV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditZoneV1RequestWithBody(server, zoneId, "application/json", bodyReader) +} + +// NewEditZoneV1RequestWithBody constructs an http.Request for the EditZoneV1 method, with any body, and a specified content type +func NewEditZoneV1RequestWithBody(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/format_query") + operationPath := fmt.Sprintf("/platform/v1/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48001,31 +52523,26 @@ func NewPostFormatQueryV1Request(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 } -// NewGetLabelValuesV1Request constructs an http.Request for the GetLabelValuesV1 method -func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params *GetLabelValuesV1Params) (*http.Request, error) { +// NewListAutomationExecutionsRequest constructs an http.Request for the ListAutomationExecutions method +func NewListAutomationExecutionsRequest(server string, params *ListAutomationExecutionsParams) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "labelName", labelName, 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("/prometheus/api/v1/label/%s/values", pathParam0) + operationPath := fmt.Sprintf("/platform/v1alpha1/automation-executions") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48044,9 +52561,17 @@ func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params * // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Start != 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, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", 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, "&") { @@ -48056,9 +52581,9 @@ func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params * } - if params.End != nil { + if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); 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, "&") { @@ -48068,9 +52593,9 @@ func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params * } - if params.Match != nil { + if params.Status != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); 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, "&") { @@ -48080,9 +52605,9 @@ func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params * } - if params.Limit != nil { + if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); 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, "&") { @@ -48106,8 +52631,42 @@ func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params * return req, nil } -// NewGetLabelsV1Request constructs an http.Request for the GetLabelsV1 method -func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*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) @@ -48115,7 +52674,7 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/labels") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48134,9 +52693,9 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Start != nil { + if params.Enabled != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != 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, "&") { @@ -48146,9 +52705,9 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ } - if params.End != nil { + if params.Group != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != 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, "&") { @@ -48158,9 +52717,9 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ } - if params.Match != nil { + if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); 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, "&") { @@ -48170,9 +52729,9 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ } - if params.Limit != nil { + if params.Search != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != 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, "&") { @@ -48182,75 +52741,21 @@ func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Requ } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) + 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) + } + } + } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, nil -} - -// NewPostLabelsV1Request constructs an http.Request for the PostLabelsV1 method -func NewPostLabelsV1Request(server string, params *PostLabelsV1Params) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) - if err != nil { - return nil, err - } - - operationPath := fmt.Sprintf("/prometheus/api/v1/labels") - 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.Start != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.End != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - } - - if params.Match != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != 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, "&") { @@ -48260,9 +52765,9 @@ func NewPostLabelsV1Request(server string, params *PostLabelsV1Params) (*http.Re } - if params.Limit != nil { + if params.Cursor != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); 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, "&") { @@ -48278,7 +52783,7 @@ func NewPostLabelsV1Request(server string, params *PostLabelsV1Params) (*http.Re queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -48286,8 +52791,19 @@ func NewPostLabelsV1Request(server string, params *PostLabelsV1Params) (*http.Re return req, nil } -// NewGetMetadataV1Request constructs an http.Request for the GetMetadataV1 method -func NewGetMetadataV1Request(server string, params *GetMetadataV1Params) (*http.Request, error) { +// 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 NewCreateAutomationRequestWithBody(server, params, "application/json", bodyReader) +} + +// 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) @@ -48295,7 +52811,7 @@ func NewGetMetadataV1Request(server string, params *GetMetadataV1Params) (*http. return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/metadata") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48305,75 +52821,48 @@ func NewGetMetadataV1Request(server string, params *GetMetadataV1Params) (*http. 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.LimitPerMetric != nil { + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit_per_metric", *params.LimitPerMetric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + req.Header.Add("Content-Type", contentType) - } + if params != nil { - if params.Limit != nil { + if params.IdempotencyKey != nil { + var headerParam0 string - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + 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 - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } } + req.Header.Set("Idempotency-Key", headerParam0) } - if params.Metric != nil { + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metric", *params.Metric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + return req, nil +} - } +// NewDeleteAutomationByIdRequest constructs an http.Request for the DeleteAutomationById method +func NewDeleteAutomationByIdRequest(server string, automationID AutomationID, params *DeleteAutomationByIdParams) (*http.Request, error) { + var err error - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") - } + var pathParam0 string - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } - return req, nil -} - -// NewGetNotificationsV1Request constructs an http.Request for the GetNotificationsV1 method -func NewGetNotificationsV1Request(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/notifications") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48383,24 +52872,44 @@ func NewGetNotificationsV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) if err != nil { 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 } -// NewGetLiveNotificationsV1Request constructs an http.Request for the GetLiveNotificationsV1 method -func NewGetLiveNotificationsV1Request(server string) (*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, "automationId", automationID, 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("/prometheus/api/v1/notifications/live") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48418,43 +52927,34 @@ func NewGetLiveNotificationsV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetParseQueryV1Request constructs an http.Request for the GetParseQueryV1 method -func NewGetParseQueryV1Request(server string) (*http.Request, error) { - var err error - - serverURL, err := url.Parse(server) +// 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 NewUpdateAutomationRequestWithBody(server, automationID, params, "application/json", bodyReader) +} - operationPath := fmt.Sprintf("/prometheus/api/v1/parse_query") - if operationPath[0] == '/' { - operationPath = "." + operationPath - } +// 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 - queryURL, err := serverURL.Parse(operationPath) - if err != nil { - return nil, err - } + var pathParam0 string - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "automationId", automationID, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: "uuid"}) if err != nil { return nil, err } - return req, nil -} - -// NewPostParseQueryV1Request constructs an http.Request for the PostParseQueryV1 method -func NewPostParseQueryV1Request(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/parse_query") + operationPath := fmt.Sprintf("/platform/v1alpha1/automations/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48464,16 +52964,31 @@ func NewPostParseQueryV1Request(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) + + 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 } -// NewGetQueryV1Request constructs an http.Request for the GetQueryV1 method -func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*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) @@ -48481,7 +52996,7 @@ func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Reques return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/query") + operationPath := fmt.Sprintf("/platform/v2/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48500,17 +53015,21 @@ func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Reques // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - 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.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.Time != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != 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, "&") { @@ -48520,9 +53039,9 @@ func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Reques } - if params.Timeout != nil { + if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != 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, "&") { @@ -48532,9 +53051,9 @@ func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Reques } - if params.Limit != nil { + if params.Orderby != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != 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, "&") { @@ -48558,8 +53077,19 @@ func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Reques return req, nil } -// NewPostQueryV1Request constructs an http.Request for the PostQueryV1 method -func NewPostQueryV1Request(server string, params *PostQueryV1Params) (*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) @@ -48567,7 +53097,7 @@ func NewPostQueryV1Request(server string, params *PostQueryV1Params) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/query") + operationPath := fmt.Sprintf("/platform/v2/zones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48577,66 +53107,43 @@ func NewPostQueryV1Request(server string, params *PostQueryV1Params) (*http.Requ return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "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.Time != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if err != nil { + return nil, err + } - } + req.Header.Add("Content-Type", contentType) - if params.Timeout != nil { + return req, nil +} - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } +// NewDeleteZoneV2Request constructs an http.Request for the DeleteZoneV2 method +func NewDeleteZoneV2Request(server string, zoneId ZoneId) (*http.Request, error) { + var err error - } + var pathParam0 string - if params.Limit != nil { + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "zoneId", zoneId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - } + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + 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 } @@ -48644,16 +53151,23 @@ func NewPostQueryV1Request(server string, params *PostQueryV1Params) (*http.Requ return req, nil } -// NewGetExemplarsV1Request constructs an http.Request for the GetExemplarsV1 method -func NewGetExemplarsV1Request(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/query_exemplars") + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48671,16 +53185,34 @@ func NewGetExemplarsV1Request(server string) (*http.Request, error) { return req, nil } -// NewPostExemplarsV1Request constructs an http.Request for the PostExemplarsV1 method -func NewPostExemplarsV1Request(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/query_exemplars") + operationPath := fmt.Sprintf("/platform/v2/zones/%s", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48690,16 +53222,18 @@ func NewPostExemplarsV1Request(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 } -// NewGetQueryRangeV1Request constructs an http.Request for the GetQueryRangeV1 method -func NewGetQueryRangeV1Request(server string, params *GetQueryRangeV1Params) (*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) @@ -48707,7 +53241,7 @@ func NewGetQueryRangeV1Request(server string, params *GetQueryRangeV1Params) (*h return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/query_range") + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48717,78 +53251,61 @@ func NewGetQueryRangeV1Request(server string, params *GetQueryRangeV1Params) (*h 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 + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } - 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) - } - } + return req, nil +} - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } +// NewPostAdminTsdbCleanTombstonesV1Request constructs an http.Request for the PostAdminTsdbCleanTombstonesV1 method +func NewPostAdminTsdbCleanTombstonesV1Request(server string) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "step", params.Step, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/clean_tombstones") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if params.Timeout != nil { + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + if err != nil { + return nil, err + } - } + return req, nil +} - if params.Limit != nil { +// NewGetAdminTsdbDeleteSeriesV1Request constructs an http.Request for the GetAdminTsdbDeleteSeriesV1 method +func NewGetAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + 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 + } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -48796,8 +53313,8 @@ func NewGetQueryRangeV1Request(server string, params *GetQueryRangeV1Params) (*h return req, nil } -// NewPostQueryRangeV1Request constructs an http.Request for the PostQueryRangeV1 method -func NewPostQueryRangeV1Request(server string, params *PostQueryRangeV1Params) (*http.Request, error) { +// NewPostAdminTsdbDeleteSeriesV1Request constructs an http.Request for the PostAdminTsdbDeleteSeriesV1 method +func NewPostAdminTsdbDeleteSeriesV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -48805,7 +53322,7 @@ func NewPostQueryRangeV1Request(server string, params *PostQueryRangeV1Params) ( return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/query_range") + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/delete_series") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48815,75 +53332,166 @@ func NewPostQueryRangeV1Request(server string, params *PostQueryRangeV1Params) ( 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 + req, err := http.NewRequest(http.MethodPut, queryURL.String(), nil) + if err != nil { + return nil, err + } - 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) - } - } + return req, nil +} - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } +// NewGetAdminTsdbSnapshotV1Request constructs an http.Request for the GetAdminTsdbSnapshotV1 method +func NewGetAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "step", params.Step, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + operationPath := fmt.Sprintf("/prometheus/api/v1/admin/tsdb/snapshot") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } - if params.Timeout != nil { + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } - } + return req, nil +} - if params.Limit != nil { +// NewPostAdminTsdbSnapshotV1Request constructs an http.Request for the PostAdminTsdbSnapshotV1 method +func NewPostAdminTsdbSnapshotV1Request(server string) (*http.Request, error) { + var err error - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } + 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 + } - if encoded := queryValues.Encode(); encoded != "" { - rawQueryFragments = append(rawQueryFragments, encoded) - } - queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + 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) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/alertmanagers") + 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 +} + +// NewGetAlertsV1Request constructs an http.Request for the GetAlertsV1 method +func NewGetAlertsV1Request(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/alerts") + 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 +} + +// NewGetFormatQueryV1Request constructs an http.Request for the GetFormatQueryV1 method +func NewGetFormatQueryV1Request(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/format_query") + 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 +} + +// NewPostFormatQueryV1Request constructs an http.Request for the PostFormatQueryV1 method +func NewPostFormatQueryV1Request(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/format_query") + 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) @@ -48894,16 +53502,23 @@ func NewPostQueryRangeV1Request(server string, params *PostQueryRangeV1Params) ( return req, nil } -// NewGetRulesV1Request constructs an http.Request for the GetRulesV1 method -func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Request, error) { +// NewGetLabelValuesV1Request constructs an http.Request for the GetLabelValuesV1 method +func NewGetLabelValuesV1Request(server string, labelName LabelNamePath, params *GetLabelValuesV1Params) (*http.Request, error) { var err error + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "labelName", labelName, 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("/prometheus/api/v1/rules") + operationPath := fmt.Sprintf("/prometheus/api/v1/label/%s/values", pathParam0) if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -48922,9 +53537,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Type != nil { + if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48934,9 +53549,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.RuleName != nil { + if params.End != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rule_name[]", *params.RuleName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48946,9 +53561,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.RuleGroup != nil { + if params.Match != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rule_group[]", *params.RuleGroup, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48958,9 +53573,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.File != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "file[]", *params.File, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48970,9 +53585,51 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.ExcludeAlerts != nil { + if encoded := queryValues.Encode(); encoded != "" { + rawQueryFragments = append(rawQueryFragments, encoded) + } + queryURL.RawQuery = strings.Join(rawQueryFragments, "&") + } - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "exclude_alerts", *params.ExcludeAlerts, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetLabelsV1Request constructs an http.Request for the GetLabelsV1 method +func NewGetLabelsV1Request(server string, params *GetLabelsV1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/labels") + 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.Start != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48982,9 +53639,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.Match != nil { + if params.End != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -48994,9 +53651,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.GroupLimit != nil { + if params.Match != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "group_limit", *params.GroupLimit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49006,9 +53663,9 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques } - if params.GroupNextToken != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "group_next_token", *params.GroupNextToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49032,8 +53689,8 @@ func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Reques return req, nil } -// NewGetSeriesV1Request constructs an http.Request for the GetSeriesV1 method -func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Request, error) { +// NewPostLabelsV1Request constructs an http.Request for the PostLabelsV1 method +func NewPostLabelsV1Request(server string, params *PostLabelsV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49041,7 +53698,7 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/series") + operationPath := fmt.Sprintf("/prometheus/api/v1/labels") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49060,9 +53717,9 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Match != nil { + if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49072,9 +53729,9 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ } - if params.Start != nil { + if params.End != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49084,9 +53741,9 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ } - if params.End != nil { + if params.Match != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49114,7 +53771,7 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -49122,8 +53779,8 @@ func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Requ return req, nil } -// NewPostSeriesV1Request constructs an http.Request for the PostSeriesV1 method -func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Request, error) { +// NewGetMetadataV1Request constructs an http.Request for the GetMetadataV1 method +func NewGetMetadataV1Request(server string, params *GetMetadataV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49131,7 +53788,7 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/series") + operationPath := fmt.Sprintf("/prometheus/api/v1/metadata") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49150,21 +53807,9 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.Match != nil { - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", params.Match, 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.Start != nil { + if params.LimitPerMetric != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit_per_metric", *params.LimitPerMetric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49174,9 +53819,9 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re } - if params.End != nil { + if params.Limit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49186,9 +53831,9 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re } - if params.Limit != nil { + if params.Metric != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "limit", *params.Limit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "metric", *params.Metric, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49204,7 +53849,7 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re queryURL.RawQuery = strings.Join(rawQueryFragments, "&") } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -49212,8 +53857,8 @@ func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Re return req, nil } -// NewGetStatusBuildInfoV1Request constructs an http.Request for the GetStatusBuildInfoV1 method -func NewGetStatusBuildInfoV1Request(server string) (*http.Request, error) { +// NewGetNotificationsV1Request constructs an http.Request for the GetNotificationsV1 method +func NewGetNotificationsV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49221,7 +53866,7 @@ func NewGetStatusBuildInfoV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/buildinfo") + operationPath := fmt.Sprintf("/prometheus/api/v1/notifications") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49239,8 +53884,8 @@ func NewGetStatusBuildInfoV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetStatusConfigV1Request constructs an http.Request for the GetStatusConfigV1 method -func NewGetStatusConfigV1Request(server string) (*http.Request, error) { +// NewGetLiveNotificationsV1Request constructs an http.Request for the GetLiveNotificationsV1 method +func NewGetLiveNotificationsV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49248,7 +53893,7 @@ func NewGetStatusConfigV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/config") + operationPath := fmt.Sprintf("/prometheus/api/v1/notifications/live") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49266,8 +53911,8 @@ func NewGetStatusConfigV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetStatusFlagsV1Request constructs an http.Request for the GetStatusFlagsV1 method -func NewGetStatusFlagsV1Request(server string) (*http.Request, error) { +// NewGetParseQueryV1Request constructs an http.Request for the GetParseQueryV1 method +func NewGetParseQueryV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49275,7 +53920,7 @@ func NewGetStatusFlagsV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/flags") + operationPath := fmt.Sprintf("/prometheus/api/v1/parse_query") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49293,8 +53938,8 @@ func NewGetStatusFlagsV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetStatusRuntimeInfoV1Request constructs an http.Request for the GetStatusRuntimeInfoV1 method -func NewGetStatusRuntimeInfoV1Request(server string) (*http.Request, error) { +// NewPostParseQueryV1Request constructs an http.Request for the PostParseQueryV1 method +func NewPostParseQueryV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49302,7 +53947,7 @@ func NewGetStatusRuntimeInfoV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/runtimeinfo") + operationPath := fmt.Sprintf("/prometheus/api/v1/parse_query") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49312,7 +53957,7 @@ func NewGetStatusRuntimeInfoV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -49320,8 +53965,8 @@ func NewGetStatusRuntimeInfoV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetStatusTsdbV1Request constructs an http.Request for the GetStatusTsdbV1 method -func NewGetStatusTsdbV1Request(server string) (*http.Request, error) { +// NewGetQueryV1Request constructs an http.Request for the GetQueryV1 method +func NewGetQueryV1Request(server string, params *GetQueryV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49329,7 +53974,7 @@ func NewGetStatusTsdbV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/tsdb") + operationPath := fmt.Sprintf("/prometheus/api/v1/query") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49339,6 +53984,65 @@ func NewGetStatusTsdbV1Request(server string) (*http.Request, error) { return nil, err } + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "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.Time != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Timeout != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, 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: "int64"}); 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 @@ -49347,8 +54051,8 @@ func NewGetStatusTsdbV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetStatusWalReplayV1Request constructs an http.Request for the GetStatusWalReplayV1 method -func NewGetStatusWalReplayV1Request(server string) (*http.Request, error) { +// NewPostQueryV1Request constructs an http.Request for the PostQueryV1 method +func NewPostQueryV1Request(server string, params *PostQueryV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49356,7 +54060,7 @@ func NewGetStatusWalReplayV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/status/walreplay") + operationPath := fmt.Sprintf("/prometheus/api/v1/query") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49366,7 +54070,66 @@ func NewGetStatusWalReplayV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, 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 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.Time != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "time", *params.Time, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.Timeout != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, 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: "int64"}); 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.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -49374,8 +54137,8 @@ func NewGetStatusWalReplayV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetTargetsV1Request constructs an http.Request for the GetTargetsV1 method -func NewGetTargetsV1Request(server string) (*http.Request, error) { +// NewGetExemplarsV1Request constructs an http.Request for the GetExemplarsV1 method +func NewGetExemplarsV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49383,7 +54146,7 @@ func NewGetTargetsV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/targets") + operationPath := fmt.Sprintf("/prometheus/api/v1/query_exemplars") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49401,8 +54164,8 @@ func NewGetTargetsV1Request(server string) (*http.Request, error) { return req, nil } -// NewGetTargetsMetadataV1Request constructs an http.Request for the GetTargetsMetadataV1 method -func NewGetTargetsMetadataV1Request(server string) (*http.Request, error) { +// NewPostExemplarsV1Request constructs an http.Request for the PostExemplarsV1 method +func NewPostExemplarsV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49410,7 +54173,7 @@ func NewGetTargetsMetadataV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/targets/metadata") + operationPath := fmt.Sprintf("/prometheus/api/v1/query_exemplars") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49420,7 +54183,7 @@ func NewGetTargetsMetadataV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -49428,8 +54191,8 @@ func NewGetTargetsMetadataV1Request(server string) (*http.Request, error) { return req, nil } -// NewRemoteWriteV1RequestWithBody constructs an http.Request for the RemoteWriteV1 method, with any body, and a specified content type -func NewRemoteWriteV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetQueryRangeV1Request constructs an http.Request for the GetQueryRangeV1 method +func NewGetQueryRangeV1Request(server string, params *GetQueryRangeV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49437,7 +54200,7 @@ func NewRemoteWriteV1RequestWithBody(server string, contentType string, body io. return nil, err } - operationPath := fmt.Sprintf("/prometheus/api/v1/write") + operationPath := fmt.Sprintf("/prometheus/api/v1/query_range") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49447,18 +54210,185 @@ func NewRemoteWriteV1RequestWithBody(server string, contentType string, body io. return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "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 queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "step", params.Step, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if params.Timeout != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, 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: "int64"}); 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 } - req.Header.Add("Content-Type", contentType) + return req, nil +} + +// NewPostQueryRangeV1Request constructs an http.Request for the PostQueryRangeV1 method +func NewPostQueryRangeV1Request(server string, params *PostQueryRangeV1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/prometheus/api/v1/query_range") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "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 queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "step", params.Step, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if params.Timeout != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "timeout", *params.Timeout, 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: "int64"}); 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.MethodPost, queryURL.String(), nil) + if err != nil { + return nil, err + } return req, nil } -// NewGetActivityAuditEntriesV1Request constructs an http.Request for the GetActivityAuditEntriesV1 method -func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAuditEntriesV1Params) (*http.Request, error) { +// NewGetRulesV1Request constructs an http.Request for the GetRulesV1 method +func NewGetRulesV1Request(server string, params *GetRulesV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49466,7 +54396,7 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit return nil, err } - operationPath := fmt.Sprintf("/secure/activity-audit/v1/entries") + operationPath := fmt.Sprintf("/prometheus/api/v1/rules") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49485,9 +54415,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit // per the OpenAPI spec (e.g. "color=blue,black,brown"). var rawQueryFragments []string - if params.From != nil { + if params.Type != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49497,9 +54427,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.To != nil { + if params.RuleName != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rule_name[]", *params.RuleName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49509,9 +54439,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.Cursor != nil { + if params.RuleGroup != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "cursor", *params.Cursor, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "rule_group[]", *params.RuleGroup, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49521,9 +54451,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.Zones != nil { + if params.File != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "zones", *params.Zones, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "file[]", *params.File, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49533,9 +54463,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.Filter != nil { + if params.ExcludeAlerts != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "exclude_alerts", *params.ExcludeAlerts, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49545,9 +54475,9 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.Limit != nil { + if params.Match != 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, "match[]", *params.Match, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49557,9 +54487,21 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit } - if params.Types != nil { + if params.GroupLimit != nil { - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "types", *params.Types, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "group_limit", *params.GroupLimit, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.GroupNextToken != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "group_next_token", *params.GroupNextToken, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else { for _, qp := range strings.Split(queryFrag, "&") { @@ -49583,23 +54525,16 @@ func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAudit return req, nil } -// NewGetActivityAuditEntryV1Request constructs an http.Request for the GetActivityAuditEntryV1 method -func NewGetActivityAuditEntryV1Request(server string, entryId EntryId) (*http.Request, error) { +// NewGetSeriesV1Request constructs an http.Request for the GetSeriesV1 method +func NewGetSeriesV1Request(server string, params *GetSeriesV1Params) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "entryId", entryId, 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/activity-audit/v1/entries/%s", pathParam0) + operationPath := fmt.Sprintf("/prometheus/api/v1/series") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49609,6 +54544,69 @@ func NewGetActivityAuditEntryV1Request(server string, entryId EntryId) (*http.Re 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.Match != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", params.Match, 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.Start != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", 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: "int64"}); 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 @@ -49617,8 +54615,8 @@ func NewGetActivityAuditEntryV1Request(server string, entryId EntryId) (*http.Re return req, nil } -// NewGetActivityAuditEntriesSupportedFiltersV1Request constructs an http.Request for the GetActivityAuditEntriesSupportedFiltersV1 method -func NewGetActivityAuditEntriesSupportedFiltersV1Request(server string) (*http.Request, error) { +// NewPostSeriesV1Request constructs an http.Request for the PostSeriesV1 method +func NewPostSeriesV1Request(server string, params *PostSeriesV1Params) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49626,7 +54624,7 @@ func NewGetActivityAuditEntriesSupportedFiltersV1Request(server string) (*http.R return nil, err } - operationPath := fmt.Sprintf("/secure/activity-audit/v1/supported-filters") + operationPath := fmt.Sprintf("/prometheus/api/v1/series") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49636,7 +54634,70 @@ func NewGetActivityAuditEntriesSupportedFiltersV1Request(server string) (*http.R return nil, err } - req, err := http.NewRequest(http.MethodGet, 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.Match != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "match[]", params.Match, 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.Start != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.End != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", 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: "int64"}); 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.MethodPost, queryURL.String(), nil) if err != nil { return nil, err } @@ -49644,8 +54705,8 @@ func NewGetActivityAuditEntriesSupportedFiltersV1Request(server string) (*http.R return req, nil } -// NewGetCertificatesV1Request constructs an http.Request for the GetCertificatesV1 method -func NewGetCertificatesV1Request(server string) (*http.Request, error) { +// NewGetStatusBuildInfoV1Request constructs an http.Request for the GetStatusBuildInfoV1 method +func NewGetStatusBuildInfoV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49653,7 +54714,7 @@ func NewGetCertificatesV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/secure/certman/v1/certificates") + operationPath := fmt.Sprintf("/prometheus/api/v1/status/buildinfo") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49671,8 +54732,8 @@ func NewGetCertificatesV1Request(server string) (*http.Request, error) { return req, nil } -// NewUploadCertificateV1RequestWithBody constructs an http.Request for the UploadCertificateV1 method, with any body, and a specified content type -func NewUploadCertificateV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewGetStatusConfigV1Request constructs an http.Request for the GetStatusConfigV1 method +func NewGetStatusConfigV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49680,7 +54741,7 @@ func NewUploadCertificateV1RequestWithBody(server string, contentType string, bo return nil, err } - operationPath := fmt.Sprintf("/secure/certman/v1/certificates") + operationPath := fmt.Sprintf("/prometheus/api/v1/status/config") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49690,33 +54751,24 @@ func NewUploadCertificateV1RequestWithBody(server string, contentType string, bo return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), body) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } - req.Header.Add("Content-Type", contentType) - return req, nil } -// NewDeleteCertificateV1Request constructs an http.Request for the DeleteCertificateV1 method -func NewDeleteCertificateV1Request(server string, certId PathCertificateId) (*http.Request, error) { +// NewGetStatusFlagsV1Request constructs an http.Request for the GetStatusFlagsV1 method +func NewGetStatusFlagsV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%s", pathParam0) + operationPath := fmt.Sprintf("/prometheus/api/v1/status/flags") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49726,7 +54778,7 @@ func NewDeleteCertificateV1Request(server string, certId PathCertificateId) (*ht return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -49734,23 +54786,16 @@ func NewDeleteCertificateV1Request(server string, certId PathCertificateId) (*ht return req, nil } -// NewGetCertificateV1Request constructs an http.Request for the GetCertificateV1 method -func NewGetCertificateV1Request(server string, certId PathCertificateId) (*http.Request, error) { +// NewGetStatusRuntimeInfoV1Request constructs an http.Request for the GetStatusRuntimeInfoV1 method +func NewGetStatusRuntimeInfoV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%s", pathParam0) + operationPath := fmt.Sprintf("/prometheus/api/v1/status/runtimeinfo") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49768,23 +54813,16 @@ func NewGetCertificateV1Request(server string, certId PathCertificateId) (*http. return req, nil } -// NewGetCertificateRegistrationV1Request constructs an http.Request for the GetCertificateRegistrationV1 method -func NewGetCertificateRegistrationV1Request(server string, certId PathCertificateId) (*http.Request, error) { +// NewGetStatusTsdbV1Request constructs an http.Request for the GetStatusTsdbV1 method +func NewGetStatusTsdbV1Request(server string) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%s/services", pathParam0) + operationPath := fmt.Sprintf("/prometheus/api/v1/status/tsdb") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49802,8 +54840,8 @@ func NewGetCertificateRegistrationV1Request(server string, certId PathCertificat return req, nil } -// NewCreateCSRV1Request constructs an http.Request for the CreateCSRV1 method -func NewCreateCSRV1Request(server string) (*http.Request, error) { +// NewGetStatusWalReplayV1Request constructs an http.Request for the GetStatusWalReplayV1 method +func NewGetStatusWalReplayV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49811,7 +54849,7 @@ func NewCreateCSRV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/secure/certman/v1/csr") + operationPath := fmt.Sprintf("/prometheus/api/v1/status/walreplay") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49821,7 +54859,7 @@ func NewCreateCSRV1Request(server string) (*http.Request, error) { return nil, err } - req, err := http.NewRequest(http.MethodPost, queryURL.String(), nil) + req, err := http.NewRequest(http.MethodGet, queryURL.String(), nil) if err != nil { return nil, err } @@ -49829,8 +54867,8 @@ func NewCreateCSRV1Request(server string) (*http.Request, error) { return req, nil } -// NewListEFOChannelsByIntegrationV1Request constructs an http.Request for the ListEFOChannelsByIntegrationV1 method -func NewListEFOChannelsByIntegrationV1Request(server string, params *ListEFOChannelsByIntegrationV1Params) (*http.Request, error) { +// NewGetTargetsV1Request constructs an http.Request for the GetTargetsV1 method +func NewGetTargetsV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49838,7 +54876,7 @@ func NewListEFOChannelsByIntegrationV1Request(server string, params *ListEFOChan return nil, err } - operationPath := fmt.Sprintf("/secure/events-forwarder/v1/channels") + operationPath := fmt.Sprintf("/prometheus/api/v1/targets") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49848,29 +54886,6 @@ func NewListEFOChannelsByIntegrationV1Request(server string, params *ListEFOChan return nil, err } - if params != nil { - // queryValues collects non-styled parameters (passthrough, JSON) - // that are safe to round-trip through url.Values.Encode(). - queryValues := queryURL.Query() - // rawQueryFragments collects pre-encoded query fragments from - // styled parameters, preserving literal commas as delimiters - // per the OpenAPI spec (e.g. "color=blue,black,brown"). - var rawQueryFragments []string - - if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { - return nil, err - } else { - for _, qp := range strings.Split(queryFrag, "&") { - rawQueryFragments = append(rawQueryFragments, qp) - } - } - - if 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 @@ -49879,8 +54894,8 @@ func NewListEFOChannelsByIntegrationV1Request(server string, params *ListEFOChan return req, nil } -// NewListEFOIntegrationsV1Request constructs an http.Request for the ListEFOIntegrationsV1 method -func NewListEFOIntegrationsV1Request(server string) (*http.Request, error) { +// NewGetTargetsMetadataV1Request constructs an http.Request for the GetTargetsMetadataV1 method +func NewGetTargetsMetadataV1Request(server string) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49888,7 +54903,7 @@ func NewListEFOIntegrationsV1Request(server string) (*http.Request, error) { return nil, err } - operationPath := fmt.Sprintf("/secure/events-forwarder/v1/integrations") + operationPath := fmt.Sprintf("/prometheus/api/v1/targets/metadata") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49906,19 +54921,8 @@ func NewListEFOIntegrationsV1Request(server string) (*http.Request, error) { return req, nil } -// NewCreateEFOIntegrationV1Request calls the generic CreateEFOIntegrationV1 builder with application/json body -func NewCreateEFOIntegrationV1Request(server string, body CreateEFOIntegrationV1JSONRequestBody) (*http.Request, error) { - var bodyReader io.Reader - buf, err := json.Marshal(body) - if err != nil { - return nil, err - } - bodyReader = bytes.NewReader(buf) - return NewCreateEFOIntegrationV1RequestWithBody(server, "application/json", bodyReader) -} - -// NewCreateEFOIntegrationV1RequestWithBody constructs an http.Request for the CreateEFOIntegrationV1 method, with any body, and a specified content type -func NewCreateEFOIntegrationV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { +// NewRemoteWriteV1RequestWithBody constructs an http.Request for the RemoteWriteV1 method, with any body, and a specified content type +func NewRemoteWriteV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { var err error serverURL, err := url.Parse(server) @@ -49926,7 +54930,7 @@ func NewCreateEFOIntegrationV1RequestWithBody(server string, contentType string, return nil, err } - operationPath := fmt.Sprintf("/secure/events-forwarder/v1/integrations") + operationPath := fmt.Sprintf("/prometheus/api/v1/write") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49946,23 +54950,16 @@ func NewCreateEFOIntegrationV1RequestWithBody(server string, contentType string, return req, nil } -// NewDeleteEFOIntegrationByIdV1Request constructs an http.Request for the DeleteEFOIntegrationByIdV1 method -func NewDeleteEFOIntegrationByIdV1Request(server string, integrationId IntegrationId) (*http.Request, error) { +// NewGetActivityAuditEntriesV1Request constructs an http.Request for the GetActivityAuditEntriesV1 method +func NewGetActivityAuditEntriesV1Request(server string, params *GetActivityAuditEntriesV1Params) (*http.Request, error) { var err error - var pathParam0 string - - pathParam0, err = runtime.StyleParamWithOptions("simple", false, "integrationId", integrationId, 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("/secure/events-forwarder/v1/integrations/%s", pathParam0) + operationPath := fmt.Sprintf("/secure/activity-audit/v1/entries") if operationPath[0] == '/' { operationPath = "." + operationPath } @@ -49972,12 +54969,508 @@ func NewDeleteEFOIntegrationByIdV1Request(server string, integrationId Integrati return nil, err } - req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) - if err != nil { - return nil, err - } - - return req, 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.From != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "from", *params.From, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + } + + if params.To != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "to", *params.To, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); 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.Zones != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "zones", *params.Zones, 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.Filter != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filter", *params.Filter, 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.Types != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "types", *params.Types, 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 +} + +// NewGetActivityAuditEntryV1Request constructs an http.Request for the GetActivityAuditEntryV1 method +func NewGetActivityAuditEntryV1Request(server string, entryId EntryId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "entryId", entryId, 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/activity-audit/v1/entries/%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 +} + +// NewGetActivityAuditEntriesSupportedFiltersV1Request constructs an http.Request for the GetActivityAuditEntriesSupportedFiltersV1 method +func NewGetActivityAuditEntriesSupportedFiltersV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/activity-audit/v1/supported-filters") + 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 +} + +// NewGetCertificatesV1Request constructs an http.Request for the GetCertificatesV1 method +func NewGetCertificatesV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/certman/v1/certificates") + 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 +} + +// NewUploadCertificateV1RequestWithBody constructs an http.Request for the UploadCertificateV1 method, with any body, and a specified content type +func NewUploadCertificateV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/certman/v1/certificates") + 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 +} + +// NewDeleteCertificateV1Request constructs an http.Request for the DeleteCertificateV1 method +func NewDeleteCertificateV1Request(server string, certId PathCertificateId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetCertificateV1Request constructs an http.Request for the GetCertificateV1 method +func NewGetCertificateV1Request(server string, certId PathCertificateId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%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 +} + +// NewGetCertificateRegistrationV1Request constructs an http.Request for the GetCertificateRegistrationV1 method +func NewGetCertificateRegistrationV1Request(server string, certId PathCertificateId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "certId", certId, 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/certman/v1/certificates/%s/services", 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 +} + +// NewCreateCSRV1Request constructs an http.Request for the CreateCSRV1 method +func NewCreateCSRV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/certman/v1/csr") + 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 +} + +// NewListEFOChannelsByIntegrationV1Request constructs an http.Request for the ListEFOChannelsByIntegrationV1 method +func NewListEFOChannelsByIntegrationV1Request(server string, params *ListEFOChannelsByIntegrationV1Params) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/events-forwarder/v1/channels") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + // queryValues collects non-styled parameters (passthrough, JSON) + // that are safe to round-trip through url.Values.Encode(). + queryValues := queryURL.Query() + // rawQueryFragments collects pre-encoded query fragments from + // styled parameters, preserving literal commas as delimiters + // per the OpenAPI spec (e.g. "color=blue,black,brown"). + var rawQueryFragments []string + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { + return nil, err + } else { + for _, qp := range strings.Split(queryFrag, "&") { + rawQueryFragments = append(rawQueryFragments, qp) + } + } + + if 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 +} + +// NewListEFOIntegrationsV1Request constructs an http.Request for the ListEFOIntegrationsV1 method +func NewListEFOIntegrationsV1Request(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/events-forwarder/v1/integrations") + 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 +} + +// NewCreateEFOIntegrationV1Request calls the generic CreateEFOIntegrationV1 builder with application/json body +func NewCreateEFOIntegrationV1Request(server string, body CreateEFOIntegrationV1JSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateEFOIntegrationV1RequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateEFOIntegrationV1RequestWithBody constructs an http.Request for the CreateEFOIntegrationV1 method, with any body, and a specified content type +func NewCreateEFOIntegrationV1RequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secure/events-forwarder/v1/integrations") + 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 +} + +// NewDeleteEFOIntegrationByIdV1Request constructs an http.Request for the DeleteEFOIntegrationByIdV1 method +func NewDeleteEFOIntegrationByIdV1Request(server string, integrationId IntegrationId) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "integrationId", integrationId, 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("/secure/events-forwarder/v1/integrations/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest(http.MethodDelete, queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil } // NewGetEFOIntegrationByIdV1Request constructs an http.Request for the GetEFOIntegrationByIdV1 method @@ -53044,6 +58537,386 @@ type ClientWithResponsesInterface interface { // Corresponds with GET /platform/reporting/v1/schedules (the `ListSchedulesV1` operationId). ListSchedulesV1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListSchedulesV1Response, error) + // ListReportsV2Alpha1WithResponse List Reports + // + // Retrieve the list of reports.\ + // \ + // **Visibility scope:** returns reports belonging to the caller's team within the caller's + // customer account, not the whole tenant.\ + // \ + // **Reports of a superseded kind are omitted.** A report created from a template of an earlier + // resource-posture generation has no `kind` this API can express, so it is not listed here and + // `GET /reports/{reportId}` returns `404` for it. Such reports still exist and stay readable through + // the v1 API and the Sysdig UI — nothing is deleted — so a report visible in the UI may be absent + // here.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/reports (the `ListReportsV2Alpha1` operationId). + ListReportsV2Alpha1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReportsV2Alpha1Response, error) + + // CreateReportV2Alpha1WithBodyWithResponse Create Report + // + // Create a report from a template. Optionally create a schedule in the same request by including + // a `schedule` object.\ + // \ + // **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is + // invalid or cannot be created, the report is not created either and nothing is left behind. + // Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains + // supported.\ + // \ + // The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and + // `Location` points at the report.\ + // \ + // **Required permissions:** platform.reporting.reports.edit, plus + // `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a + // schedule as well, and is refused as a whole if either permission is missing. + // + // 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/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). + CreateReportV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportV2Alpha1Response, error) + + // CreateReportV2Alpha1WithResponse Create Report + // + // Create a report from a template. Optionally create a schedule in the same request by including + // a `schedule` object.\ + // \ + // **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is + // invalid or cannot be created, the report is not created either and nothing is left behind. + // Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains + // supported.\ + // \ + // The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and + // `Location` points at the report.\ + // \ + // **Required permissions:** platform.reporting.reports.edit, plus + // `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a + // schedule as well, and is refused as a whole if either permission is missing. + // + // 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/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). + CreateReportV2Alpha1WithResponse(ctx context.Context, body CreateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportV2Alpha1Response, error) + + // DeleteReportV2Alpha1WithResponse Delete Report + // + // Delete a report. Cascades to its schedules and run history.\ + // \ + // `If-Match` is **optional** here, unlike on `PUT` and `PATCH`: an unconditional delete is accepted. + // Supply the report's `ETag` to abort the delete if the report has changed since you read it.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with DELETE /platform/reporting/v2alpha1/reports/{reportId} (the `DeleteReportV2Alpha1` operationId). + DeleteReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, params *DeleteReportV2Alpha1Params, reqEditors ...RequestEditorFn) (*DeleteReportV2Alpha1Response, error) + + // GetReportV2Alpha1WithResponse Get Report + // + // Retrieve a report by its identifier.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/reports/{reportId} (the `GetReportV2Alpha1` operationId). + GetReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, reqEditors ...RequestEditorFn) (*GetReportV2Alpha1Response, error) + + // PatchReportV2Alpha1WithBodyWithResponse Patch Report + // + // Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `templateId` and + // `kind` are immutable.\ + // \ + // Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that + // is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.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 PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). + PatchReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReportV2Alpha1Response, error) + + // PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse Patch Report + // + // Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `templateId` and + // `kind` are immutable.\ + // \ + // Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that + // is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.edit + // + // Takes a body of the `application/merge-patch+json` content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). + PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, body PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchReportV2Alpha1Response, error) + + // UpdateReportV2Alpha1WithBodyWithResponse Update Report + // + // Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. + // `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use + // `PATCH` to change a subset.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.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/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). + UpdateReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportV2Alpha1Response, error) + + // UpdateReportV2Alpha1WithResponse Update Report + // + // Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. + // `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use + // `PATCH` to change a subset.\ + // \ + // `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ + // \ + // **Required permissions:** platform.reporting.reports.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/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). + UpdateReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, body UpdateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportV2Alpha1Response, error) + + // ListRunsV2Alpha1WithResponse List Report Runs + // + // Retrieve report runs, optionally filtered by report, schedule, how they were triggered, status, + // or activity time.\ + // \ + // **`reportId` and `scheduleId` are mutually exclusive** — supply at most one. Sending both is + // rejected with `400`.\ + // \ + // To count or list a report's ad-hoc downloads — for instance to warn a user how many produced files + // deleting the report would destroy — combine `reportId` with `trigger=on_demand`.\ + // \ + // **Incremental polling:** use `sinceAt` to fetch only runs with activity at or after a given + // instant. Because this listing is unpaginated, `sinceAt` is the recommended way to avoid + // re-reading the whole retained history on every poll. `sinceAt` cannot be combined with + // `status=pending` or `status=running` (`400`).\ + // \ + // **Retention:** this listing is not a complete history. Completed runs — including truncated + // ones — are returned only while their produced file is still retrievable (a fixed retention + // window, currently expressed in days); older completed runs are omitted. Runs in any other + // state, including failed runs, are not subject to this window. Treat + // the listing as "runs whose output is still available", not "everything that ever ran".\ + // \ + // **Downloadable files:** to list the files currently available for download, filter with + // `status=completed` — each such run carries its `resultUri` until its file expires.\ + // \ + // **Visibility scope:** returns runs belonging to the caller's team within the caller's customer + // account, not the whole tenant.\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/runs (the `ListRunsV2Alpha1` operationId). + ListRunsV2Alpha1WithResponse(ctx context.Context, params *ListRunsV2Alpha1Params, reqEditors ...RequestEditorFn) (*ListRunsV2Alpha1Response, error) + + // CreateRunV2Alpha1WithBodyWithResponse Generate Report Run + // + // Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then + // download the file from its `resultUri`.\ + // \ + // **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). + // + // Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). + CreateRunV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunV2Alpha1Response, error) + + // CreateRunV2Alpha1WithResponse Generate Report Run + // + // Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then + // download the file from its `resultUri`.\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // 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/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). + CreateRunV2Alpha1WithResponse(ctx context.Context, body CreateRunV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunV2Alpha1Response, error) + + // GetRunV2Alpha1WithResponse Get Report Run + // + // Retrieve a report run by its identifier (poll for status).\ + // \ + // **Required permissions:** platform.reporting.report-downloads.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/runs/{runId} (the `GetRunV2Alpha1` operationId). + GetRunV2Alpha1WithResponse(ctx context.Context, runID RunID, reqEditors ...RequestEditorFn) (*GetRunV2Alpha1Response, error) + + // ListSchedulesV2Alpha1WithResponse List Report Schedules + // + // Retrieve the list of report schedules, optionally filtered by report.\ + // \ + // **Visibility scope:** returns schedules belonging to the caller's team within the caller's customer + // account, and only schedules attached to a **report**. The reporting service also stores schedules of + // other kinds — ones attached directly to a template, and data-export schedules — which have no + // representation in this API and are never returned here. A schedule visible in the Sysdig UI may + // therefore be absent from this listing.\ + // \ + // **Required permissions:** platform.reporting.schedules.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/schedules (the `ListSchedulesV2Alpha1` operationId). + ListSchedulesV2Alpha1WithResponse(ctx context.Context, params *ListSchedulesV2Alpha1Params, reqEditors ...RequestEditorFn) (*ListSchedulesV2Alpha1Response, error) + + // CreateScheduleV2Alpha1WithBodyWithResponse Create Report Schedule + // + // Create a schedule for an existing report.\ + // \ + // **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). + CreateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleV2Alpha1Response, error) + + // CreateScheduleV2Alpha1WithResponse Create Report Schedule + // + // Create a schedule for an existing report.\ + // \ + // **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). + CreateScheduleV2Alpha1WithResponse(ctx context.Context, body CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleV2Alpha1Response, error) + + // DeleteScheduleV2Alpha1WithResponse Delete Report Schedule + // + // Delete a schedule. Cascades to its run history.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with DELETE /platform/reporting/v2alpha1/schedules/{scheduleId} (the `DeleteScheduleV2Alpha1` operationId). + DeleteScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*DeleteScheduleV2Alpha1Response, error) + + // GetScheduleV2Alpha1WithResponse Get Report Schedule + // + // Retrieve a schedule by its identifier.\ + // \ + // **Required permissions:** platform.reporting.schedules.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/schedules/{scheduleId} (the `GetScheduleV2Alpha1` operationId). + GetScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*GetScheduleV2Alpha1Response, error) + + // PatchScheduleV2Alpha1WithBodyWithResponse Patch Report Schedule + // + // Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `reportId` is + // immutable and `status` is server-computed.\ + // \ + // Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ + // \ + // Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite + // the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are + // unconditional.\ + // \ + // **Required permissions:** platform.reporting.schedules.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 PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). + PatchScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchScheduleV2Alpha1Response, error) + + // PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse Patch Report Schedule + // + // Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). + // Send only the fields you want to change; omitted fields keep their current values. `reportId` is + // immutable and `status` is server-computed.\ + // \ + // Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ + // \ + // Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite + // the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are + // unconditional.\ + // \ + // **Required permissions:** platform.reporting.schedules.edit + // + // Takes a body of the `application/merge-patch+json` content type, and returns a wrapper object for the known response body format(s). + // + // Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). + PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, scheduleID ScheduleID, body PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchScheduleV2Alpha1Response, error) + + // UpdateScheduleV2Alpha1WithBodyWithResponse Update Report Schedule + // + // Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ + // \ + // **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). + UpdateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleV2Alpha1Response, error) + + // UpdateScheduleV2Alpha1WithResponse Update Report Schedule + // + // Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ + // \ + // **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). + UpdateScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, body UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleV2Alpha1Response, error) + + // ListReportTemplatesV2Alpha1WithResponse List Report Templates + // + // Retrieve the catalog of available report templates.\ + // \ + // **The catalog is not the same for every customer.** Templates gated by controlled availability + // or by product entitlement are omitted for customers that do not have them enabled, so this + // listing is the authoritative set of templates the caller may create reports from. Do not + // hard-code template ids — read them from here. A template absent from this listing also cannot be + // fetched by id (`404`).\ + // \ + // **Superseded templates are omitted for everyone.** The reporting service still stores templates of + // an earlier resource-posture generation that the Sysdig UI no longer offers; those have no `kind` in + // this API and never appear here. Their replacements are the `posture_v2` templates. Reports created + // from a superseded template before it was retired remain readable through the v1 API and the UI, but + // are not exposed here — see `GET /reports`.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/templates (the `ListReportTemplatesV2Alpha1` operationId). + ListReportTemplatesV2Alpha1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReportTemplatesV2Alpha1Response, error) + + // GetReportTemplateV2Alpha1WithResponse Get Report Template + // + // Retrieve a single report template by its identifier.\ + // \ + // **Required permissions:** platform.reporting.reports.read + // + // Returns a wrapper object for the known response body format(s). + // + // Corresponds with GET /platform/reporting/v2alpha1/templates/{templateId} (the `GetReportTemplateV2Alpha1` operationId). + GetReportTemplateV2Alpha1WithResponse(ctx context.Context, templateID TemplateID, reqEditors ...RequestEditorFn) (*GetReportTemplateV2Alpha1Response, error) + // GetAccessKeysV1WithResponse List Access Keys // // Retrieve a paginated list of access keys.\ @@ -61412,92 +67285,100 @@ func (r ListSchedulesV1Response) ContentType() string { return "" } -// GetAccessKeysV1Response200Headers the declared response headers of an HTTP 200 response for GetAccessKeysV1 -type GetAccessKeysV1Response200Headers struct { - XRateLimitLimit *int32 +// ListReportsV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for ListReportsV2Alpha1 +type ListReportsV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// GetAccessKeysV1Response400Headers the declared response headers of an HTTP 400 response for GetAccessKeysV1 -type GetAccessKeysV1Response400Headers struct { - XRateLimitLimit *int32 +// ListReportsV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for ListReportsV2Alpha1 +type ListReportsV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeysV1Response401Headers the declared response headers of an HTTP 401 response for GetAccessKeysV1 -type GetAccessKeysV1Response401Headers struct { - XRateLimitLimit *int32 +// ListReportsV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for ListReportsV2Alpha1 +type ListReportsV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeysV1Response429Headers the declared response headers of an HTTP 429 response for GetAccessKeysV1 -type GetAccessKeysV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListReportsV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for ListReportsV2Alpha1 +type ListReportsV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeysV1Response500Headers the declared response headers of an HTTP 500 response for GetAccessKeysV1 -type GetAccessKeysV1Response500Headers struct { +// ListReportsV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for ListReportsV2Alpha1 +type ListReportsV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAccessKeysV1Response struct { +type ListReportsV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetAccessKeysPaginatedResponseV1 + JSON200 *ListReportsV2Alpha1 // 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 // 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 *GetAccessKeysV1Response200Headers + Headers200 *ListReportsV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAccessKeysV1Response400Headers + Headers400 *ListReportsV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAccessKeysV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAccessKeysV1Response429Headers + Headers401 *ListReportsV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListReportsV2Alpha1Response403Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAccessKeysV1Response500Headers + Headers500 *ListReportsV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAccessKeysV1Response) GetJSON200() *GetAccessKeysPaginatedResponseV1 { +func (r ListReportsV2Alpha1Response) GetJSON200() *ListReportsV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAccessKeysV1Response) GetJSON400() *BadRequest { +func (r ListReportsV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAccessKeysV1Response) GetJSON401() *Unauthorized { +func (r ListReportsV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAccessKeysV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListReportsV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAccessKeysV1Response) GetJSON500() *InternalServerError { +func (r ListReportsV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAccessKeysV1Response) GetBody() []byte { +func (r ListReportsV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAccessKeysV1Response) Status() string { +func (r ListReportsV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -61505,7 +67386,7 @@ func (r GetAccessKeysV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAccessKeysV1Response) StatusCode() int { +func (r ListReportsV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -61513,155 +67394,160 @@ func (r GetAccessKeysV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAccessKeysV1Response) ContentType() string { +func (r ListReportsV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateAccessKeyV1Response201Headers the declared response headers of an HTTP 201 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response201Headers struct { - XRateLimitLimit *int32 -} - -// CreateAccessKeyV1Response400Headers the declared response headers of an HTTP 400 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response400Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response201Headers the declared response headers of an HTTP 201 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response201Headers struct { + ETag string + Location string + XRequestId openapi_types.UUID } -// CreateAccessKeyV1Response401Headers the declared response headers of an HTTP 401 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response401Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response403Headers the declared response headers of an HTTP 403 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response403Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response409Headers the declared response headers of an HTTP 409 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response409Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response415Headers the declared response headers of an HTTP 415 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response415Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response422Headers the declared response headers of an HTTP 422 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response422Headers struct { - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response429Headers the declared response headers of an HTTP 429 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// CreateReportV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateAccessKeyV1Response500Headers the declared response headers of an HTTP 500 response for CreateAccessKeyV1 -type CreateAccessKeyV1Response500Headers struct { +// CreateReportV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for CreateReportV2Alpha1 +type CreateReportV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateAccessKeyV1Response struct { +type CreateReportV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *AccessKeyResponseV1 + JSON201 *ReportResponseV2Alpha1 // 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 // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + JSON409 *ConflictV2 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + JSON415 *UnsupportedMediaTypeV2 // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON422 *UnprocessableEntityV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorV2 // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateAccessKeyV1Response201Headers + Headers201 *CreateReportV2Alpha1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateAccessKeyV1Response400Headers + Headers400 *CreateReportV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateAccessKeyV1Response401Headers + Headers401 *CreateReportV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateAccessKeyV1Response403Headers + Headers403 *CreateReportV2Alpha1Response403Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateAccessKeyV1Response409Headers + Headers409 *CreateReportV2Alpha1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateAccessKeyV1Response415Headers + Headers415 *CreateReportV2Alpha1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateAccessKeyV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateAccessKeyV1Response429Headers + Headers422 *CreateReportV2Alpha1Response422Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateAccessKeyV1Response500Headers + Headers500 *CreateReportV2Alpha1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON201() *AccessKeyResponseV1 { +func (r CreateReportV2Alpha1Response) GetJSON201() *ReportResponseV2Alpha1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON400() *BadRequest { +func (r CreateReportV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON401() *Unauthorized { +func (r CreateReportV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON403() *Forbidden { +func (r CreateReportV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON409() *Conflict { +func (r CreateReportV2Alpha1Response) GetJSON409() *ConflictV2 { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateReportV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateReportV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateAccessKeyV1Response) GetJSON500() *InternalServerError { +func (r CreateReportV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateAccessKeyV1Response) GetBody() []byte { +func (r CreateReportV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateAccessKeyV1Response) Status() string { +func (r CreateReportV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -61669,7 +67555,7 @@ func (r CreateAccessKeyV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateAccessKeyV1Response) StatusCode() int { +func (r CreateReportV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -61677,134 +67563,131 @@ func (r CreateAccessKeyV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateAccessKeyV1Response) ContentType() string { +func (r CreateReportV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteAccessKeyByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response204Headers the declared response headers of an HTTP 204 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response204Headers struct { + XRequestId openapi_types.UUID } -// DeleteAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteAccessKeyByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response403Headers struct { - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteAccessKeyByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response422Headers struct { - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// DeleteReportV2Alpha1Response412Headers the declared response headers of an HTTP 412 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response412Headers struct { + XRequestId openapi_types.UUID } -// DeleteAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteAccessKeyByIdV1 -type DeleteAccessKeyByIdV1Response500Headers struct { +// DeleteReportV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for DeleteReportV2Alpha1 +type DeleteReportV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteAccessKeyByIdV1Response struct { +type DeleteReportV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON404 *NotFoundV2 + // JSON412 the response for an HTTP 412 `application/json` response + JSON412 *PreconditionFailedV2Alpha1 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError + JSON500 *InternalServerErrorV2 // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteAccessKeyByIdV1Response204Headers + Headers204 *DeleteReportV2Alpha1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteAccessKeyByIdV1Response400Headers + Headers400 *DeleteReportV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteAccessKeyByIdV1Response401Headers + Headers401 *DeleteReportV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteAccessKeyByIdV1Response403Headers + Headers403 *DeleteReportV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteAccessKeyByIdV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteAccessKeyByIdV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteAccessKeyByIdV1Response429Headers + Headers404 *DeleteReportV2Alpha1Response404Headers + // Headers412 the parsed response headers for an HTTP 412 response + Headers412 *DeleteReportV2Alpha1Response412Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteAccessKeyByIdV1Response500Headers + Headers500 *DeleteReportV2Alpha1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteReportV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteReportV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON403() *Forbidden { +func (r DeleteReportV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON404() *NotFound { +func (r DeleteReportV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r DeleteReportV2Alpha1Response) GetJSON412() *PreconditionFailedV2Alpha1 { + return r.JSON412 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteAccessKeyByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteReportV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteAccessKeyByIdV1Response) GetBody() []byte { +func (r DeleteReportV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteAccessKeyByIdV1Response) Status() string { +func (r DeleteReportV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -61812,7 +67695,7 @@ func (r DeleteAccessKeyByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAccessKeyByIdV1Response) StatusCode() int { +func (r DeleteReportV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -61820,113 +67703,125 @@ func (r DeleteAccessKeyByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAccessKeyByIdV1Response) ContentType() string { +func (r DeleteReportV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAccessKeyByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response200Headers struct { - XRateLimitLimit *int32 +// GetReportV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response200Headers struct { + ETag string + XRequestId openapi_types.UUID } -// GetAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// GetReportV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// GetReportV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// GetReportV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetReportV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetAccessKeyByIdV1 -type GetAccessKeyByIdV1Response500Headers struct { +// GetReportV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for GetReportV2Alpha1 +type GetReportV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAccessKeyByIdV1Response struct { +type GetReportV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AccessKeyResponseV1 + JSON200 *ReportResponseV2Alpha1 // 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 *ForbiddenV2 // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON404 *NotFoundV2 // 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 *GetAccessKeyByIdV1Response200Headers + Headers200 *GetReportV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAccessKeyByIdV1Response400Headers + Headers400 *GetReportV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAccessKeyByIdV1Response401Headers + Headers401 *GetReportV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetReportV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAccessKeyByIdV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAccessKeyByIdV1Response429Headers + Headers404 *GetReportV2Alpha1Response404Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAccessKeyByIdV1Response500Headers + Headers500 *GetReportV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON200() *AccessKeyResponseV1 { +func (r GetReportV2Alpha1Response) GetJSON200() *ReportResponseV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON400() *BadRequest { +func (r GetReportV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON401() *Unauthorized { +func (r GetReportV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetReportV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetReportV2Alpha1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAccessKeyByIdV1Response) GetJSON500() *InternalServerError { +func (r GetReportV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAccessKeyByIdV1Response) GetBody() []byte { +func (r GetReportV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAccessKeyByIdV1Response) Status() string { +func (r GetReportV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -61934,7 +67829,7 @@ func (r GetAccessKeyByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAccessKeyByIdV1Response) StatusCode() int { +func (r GetReportV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -61942,169 +67837,204 @@ func (r GetAccessKeyByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAccessKeyByIdV1Response) ContentType() string { +func (r GetReportV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateAccessKeyByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response200Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response200Headers struct { + ETag string + XRequestId openapi_types.UUID } -// UpdateAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response403Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response409Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response415Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response412Headers the declared response headers of an HTTP 412 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response412Headers struct { + XRequestId openapi_types.UUID } -// UpdateAccessKeyByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response422Headers struct { - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// PatchReportV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateAccessKeyByIdV1 -type UpdateAccessKeyByIdV1Response500Headers struct { +// PatchReportV2Alpha1Response428Headers the declared response headers of an HTTP 428 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response428Headers struct { + XRequestId openapi_types.UUID +} + +// PatchReportV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for PatchReportV2Alpha1 +type PatchReportV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateAccessKeyByIdV1Response struct { +type PatchReportV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AccessKeyResponseV1 + JSON200 *ReportResponseV2Alpha1 // 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 + JSON404 *NotFoundV2 // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + JSON409 *ConflictV2 + // JSON412 the response for an HTTP 412 `application/json` response + JSON412 *PreconditionFailedV2Alpha1 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + JSON415 *UnsupportedMediaTypeV2 // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON422 *UnprocessableEntityV2 + // JSON428 the response for an HTTP 428 `application/json` response + JSON428 *PreconditionRequiredV2Alpha1 // 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 *UpdateAccessKeyByIdV1Response200Headers + Headers200 *PatchReportV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateAccessKeyByIdV1Response400Headers + Headers400 *PatchReportV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateAccessKeyByIdV1Response401Headers + Headers401 *PatchReportV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateAccessKeyByIdV1Response403Headers + Headers403 *PatchReportV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateAccessKeyByIdV1Response404Headers + Headers404 *PatchReportV2Alpha1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateAccessKeyByIdV1Response409Headers + Headers409 *PatchReportV2Alpha1Response409Headers + // Headers412 the parsed response headers for an HTTP 412 response + Headers412 *PatchReportV2Alpha1Response412Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateAccessKeyByIdV1Response415Headers + Headers415 *PatchReportV2Alpha1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateAccessKeyByIdV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateAccessKeyByIdV1Response429Headers + Headers422 *PatchReportV2Alpha1Response422Headers + // Headers428 the parsed response headers for an HTTP 428 response + Headers428 *PatchReportV2Alpha1Response428Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateAccessKeyByIdV1Response500Headers + Headers500 *PatchReportV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON200() *AccessKeyResponseV1 { +func (r PatchReportV2Alpha1Response) GetJSON200() *ReportResponseV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON400() *BadRequest { +func (r PatchReportV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON401() *Unauthorized { +func (r PatchReportV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON403() *Forbidden { +func (r PatchReportV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON404() *NotFound { +func (r PatchReportV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON409() *Conflict { +func (r PatchReportV2Alpha1Response) GetJSON409() *ConflictV2 { return r.JSON409 } +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r PatchReportV2Alpha1Response) GetJSON412() *PreconditionFailedV2Alpha1 { + return r.JSON412 +} + // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON415() *UnsupportedMediaType { +func (r PatchReportV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON422() *UnprocessableEntity { +func (r PatchReportV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON428 returns the response for an HTTP 428 `application/json` response +func (r PatchReportV2Alpha1Response) GetJSON428() *PreconditionRequiredV2Alpha1 { + return r.JSON428 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateAccessKeyByIdV1Response) GetJSON500() *InternalServerError { +func (r PatchReportV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateAccessKeyByIdV1Response) GetBody() []byte { +func (r PatchReportV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateAccessKeyByIdV1Response) Status() string { +func (r PatchReportV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62112,7 +68042,7 @@ func (r UpdateAccessKeyByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAccessKeyByIdV1Response) StatusCode() int { +func (r PatchReportV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62120,249 +68050,204 @@ func (r UpdateAccessKeyByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAccessKeyByIdV1Response) ContentType() string { +func (r PatchReportV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetCaptureStorageConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for GetCaptureStorageConfigurationV1 -type GetCaptureStorageConfigurationV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetCaptureStorageConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for GetCaptureStorageConfigurationV1 -type GetCaptureStorageConfigurationV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetCaptureStorageConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for GetCaptureStorageConfigurationV1 -type GetCaptureStorageConfigurationV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// GetCaptureStorageConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for GetCaptureStorageConfigurationV1 -type GetCaptureStorageConfigurationV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response200Headers struct { + ETag string + XRequestId openapi_types.UUID } -// GetCaptureStorageConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for GetCaptureStorageConfigurationV1 -type GetCaptureStorageConfigurationV1Response500Headers struct { +// UpdateReportV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response400Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetCaptureStorageConfigurationV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *CaptureStorageConfigurationResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // 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 *GetCaptureStorageConfigurationV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCaptureStorageConfigurationV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCaptureStorageConfigurationV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCaptureStorageConfigurationV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCaptureStorageConfigurationV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCaptureStorageConfigurationV1Response) GetJSON200() *CaptureStorageConfigurationResponseV1 { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetCaptureStorageConfigurationV1Response) GetJSON400() *BadRequest { - return r.JSON400 -} - -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCaptureStorageConfigurationV1Response) GetJSON401() *Unauthorized { - return r.JSON401 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCaptureStorageConfigurationV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCaptureStorageConfigurationV1Response) GetJSON500() *InternalServerError { - return r.JSON500 -} - -// GetBody returns the raw response body bytes -func (r GetCaptureStorageConfigurationV1Response) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r GetCaptureStorageConfigurationV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r GetCaptureStorageConfigurationV1Response) 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 GetCaptureStorageConfigurationV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// UpdateReportV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response200Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response400Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response401Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response404Headers the declared response headers of an HTTP 404 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response404Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response412Headers the declared response headers of an HTTP 412 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response412Headers struct { + XRequestId openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response415Headers the declared response headers of an HTTP 415 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response415Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response422Headers the declared response headers of an HTTP 422 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response422Headers struct { - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// UpdateReportV2Alpha1Response428Headers the declared response headers of an HTTP 428 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response428Headers struct { + XRequestId openapi_types.UUID } -// UpdateCaptureStorageConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for UpdateCaptureStorageConfigurationV1 -type UpdateCaptureStorageConfigurationV1Response500Headers struct { +// UpdateReportV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for UpdateReportV2Alpha1 +type UpdateReportV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateCaptureStorageConfigurationV1Response struct { +type UpdateReportV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *CaptureStorageConfigurationResponseV1 + JSON200 *ReportResponseV2Alpha1 // 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 *ForbiddenV2 // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + 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 *PreconditionFailedV2Alpha1 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + JSON415 *UnsupportedMediaTypeV2 // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON422 *UnprocessableEntityV2 + // JSON428 the response for an HTTP 428 `application/json` response + JSON428 *PreconditionRequiredV2Alpha1 // 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 *UpdateCaptureStorageConfigurationV1Response200Headers + Headers200 *UpdateReportV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateCaptureStorageConfigurationV1Response400Headers + Headers400 *UpdateReportV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateCaptureStorageConfigurationV1Response401Headers + Headers401 *UpdateReportV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateReportV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateCaptureStorageConfigurationV1Response404Headers + Headers404 *UpdateReportV2Alpha1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateReportV2Alpha1Response409Headers + // Headers412 the parsed response headers for an HTTP 412 response + Headers412 *UpdateReportV2Alpha1Response412Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateCaptureStorageConfigurationV1Response415Headers + Headers415 *UpdateReportV2Alpha1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateCaptureStorageConfigurationV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateCaptureStorageConfigurationV1Response429Headers + Headers422 *UpdateReportV2Alpha1Response422Headers + // Headers428 the parsed response headers for an HTTP 428 response + Headers428 *UpdateReportV2Alpha1Response428Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateCaptureStorageConfigurationV1Response500Headers + Headers500 *UpdateReportV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON200() *CaptureStorageConfigurationResponseV1 { +func (r UpdateReportV2Alpha1Response) GetJSON200() *ReportResponseV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON400() *BadRequest { +func (r UpdateReportV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON401() *Unauthorized { +func (r UpdateReportV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateReportV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON404() *NotFound { +func (r UpdateReportV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateReportV2Alpha1Response) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r UpdateReportV2Alpha1Response) GetJSON412() *PreconditionFailedV2Alpha1 { + return r.JSON412 +} + // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON415() *UnsupportedMediaType { +func (r UpdateReportV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON422() *UnprocessableEntity { +func (r UpdateReportV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON428 returns the response for an HTTP 428 `application/json` response +func (r UpdateReportV2Alpha1Response) GetJSON428() *PreconditionRequiredV2Alpha1 { + return r.JSON428 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateCaptureStorageConfigurationV1Response) GetJSON500() *InternalServerError { +func (r UpdateReportV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateCaptureStorageConfigurationV1Response) GetBody() []byte { +func (r UpdateReportV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateCaptureStorageConfigurationV1Response) Status() string { +func (r UpdateReportV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62370,7 +68255,7 @@ func (r UpdateCaptureStorageConfigurationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateCaptureStorageConfigurationV1Response) StatusCode() int { +func (r UpdateReportV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62378,113 +68263,107 @@ func (r UpdateCaptureStorageConfigurationV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateCaptureStorageConfigurationV1Response) ContentType() string { +func (r UpdateReportV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetUserDeactivationConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetUserDeactivationConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response400Headers struct { - XRateLimitLimit *int32 +// ListRunsV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for ListRunsV2Alpha1 +type ListRunsV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// GetUserDeactivationConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response401Headers struct { - XRateLimitLimit *int32 +// ListRunsV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for ListRunsV2Alpha1 +type ListRunsV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetUserDeactivationConfigurationV1Response404Headers the declared response headers of an HTTP 404 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response404Headers struct { - XRateLimitLimit *int32 +// ListRunsV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for ListRunsV2Alpha1 +type ListRunsV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetUserDeactivationConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListRunsV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for ListRunsV2Alpha1 +type ListRunsV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetUserDeactivationConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for GetUserDeactivationConfigurationV1 -type GetUserDeactivationConfigurationV1Response500Headers struct { +// ListRunsV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for ListRunsV2Alpha1 +type ListRunsV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetUserDeactivationConfigurationV1Response struct { +type ListRunsV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *UserDeactivationConfigurationResponseV1 + JSON200 *ListRunsV2Alpha1 // 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 - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 // 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 *GetUserDeactivationConfigurationV1Response200Headers + Headers200 *ListRunsV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetUserDeactivationConfigurationV1Response400Headers + Headers400 *ListRunsV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetUserDeactivationConfigurationV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetUserDeactivationConfigurationV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetUserDeactivationConfigurationV1Response429Headers + Headers401 *ListRunsV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListRunsV2Alpha1Response403Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetUserDeactivationConfigurationV1Response500Headers + Headers500 *ListRunsV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON200() *UserDeactivationConfigurationResponseV1 { +func (r ListRunsV2Alpha1Response) GetJSON200() *ListRunsV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON400() *BadRequest { +func (r ListRunsV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON401() *Unauthorized { +func (r ListRunsV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListRunsV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetUserDeactivationConfigurationV1Response) GetJSON500() *InternalServerError { +func (r ListRunsV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetUserDeactivationConfigurationV1Response) GetBody() []byte { +func (r ListRunsV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetUserDeactivationConfigurationV1Response) Status() string { +func (r ListRunsV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62492,7 +68371,7 @@ func (r GetUserDeactivationConfigurationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserDeactivationConfigurationV1Response) StatusCode() int { +func (r ListRunsV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62500,127 +68379,160 @@ func (r GetUserDeactivationConfigurationV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserDeactivationConfigurationV1Response) ContentType() string { +func (r ListRunsV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateUserDeactivationConfigurationByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response200Headers struct { - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response202Headers the declared response headers of an HTTP 202 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response202Headers struct { + Location string + RetryAfter int32 + XRequestId openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response415Headers struct { - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// CreateRunV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateUserDeactivationConfigurationByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateUserDeactivationConfigurationByIdV1 -type UpdateUserDeactivationConfigurationByIdV1Response500Headers struct { +// CreateRunV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response422Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateUserDeactivationConfigurationByIdV1Response struct { +// CreateRunV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for CreateRunV2Alpha1 +type CreateRunV2Alpha1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type CreateRunV2Alpha1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *UserDeactivationConfigurationResponseV1 + // JSON202 the response for an HTTP 202 `application/json` response + JSON202 *RunResponseV2Alpha1 // 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 *ForbiddenV2 // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + JSON404 *NotFoundV2 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON415 *UnsupportedMediaTypeV2 + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateUserDeactivationConfigurationByIdV1Response200Headers + JSON500 *InternalServerErrorV2 + // Headers202 the parsed response headers for an HTTP 202 response + Headers202 *CreateRunV2Alpha1Response202Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateUserDeactivationConfigurationByIdV1Response400Headers + Headers400 *CreateRunV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateUserDeactivationConfigurationByIdV1Response401Headers + Headers401 *CreateRunV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateRunV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateUserDeactivationConfigurationByIdV1Response404Headers + Headers404 *CreateRunV2Alpha1Response404Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateUserDeactivationConfigurationByIdV1Response415Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateUserDeactivationConfigurationByIdV1Response429Headers + Headers415 *CreateRunV2Alpha1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateRunV2Alpha1Response422Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateUserDeactivationConfigurationByIdV1Response500Headers + Headers500 *CreateRunV2Alpha1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON200() *UserDeactivationConfigurationResponseV1 { - return r.JSON200 +// GetJSON202 returns the response for an HTTP 202 `application/json` response +func (r CreateRunV2Alpha1Response) GetJSON202() *RunResponseV2Alpha1 { + return r.JSON202 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON400() *BadRequest { +func (r CreateRunV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON401() *Unauthorized { +func (r CreateRunV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateRunV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON404() *NotFound { +func (r CreateRunV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateRunV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateRunV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { + return r.JSON422 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON500() *InternalServerError { +func (r CreateRunV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateUserDeactivationConfigurationByIdV1Response) GetBody() []byte { +func (r CreateRunV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateUserDeactivationConfigurationByIdV1Response) Status() string { +func (r CreateRunV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62628,7 +68540,7 @@ func (r UpdateUserDeactivationConfigurationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserDeactivationConfigurationByIdV1Response) StatusCode() int { +func (r CreateRunV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62636,75 +68548,64 @@ func (r UpdateUserDeactivationConfigurationByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateUserDeactivationConfigurationByIdV1Response) ContentType() string { +func (r CreateRunV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetDefaultNotificationTemplateV1Response200Headers the declared response headers of an HTTP 200 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response200Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -// GetDefaultNotificationTemplateV1Response400Headers the declared response headers of an HTTP 400 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetRunV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response200Headers struct { + RetryAfter *int32 + XRequestId openapi_types.UUID } -// GetDefaultNotificationTemplateV1Response401Headers the declared response headers of an HTTP 401 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response401Headers struct { +// GetRunV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response400Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// GetDefaultNotificationTemplateV1Response403Headers the declared response headers of an HTTP 403 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response403Headers struct { +// GetRunV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response401Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// GetDefaultNotificationTemplateV1Response404Headers the declared response headers of an HTTP 404 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response404Headers struct { +// GetRunV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response403Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// GetDefaultNotificationTemplateV1Response429Headers the declared response headers of an HTTP 429 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response429Headers struct { - RetryAfter *int32 +// GetRunV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response404Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// GetDefaultNotificationTemplateV1Response500Headers the declared response headers of an HTTP 500 response for GetDefaultNotificationTemplateV1 -type GetDefaultNotificationTemplateV1Response500Headers struct { +// GetRunV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for GetRunV2Alpha1 +type GetRunV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetDefaultNotificationTemplateV1Response struct { +type GetRunV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetDefaultNotificationTemplateResponseV1 + JSON200 *RunResponseV2Alpha1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response @@ -62713,68 +68614,59 @@ type GetDefaultNotificationTemplateV1Response struct { 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 *GetDefaultNotificationTemplateV1Response200Headers + Headers200 *GetRunV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetDefaultNotificationTemplateV1Response400Headers + Headers400 *GetRunV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetDefaultNotificationTemplateV1Response401Headers + Headers401 *GetRunV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetDefaultNotificationTemplateV1Response403Headers + Headers403 *GetRunV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetDefaultNotificationTemplateV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetDefaultNotificationTemplateV1Response429Headers + Headers404 *GetRunV2Alpha1Response404Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetDefaultNotificationTemplateV1Response500Headers + Headers500 *GetRunV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON200() *GetDefaultNotificationTemplateResponseV1 { +func (r GetRunV2Alpha1Response) GetJSON200() *RunResponseV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON400() *BadRequestV2 { +func (r GetRunV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON401() *UnauthorizedV2 { +func (r GetRunV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON403() *ForbiddenV2 { +func (r GetRunV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON404() *NotFoundV2 { +func (r GetRunV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON429() *TooManyRequestsV2 { - return r.JSON429 -} - // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetDefaultNotificationTemplateV1Response) GetJSON500() *InternalServerErrorV2 { +func (r GetRunV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetDefaultNotificationTemplateV1Response) GetBody() []byte { +func (r GetRunV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetDefaultNotificationTemplateV1Response) Status() string { +func (r GetRunV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62782,7 +68674,7 @@ func (r GetDefaultNotificationTemplateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDefaultNotificationTemplateV1Response) StatusCode() int { +func (r GetRunV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62790,113 +68682,107 @@ func (r GetDefaultNotificationTemplateV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDefaultNotificationTemplateV1Response) ContentType() string { +func (r GetRunV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetDefaultRoleByDisplayNameV1Response200Headers the declared response headers of an HTTP 200 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetDefaultRoleByDisplayNameV1Response400Headers the declared response headers of an HTTP 400 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response400Headers struct { - XRateLimitLimit *int32 +// ListSchedulesV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for ListSchedulesV2Alpha1 +type ListSchedulesV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// GetDefaultRoleByDisplayNameV1Response401Headers the declared response headers of an HTTP 401 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response401Headers struct { - XRateLimitLimit *int32 +// ListSchedulesV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for ListSchedulesV2Alpha1 +type ListSchedulesV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetDefaultRoleByDisplayNameV1Response404Headers the declared response headers of an HTTP 404 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response404Headers struct { - XRateLimitLimit *int32 +// ListSchedulesV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for ListSchedulesV2Alpha1 +type ListSchedulesV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetDefaultRoleByDisplayNameV1Response429Headers the declared response headers of an HTTP 429 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListSchedulesV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for ListSchedulesV2Alpha1 +type ListSchedulesV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetDefaultRoleByDisplayNameV1Response500Headers the declared response headers of an HTTP 500 response for GetDefaultRoleByDisplayNameV1 -type GetDefaultRoleByDisplayNameV1Response500Headers struct { +// ListSchedulesV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for ListSchedulesV2Alpha1 +type ListSchedulesV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetDefaultRoleByDisplayNameV1Response struct { +type ListSchedulesV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *DefaultRoleResponseV1 + JSON200 *ListSchedulesV2Alpha1 // 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 - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 // 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 *GetDefaultRoleByDisplayNameV1Response200Headers + Headers200 *ListSchedulesV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetDefaultRoleByDisplayNameV1Response400Headers + Headers400 *ListSchedulesV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetDefaultRoleByDisplayNameV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetDefaultRoleByDisplayNameV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetDefaultRoleByDisplayNameV1Response429Headers + Headers401 *ListSchedulesV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListSchedulesV2Alpha1Response403Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetDefaultRoleByDisplayNameV1Response500Headers + Headers500 *ListSchedulesV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON200() *DefaultRoleResponseV1 { +func (r ListSchedulesV2Alpha1Response) GetJSON200() *ListSchedulesV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON400() *BadRequest { +func (r ListSchedulesV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON401() *Unauthorized { +func (r ListSchedulesV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListSchedulesV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetDefaultRoleByDisplayNameV1Response) GetJSON500() *InternalServerError { +func (r ListSchedulesV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetDefaultRoleByDisplayNameV1Response) GetBody() []byte { +func (r ListSchedulesV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetDefaultRoleByDisplayNameV1Response) Status() string { +func (r ListSchedulesV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -62904,7 +68790,7 @@ func (r GetDefaultRoleByDisplayNameV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetDefaultRoleByDisplayNameV1Response) StatusCode() int { +func (r ListSchedulesV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -62912,99 +68798,159 @@ func (r GetDefaultRoleByDisplayNameV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetDefaultRoleByDisplayNameV1Response) ContentType() string { +func (r ListSchedulesV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGlobalSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalSsoSettingsV1 -type GetGlobalSsoSettingsV1Response200Headers struct { - XRateLimitLimit *int32 +// CreateScheduleV2Alpha1Response201Headers the declared response headers of an HTTP 201 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response201Headers struct { + Location string + XRequestId openapi_types.UUID } -// GetGlobalSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalSsoSettingsV1 -type GetGlobalSsoSettingsV1Response401Headers struct { - XRateLimitLimit *int32 +// CreateScheduleV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetGlobalSsoSettingsV1 -type GetGlobalSsoSettingsV1Response403Headers struct { - XRateLimitLimit *int32 +// CreateScheduleV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalSsoSettingsV1 -type GetGlobalSsoSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// CreateScheduleV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalSsoSettingsV1 -type GetGlobalSsoSettingsV1Response500Headers struct { +// CreateScheduleV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response409Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGlobalSsoSettingsV1Response struct { +// CreateScheduleV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// CreateScheduleV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// CreateScheduleV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for CreateScheduleV2Alpha1 +type CreateScheduleV2Alpha1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type CreateScheduleV2Alpha1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GlobalSsoSettingsResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ScheduleResponseV2Alpha1 + // JSON400 the response for an HTTP 400 `application/json` response + 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + 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 *UnprocessableEntityV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetGlobalSsoSettingsV1Response200Headers + JSON500 *InternalServerErrorV2 + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateScheduleV2Alpha1Response201Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *CreateScheduleV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGlobalSsoSettingsV1Response401Headers + Headers401 *CreateScheduleV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetGlobalSsoSettingsV1Response403Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGlobalSsoSettingsV1Response429Headers + Headers403 *CreateScheduleV2Alpha1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateScheduleV2Alpha1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateScheduleV2Alpha1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateScheduleV2Alpha1Response422Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGlobalSsoSettingsV1Response500Headers + Headers500 *CreateScheduleV2Alpha1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGlobalSsoSettingsV1Response) GetJSON200() *GlobalSsoSettingsResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateScheduleV2Alpha1Response) GetJSON201() *ScheduleResponseV2Alpha1 { + return r.JSON201 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r CreateScheduleV2Alpha1Response) GetJSON400() *BadRequestV2 { + return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGlobalSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r CreateScheduleV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetGlobalSsoSettingsV1Response) GetJSON403() *Forbidden { +func (r CreateScheduleV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGlobalSsoSettingsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateScheduleV2Alpha1Response) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateScheduleV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateScheduleV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { + return r.JSON422 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGlobalSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r CreateScheduleV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGlobalSsoSettingsV1Response) GetBody() []byte { +func (r CreateScheduleV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGlobalSsoSettingsV1Response) Status() string { +func (r CreateScheduleV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63012,7 +68958,7 @@ func (r GetGlobalSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGlobalSsoSettingsV1Response) StatusCode() int { +func (r CreateScheduleV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63020,127 +68966,117 @@ func (r GetGlobalSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGlobalSsoSettingsV1Response) ContentType() string { +func (r CreateScheduleV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateGlobalSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateGlobalSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response400Headers struct { - XRateLimitLimit *int32 +// DeleteScheduleV2Alpha1Response204Headers the declared response headers of an HTTP 204 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response204Headers struct { + XRequestId openapi_types.UUID } -// UpdateGlobalSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response401Headers struct { - XRateLimitLimit *int32 +// DeleteScheduleV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response403Headers struct { - XRateLimitLimit *int32 +// DeleteScheduleV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response422Headers struct { - XRateLimitLimit *int32 +// DeleteScheduleV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// DeleteScheduleV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGlobalSsoSettingsV1 -type UpdateGlobalSsoSettingsV1Response500Headers struct { +// DeleteScheduleV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for DeleteScheduleV2Alpha1 +type DeleteScheduleV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateGlobalSsoSettingsV1Response struct { +type DeleteScheduleV2Alpha1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GlobalSsoSettingsResponseV1 // 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON403 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateGlobalSsoSettingsV1Response200Headers + JSON500 *InternalServerErrorV2 + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteScheduleV2Alpha1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateGlobalSsoSettingsV1Response400Headers + Headers400 *DeleteScheduleV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateGlobalSsoSettingsV1Response401Headers + Headers401 *DeleteScheduleV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateGlobalSsoSettingsV1Response403Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateGlobalSsoSettingsV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateGlobalSsoSettingsV1Response429Headers + Headers403 *DeleteScheduleV2Alpha1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteScheduleV2Alpha1Response404Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateGlobalSsoSettingsV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON200() *GlobalSsoSettingsResponseV1 { - return r.JSON200 + Headers500 *DeleteScheduleV2Alpha1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON400() *BadRequest { +func (r DeleteScheduleV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r DeleteScheduleV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON403() *Forbidden { +func (r DeleteScheduleV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteScheduleV2Alpha1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateGlobalSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r DeleteScheduleV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateGlobalSsoSettingsV1Response) GetBody() []byte { +func (r DeleteScheduleV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateGlobalSsoSettingsV1Response) Status() string { +func (r DeleteScheduleV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63148,7 +69084,7 @@ func (r UpdateGlobalSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateGlobalSsoSettingsV1Response) StatusCode() int { +func (r DeleteScheduleV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63156,99 +69092,124 @@ func (r UpdateGlobalSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateGlobalSsoSettingsV1Response) ContentType() string { +func (r DeleteScheduleV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGroupMappingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingsV1 -type GetGroupMappingsV1Response200Headers struct { - XRateLimitLimit *int32 +// GetScheduleV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// GetGroupMappingsV1Response400Headers the declared response headers of an HTTP 400 response for GetGroupMappingsV1 -type GetGroupMappingsV1Response400Headers struct { - XRateLimitLimit *int32 +// GetScheduleV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGroupMappingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingsV1 -type GetGroupMappingsV1Response401Headers struct { - XRateLimitLimit *int32 +// GetScheduleV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGroupMappingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingsV1 -type GetGroupMappingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetScheduleV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGroupMappingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingsV1 -type GetGroupMappingsV1Response500Headers struct { +// GetScheduleV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response404Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGroupMappingsV1Response struct { +// GetScheduleV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for GetScheduleV2Alpha1 +type GetScheduleV2Alpha1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetScheduleV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GroupMappingsPaginatedResponseV1 + JSON200 *ScheduleResponseV2Alpha1 // 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + 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 // 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 *GetGroupMappingsV1Response200Headers + Headers200 *GetScheduleV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetGroupMappingsV1Response400Headers + Headers400 *GetScheduleV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGroupMappingsV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGroupMappingsV1Response429Headers + Headers401 *GetScheduleV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetScheduleV2Alpha1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetScheduleV2Alpha1Response404Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGroupMappingsV1Response500Headers + Headers500 *GetScheduleV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGroupMappingsV1Response) GetJSON200() *GroupMappingsPaginatedResponseV1 { +func (r GetScheduleV2Alpha1Response) GetJSON200() *ScheduleResponseV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetGroupMappingsV1Response) GetJSON400() *BadRequest { +func (r GetScheduleV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGroupMappingsV1Response) GetJSON401() *Unauthorized { +func (r GetScheduleV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGroupMappingsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetScheduleV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetScheduleV2Alpha1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGroupMappingsV1Response) GetJSON500() *InternalServerError { +func (r GetScheduleV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGroupMappingsV1Response) GetBody() []byte { +func (r GetScheduleV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGroupMappingsV1Response) Status() string { +func (r GetScheduleV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63256,7 +69217,7 @@ func (r GetGroupMappingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGroupMappingsV1Response) StatusCode() int { +func (r GetScheduleV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63264,141 +69225,175 @@ func (r GetGroupMappingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGroupMappingsV1Response) ContentType() string { +func (r GetScheduleV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateGroupMappingV1Response201Headers the declared response headers of an HTTP 201 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response201Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// CreateGroupMappingV1Response400Headers the declared response headers of an HTTP 400 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response400Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response401Headers the declared response headers of an HTTP 401 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response401Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response409Headers the declared response headers of an HTTP 409 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response409Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response415Headers the declared response headers of an HTTP 415 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response415Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response422Headers the declared response headers of an HTTP 422 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response422Headers struct { - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response429Headers the declared response headers of an HTTP 429 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// PatchScheduleV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateGroupMappingV1Response500Headers the declared response headers of an HTTP 500 response for CreateGroupMappingV1 -type CreateGroupMappingV1Response500Headers struct { +// PatchScheduleV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response422Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateGroupMappingV1Response struct { +// PatchScheduleV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for PatchScheduleV2Alpha1 +type PatchScheduleV2Alpha1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type PatchScheduleV2Alpha1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *GroupMappingResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ScheduleResponseV2Alpha1 // 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 *ForbiddenV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + JSON409 *ConflictV2 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + JSON415 *UnsupportedMediaTypeV2 // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON422 *UnprocessableEntityV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateGroupMappingV1Response201Headers + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *PatchScheduleV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateGroupMappingV1Response400Headers + Headers400 *PatchScheduleV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateGroupMappingV1Response401Headers + Headers401 *PatchScheduleV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *PatchScheduleV2Alpha1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *PatchScheduleV2Alpha1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateGroupMappingV1Response409Headers + Headers409 *PatchScheduleV2Alpha1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateGroupMappingV1Response415Headers + Headers415 *PatchScheduleV2Alpha1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateGroupMappingV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateGroupMappingV1Response429Headers + Headers422 *PatchScheduleV2Alpha1Response422Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateGroupMappingV1Response500Headers + Headers500 *PatchScheduleV2Alpha1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON201() *GroupMappingResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r PatchScheduleV2Alpha1Response) GetJSON200() *ScheduleResponseV2Alpha1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON400() *BadRequest { +func (r PatchScheduleV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON401() *Unauthorized { +func (r PatchScheduleV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PatchScheduleV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r PatchScheduleV2Alpha1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 +} + // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON409() *Conflict { +func (r PatchScheduleV2Alpha1Response) GetJSON409() *ConflictV2 { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON415() *UnsupportedMediaType { +func (r PatchScheduleV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON422() *UnprocessableEntity { +func (r PatchScheduleV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateGroupMappingV1Response) GetJSON500() *InternalServerError { +func (r PatchScheduleV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateGroupMappingV1Response) GetBody() []byte { +func (r PatchScheduleV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateGroupMappingV1Response) Status() string { +func (r PatchScheduleV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63406,7 +69401,7 @@ func (r CreateGroupMappingV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateGroupMappingV1Response) StatusCode() int { +func (r PatchScheduleV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63414,85 +69409,175 @@ func (r CreateGroupMappingV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateGroupMappingV1Response) ContentType() string { +func (r PatchScheduleV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGroupMappingSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingSettingsV1 -type GetGroupMappingSettingsV1Response200Headers struct { - XRateLimitLimit *int32 +// UpdateScheduleV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// GetGroupMappingSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingSettingsV1 -type GetGroupMappingSettingsV1Response401Headers struct { - XRateLimitLimit *int32 +// UpdateScheduleV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGroupMappingSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingSettingsV1 -type GetGroupMappingSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// UpdateScheduleV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGroupMappingSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingSettingsV1 -type GetGroupMappingSettingsV1Response500Headers struct { +// UpdateScheduleV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response403Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGroupMappingSettingsV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GroupMappingSettingsV1 - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // 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 *GetGroupMappingSettingsV1Response200Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGroupMappingSettingsV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGroupMappingSettingsV1Response429Headers +// UpdateScheduleV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// UpdateScheduleV2Alpha1Response409Headers the declared response headers of an HTTP 409 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// UpdateScheduleV2Alpha1Response415Headers the declared response headers of an HTTP 415 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// UpdateScheduleV2Alpha1Response422Headers the declared response headers of an HTTP 422 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +// UpdateScheduleV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for UpdateScheduleV2Alpha1 +type UpdateScheduleV2Alpha1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type UpdateScheduleV2Alpha1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ScheduleResponseV2Alpha1 + // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaTypeV2 + // JSON422 the response for an HTTP 422 `application/json` response + JSON422 *UnprocessableEntityV2 + // JSON500 the response for an HTTP 500 `application/json` response + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateScheduleV2Alpha1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *UpdateScheduleV2Alpha1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *UpdateScheduleV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateScheduleV2Alpha1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateScheduleV2Alpha1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateScheduleV2Alpha1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateScheduleV2Alpha1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *UpdateScheduleV2Alpha1Response422Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGroupMappingSettingsV1Response500Headers + Headers500 *UpdateScheduleV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGroupMappingSettingsV1Response) GetJSON200() *GroupMappingSettingsV1 { +func (r UpdateScheduleV2Alpha1Response) GetJSON200() *ScheduleResponseV2Alpha1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON400() *BadRequestV2 { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGroupMappingSettingsV1Response) GetJSON401() *Unauthorized { +func (r UpdateScheduleV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGroupMappingSettingsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 +} + +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r UpdateScheduleV2Alpha1Response) GetJSON422() *UnprocessableEntityV2 { + return r.JSON422 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGroupMappingSettingsV1Response) GetJSON500() *InternalServerError { +func (r UpdateScheduleV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGroupMappingSettingsV1Response) GetBody() []byte { +func (r UpdateScheduleV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGroupMappingSettingsV1Response) Status() string { +func (r UpdateScheduleV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63500,7 +69585,7 @@ func (r GetGroupMappingSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGroupMappingSettingsV1Response) StatusCode() int { +func (r UpdateScheduleV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63508,141 +69593,107 @@ func (r GetGroupMappingSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGroupMappingSettingsV1Response) ContentType() string { +func (r UpdateScheduleV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// SaveGroupMappingSettingsV1Response200Headers the declared response headers of an HTTP 200 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// SaveGroupMappingSettingsV1Response400Headers the declared response headers of an HTTP 400 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// SaveGroupMappingSettingsV1Response401Headers the declared response headers of an HTTP 401 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// SaveGroupMappingSettingsV1Response404Headers the declared response headers of an HTTP 404 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response404Headers struct { - XRateLimitLimit *int32 +// ListReportTemplatesV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for ListReportTemplatesV2Alpha1 +type ListReportTemplatesV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// SaveGroupMappingSettingsV1Response415Headers the declared response headers of an HTTP 415 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response415Headers struct { - XRateLimitLimit *int32 +// ListReportTemplatesV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for ListReportTemplatesV2Alpha1 +type ListReportTemplatesV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// SaveGroupMappingSettingsV1Response422Headers the declared response headers of an HTTP 422 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response422Headers struct { - XRateLimitLimit *int32 +// ListReportTemplatesV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for ListReportTemplatesV2Alpha1 +type ListReportTemplatesV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// SaveGroupMappingSettingsV1Response429Headers the declared response headers of an HTTP 429 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// ListReportTemplatesV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for ListReportTemplatesV2Alpha1 +type ListReportTemplatesV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// SaveGroupMappingSettingsV1Response500Headers the declared response headers of an HTTP 500 response for SaveGroupMappingSettingsV1 -type SaveGroupMappingSettingsV1Response500Headers struct { +// ListReportTemplatesV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for ListReportTemplatesV2Alpha1 +type ListReportTemplatesV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type SaveGroupMappingSettingsV1Response struct { +type ListReportTemplatesV2Alpha1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GroupMappingSettingsV1 + JSON200 *ListTemplatesV2Alpha1 // 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 - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON401 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *ForbiddenV2 // 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 *SaveGroupMappingSettingsV1Response200Headers + Headers200 *ListReportTemplatesV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *SaveGroupMappingSettingsV1Response400Headers + Headers400 *ListReportTemplatesV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *SaveGroupMappingSettingsV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *SaveGroupMappingSettingsV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *SaveGroupMappingSettingsV1Response415Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *SaveGroupMappingSettingsV1Response422Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *SaveGroupMappingSettingsV1Response429Headers + Headers401 *ListReportTemplatesV2Alpha1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListReportTemplatesV2Alpha1Response403Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *SaveGroupMappingSettingsV1Response500Headers + Headers500 *ListReportTemplatesV2Alpha1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON200() *GroupMappingSettingsV1 { +func (r ListReportTemplatesV2Alpha1Response) GetJSON200() *ListTemplatesV2Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON400() *BadRequest { +func (r ListReportTemplatesV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON401() *Unauthorized { +func (r ListReportTemplatesV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListReportTemplatesV2Alpha1Response) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r SaveGroupMappingSettingsV1Response) GetJSON500() *InternalServerError { +func (r ListReportTemplatesV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r SaveGroupMappingSettingsV1Response) GetBody() []byte { +func (r ListReportTemplatesV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r SaveGroupMappingSettingsV1Response) Status() string { +func (r ListReportTemplatesV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63650,7 +69701,7 @@ func (r SaveGroupMappingSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SaveGroupMappingSettingsV1Response) StatusCode() int { +func (r ListReportTemplatesV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63658,120 +69709,124 @@ func (r SaveGroupMappingSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SaveGroupMappingSettingsV1Response) ContentType() string { +func (r ListReportTemplatesV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteGroupMappingByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// GetReportTemplateV2Alpha1Response200Headers the declared response headers of an HTTP 200 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response200Headers struct { + XRequestId openapi_types.UUID } -// DeleteGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// GetReportTemplateV2Alpha1Response400Headers the declared response headers of an HTTP 400 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGroupMappingByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response403Headers struct { - XRateLimitLimit *int32 +// GetReportTemplateV2Alpha1Response401Headers the declared response headers of an HTTP 401 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// GetReportTemplateV2Alpha1Response403Headers the declared response headers of an HTTP 403 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetReportTemplateV2Alpha1Response404Headers the declared response headers of an HTTP 404 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGroupMappingByIdV1 -type DeleteGroupMappingByIdV1Response500Headers struct { +// GetReportTemplateV2Alpha1Response500Headers the declared response headers of an HTTP 500 response for GetReportTemplateV2Alpha1 +type GetReportTemplateV2Alpha1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteGroupMappingByIdV1Response struct { +type GetReportTemplateV2Alpha1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *TemplateV2Alpha1 // 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 - // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequests + JSON404 *NotFoundV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteGroupMappingByIdV1Response204Headers + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetReportTemplateV2Alpha1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteGroupMappingByIdV1Response400Headers + Headers400 *GetReportTemplateV2Alpha1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteGroupMappingByIdV1Response401Headers + Headers401 *GetReportTemplateV2Alpha1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteGroupMappingByIdV1Response403Headers + Headers403 *GetReportTemplateV2Alpha1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteGroupMappingByIdV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteGroupMappingByIdV1Response429Headers + Headers404 *GetReportTemplateV2Alpha1Response404Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteGroupMappingByIdV1Response500Headers + Headers500 *GetReportTemplateV2Alpha1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetReportTemplateV2Alpha1Response) GetJSON200() *TemplateV2Alpha1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON400() *BadRequest { +func (r GetReportTemplateV2Alpha1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON401() *Unauthorized { +func (r GetReportTemplateV2Alpha1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON403() *Forbidden { +func (r GetReportTemplateV2Alpha1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON404() *NotFound { +func (r GetReportTemplateV2Alpha1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteGroupMappingByIdV1Response) GetJSON500() *InternalServerError { +func (r GetReportTemplateV2Alpha1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteGroupMappingByIdV1Response) GetBody() []byte { +func (r GetReportTemplateV2Alpha1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteGroupMappingByIdV1Response) Status() string { +func (r GetReportTemplateV2Alpha1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63779,7 +69834,7 @@ func (r DeleteGroupMappingByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteGroupMappingByIdV1Response) StatusCode() int { +func (r GetReportTemplateV2Alpha1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63787,113 +69842,99 @@ func (r DeleteGroupMappingByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteGroupMappingByIdV1Response) ContentType() string { +func (r GetReportTemplateV2Alpha1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGroupMappingByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response400Headers struct { +// GetAccessKeysV1Response200Headers the declared response headers of an HTTP 200 response for GetAccessKeysV1 +type GetAccessKeysV1Response200Headers struct { XRateLimitLimit *int32 } -// GetGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response401Headers struct { +// GetAccessKeysV1Response400Headers the declared response headers of an HTTP 400 response for GetAccessKeysV1 +type GetAccessKeysV1Response400Headers struct { XRateLimitLimit *int32 } -// GetGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response404Headers struct { +// GetAccessKeysV1Response401Headers the declared response headers of an HTTP 401 response for GetAccessKeysV1 +type GetAccessKeysV1Response401Headers struct { XRateLimitLimit *int32 } -// GetGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response429Headers struct { +// GetAccessKeysV1Response429Headers the declared response headers of an HTTP 429 response for GetAccessKeysV1 +type GetAccessKeysV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingByIdV1 -type GetGroupMappingByIdV1Response500Headers struct { +// GetAccessKeysV1Response500Headers the declared response headers of an HTTP 500 response for GetAccessKeysV1 +type GetAccessKeysV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGroupMappingByIdV1Response struct { +type GetAccessKeysV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GroupMappingResponseV1 + JSON200 *GetAccessKeysPaginatedResponseV1 // 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 *GetGroupMappingByIdV1Response200Headers + Headers200 *GetAccessKeysV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetGroupMappingByIdV1Response400Headers + Headers400 *GetAccessKeysV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGroupMappingByIdV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetGroupMappingByIdV1Response404Headers + Headers401 *GetAccessKeysV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGroupMappingByIdV1Response429Headers + Headers429 *GetAccessKeysV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGroupMappingByIdV1Response500Headers + Headers500 *GetAccessKeysV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON200() *GroupMappingResponseV1 { +func (r GetAccessKeysV1Response) GetJSON200() *GetAccessKeysPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON400() *BadRequest { +func (r GetAccessKeysV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON401() *Unauthorized { +func (r GetAccessKeysV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetAccessKeysV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGroupMappingByIdV1Response) GetJSON500() *InternalServerError { +func (r GetAccessKeysV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGroupMappingByIdV1Response) GetBody() []byte { +func (r GetAccessKeysV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGroupMappingByIdV1Response) Status() string { +func (r GetAccessKeysV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -63901,7 +69942,7 @@ func (r GetGroupMappingByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGroupMappingByIdV1Response) StatusCode() int { +func (r GetAccessKeysV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -63909,75 +69950,75 @@ func (r GetGroupMappingByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGroupMappingByIdV1Response) ContentType() string { +func (r GetAccessKeysV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateGroupMappingByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response200Headers struct { +// CreateAccessKeyV1Response201Headers the declared response headers of an HTTP 201 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response201Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response400Headers struct { +// CreateAccessKeyV1Response400Headers the declared response headers of an HTTP 400 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response401Headers struct { +// CreateAccessKeyV1Response401Headers the declared response headers of an HTTP 401 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response403Headers struct { +// CreateAccessKeyV1Response403Headers the declared response headers of an HTTP 403 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response404Headers struct { +// CreateAccessKeyV1Response409Headers the declared response headers of an HTTP 409 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response409Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response415Headers struct { +// CreateAccessKeyV1Response415Headers the declared response headers of an HTTP 415 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response415Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response422Headers struct { +// CreateAccessKeyV1Response422Headers the declared response headers of an HTTP 422 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response422Headers struct { XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response429Headers struct { +// CreateAccessKeyV1Response429Headers the declared response headers of an HTTP 429 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGroupMappingByIdV1 -type UpdateGroupMappingByIdV1Response500Headers struct { +// CreateAccessKeyV1Response500Headers the declared response headers of an HTTP 500 response for CreateAccessKeyV1 +type CreateAccessKeyV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateGroupMappingByIdV1Response struct { +type CreateAccessKeyV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GroupMappingResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *AccessKeyResponseV1 // 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 // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -63986,78 +70027,78 @@ type UpdateGroupMappingByIdV1Response 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 *UpdateGroupMappingByIdV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateAccessKeyV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateGroupMappingByIdV1Response400Headers + Headers400 *CreateAccessKeyV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateGroupMappingByIdV1Response401Headers + Headers401 *CreateAccessKeyV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateGroupMappingByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateGroupMappingByIdV1Response404Headers + Headers403 *CreateAccessKeyV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateAccessKeyV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateGroupMappingByIdV1Response415Headers + Headers415 *CreateAccessKeyV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateGroupMappingByIdV1Response422Headers + Headers422 *CreateAccessKeyV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateGroupMappingByIdV1Response429Headers + Headers429 *CreateAccessKeyV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateGroupMappingByIdV1Response500Headers + Headers500 *CreateAccessKeyV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON200() *GroupMappingResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateAccessKeyV1Response) GetJSON201() *AccessKeyResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON400() *BadRequest { +func (r CreateAccessKeyV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON401() *Unauthorized { +func (r CreateAccessKeyV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON403() *Forbidden { +func (r CreateAccessKeyV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateAccessKeyV1Response) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateAccessKeyV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateAccessKeyV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { +func (r CreateAccessKeyV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateGroupMappingByIdV1Response) GetJSON500() *InternalServerError { +func (r CreateAccessKeyV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateGroupMappingByIdV1Response) GetBody() []byte { +func (r CreateAccessKeyV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateGroupMappingByIdV1Response) Status() string { +func (r CreateAccessKeyV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64065,7 +70106,7 @@ func (r UpdateGroupMappingByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateGroupMappingByIdV1Response) StatusCode() int { +func (r CreateAccessKeyV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64073,99 +70114,134 @@ func (r UpdateGroupMappingByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateGroupMappingByIdV1Response) ContentType() string { +func (r CreateAccessKeyV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetIpFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFiltersV1 -type GetIpFiltersV1Response200Headers struct { +// DeleteAccessKeyByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// GetIpFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetIpFiltersV1 -type GetIpFiltersV1Response400Headers struct { +// DeleteAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetIpFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFiltersV1 -type GetIpFiltersV1Response401Headers struct { +// DeleteAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetIpFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFiltersV1 -type GetIpFiltersV1Response429Headers struct { +// DeleteAccessKeyByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// DeleteAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// DeleteAccessKeyByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// DeleteAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetIpFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFiltersV1 -type GetIpFiltersV1Response500Headers struct { +// DeleteAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteAccessKeyByIdV1 +type DeleteAccessKeyByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetIpFiltersV1Response struct { +type DeleteAccessKeyByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IpFiltersPaginatedResponseV1 // 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 + // 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetIpFiltersV1Response200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteAccessKeyByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetIpFiltersV1Response400Headers + Headers400 *DeleteAccessKeyByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetIpFiltersV1Response401Headers + Headers401 *DeleteAccessKeyByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteAccessKeyByIdV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteAccessKeyByIdV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *DeleteAccessKeyByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetIpFiltersV1Response429Headers + Headers429 *DeleteAccessKeyByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetIpFiltersV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetIpFiltersV1Response) GetJSON200() *IpFiltersPaginatedResponseV1 { - return r.JSON200 + Headers500 *DeleteAccessKeyByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetIpFiltersV1Response) GetJSON400() *BadRequest { +func (r DeleteAccessKeyByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetIpFiltersV1Response) GetJSON401() *Unauthorized { +func (r DeleteAccessKeyByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteAccessKeyByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteAccessKeyByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r DeleteAccessKeyByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetIpFiltersV1Response) GetJSON429() *TooManyRequests { +func (r DeleteAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetIpFiltersV1Response) GetJSON500() *InternalServerError { +func (r DeleteAccessKeyByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetIpFiltersV1Response) GetBody() []byte { +func (r DeleteAccessKeyByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetIpFiltersV1Response) Status() string { +func (r DeleteAccessKeyByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64173,7 +70249,7 @@ func (r GetIpFiltersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetIpFiltersV1Response) StatusCode() int { +func (r DeleteAccessKeyByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64181,66 +70257,202 @@ func (r GetIpFiltersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetIpFiltersV1Response) ContentType() string { +func (r DeleteAccessKeyByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateIpFilterV1Response201Headers the declared response headers of an HTTP 201 response for CreateIpFilterV1 -type CreateIpFilterV1Response201Headers struct { +// GetAccessKeyByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateIpFilterV1Response400Headers the declared response headers of an HTTP 400 response for CreateIpFilterV1 -type CreateIpFilterV1Response400Headers struct { +// GetAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateIpFilterV1Response401Headers the declared response headers of an HTTP 401 response for CreateIpFilterV1 -type CreateIpFilterV1Response401Headers struct { +// GetAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateIpFilterV1Response409Headers the declared response headers of an HTTP 409 response for CreateIpFilterV1 -type CreateIpFilterV1Response409Headers struct { +// GetAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateIpFilterV1Response415Headers the declared response headers of an HTTP 415 response for CreateIpFilterV1 -type CreateIpFilterV1Response415Headers struct { +// GetAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// CreateIpFilterV1Response422Headers the declared response headers of an HTTP 422 response for CreateIpFilterV1 -type CreateIpFilterV1Response422Headers struct { +// GetAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetAccessKeyByIdV1 +type GetAccessKeyByIdV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetAccessKeyByIdV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *AccessKeyResponseV1 + // 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 *GetAccessKeyByIdV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetAccessKeyByIdV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetAccessKeyByIdV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetAccessKeyByIdV1Response404Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetAccessKeyByIdV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAccessKeyByIdV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON200() *AccessKeyResponseV1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAccessKeyByIdV1Response) GetJSON500() *InternalServerError { + return r.JSON500 +} + +// GetBody returns the raw response body bytes +func (r GetAccessKeyByIdV1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r GetAccessKeyByIdV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAccessKeyByIdV1Response) 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 GetAccessKeyByIdV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// UpdateAccessKeyByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateIpFilterV1Response429Headers the declared response headers of an HTTP 429 response for CreateIpFilterV1 -type CreateIpFilterV1Response429Headers struct { +// UpdateAccessKeyByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response400Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response401Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// UpdateAccessKeyByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateIpFilterV1Response500Headers the declared response headers of an HTTP 500 response for CreateIpFilterV1 -type CreateIpFilterV1Response500Headers struct { +// UpdateAccessKeyByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateAccessKeyByIdV1 +type UpdateAccessKeyByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateIpFilterV1Response struct { +type UpdateAccessKeyByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *IpFilterResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *AccessKeyResponseV1 // 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 // JSON415 the response for an HTTP 415 `application/json` response @@ -64251,71 +70463,85 @@ type CreateIpFilterV1Response 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 *CreateIpFilterV1Response201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateAccessKeyByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateIpFilterV1Response400Headers + Headers400 *UpdateAccessKeyByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateIpFilterV1Response401Headers + Headers401 *UpdateAccessKeyByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateAccessKeyByIdV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateAccessKeyByIdV1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateIpFilterV1Response409Headers + Headers409 *UpdateAccessKeyByIdV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateIpFilterV1Response415Headers + Headers415 *UpdateAccessKeyByIdV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateIpFilterV1Response422Headers + Headers422 *UpdateAccessKeyByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateIpFilterV1Response429Headers + Headers429 *UpdateAccessKeyByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateIpFilterV1Response500Headers + Headers500 *UpdateAccessKeyByIdV1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateIpFilterV1Response) GetJSON201() *IpFilterResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateAccessKeyByIdV1Response) GetJSON200() *AccessKeyResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateIpFilterV1Response) GetJSON400() *BadRequest { +func (r UpdateAccessKeyByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateIpFilterV1Response) GetJSON401() *Unauthorized { +func (r UpdateAccessKeyByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateAccessKeyByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateAccessKeyByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateIpFilterV1Response) GetJSON409() *Conflict { +func (r UpdateAccessKeyByIdV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateIpFilterV1Response) GetJSON415() *UnsupportedMediaType { +func (r UpdateAccessKeyByIdV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateIpFilterV1Response) GetJSON422() *UnprocessableEntity { +func (r UpdateAccessKeyByIdV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateIpFilterV1Response) GetJSON429() *TooManyRequests { +func (r UpdateAccessKeyByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateIpFilterV1Response) GetJSON500() *InternalServerError { +func (r UpdateAccessKeyByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateIpFilterV1Response) GetBody() []byte { +func (r UpdateAccessKeyByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateIpFilterV1Response) Status() string { +func (r UpdateAccessKeyByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64323,7 +70549,7 @@ func (r CreateIpFilterV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateIpFilterV1Response) StatusCode() int { +func (r UpdateAccessKeyByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64331,42 +70557,49 @@ func (r CreateIpFilterV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateIpFilterV1Response) ContentType() string { +func (r UpdateAccessKeyByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetIpFiltersSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFiltersSettingsV1 -type GetIpFiltersSettingsV1Response200Headers struct { +// GetCaptureStorageConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for GetCaptureStorageConfigurationV1 +type GetCaptureStorageConfigurationV1Response200Headers struct { XRateLimitLimit *int32 } -// GetIpFiltersSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFiltersSettingsV1 -type GetIpFiltersSettingsV1Response401Headers struct { +// GetCaptureStorageConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for GetCaptureStorageConfigurationV1 +type GetCaptureStorageConfigurationV1Response400Headers struct { XRateLimitLimit *int32 } -// GetIpFiltersSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFiltersSettingsV1 -type GetIpFiltersSettingsV1Response429Headers struct { +// GetCaptureStorageConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for GetCaptureStorageConfigurationV1 +type GetCaptureStorageConfigurationV1Response401Headers struct { + XRateLimitLimit *int32 +} + +// GetCaptureStorageConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for GetCaptureStorageConfigurationV1 +type GetCaptureStorageConfigurationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetIpFiltersSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFiltersSettingsV1 -type GetIpFiltersSettingsV1Response500Headers struct { +// GetCaptureStorageConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for GetCaptureStorageConfigurationV1 +type GetCaptureStorageConfigurationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetIpFiltersSettingsV1Response struct { +type GetCaptureStorageConfigurationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IpFiltersSettingsV1 + JSON200 *CaptureStorageConfigurationResponseV1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON429 the response for an HTTP 429 `application/json` response @@ -64374,42 +70607,49 @@ type GetIpFiltersSettingsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetIpFiltersSettingsV1Response200Headers + Headers200 *GetCaptureStorageConfigurationV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetCaptureStorageConfigurationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetIpFiltersSettingsV1Response401Headers + Headers401 *GetCaptureStorageConfigurationV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetIpFiltersSettingsV1Response429Headers + Headers429 *GetCaptureStorageConfigurationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetIpFiltersSettingsV1Response500Headers + Headers500 *GetCaptureStorageConfigurationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetIpFiltersSettingsV1Response) GetJSON200() *IpFiltersSettingsV1 { +func (r GetCaptureStorageConfigurationV1Response) GetJSON200() *CaptureStorageConfigurationResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetCaptureStorageConfigurationV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetIpFiltersSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetCaptureStorageConfigurationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetIpFiltersSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetCaptureStorageConfigurationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetIpFiltersSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetCaptureStorageConfigurationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetIpFiltersSettingsV1Response) GetBody() []byte { +func (r GetCaptureStorageConfigurationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetIpFiltersSettingsV1Response) Status() string { +func (r GetCaptureStorageConfigurationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64417,7 +70657,7 @@ func (r GetIpFiltersSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetIpFiltersSettingsV1Response) StatusCode() int { +func (r GetCaptureStorageConfigurationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64425,75 +70665,68 @@ func (r GetIpFiltersSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetIpFiltersSettingsV1Response) ContentType() string { +func (r GetCaptureStorageConfigurationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// SaveIpFiltersSettingsV1Response200Headers the declared response headers of an HTTP 200 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// SaveIpFiltersSettingsV1Response400Headers the declared response headers of an HTTP 400 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response400Headers struct { +// UpdateCaptureStorageConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response200Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response401Headers the declared response headers of an HTTP 401 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response401Headers struct { +// UpdateCaptureStorageConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response400Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response404Headers the declared response headers of an HTTP 404 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response404Headers struct { +// UpdateCaptureStorageConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response401Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response409Headers the declared response headers of an HTTP 409 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response409Headers struct { +// UpdateCaptureStorageConfigurationV1Response404Headers the declared response headers of an HTTP 404 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response404Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response415Headers the declared response headers of an HTTP 415 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response415Headers struct { +// UpdateCaptureStorageConfigurationV1Response415Headers the declared response headers of an HTTP 415 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response415Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response422Headers the declared response headers of an HTTP 422 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response422Headers struct { +// UpdateCaptureStorageConfigurationV1Response422Headers the declared response headers of an HTTP 422 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response422Headers struct { XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response429Headers the declared response headers of an HTTP 429 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response429Headers struct { +// UpdateCaptureStorageConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// SaveIpFiltersSettingsV1Response500Headers the declared response headers of an HTTP 500 response for SaveIpFiltersSettingsV1 -type SaveIpFiltersSettingsV1Response500Headers struct { +// UpdateCaptureStorageConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for UpdateCaptureStorageConfigurationV1 +type UpdateCaptureStorageConfigurationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type SaveIpFiltersSettingsV1Response struct { +type UpdateCaptureStorageConfigurationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IpFiltersSettingsV1 + JSON200 *CaptureStorageConfigurationResponseV1 // 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 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -64503,77 +70736,70 @@ type SaveIpFiltersSettingsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *SaveIpFiltersSettingsV1Response200Headers + Headers200 *UpdateCaptureStorageConfigurationV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *SaveIpFiltersSettingsV1Response400Headers + Headers400 *UpdateCaptureStorageConfigurationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *SaveIpFiltersSettingsV1Response401Headers + Headers401 *UpdateCaptureStorageConfigurationV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *SaveIpFiltersSettingsV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *SaveIpFiltersSettingsV1Response409Headers + Headers404 *UpdateCaptureStorageConfigurationV1Response404Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *SaveIpFiltersSettingsV1Response415Headers + Headers415 *UpdateCaptureStorageConfigurationV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *SaveIpFiltersSettingsV1Response422Headers + Headers422 *UpdateCaptureStorageConfigurationV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *SaveIpFiltersSettingsV1Response429Headers + Headers429 *UpdateCaptureStorageConfigurationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *SaveIpFiltersSettingsV1Response500Headers + Headers500 *UpdateCaptureStorageConfigurationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON200() *IpFiltersSettingsV1 { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON200() *CaptureStorageConfigurationResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON400() *BadRequest { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON401() *Unauthorized { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON404() *NotFound { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON415() *UnsupportedMediaType { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON422() *UnprocessableEntity { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON429() *TooManyRequests { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r SaveIpFiltersSettingsV1Response) GetJSON500() *InternalServerError { +func (r UpdateCaptureStorageConfigurationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r SaveIpFiltersSettingsV1Response) GetBody() []byte { +func (r UpdateCaptureStorageConfigurationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r SaveIpFiltersSettingsV1Response) Status() string { +func (r UpdateCaptureStorageConfigurationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64581,7 +70807,7 @@ func (r SaveIpFiltersSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SaveIpFiltersSettingsV1Response) StatusCode() int { +func (r UpdateCaptureStorageConfigurationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64589,134 +70815,113 @@ func (r SaveIpFiltersSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SaveIpFiltersSettingsV1Response) ContentType() string { +func (r UpdateCaptureStorageConfigurationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteIpFilterByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteIpFilterByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// DeleteIpFilterByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response401Headers struct { +// GetUserDeactivationConfigurationV1Response200Headers the declared response headers of an HTTP 200 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteIpFilterByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response403Headers struct { +// GetUserDeactivationConfigurationV1Response400Headers the declared response headers of an HTTP 400 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteIpFilterByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response404Headers struct { +// GetUserDeactivationConfigurationV1Response401Headers the declared response headers of an HTTP 401 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteIpFilterByIdV1Response409Headers the declared response headers of an HTTP 409 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response409Headers struct { +// GetUserDeactivationConfigurationV1Response404Headers the declared response headers of an HTTP 404 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteIpFilterByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response429Headers struct { +// GetUserDeactivationConfigurationV1Response429Headers the declared response headers of an HTTP 429 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteIpFilterByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteIpFilterByIdV1 -type DeleteIpFilterByIdV1Response500Headers struct { +// GetUserDeactivationConfigurationV1Response500Headers the declared response headers of an HTTP 500 response for GetUserDeactivationConfigurationV1 +type GetUserDeactivationConfigurationV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteIpFilterByIdV1Response struct { +type GetUserDeactivationConfigurationV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *UserDeactivationConfigurationResponseV1 // 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 *DeleteIpFilterByIdV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetUserDeactivationConfigurationV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteIpFilterByIdV1Response400Headers + Headers400 *GetUserDeactivationConfigurationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteIpFilterByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteIpFilterByIdV1Response403Headers + Headers401 *GetUserDeactivationConfigurationV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteIpFilterByIdV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *DeleteIpFilterByIdV1Response409Headers + Headers404 *GetUserDeactivationConfigurationV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteIpFilterByIdV1Response429Headers + Headers429 *GetUserDeactivationConfigurationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteIpFilterByIdV1Response500Headers + Headers500 *GetUserDeactivationConfigurationV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetUserDeactivationConfigurationV1Response) GetJSON200() *UserDeactivationConfigurationResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON400() *BadRequest { +func (r GetUserDeactivationConfigurationV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON401() *Unauthorized { +func (r GetUserDeactivationConfigurationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON404() *NotFound { +func (r GetUserDeactivationConfigurationV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetUserDeactivationConfigurationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteIpFilterByIdV1Response) GetJSON500() *InternalServerError { +func (r GetUserDeactivationConfigurationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteIpFilterByIdV1Response) GetBody() []byte { +func (r GetUserDeactivationConfigurationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteIpFilterByIdV1Response) Status() string { +func (r GetUserDeactivationConfigurationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64724,7 +70929,7 @@ func (r DeleteIpFilterByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteIpFilterByIdV1Response) StatusCode() int { +func (r GetUserDeactivationConfigurationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64732,113 +70937,127 @@ func (r DeleteIpFilterByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteIpFilterByIdV1Response) ContentType() string { +func (r GetUserDeactivationConfigurationV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetIpFilterByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response200Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetIpFilterByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response400Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetIpFilterByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response401Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetIpFilterByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response404Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetIpFilterByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response429Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateUserDeactivationConfigurationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetIpFilterByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFilterByIdV1 -type GetIpFilterByIdV1Response500Headers struct { +// UpdateUserDeactivationConfigurationByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateUserDeactivationConfigurationByIdV1 +type UpdateUserDeactivationConfigurationByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetIpFilterByIdV1Response struct { +type UpdateUserDeactivationConfigurationByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IpFilterResponseV1 + JSON200 *UserDeactivationConfigurationResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // 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 *GetIpFilterByIdV1Response200Headers + Headers200 *UpdateUserDeactivationConfigurationByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetIpFilterByIdV1Response400Headers + Headers400 *UpdateUserDeactivationConfigurationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetIpFilterByIdV1Response401Headers + Headers401 *UpdateUserDeactivationConfigurationByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetIpFilterByIdV1Response404Headers + Headers404 *UpdateUserDeactivationConfigurationByIdV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateUserDeactivationConfigurationByIdV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetIpFilterByIdV1Response429Headers + Headers429 *UpdateUserDeactivationConfigurationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetIpFilterByIdV1Response500Headers + Headers500 *UpdateUserDeactivationConfigurationByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON200() *IpFilterResponseV1 { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON200() *UserDeactivationConfigurationResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON400() *BadRequest { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON401() *Unauthorized { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON404() *NotFound { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON429() *TooManyRequests { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetIpFilterByIdV1Response) GetJSON500() *InternalServerError { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetIpFilterByIdV1Response) GetBody() []byte { +func (r UpdateUserDeactivationConfigurationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetIpFilterByIdV1Response) Status() string { +func (r UpdateUserDeactivationConfigurationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64846,7 +71065,7 @@ func (r GetIpFilterByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetIpFilterByIdV1Response) StatusCode() int { +func (r UpdateUserDeactivationConfigurationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -64854,141 +71073,145 @@ func (r GetIpFilterByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetIpFilterByIdV1Response) ContentType() string { +func (r UpdateUserDeactivationConfigurationByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateIpFilterV1Response200Headers the declared response headers of an HTTP 200 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateIpFilterV1Response400Headers the declared response headers of an HTTP 400 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response400Headers struct { - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response200Headers the declared response headers of an HTTP 200 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response401Headers the declared response headers of an HTTP 401 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response401Headers struct { - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response400Headers the declared response headers of an HTTP 400 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response403Headers the declared response headers of an HTTP 403 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response403Headers struct { - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response401Headers the declared response headers of an HTTP 401 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response404Headers the declared response headers of an HTTP 404 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response404Headers struct { - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response403Headers the declared response headers of an HTTP 403 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response409Headers the declared response headers of an HTTP 409 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response409Headers struct { - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response404Headers the declared response headers of an HTTP 404 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response429Headers the declared response headers of an HTTP 429 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetDefaultNotificationTemplateV1Response429Headers the declared response headers of an HTTP 429 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateIpFilterV1Response500Headers the declared response headers of an HTTP 500 response for UpdateIpFilterV1 -type UpdateIpFilterV1Response500Headers struct { +// GetDefaultNotificationTemplateV1Response500Headers the declared response headers of an HTTP 500 response for GetDefaultNotificationTemplateV1 +type GetDefaultNotificationTemplateV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateIpFilterV1Response struct { +type GetDefaultNotificationTemplateV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IpFilterResponseV1 + JSON200 *GetDefaultNotificationTemplateResponseV1 // 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 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + 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 + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateIpFilterV1Response200Headers + Headers200 *GetDefaultNotificationTemplateV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateIpFilterV1Response400Headers + Headers400 *GetDefaultNotificationTemplateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateIpFilterV1Response401Headers + Headers401 *GetDefaultNotificationTemplateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateIpFilterV1Response403Headers + Headers403 *GetDefaultNotificationTemplateV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateIpFilterV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateIpFilterV1Response409Headers + Headers404 *GetDefaultNotificationTemplateV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateIpFilterV1Response429Headers + Headers429 *GetDefaultNotificationTemplateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateIpFilterV1Response500Headers + Headers500 *GetDefaultNotificationTemplateV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON200() *IpFilterResponseV1 { +func (r GetDefaultNotificationTemplateV1Response) GetJSON200() *GetDefaultNotificationTemplateResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON400() *BadRequest { +func (r GetDefaultNotificationTemplateV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON401() *Unauthorized { +func (r GetDefaultNotificationTemplateV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON403() *Forbidden { +func (r GetDefaultNotificationTemplateV1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON404() *NotFound { +func (r GetDefaultNotificationTemplateV1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON429() *TooManyRequests { +func (r GetDefaultNotificationTemplateV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateIpFilterV1Response) GetJSON500() *InternalServerError { +func (r GetDefaultNotificationTemplateV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateIpFilterV1Response) GetBody() []byte { +func (r GetDefaultNotificationTemplateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateIpFilterV1Response) Status() string { +func (r GetDefaultNotificationTemplateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -64996,7 +71219,7 @@ func (r UpdateIpFilterV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateIpFilterV1Response) StatusCode() int { +func (r GetDefaultNotificationTemplateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65004,99 +71227,113 @@ func (r UpdateIpFilterV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateIpFilterV1Response) ContentType() string { +func (r GetDefaultNotificationTemplateV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetNotificationChannelsResponse200Headers the declared response headers of an HTTP 200 response for GetNotificationChannels -type GetNotificationChannelsResponse200Headers struct { +// GetDefaultRoleByDisplayNameV1Response200Headers the declared response headers of an HTTP 200 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response200Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelsResponse400Headers the declared response headers of an HTTP 400 response for GetNotificationChannels -type GetNotificationChannelsResponse400Headers struct { +// GetDefaultRoleByDisplayNameV1Response400Headers the declared response headers of an HTTP 400 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response400Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelsResponse401Headers the declared response headers of an HTTP 401 response for GetNotificationChannels -type GetNotificationChannelsResponse401Headers struct { +// GetDefaultRoleByDisplayNameV1Response401Headers the declared response headers of an HTTP 401 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response401Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelsResponse429Headers the declared response headers of an HTTP 429 response for GetNotificationChannels -type GetNotificationChannelsResponse429Headers struct { +// GetDefaultRoleByDisplayNameV1Response404Headers the declared response headers of an HTTP 404 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetDefaultRoleByDisplayNameV1Response429Headers the declared response headers of an HTTP 429 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetNotificationChannelsResponse500Headers the declared response headers of an HTTP 500 response for GetNotificationChannels -type GetNotificationChannelsResponse500Headers struct { +// GetDefaultRoleByDisplayNameV1Response500Headers the declared response headers of an HTTP 500 response for GetDefaultRoleByDisplayNameV1 +type GetDefaultRoleByDisplayNameV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetNotificationChannelsResponse struct { +type GetDefaultRoleByDisplayNameV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetNotificationChannelsPaginatedResponseV1 + JSON200 *DefaultRoleResponseV1 // 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 *GetNotificationChannelsResponse200Headers + Headers200 *GetDefaultRoleByDisplayNameV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetNotificationChannelsResponse400Headers + Headers400 *GetDefaultRoleByDisplayNameV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetNotificationChannelsResponse401Headers + Headers401 *GetDefaultRoleByDisplayNameV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetDefaultRoleByDisplayNameV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetNotificationChannelsResponse429Headers + Headers429 *GetDefaultRoleByDisplayNameV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetNotificationChannelsResponse500Headers + Headers500 *GetDefaultRoleByDisplayNameV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetNotificationChannelsResponse) GetJSON200() *GetNotificationChannelsPaginatedResponseV1 { +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON200() *DefaultRoleResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetNotificationChannelsResponse) GetJSON400() *BadRequest { +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetNotificationChannelsResponse) GetJSON401() *Unauthorized { +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetNotificationChannelsResponse) GetJSON429() *TooManyRequests { +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetNotificationChannelsResponse) GetJSON500() *InternalServerError { +func (r GetDefaultRoleByDisplayNameV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetNotificationChannelsResponse) GetBody() []byte { +func (r GetDefaultRoleByDisplayNameV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetNotificationChannelsResponse) Status() string { +func (r GetDefaultRoleByDisplayNameV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65104,7 +71341,7 @@ func (r GetNotificationChannelsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationChannelsResponse) StatusCode() int { +func (r GetDefaultRoleByDisplayNameV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65112,141 +71349,99 @@ func (r GetNotificationChannelsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationChannelsResponse) ContentType() string { +func (r GetDefaultRoleByDisplayNameV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateNotificationChannelResponse201Headers the declared response headers of an HTTP 201 response for CreateNotificationChannel -type CreateNotificationChannelResponse201Headers struct { - XRateLimitLimit *int32 -} - -// CreateNotificationChannelResponse400Headers the declared response headers of an HTTP 400 response for CreateNotificationChannel -type CreateNotificationChannelResponse400Headers struct { - XRateLimitLimit *int32 -} - -// CreateNotificationChannelResponse401Headers the declared response headers of an HTTP 401 response for CreateNotificationChannel -type CreateNotificationChannelResponse401Headers struct { - XRateLimitLimit *int32 -} - -// CreateNotificationChannelResponse403Headers the declared response headers of an HTTP 403 response for CreateNotificationChannel -type CreateNotificationChannelResponse403Headers struct { +// GetGlobalSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalSsoSettingsV1 +type GetGlobalSsoSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateNotificationChannelResponse415Headers the declared response headers of an HTTP 415 response for CreateNotificationChannel -type CreateNotificationChannelResponse415Headers struct { +// GetGlobalSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalSsoSettingsV1 +type GetGlobalSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateNotificationChannelResponse422Headers the declared response headers of an HTTP 422 response for CreateNotificationChannel -type CreateNotificationChannelResponse422Headers struct { +// GetGlobalSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetGlobalSsoSettingsV1 +type GetGlobalSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateNotificationChannelResponse429Headers the declared response headers of an HTTP 429 response for CreateNotificationChannel -type CreateNotificationChannelResponse429Headers struct { +// GetGlobalSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalSsoSettingsV1 +type GetGlobalSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateNotificationChannelResponse500Headers the declared response headers of an HTTP 500 response for CreateNotificationChannel -type CreateNotificationChannelResponse500Headers struct { +// GetGlobalSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalSsoSettingsV1 +type GetGlobalSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateNotificationChannelResponse struct { +type GetGlobalSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *NotificationChannelResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GlobalSsoSettingsResponseV1 // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response JSON403 *Forbidden - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType - // 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 *CreateNotificationChannelResponse201Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateNotificationChannelResponse400Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetGlobalSsoSettingsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateNotificationChannelResponse401Headers + Headers401 *GetGlobalSsoSettingsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateNotificationChannelResponse403Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateNotificationChannelResponse415Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateNotificationChannelResponse422Headers + Headers403 *GetGlobalSsoSettingsV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateNotificationChannelResponse429Headers + Headers429 *GetGlobalSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateNotificationChannelResponse500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON201() *NotificationChannelResponseV1 { - return r.JSON201 + Headers500 *GetGlobalSsoSettingsV1Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON400() *BadRequest { - return r.JSON400 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetGlobalSsoSettingsV1Response) GetJSON200() *GlobalSsoSettingsResponseV1 { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON401() *Unauthorized { +func (r GetGlobalSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON403() *Forbidden { +func (r GetGlobalSsoSettingsV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON429() *TooManyRequests { +func (r GetGlobalSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateNotificationChannelResponse) GetJSON500() *InternalServerError { +func (r GetGlobalSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateNotificationChannelResponse) GetBody() []byte { +func (r GetGlobalSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateNotificationChannelResponse) Status() string { +func (r GetGlobalSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65254,7 +71449,7 @@ func (r CreateNotificationChannelResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateNotificationChannelResponse) StatusCode() int { +func (r GetGlobalSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65262,106 +71457,127 @@ func (r CreateNotificationChannelResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateNotificationChannelResponse) ContentType() string { +func (r GetGlobalSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteNotificationChannelByIdResponse204Headers the declared response headers of an HTTP 204 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse204Headers struct { +// UpdateGlobalSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse400Headers struct { +// UpdateGlobalSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse401Headers struct { +// UpdateGlobalSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse404Headers struct { +// UpdateGlobalSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse429Headers struct { +// UpdateGlobalSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// UpdateGlobalSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteNotificationChannelById -type DeleteNotificationChannelByIdResponse500Headers struct { +// UpdateGlobalSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGlobalSsoSettingsV1 +type UpdateGlobalSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteNotificationChannelByIdResponse struct { +type UpdateGlobalSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GlobalSsoSettingsResponseV1 // 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 + // 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 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteNotificationChannelByIdResponse204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateGlobalSsoSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteNotificationChannelByIdResponse400Headers + Headers400 *UpdateGlobalSsoSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteNotificationChannelByIdResponse401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteNotificationChannelByIdResponse404Headers + Headers401 *UpdateGlobalSsoSettingsV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateGlobalSsoSettingsV1Response403Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *UpdateGlobalSsoSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteNotificationChannelByIdResponse429Headers + Headers429 *UpdateGlobalSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteNotificationChannelByIdResponse500Headers + Headers500 *UpdateGlobalSsoSettingsV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateGlobalSsoSettingsV1Response) GetJSON200() *GlobalSsoSettingsResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteNotificationChannelByIdResponse) GetJSON400() *BadRequest { +func (r UpdateGlobalSsoSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteNotificationChannelByIdResponse) GetJSON401() *Unauthorized { +func (r UpdateGlobalSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteNotificationChannelByIdResponse) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateGlobalSsoSettingsV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r UpdateGlobalSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { +func (r UpdateGlobalSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteNotificationChannelByIdResponse) GetJSON500() *InternalServerError { +func (r UpdateGlobalSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteNotificationChannelByIdResponse) GetBody() []byte { +func (r UpdateGlobalSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteNotificationChannelByIdResponse) Status() string { +func (r UpdateGlobalSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65369,7 +71585,7 @@ func (r DeleteNotificationChannelByIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteNotificationChannelByIdResponse) StatusCode() int { +func (r UpdateGlobalSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65377,127 +71593,99 @@ func (r DeleteNotificationChannelByIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteNotificationChannelByIdResponse) ContentType() string { +func (r UpdateGlobalSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetNotificationChannelByIdResponse200Headers the declared response headers of an HTTP 200 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse200Headers struct { - XRateLimitLimit *int32 -} - -// GetNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse400Headers struct { - XRateLimitLimit *int32 -} - -// GetNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse401Headers struct { +// GetGroupMappingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingsV1 +type GetGroupMappingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelByIdResponse403Headers the declared response headers of an HTTP 403 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse403Headers struct { +// GetGroupMappingsV1Response400Headers the declared response headers of an HTTP 400 response for GetGroupMappingsV1 +type GetGroupMappingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse404Headers struct { +// GetGroupMappingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingsV1 +type GetGroupMappingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse429Headers struct { +// GetGroupMappingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingsV1 +type GetGroupMappingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for GetNotificationChannelById -type GetNotificationChannelByIdResponse500Headers struct { +// GetGroupMappingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingsV1 +type GetGroupMappingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetNotificationChannelByIdResponse struct { +type GetGroupMappingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *NotificationChannelResponseV1 + JSON200 *GroupMappingsPaginatedResponseV1 // 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 *GetNotificationChannelByIdResponse200Headers + Headers200 *GetGroupMappingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetNotificationChannelByIdResponse400Headers + Headers400 *GetGroupMappingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetNotificationChannelByIdResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetNotificationChannelByIdResponse403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetNotificationChannelByIdResponse404Headers + Headers401 *GetGroupMappingsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetNotificationChannelByIdResponse429Headers + Headers429 *GetGroupMappingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetNotificationChannelByIdResponse500Headers + Headers500 *GetGroupMappingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON200() *NotificationChannelResponseV1 { +func (r GetGroupMappingsV1Response) GetJSON200() *GroupMappingsPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON400() *BadRequest { +func (r GetGroupMappingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON401() *Unauthorized { +func (r GetGroupMappingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { +func (r GetGroupMappingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetNotificationChannelByIdResponse) GetJSON500() *InternalServerError { +func (r GetGroupMappingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetNotificationChannelByIdResponse) GetBody() []byte { +func (r GetGroupMappingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetNotificationChannelByIdResponse) Status() string { +func (r GetGroupMappingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65505,7 +71693,7 @@ func (r GetNotificationChannelByIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationChannelByIdResponse) StatusCode() int { +func (r GetGroupMappingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65513,73 +71701,66 @@ func (r GetNotificationChannelByIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationChannelByIdResponse) ContentType() string { +func (r GetGroupMappingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateNotificationChannelByIdResponse200Headers the declared response headers of an HTTP 200 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse400Headers struct { +// CreateGroupMappingV1Response201Headers the declared response headers of an HTTP 201 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response201Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse401Headers struct { +// CreateGroupMappingV1Response400Headers the declared response headers of an HTTP 400 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse404Headers struct { +// CreateGroupMappingV1Response401Headers the declared response headers of an HTTP 401 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse409Headers the declared response headers of an HTTP 409 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse409Headers struct { +// CreateGroupMappingV1Response409Headers the declared response headers of an HTTP 409 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response409Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse415Headers the declared response headers of an HTTP 415 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse415Headers struct { +// CreateGroupMappingV1Response415Headers the declared response headers of an HTTP 415 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response415Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse422Headers the declared response headers of an HTTP 422 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse422Headers struct { +// CreateGroupMappingV1Response422Headers the declared response headers of an HTTP 422 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response422Headers struct { XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse429Headers struct { +// CreateGroupMappingV1Response429Headers the declared response headers of an HTTP 429 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for UpdateNotificationChannelById -type UpdateNotificationChannelByIdResponse500Headers struct { +// CreateGroupMappingV1Response500Headers the declared response headers of an HTTP 500 response for CreateGroupMappingV1 +type CreateGroupMappingV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateNotificationChannelByIdResponse struct { +type CreateGroupMappingV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *NotificationChannelResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *GroupMappingResponseV1 // 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 // JSON409 the response for an HTTP 409 `application/json` response JSON409 *Conflict // JSON415 the response for an HTTP 415 `application/json` response @@ -65590,78 +71771,71 @@ type UpdateNotificationChannelByIdResponse 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 *UpdateNotificationChannelByIdResponse200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateGroupMappingV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateNotificationChannelByIdResponse400Headers + Headers400 *CreateGroupMappingV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateNotificationChannelByIdResponse401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateNotificationChannelByIdResponse404Headers + Headers401 *CreateGroupMappingV1Response401Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateNotificationChannelByIdResponse409Headers + Headers409 *CreateGroupMappingV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateNotificationChannelByIdResponse415Headers + Headers415 *CreateGroupMappingV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateNotificationChannelByIdResponse422Headers + Headers422 *CreateGroupMappingV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateNotificationChannelByIdResponse429Headers + Headers429 *CreateGroupMappingV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateNotificationChannelByIdResponse500Headers + Headers500 *CreateGroupMappingV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON200() *NotificationChannelResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateGroupMappingV1Response) GetJSON201() *GroupMappingResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON400() *BadRequest { +func (r CreateGroupMappingV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON401() *Unauthorized { +func (r CreateGroupMappingV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON409() *Conflict { +func (r CreateGroupMappingV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON415() *UnsupportedMediaType { +func (r CreateGroupMappingV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON422() *UnprocessableEntity { +func (r CreateGroupMappingV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { +func (r CreateGroupMappingV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateNotificationChannelByIdResponse) GetJSON500() *InternalServerError { +func (r CreateGroupMappingV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateNotificationChannelByIdResponse) GetBody() []byte { +func (r CreateGroupMappingV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateNotificationChannelByIdResponse) Status() string { +func (r CreateGroupMappingV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65669,7 +71843,7 @@ func (r UpdateNotificationChannelByIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateNotificationChannelByIdResponse) StatusCode() int { +func (r CreateGroupMappingV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65677,111 +71851,85 @@ func (r UpdateNotificationChannelByIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateNotificationChannelByIdResponse) ContentType() string { +func (r CreateGroupMappingV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetNotificationTemplatesV1Response200Headers the declared response headers of an HTTP 200 response for GetNotificationTemplatesV1 -type GetNotificationTemplatesV1Response200Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -// GetNotificationTemplatesV1Response400Headers the declared response headers of an HTTP 400 response for GetNotificationTemplatesV1 -type GetNotificationTemplatesV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingSettingsV1 +type GetGroupMappingSettingsV1Response200Headers struct { + XRateLimitLimit *int32 } -// GetNotificationTemplatesV1Response401Headers the declared response headers of an HTTP 401 response for GetNotificationTemplatesV1 -type GetNotificationTemplatesV1Response401Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingSettingsV1 +type GetGroupMappingSettingsV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetNotificationTemplatesV1Response429Headers the declared response headers of an HTTP 429 response for GetNotificationTemplatesV1 -type GetNotificationTemplatesV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingSettingsV1 +type GetGroupMappingSettingsV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetNotificationTemplatesV1Response500Headers the declared response headers of an HTTP 500 response for GetNotificationTemplatesV1 -type GetNotificationTemplatesV1Response500Headers struct { +// GetGroupMappingSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingSettingsV1 +type GetGroupMappingSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetNotificationTemplatesV1Response struct { +type GetGroupMappingSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetNotificationTemplatesPaginatedResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON200 *GroupMappingSettingsV1 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetNotificationTemplatesV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetNotificationTemplatesV1Response400Headers + Headers200 *GetGroupMappingSettingsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetNotificationTemplatesV1Response401Headers + Headers401 *GetGroupMappingSettingsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetNotificationTemplatesV1Response429Headers + Headers429 *GetGroupMappingSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetNotificationTemplatesV1Response500Headers + Headers500 *GetGroupMappingSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetNotificationTemplatesV1Response) GetJSON200() *GetNotificationTemplatesPaginatedResponseV1 { +func (r GetGroupMappingSettingsV1Response) GetJSON200() *GroupMappingSettingsV1 { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetNotificationTemplatesV1Response) GetJSON400() *BadRequestV2 { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetNotificationTemplatesV1Response) GetJSON401() *UnauthorizedV2 { +func (r GetGroupMappingSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetNotificationTemplatesV1Response) GetJSON429() *TooManyRequestsV2 { +func (r GetGroupMappingSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetNotificationTemplatesV1Response) GetJSON500() *InternalServerErrorV2 { +func (r GetGroupMappingSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetNotificationTemplatesV1Response) GetBody() []byte { +func (r GetGroupMappingSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetNotificationTemplatesV1Response) Status() string { +func (r GetGroupMappingSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65789,7 +71937,7 @@ func (r GetNotificationTemplatesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationTemplatesV1Response) StatusCode() int { +func (r GetGroupMappingSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65797,180 +71945,141 @@ func (r GetNotificationTemplatesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationTemplatesV1Response) ContentType() string { +func (r GetGroupMappingSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateNotificationTemplateV1Response201Headers the declared response headers of an HTTP 201 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response201Headers struct { - Location *string - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -// CreateNotificationTemplateV1Response400Headers the declared response headers of an HTTP 400 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response200Headers the declared response headers of an HTTP 200 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response200Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response401Headers the declared response headers of an HTTP 401 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response401Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response400Headers the declared response headers of an HTTP 400 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response400Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response403Headers the declared response headers of an HTTP 403 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response403Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response401Headers the declared response headers of an HTTP 401 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response401Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response409Headers the declared response headers of an HTTP 409 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response409Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response404Headers the declared response headers of an HTTP 404 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response404Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response415Headers the declared response headers of an HTTP 415 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response415Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response415Headers the declared response headers of an HTTP 415 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response415Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response422Headers the declared response headers of an HTTP 422 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response422Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response422Headers the declared response headers of an HTTP 422 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response422Headers struct { + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response429Headers the declared response headers of an HTTP 429 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// SaveGroupMappingSettingsV1Response429Headers the declared response headers of an HTTP 429 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// CreateNotificationTemplateV1Response500Headers the declared response headers of an HTTP 500 response for CreateNotificationTemplateV1 -type CreateNotificationTemplateV1Response500Headers struct { +// SaveGroupMappingSettingsV1Response500Headers the declared response headers of an HTTP 500 response for SaveGroupMappingSettingsV1 +type SaveGroupMappingSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateNotificationTemplateV1Response struct { +type SaveGroupMappingSettingsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *NotificationTemplateResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GroupMappingSettingsV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *ConflictV2 + JSON401 *Unauthorized + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaTypeV2 + JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityV2 + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateNotificationTemplateV1Response201Headers + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *SaveGroupMappingSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateNotificationTemplateV1Response400Headers + Headers400 *SaveGroupMappingSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateNotificationTemplateV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateNotificationTemplateV1Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateNotificationTemplateV1Response409Headers + Headers401 *SaveGroupMappingSettingsV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *SaveGroupMappingSettingsV1Response404Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateNotificationTemplateV1Response415Headers + Headers415 *SaveGroupMappingSettingsV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateNotificationTemplateV1Response422Headers + Headers422 *SaveGroupMappingSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateNotificationTemplateV1Response429Headers + Headers429 *SaveGroupMappingSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateNotificationTemplateV1Response500Headers + Headers500 *SaveGroupMappingSettingsV1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON201() *NotificationTemplateResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r SaveGroupMappingSettingsV1Response) GetJSON200() *GroupMappingSettingsV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON400() *BadRequestV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON401() *UnauthorizedV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON403() *ForbiddenV2 { - return r.JSON403 -} - -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON409() *ConflictV2 { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r SaveGroupMappingSettingsV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON415() *UnsupportedMediaTypeV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON422() *UnprocessableEntityV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON429() *TooManyRequestsV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateNotificationTemplateV1Response) GetJSON500() *InternalServerErrorV2 { +func (r SaveGroupMappingSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateNotificationTemplateV1Response) GetBody() []byte { +func (r SaveGroupMappingSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateNotificationTemplateV1Response) Status() string { +func (r SaveGroupMappingSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -65978,7 +72087,7 @@ func (r CreateNotificationTemplateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateNotificationTemplateV1Response) StatusCode() int { +func (r SaveGroupMappingSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -65986,121 +72095,120 @@ func (r CreateNotificationTemplateV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateNotificationTemplateV1Response) ContentType() string { +func (r SaveGroupMappingSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteNotificationTemplateByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response204Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// DeleteGroupMappingByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response204Headers struct { + XRateLimitLimit *int32 } -// DeleteNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// DeleteGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response400Headers struct { + XRateLimitLimit *int32 } -// DeleteNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response401Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// DeleteGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response401Headers struct { + XRateLimitLimit *int32 } -// DeleteNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response404Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// DeleteGroupMappingByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response403Headers struct { + XRateLimitLimit *int32 } -// DeleteNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// DeleteGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response404Headers struct { + XRateLimitLimit *int32 } -// DeleteNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteNotificationTemplateByIdV1 -type DeleteNotificationTemplateByIdV1Response500Headers struct { +// DeleteGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// DeleteGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGroupMappingByIdV1 +type DeleteGroupMappingByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteNotificationTemplateByIdV1Response struct { +type DeleteGroupMappingByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + 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 *NotFoundV2 + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteNotificationTemplateByIdV1Response204Headers + Headers204 *DeleteGroupMappingByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteNotificationTemplateByIdV1Response400Headers + Headers400 *DeleteGroupMappingByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteNotificationTemplateByIdV1Response401Headers + Headers401 *DeleteGroupMappingByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteGroupMappingByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteNotificationTemplateByIdV1Response404Headers + Headers404 *DeleteGroupMappingByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteNotificationTemplateByIdV1Response429Headers + Headers429 *DeleteGroupMappingByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteNotificationTemplateByIdV1Response500Headers + Headers500 *DeleteGroupMappingByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { +func (r DeleteGroupMappingByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { +func (r DeleteGroupMappingByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteGroupMappingByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { +func (r DeleteGroupMappingByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { +func (r DeleteGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { +func (r DeleteGroupMappingByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteNotificationTemplateByIdV1Response) GetBody() []byte { +func (r DeleteGroupMappingByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteNotificationTemplateByIdV1Response) Status() string { +func (r DeleteGroupMappingByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66108,7 +72216,7 @@ func (r DeleteNotificationTemplateByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteNotificationTemplateByIdV1Response) StatusCode() int { +func (r DeleteGroupMappingByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66116,145 +72224,113 @@ func (r DeleteNotificationTemplateByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteNotificationTemplateByIdV1Response) ContentType() string { +func (r DeleteGroupMappingByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetNotificationTemplateByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response200Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response200Headers struct { + XRateLimitLimit *int32 } -// GetNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response401Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// GetGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetNotificationTemplateByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response403Headers struct { +// GetGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// GetGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetGroupMappingByIdV1 +type GetGroupMappingByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// GetNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response404Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -// GetNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -// GetNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetNotificationTemplateByIdV1 -type GetNotificationTemplateByIdV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -type GetNotificationTemplateByIdV1Response struct { +type GetGroupMappingByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *NotificationTemplateResponseV1 + JSON200 *GroupMappingResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON401 *Unauthorized // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundV2 + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetNotificationTemplateByIdV1Response200Headers + Headers200 *GetGroupMappingByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetNotificationTemplateByIdV1Response400Headers + Headers400 *GetGroupMappingByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetNotificationTemplateByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetNotificationTemplateByIdV1Response403Headers + Headers401 *GetGroupMappingByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetNotificationTemplateByIdV1Response404Headers + Headers404 *GetGroupMappingByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetNotificationTemplateByIdV1Response429Headers + Headers429 *GetGroupMappingByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetNotificationTemplateByIdV1Response500Headers + Headers500 *GetGroupMappingByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON200() *NotificationTemplateResponseV1 { +func (r GetGroupMappingByIdV1Response) GetJSON200() *GroupMappingResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { +func (r GetGroupMappingByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { +func (r GetGroupMappingByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON403() *ForbiddenV2 { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { +func (r GetGroupMappingByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { +func (r GetGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { +func (r GetGroupMappingByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetNotificationTemplateByIdV1Response) GetBody() []byte { +func (r GetGroupMappingByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetNotificationTemplateByIdV1Response) Status() string { +func (r GetGroupMappingByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66262,7 +72338,7 @@ func (r GetNotificationTemplateByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationTemplateByIdV1Response) StatusCode() int { +func (r GetGroupMappingByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66270,179 +72346,155 @@ func (r GetNotificationTemplateByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationTemplateByIdV1Response) ContentType() string { +func (r GetGroupMappingByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateNotificationTemplateByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response200Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response200Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response400Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response400Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response401Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response401Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response404Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response403Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response409Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response404Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response415Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response415Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response422Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response422Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID +// UpdateGroupMappingByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateNotificationTemplateByIdV1 -type UpdateNotificationTemplateByIdV1Response500Headers struct { +// UpdateGroupMappingByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGroupMappingByIdV1 +type UpdateGroupMappingByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateNotificationTemplateByIdV1Response struct { +type UpdateGroupMappingByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *NotificationTemplateResponseV1 + JSON200 *GroupMappingResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + 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 *NotFoundV2 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *ConflictV2 + JSON404 *NotFound // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaTypeV2 + JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntityV2 + JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateNotificationTemplateByIdV1Response200Headers + Headers200 *UpdateGroupMappingByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateNotificationTemplateByIdV1Response400Headers + Headers400 *UpdateGroupMappingByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateNotificationTemplateByIdV1Response401Headers + Headers401 *UpdateGroupMappingByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateGroupMappingByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateNotificationTemplateByIdV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateNotificationTemplateByIdV1Response409Headers + Headers404 *UpdateGroupMappingByIdV1Response404Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateNotificationTemplateByIdV1Response415Headers + Headers415 *UpdateGroupMappingByIdV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateNotificationTemplateByIdV1Response422Headers + Headers422 *UpdateGroupMappingByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateNotificationTemplateByIdV1Response429Headers + Headers429 *UpdateGroupMappingByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateNotificationTemplateByIdV1Response500Headers + Headers500 *UpdateGroupMappingByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON200() *NotificationTemplateResponseV1 { +func (r UpdateGroupMappingByIdV1Response) GetJSON200() *GroupMappingResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateGroupMappingByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON409() *ConflictV2 { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateGroupMappingByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON415() *UnsupportedMediaTypeV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON422() *UnprocessableEntityV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { +func (r UpdateGroupMappingByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateNotificationTemplateByIdV1Response) GetBody() []byte { +func (r UpdateGroupMappingByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateNotificationTemplateByIdV1Response) Status() string { +func (r UpdateGroupMappingByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66450,7 +72502,7 @@ func (r UpdateNotificationTemplateByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateNotificationTemplateByIdV1Response) StatusCode() int { +func (r UpdateGroupMappingByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66458,47 +72510,47 @@ func (r UpdateNotificationTemplateByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateNotificationTemplateByIdV1Response) ContentType() string { +func (r UpdateGroupMappingByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetPermissionsV1Response200Headers the declared response headers of an HTTP 200 response for GetPermissionsV1 -type GetPermissionsV1Response200Headers struct { +// GetIpFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFiltersV1 +type GetIpFiltersV1Response200Headers struct { XRateLimitLimit *int32 } -// GetPermissionsV1Response400Headers the declared response headers of an HTTP 400 response for GetPermissionsV1 -type GetPermissionsV1Response400Headers struct { +// GetIpFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetIpFiltersV1 +type GetIpFiltersV1Response400Headers struct { XRateLimitLimit *int32 } -// GetPermissionsV1Response401Headers the declared response headers of an HTTP 401 response for GetPermissionsV1 -type GetPermissionsV1Response401Headers struct { +// GetIpFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFiltersV1 +type GetIpFiltersV1Response401Headers struct { XRateLimitLimit *int32 } -// GetPermissionsV1Response429Headers the declared response headers of an HTTP 429 response for GetPermissionsV1 -type GetPermissionsV1Response429Headers struct { +// GetIpFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFiltersV1 +type GetIpFiltersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetPermissionsV1Response500Headers the declared response headers of an HTTP 500 response for GetPermissionsV1 -type GetPermissionsV1Response500Headers struct { +// GetIpFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFiltersV1 +type GetIpFiltersV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetPermissionsV1Response struct { +type GetIpFiltersV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetPermissionsResponseV1 + JSON200 *IpFiltersPaginatedResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -66508,49 +72560,49 @@ type GetPermissionsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetPermissionsV1Response200Headers + Headers200 *GetIpFiltersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetPermissionsV1Response400Headers + Headers400 *GetIpFiltersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetPermissionsV1Response401Headers + Headers401 *GetIpFiltersV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetPermissionsV1Response429Headers + Headers429 *GetIpFiltersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetPermissionsV1Response500Headers + Headers500 *GetIpFiltersV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetPermissionsV1Response) GetJSON200() *GetPermissionsResponseV1 { +func (r GetIpFiltersV1Response) GetJSON200() *IpFiltersPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetPermissionsV1Response) GetJSON400() *BadRequest { +func (r GetIpFiltersV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetPermissionsV1Response) GetJSON401() *Unauthorized { +func (r GetIpFiltersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetPermissionsV1Response) GetJSON429() *TooManyRequests { +func (r GetIpFiltersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetPermissionsV1Response) GetJSON500() *InternalServerError { +func (r GetIpFiltersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetPermissionsV1Response) GetBody() []byte { +func (r GetIpFiltersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetPermissionsV1Response) Status() string { +func (r GetIpFiltersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66558,7 +72610,7 @@ func (r GetPermissionsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetPermissionsV1Response) StatusCode() int { +func (r GetIpFiltersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66566,99 +72618,141 @@ func (r GetPermissionsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetPermissionsV1Response) ContentType() string { +func (r GetIpFiltersV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetPlatformAuditEventsV1Response200Headers the declared response headers of an HTTP 200 response for GetPlatformAuditEventsV1 -type GetPlatformAuditEventsV1Response200Headers struct { +// CreateIpFilterV1Response201Headers the declared response headers of an HTTP 201 response for CreateIpFilterV1 +type CreateIpFilterV1Response201Headers struct { XRateLimitLimit *int32 } -// GetPlatformAuditEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetPlatformAuditEventsV1 -type GetPlatformAuditEventsV1Response400Headers struct { +// CreateIpFilterV1Response400Headers the declared response headers of an HTTP 400 response for CreateIpFilterV1 +type CreateIpFilterV1Response400Headers struct { XRateLimitLimit *int32 } -// GetPlatformAuditEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetPlatformAuditEventsV1 -type GetPlatformAuditEventsV1Response401Headers struct { +// CreateIpFilterV1Response401Headers the declared response headers of an HTTP 401 response for CreateIpFilterV1 +type CreateIpFilterV1Response401Headers struct { XRateLimitLimit *int32 } -// GetPlatformAuditEventsV1Response429Headers the declared response headers of an HTTP 429 response for GetPlatformAuditEventsV1 -type GetPlatformAuditEventsV1Response429Headers struct { +// CreateIpFilterV1Response409Headers the declared response headers of an HTTP 409 response for CreateIpFilterV1 +type CreateIpFilterV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// CreateIpFilterV1Response415Headers the declared response headers of an HTTP 415 response for CreateIpFilterV1 +type CreateIpFilterV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// CreateIpFilterV1Response422Headers the declared response headers of an HTTP 422 response for CreateIpFilterV1 +type CreateIpFilterV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateIpFilterV1Response429Headers the declared response headers of an HTTP 429 response for CreateIpFilterV1 +type CreateIpFilterV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetPlatformAuditEventsV1Response500Headers the declared response headers of an HTTP 500 response for GetPlatformAuditEventsV1 -type GetPlatformAuditEventsV1Response500Headers struct { +// CreateIpFilterV1Response500Headers the declared response headers of an HTTP 500 response for CreateIpFilterV1 +type CreateIpFilterV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetPlatformAuditEventsV1Response struct { +type CreateIpFilterV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListAuditEventsResponse + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *IpFilterResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetPlatformAuditEventsV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateIpFilterV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetPlatformAuditEventsV1Response400Headers + Headers400 *CreateIpFilterV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetPlatformAuditEventsV1Response401Headers + Headers401 *CreateIpFilterV1Response401Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateIpFilterV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateIpFilterV1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateIpFilterV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetPlatformAuditEventsV1Response429Headers + Headers429 *CreateIpFilterV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetPlatformAuditEventsV1Response500Headers + Headers500 *CreateIpFilterV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetPlatformAuditEventsV1Response) GetJSON200() *ListAuditEventsResponse { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateIpFilterV1Response) GetJSON201() *IpFilterResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetPlatformAuditEventsV1Response) GetJSON400() *BadRequest { +func (r CreateIpFilterV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetPlatformAuditEventsV1Response) GetJSON401() *Unauthorized { +func (r CreateIpFilterV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateIpFilterV1Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateIpFilterV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateIpFilterV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetPlatformAuditEventsV1Response) GetJSON429() *TooManyRequests { +func (r CreateIpFilterV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetPlatformAuditEventsV1Response) GetJSON500() *InternalServerError { +func (r CreateIpFilterV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetPlatformAuditEventsV1Response) GetBody() []byte { +func (r CreateIpFilterV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetPlatformAuditEventsV1Response) Status() string { +func (r CreateIpFilterV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66666,7 +72760,7 @@ func (r GetPlatformAuditEventsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetPlatformAuditEventsV1Response) StatusCode() int { +func (r CreateIpFilterV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66674,49 +72768,42 @@ func (r GetPlatformAuditEventsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetPlatformAuditEventsV1Response) ContentType() string { +func (r CreateIpFilterV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetRolesV1Response200Headers the declared response headers of an HTTP 200 response for GetRolesV1 -type GetRolesV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetRolesV1Response400Headers the declared response headers of an HTTP 400 response for GetRolesV1 -type GetRolesV1Response400Headers struct { +// GetIpFiltersSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFiltersSettingsV1 +type GetIpFiltersSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetRolesV1Response401Headers the declared response headers of an HTTP 401 response for GetRolesV1 -type GetRolesV1Response401Headers struct { +// GetIpFiltersSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFiltersSettingsV1 +type GetIpFiltersSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetRolesV1Response429Headers the declared response headers of an HTTP 429 response for GetRolesV1 -type GetRolesV1Response429Headers struct { +// GetIpFiltersSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFiltersSettingsV1 +type GetIpFiltersSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetRolesV1Response500Headers the declared response headers of an HTTP 500 response for GetRolesV1 -type GetRolesV1Response500Headers struct { +// GetIpFiltersSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFiltersSettingsV1 +type GetIpFiltersSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetRolesV1Response struct { +type GetIpFiltersSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetRolesPaginatedResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON200 *IpFiltersSettingsV1 // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON429 the response for an HTTP 429 `application/json` response @@ -66724,49 +72811,42 @@ type GetRolesV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetRolesV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetRolesV1Response400Headers + Headers200 *GetIpFiltersSettingsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetRolesV1Response401Headers + Headers401 *GetIpFiltersSettingsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetRolesV1Response429Headers + Headers429 *GetIpFiltersSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetRolesV1Response500Headers + Headers500 *GetIpFiltersSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetRolesV1Response) GetJSON200() *GetRolesPaginatedResponseV1 { +func (r GetIpFiltersSettingsV1Response) GetJSON200() *IpFiltersSettingsV1 { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetRolesV1Response) GetJSON400() *BadRequest { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetRolesV1Response) GetJSON401() *Unauthorized { +func (r GetIpFiltersSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetRolesV1Response) GetJSON429() *TooManyRequests { +func (r GetIpFiltersSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetRolesV1Response) GetJSON500() *InternalServerError { +func (r GetIpFiltersSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetRolesV1Response) GetBody() []byte { +func (r GetIpFiltersSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetRolesV1Response) Status() string { +func (r GetIpFiltersSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66774,7 +72854,7 @@ func (r GetRolesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetRolesV1Response) StatusCode() int { +func (r GetIpFiltersSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66782,73 +72862,73 @@ func (r GetRolesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRolesV1Response) ContentType() string { +func (r GetIpFiltersSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateRoleV1Response201Headers the declared response headers of an HTTP 201 response for CreateRoleV1 -type CreateRoleV1Response201Headers struct { +// SaveIpFiltersSettingsV1Response200Headers the declared response headers of an HTTP 200 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response400Headers the declared response headers of an HTTP 400 response for CreateRoleV1 -type CreateRoleV1Response400Headers struct { +// SaveIpFiltersSettingsV1Response400Headers the declared response headers of an HTTP 400 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response401Headers the declared response headers of an HTTP 401 response for CreateRoleV1 -type CreateRoleV1Response401Headers struct { +// SaveIpFiltersSettingsV1Response401Headers the declared response headers of an HTTP 401 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response403Headers the declared response headers of an HTTP 403 response for CreateRoleV1 -type CreateRoleV1Response403Headers struct { +// SaveIpFiltersSettingsV1Response404Headers the declared response headers of an HTTP 404 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response409Headers the declared response headers of an HTTP 409 response for CreateRoleV1 -type CreateRoleV1Response409Headers struct { +// SaveIpFiltersSettingsV1Response409Headers the declared response headers of an HTTP 409 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response409Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response415Headers the declared response headers of an HTTP 415 response for CreateRoleV1 -type CreateRoleV1Response415Headers struct { +// SaveIpFiltersSettingsV1Response415Headers the declared response headers of an HTTP 415 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response415Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response422Headers the declared response headers of an HTTP 422 response for CreateRoleV1 -type CreateRoleV1Response422Headers struct { +// SaveIpFiltersSettingsV1Response422Headers the declared response headers of an HTTP 422 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateRoleV1Response429Headers the declared response headers of an HTTP 429 response for CreateRoleV1 -type CreateRoleV1Response429Headers struct { +// SaveIpFiltersSettingsV1Response429Headers the declared response headers of an HTTP 429 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateRoleV1Response500Headers the declared response headers of an HTTP 500 response for CreateRoleV1 -type CreateRoleV1Response500Headers struct { +// SaveIpFiltersSettingsV1Response500Headers the declared response headers of an HTTP 500 response for SaveIpFiltersSettingsV1 +type SaveIpFiltersSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateRoleV1Response struct { +type SaveIpFiltersSettingsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *RoleResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *IpFiltersSettingsV1 // 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 // JSON415 the response for an HTTP 415 `application/json` response @@ -66859,78 +72939,78 @@ type CreateRoleV1Response 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 *CreateRoleV1Response201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *SaveIpFiltersSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateRoleV1Response400Headers + Headers400 *SaveIpFiltersSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateRoleV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateRoleV1Response403Headers + Headers401 *SaveIpFiltersSettingsV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *SaveIpFiltersSettingsV1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateRoleV1Response409Headers + Headers409 *SaveIpFiltersSettingsV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateRoleV1Response415Headers + Headers415 *SaveIpFiltersSettingsV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateRoleV1Response422Headers + Headers422 *SaveIpFiltersSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateRoleV1Response429Headers + Headers429 *SaveIpFiltersSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateRoleV1Response500Headers + Headers500 *SaveIpFiltersSettingsV1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateRoleV1Response) GetJSON201() *RoleResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r SaveIpFiltersSettingsV1Response) GetJSON200() *IpFiltersSettingsV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateRoleV1Response) GetJSON400() *BadRequest { +func (r SaveIpFiltersSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateRoleV1Response) GetJSON401() *Unauthorized { +func (r SaveIpFiltersSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateRoleV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r SaveIpFiltersSettingsV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateRoleV1Response) GetJSON409() *Conflict { +func (r SaveIpFiltersSettingsV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateRoleV1Response) GetJSON415() *UnsupportedMediaType { +func (r SaveIpFiltersSettingsV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateRoleV1Response) GetJSON422() *UnprocessableEntity { +func (r SaveIpFiltersSettingsV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateRoleV1Response) GetJSON429() *TooManyRequests { +func (r SaveIpFiltersSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateRoleV1Response) GetJSON500() *InternalServerError { +func (r SaveIpFiltersSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateRoleV1Response) GetBody() []byte { +func (r SaveIpFiltersSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateRoleV1Response) Status() string { +func (r SaveIpFiltersSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -66938,7 +73018,7 @@ func (r CreateRoleV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateRoleV1Response) StatusCode() int { +func (r SaveIpFiltersSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -66946,58 +73026,58 @@ func (r CreateRoleV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateRoleV1Response) ContentType() string { +func (r SaveIpFiltersSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteRoleByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response204Headers struct { +// DeleteIpFilterByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response400Headers struct { +// DeleteIpFilterByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response401Headers struct { +// DeleteIpFilterByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response403Headers struct { +// DeleteIpFilterByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response404Headers struct { +// DeleteIpFilterByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response422Headers struct { +// DeleteIpFilterByIdV1Response409Headers the declared response headers of an HTTP 409 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response409Headers struct { XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response429Headers struct { +// DeleteIpFilterByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteRoleByIdV1 -type DeleteRoleByIdV1Response500Headers struct { +// DeleteIpFilterByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteIpFilterByIdV1 +type DeleteIpFilterByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteRoleByIdV1Response struct { +type DeleteIpFilterByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -67008,72 +73088,72 @@ type DeleteRoleByIdV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFound - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + // 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 *DeleteRoleByIdV1Response204Headers + Headers204 *DeleteIpFilterByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteRoleByIdV1Response400Headers + Headers400 *DeleteIpFilterByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteRoleByIdV1Response401Headers + Headers401 *DeleteIpFilterByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteRoleByIdV1Response403Headers + Headers403 *DeleteIpFilterByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteRoleByIdV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteRoleByIdV1Response422Headers + Headers404 *DeleteIpFilterByIdV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *DeleteIpFilterByIdV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteRoleByIdV1Response429Headers + Headers429 *DeleteIpFilterByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteRoleByIdV1Response500Headers + Headers500 *DeleteIpFilterByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteIpFilterByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteIpFilterByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON403() *Forbidden { +func (r DeleteIpFilterByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON404() *NotFound { +func (r DeleteIpFilterByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r DeleteIpFilterByIdV1Response) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteIpFilterByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteRoleByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteIpFilterByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteRoleByIdV1Response) GetBody() []byte { +func (r DeleteIpFilterByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteRoleByIdV1Response) Status() string { +func (r DeleteIpFilterByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67081,7 +73161,7 @@ func (r DeleteRoleByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteRoleByIdV1Response) StatusCode() int { +func (r DeleteIpFilterByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67089,52 +73169,52 @@ func (r DeleteRoleByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteRoleByIdV1Response) ContentType() string { +func (r DeleteIpFilterByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetRoleByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetRoleByIdV1 -type GetRoleByIdV1Response200Headers struct { +// GetIpFilterByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetRoleByIdV1 -type GetRoleByIdV1Response400Headers struct { +// GetIpFilterByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetRoleByIdV1 -type GetRoleByIdV1Response401Headers struct { +// GetIpFilterByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetRoleByIdV1 -type GetRoleByIdV1Response404Headers struct { +// GetIpFilterByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetRoleByIdV1 -type GetRoleByIdV1Response429Headers struct { +// GetIpFilterByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetRoleByIdV1 -type GetRoleByIdV1Response500Headers struct { +// GetIpFilterByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetIpFilterByIdV1 +type GetIpFilterByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetRoleByIdV1Response struct { +type GetIpFilterByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RoleResponseV1 + JSON200 *IpFilterResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -67146,56 +73226,56 @@ type GetRoleByIdV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetRoleByIdV1Response200Headers + Headers200 *GetIpFilterByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetRoleByIdV1Response400Headers + Headers400 *GetIpFilterByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetRoleByIdV1Response401Headers + Headers401 *GetIpFilterByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetRoleByIdV1Response404Headers + Headers404 *GetIpFilterByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetRoleByIdV1Response429Headers + Headers429 *GetIpFilterByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetRoleByIdV1Response500Headers + Headers500 *GetIpFilterByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetRoleByIdV1Response) GetJSON200() *RoleResponseV1 { +func (r GetIpFilterByIdV1Response) GetJSON200() *IpFilterResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetRoleByIdV1Response) GetJSON400() *BadRequest { +func (r GetIpFilterByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetRoleByIdV1Response) GetJSON401() *Unauthorized { +func (r GetIpFilterByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetRoleByIdV1Response) GetJSON404() *NotFound { +func (r GetIpFilterByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetRoleByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetIpFilterByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetRoleByIdV1Response) GetJSON500() *InternalServerError { +func (r GetIpFilterByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetRoleByIdV1Response) GetBody() []byte { +func (r GetIpFilterByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetRoleByIdV1Response) Status() string { +func (r GetIpFilterByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67203,7 +73283,7 @@ func (r GetRoleByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetRoleByIdV1Response) StatusCode() int { +func (r GetIpFilterByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67211,72 +73291,62 @@ func (r GetRoleByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetRoleByIdV1Response) ContentType() string { +func (r GetIpFilterByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateRoleByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response401Headers struct { +// UpdateIpFilterV1Response200Headers the declared response headers of an HTTP 200 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response403Headers struct { +// UpdateIpFilterV1Response400Headers the declared response headers of an HTTP 400 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response404Headers struct { +// UpdateIpFilterV1Response401Headers the declared response headers of an HTTP 401 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response409Headers struct { +// UpdateIpFilterV1Response403Headers the declared response headers of an HTTP 403 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response415Headers struct { +// UpdateIpFilterV1Response404Headers the declared response headers of an HTTP 404 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response422Headers struct { +// UpdateIpFilterV1Response409Headers the declared response headers of an HTTP 409 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response409Headers struct { XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response429Headers struct { +// UpdateIpFilterV1Response429Headers the declared response headers of an HTTP 429 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateRoleByIdV1 -type UpdateRoleByIdV1Response500Headers struct { +// UpdateIpFilterV1Response500Headers the declared response headers of an HTTP 500 response for UpdateIpFilterV1 +type UpdateIpFilterV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateRoleByIdV1Response struct { +type UpdateIpFilterV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RoleResponseV1 + JSON200 *IpFilterResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -67287,93 +73357,75 @@ type UpdateRoleByIdV1Response struct { JSON404 *NotFound // JSON409 the response for an HTTP 409 `application/json` response JSON409 *Conflict - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType - // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateRoleByIdV1Response200Headers + Headers200 *UpdateIpFilterV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateRoleByIdV1Response400Headers + Headers400 *UpdateIpFilterV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateRoleByIdV1Response401Headers + Headers401 *UpdateIpFilterV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateRoleByIdV1Response403Headers + Headers403 *UpdateIpFilterV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateRoleByIdV1Response404Headers + Headers404 *UpdateIpFilterV1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateRoleByIdV1Response409Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateRoleByIdV1Response415Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateRoleByIdV1Response422Headers + Headers409 *UpdateIpFilterV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateRoleByIdV1Response429Headers + Headers429 *UpdateIpFilterV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateRoleByIdV1Response500Headers + Headers500 *UpdateIpFilterV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON200() *RoleResponseV1 { +func (r UpdateIpFilterV1Response) GetJSON200() *IpFilterResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON400() *BadRequest { +func (r UpdateIpFilterV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON401() *Unauthorized { +func (r UpdateIpFilterV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON403() *Forbidden { +func (r UpdateIpFilterV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON404() *NotFound { +func (r UpdateIpFilterV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON409() *Conflict { +func (r UpdateIpFilterV1Response) GetJSON409() *Conflict { return r.JSON409 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON429() *TooManyRequests { +func (r UpdateIpFilterV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateRoleByIdV1Response) GetJSON500() *InternalServerError { +func (r UpdateIpFilterV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateRoleByIdV1Response) GetBody() []byte { +func (r UpdateIpFilterV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateRoleByIdV1Response) Status() string { +func (r UpdateIpFilterV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67381,7 +73433,7 @@ func (r UpdateRoleByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateRoleByIdV1Response) StatusCode() int { +func (r UpdateIpFilterV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67389,47 +73441,47 @@ func (r UpdateRoleByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateRoleByIdV1Response) ContentType() string { +func (r UpdateIpFilterV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGlobalServiceAccountsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountsV1 -type GetGlobalServiceAccountsV1Response200Headers struct { +// GetNotificationChannelsResponse200Headers the declared response headers of an HTTP 200 response for GetNotificationChannels +type GetNotificationChannelsResponse200Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountsV1 -type GetGlobalServiceAccountsV1Response400Headers struct { +// GetNotificationChannelsResponse400Headers the declared response headers of an HTTP 400 response for GetNotificationChannels +type GetNotificationChannelsResponse400Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountsV1 -type GetGlobalServiceAccountsV1Response401Headers struct { +// GetNotificationChannelsResponse401Headers the declared response headers of an HTTP 401 response for GetNotificationChannels +type GetNotificationChannelsResponse401Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountsV1 -type GetGlobalServiceAccountsV1Response429Headers struct { +// GetNotificationChannelsResponse429Headers the declared response headers of an HTTP 429 response for GetNotificationChannels +type GetNotificationChannelsResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetGlobalServiceAccountsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountsV1 -type GetGlobalServiceAccountsV1Response500Headers struct { +// GetNotificationChannelsResponse500Headers the declared response headers of an HTTP 500 response for GetNotificationChannels +type GetNotificationChannelsResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGlobalServiceAccountsV1Response struct { +type GetNotificationChannelsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetServiceAccountsPaginatedResponseV1 + JSON200 *GetNotificationChannelsPaginatedResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -67439,49 +73491,49 @@ type GetGlobalServiceAccountsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetGlobalServiceAccountsV1Response200Headers + Headers200 *GetNotificationChannelsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetGlobalServiceAccountsV1Response400Headers + Headers400 *GetNotificationChannelsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGlobalServiceAccountsV1Response401Headers + Headers401 *GetNotificationChannelsResponse401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGlobalServiceAccountsV1Response429Headers + Headers429 *GetNotificationChannelsResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGlobalServiceAccountsV1Response500Headers + Headers500 *GetNotificationChannelsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGlobalServiceAccountsV1Response) GetJSON200() *GetServiceAccountsPaginatedResponseV1 { +func (r GetNotificationChannelsResponse) GetJSON200() *GetNotificationChannelsPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetGlobalServiceAccountsV1Response) GetJSON400() *BadRequest { +func (r GetNotificationChannelsResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGlobalServiceAccountsV1Response) GetJSON401() *Unauthorized { +func (r GetNotificationChannelsResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGlobalServiceAccountsV1Response) GetJSON429() *TooManyRequests { +func (r GetNotificationChannelsResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGlobalServiceAccountsV1Response) GetJSON500() *InternalServerError { +func (r GetNotificationChannelsResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGlobalServiceAccountsV1Response) GetBody() []byte { +func (r GetNotificationChannelsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGlobalServiceAccountsV1Response) Status() string { +func (r GetNotificationChannelsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67489,7 +73541,7 @@ func (r GetGlobalServiceAccountsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGlobalServiceAccountsV1Response) StatusCode() int { +func (r GetNotificationChannelsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67497,68 +73549,68 @@ func (r GetGlobalServiceAccountsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGlobalServiceAccountsV1Response) ContentType() string { +func (r GetNotificationChannelsResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateGlobalServiceAccountV1Response201Headers the declared response headers of an HTTP 201 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response201Headers struct { +// CreateNotificationChannelResponse201Headers the declared response headers of an HTTP 201 response for CreateNotificationChannel +type CreateNotificationChannelResponse201Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response400Headers the declared response headers of an HTTP 400 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response400Headers struct { +// CreateNotificationChannelResponse400Headers the declared response headers of an HTTP 400 response for CreateNotificationChannel +type CreateNotificationChannelResponse400Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response401Headers the declared response headers of an HTTP 401 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response401Headers struct { +// CreateNotificationChannelResponse401Headers the declared response headers of an HTTP 401 response for CreateNotificationChannel +type CreateNotificationChannelResponse401Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response409Headers the declared response headers of an HTTP 409 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response409Headers struct { +// CreateNotificationChannelResponse403Headers the declared response headers of an HTTP 403 response for CreateNotificationChannel +type CreateNotificationChannelResponse403Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response415Headers the declared response headers of an HTTP 415 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response415Headers struct { +// CreateNotificationChannelResponse415Headers the declared response headers of an HTTP 415 response for CreateNotificationChannel +type CreateNotificationChannelResponse415Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response422Headers the declared response headers of an HTTP 422 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response422Headers struct { +// CreateNotificationChannelResponse422Headers the declared response headers of an HTTP 422 response for CreateNotificationChannel +type CreateNotificationChannelResponse422Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response429Headers the declared response headers of an HTTP 429 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response429Headers struct { +// CreateNotificationChannelResponse429Headers the declared response headers of an HTTP 429 response for CreateNotificationChannel +type CreateNotificationChannelResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateGlobalServiceAccountV1Response500Headers the declared response headers of an HTTP 500 response for CreateGlobalServiceAccountV1 -type CreateGlobalServiceAccountV1Response500Headers struct { +// CreateNotificationChannelResponse500Headers the declared response headers of an HTTP 500 response for CreateNotificationChannel +type CreateNotificationChannelResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateGlobalServiceAccountV1Response struct { +type CreateNotificationChannelResponse struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ServiceAccountWithKeyResponseV1 + JSON201 *NotificationChannelResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -67568,70 +73620,70 @@ type CreateGlobalServiceAccountV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateGlobalServiceAccountV1Response201Headers + Headers201 *CreateNotificationChannelResponse201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateGlobalServiceAccountV1Response400Headers + Headers400 *CreateNotificationChannelResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateGlobalServiceAccountV1Response401Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateGlobalServiceAccountV1Response409Headers + Headers401 *CreateNotificationChannelResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateNotificationChannelResponse403Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateGlobalServiceAccountV1Response415Headers + Headers415 *CreateNotificationChannelResponse415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateGlobalServiceAccountV1Response422Headers + Headers422 *CreateNotificationChannelResponse422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateGlobalServiceAccountV1Response429Headers + Headers429 *CreateNotificationChannelResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateGlobalServiceAccountV1Response500Headers + Headers500 *CreateNotificationChannelResponse500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON201() *ServiceAccountWithKeyResponseV1 { +func (r CreateNotificationChannelResponse) GetJSON201() *NotificationChannelResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON400() *BadRequest { +func (r CreateNotificationChannelResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON401() *Unauthorized { +func (r CreateNotificationChannelResponse) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateNotificationChannelResponse) GetJSON403() *Forbidden { + return r.JSON403 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateNotificationChannelResponse) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateNotificationChannelResponse) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON429() *TooManyRequests { +func (r CreateNotificationChannelResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateGlobalServiceAccountV1Response) GetJSON500() *InternalServerError { +func (r CreateNotificationChannelResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateGlobalServiceAccountV1Response) GetBody() []byte { +func (r CreateNotificationChannelResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateGlobalServiceAccountV1Response) Status() string { +func (r CreateNotificationChannelResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67639,7 +73691,7 @@ func (r CreateGlobalServiceAccountV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateGlobalServiceAccountV1Response) StatusCode() int { +func (r CreateNotificationChannelResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67647,61 +73699,54 @@ func (r CreateGlobalServiceAccountV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateGlobalServiceAccountV1Response) ContentType() string { +func (r CreateNotificationChannelResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { +// DeleteNotificationChannelByIdResponse204Headers the declared response headers of an HTTP 204 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse204Headers struct { XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { +// DeleteNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse400Headers struct { XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers struct { +// DeleteNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse401Headers struct { XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { +// DeleteNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse404Headers struct { XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { +// DeleteNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGlobalServiceAccountsNotificationSettingsV1 -type DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { +// DeleteNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteNotificationChannelById +type DeleteNotificationChannelByIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteGlobalServiceAccountsNotificationSettingsV1Response struct { +type DeleteNotificationChannelByIdResponse 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 @@ -67709,58 +73754,51 @@ type DeleteGlobalServiceAccountsNotificationSettingsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers + Headers204 *DeleteNotificationChannelByIdResponse204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *DeleteNotificationChannelByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers + Headers401 *DeleteNotificationChannelByIdResponse401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers + Headers404 *DeleteNotificationChannelByIdResponse404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *DeleteNotificationChannelByIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *DeleteNotificationChannelByIdResponse500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r DeleteNotificationChannelByIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r DeleteNotificationChannelByIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { +func (r DeleteNotificationChannelByIdResponse) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r DeleteNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r DeleteNotificationChannelByIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r DeleteNotificationChannelByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) Status() string { +func (r DeleteNotificationChannelByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67768,7 +73806,7 @@ func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) Status() stri } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r DeleteNotificationChannelByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67776,56 +73814,63 @@ func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r DeleteNotificationChannelByIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGlobalServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response200Headers struct { +// GetNotificationChannelByIdResponse200Headers the declared response headers of an HTTP 200 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse200Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { +// GetNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse400Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { +// GetNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse401Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { +// GetNotificationChannelByIdResponse403Headers the declared response headers of an HTTP 403 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse403Headers struct { XRateLimitLimit *int32 } -// GetGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { +// GetNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse404Headers struct { + XRateLimitLimit *int32 +} + +// GetNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountsNotificationSettingsV1 -type GetGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { +// GetNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for GetNotificationChannelById +type GetNotificationChannelByIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGlobalServiceAccountsNotificationSettingsV1Response struct { +type GetNotificationChannelByIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountsNotificationSettingsResponseV1 + JSON200 *NotificationChannelResponseV1 // 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 @@ -67833,56 +73878,63 @@ type GetGlobalServiceAccountsNotificationSettingsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetGlobalServiceAccountsNotificationSettingsV1Response200Headers + Headers200 *GetNotificationChannelByIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetGlobalServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *GetNotificationChannelByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGlobalServiceAccountsNotificationSettingsV1Response401Headers + Headers401 *GetNotificationChannelByIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetNotificationChannelByIdResponse403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetGlobalServiceAccountsNotificationSettingsV1Response404Headers + Headers404 *GetNotificationChannelByIdResponse404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGlobalServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *GetNotificationChannelByIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGlobalServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *GetNotificationChannelByIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { +func (r GetNotificationChannelByIdResponse) GetJSON200() *NotificationChannelResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r GetNotificationChannelByIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetNotificationChannelByIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetNotificationChannelByIdResponse) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { +func (r GetNotificationChannelByIdResponse) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetNotificationChannelByIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r GetNotificationChannelByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) Status() string { +func (r GetNotificationChannelByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -67890,7 +73942,7 @@ func (r GetGlobalServiceAccountsNotificationSettingsV1Response) Status() string } // StatusCode returns HTTPResponse.StatusCode -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r GetNotificationChannelByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -67898,68 +73950,75 @@ func (r GetGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r GetNotificationChannelByIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers struct { +// UpdateNotificationChannelByIdResponse200Headers the declared response headers of an HTTP 200 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse200Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { +// UpdateNotificationChannelByIdResponse400Headers the declared response headers of an HTTP 400 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse400Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { +// UpdateNotificationChannelByIdResponse401Headers the declared response headers of an HTTP 401 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse401Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { +// UpdateNotificationChannelByIdResponse404Headers the declared response headers of an HTTP 404 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse404Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers struct { +// UpdateNotificationChannelByIdResponse409Headers the declared response headers of an HTTP 409 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse409Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers struct { +// UpdateNotificationChannelByIdResponse415Headers the declared response headers of an HTTP 415 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse415Headers struct { XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { +// UpdateNotificationChannelByIdResponse422Headers the declared response headers of an HTTP 422 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse422Headers struct { + XRateLimitLimit *int32 +} + +// UpdateNotificationChannelByIdResponse429Headers the declared response headers of an HTTP 429 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateGlobalServiceAccountsNotificationSettingsV1 -type CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { +// UpdateNotificationChannelByIdResponse500Headers the declared response headers of an HTTP 500 response for UpdateNotificationChannelById +type UpdateNotificationChannelByIdResponse500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateGlobalServiceAccountsNotificationSettingsV1Response struct { +type UpdateNotificationChannelByIdResponse struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ServiceAccountsNotificationSettingsResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *NotificationChannelResponseV1 // 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 + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *Conflict // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -67968,71 +74027,78 @@ type CreateGlobalServiceAccountsNotificationSettingsV1Response 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 *CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateNotificationChannelByIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *UpdateNotificationChannelByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers + Headers401 *UpdateNotificationChannelByIdResponse401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers + Headers404 *UpdateNotificationChannelByIdResponse404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateNotificationChannelByIdResponse409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers + Headers415 *UpdateNotificationChannelByIdResponse415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers + Headers422 *UpdateNotificationChannelByIdResponse422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *UpdateNotificationChannelByIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *UpdateNotificationChannelByIdResponse500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON201() *ServiceAccountsNotificationSettingsResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateNotificationChannelByIdResponse) GetJSON200() *NotificationChannelResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r UpdateNotificationChannelByIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r UpdateNotificationChannelByIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { +func (r UpdateNotificationChannelByIdResponse) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateNotificationChannelByIdResponse) GetJSON409() *Conflict { + return r.JSON409 +} + // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { +func (r UpdateNotificationChannelByIdResponse) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON422() *UnprocessableEntity { +func (r UpdateNotificationChannelByIdResponse) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r UpdateNotificationChannelByIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r UpdateNotificationChannelByIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r UpdateNotificationChannelByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) Status() string { +func (r UpdateNotificationChannelByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68040,7 +74106,7 @@ func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) Status() stri } // StatusCode returns HTTPResponse.StatusCode -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r UpdateNotificationChannelByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68048,141 +74114,111 @@ func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r UpdateNotificationChannelByIdResponse) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplatesV1Response200Headers the declared response headers of an HTTP 200 response for GetNotificationTemplatesV1 +type GetNotificationTemplatesV1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplatesV1Response400Headers the declared response headers of an HTTP 400 response for GetNotificationTemplatesV1 +type GetNotificationTemplatesV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplatesV1Response401Headers the declared response headers of an HTTP 401 response for GetNotificationTemplatesV1 +type GetNotificationTemplatesV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetNotificationTemplatesV1Response429Headers the declared response headers of an HTTP 429 response for GetNotificationTemplatesV1 +type GetNotificationTemplatesV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGlobalServiceAccountsNotificationSettingsV1 -type UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { +// GetNotificationTemplatesV1Response500Headers the declared response headers of an HTTP 500 response for GetNotificationTemplatesV1 +type GetNotificationTemplatesV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateGlobalServiceAccountsNotificationSettingsV1Response struct { +type GetNotificationTemplatesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountsNotificationSettingsResponseV1 + JSON200 *GetNotificationTemplatesPaginatedResponseV1 // 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 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + JSON401 *UnauthorizedV2 // 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 *UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers + Headers200 *GetNotificationTemplatesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *GetNotificationTemplatesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers + Headers401 *GetNotificationTemplatesV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *GetNotificationTemplatesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *GetNotificationTemplatesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { +func (r GetNotificationTemplatesV1Response) GetJSON200() *GetNotificationTemplatesPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r GetNotificationTemplatesV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetNotificationTemplatesV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetNotificationTemplatesV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetNotificationTemplatesV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r GetNotificationTemplatesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) Status() string { +func (r GetNotificationTemplatesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68190,7 +74226,7 @@ func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) Status() stri } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r GetNotificationTemplatesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68198,134 +74234,180 @@ func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r GetNotificationTemplatesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteGlobalServiceAccountByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response204Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response201Headers the declared response headers of an HTTP 201 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response201Headers struct { + Location *string + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response400Headers the declared response headers of an HTTP 400 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response401Headers the declared response headers of an HTTP 401 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response403Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response403Headers the declared response headers of an HTTP 403 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response409Headers the declared response headers of an HTTP 409 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response422Headers struct { - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response415Headers the declared response headers of an HTTP 415 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// CreateNotificationTemplateV1Response422Headers the declared response headers of an HTTP 422 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// DeleteGlobalServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGlobalServiceAccountByIdV1 -type DeleteGlobalServiceAccountByIdV1Response500Headers struct { +// CreateNotificationTemplateV1Response429Headers the declared response headers of an HTTP 429 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteGlobalServiceAccountByIdV1Response struct { +// CreateNotificationTemplateV1Response500Headers the declared response headers of an HTTP 500 response for CreateNotificationTemplateV1 +type CreateNotificationTemplateV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type CreateNotificationTemplateV1Response struct { Body []byte HTTPResponse *http.Response + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *NotificationTemplateResponseV1 // 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 - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteGlobalServiceAccountByIdV1Response204Headers + JSON500 *InternalServerErrorV2 + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateNotificationTemplateV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteGlobalServiceAccountByIdV1Response400Headers + Headers400 *CreateNotificationTemplateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteGlobalServiceAccountByIdV1Response401Headers + Headers401 *CreateNotificationTemplateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteGlobalServiceAccountByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteGlobalServiceAccountByIdV1Response404Headers + Headers403 *CreateNotificationTemplateV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateNotificationTemplateV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateNotificationTemplateV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteGlobalServiceAccountByIdV1Response422Headers + Headers422 *CreateNotificationTemplateV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteGlobalServiceAccountByIdV1Response429Headers + Headers429 *CreateNotificationTemplateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteGlobalServiceAccountByIdV1Response500Headers + Headers500 *CreateNotificationTemplateV1Response500Headers +} + +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateNotificationTemplateV1Response) GetJSON201() *NotificationTemplateResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON400() *BadRequest { +func (r CreateNotificationTemplateV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON401() *Unauthorized { +func (r CreateNotificationTemplateV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON403() *Forbidden { +func (r CreateNotificationTemplateV1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateNotificationTemplateV1Response) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateNotificationTemplateV1Response) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateNotificationTemplateV1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { +func (r CreateNotificationTemplateV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON500() *InternalServerError { +func (r CreateNotificationTemplateV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteGlobalServiceAccountByIdV1Response) GetBody() []byte { +func (r CreateNotificationTemplateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteGlobalServiceAccountByIdV1Response) Status() string { +func (r CreateNotificationTemplateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68333,7 +74415,7 @@ func (r DeleteGlobalServiceAccountByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteGlobalServiceAccountByIdV1Response) StatusCode() int { +func (r CreateNotificationTemplateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68341,113 +74423,121 @@ func (r DeleteGlobalServiceAccountByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteGlobalServiceAccountByIdV1Response) ContentType() string { +func (r CreateNotificationTemplateV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetGlobalServiceAccountByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response200Headers struct { - XRateLimitLimit *int32 +// DeleteNotificationTemplateByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response204Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response400Headers struct { - XRateLimitLimit *int32 +// DeleteNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response401Headers struct { - XRateLimitLimit *int32 +// DeleteNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response404Headers struct { - XRateLimitLimit *int32 +// DeleteNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// DeleteNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetGlobalServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountByIdV1 -type GetGlobalServiceAccountByIdV1Response500Headers struct { +// DeleteNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteNotificationTemplateByIdV1 +type DeleteNotificationTemplateByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetGlobalServiceAccountByIdV1Response struct { +type DeleteNotificationTemplateByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountResponseV1 // 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 // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFound + 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetGlobalServiceAccountByIdV1Response200Headers + JSON500 *InternalServerErrorV2 + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteNotificationTemplateByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetGlobalServiceAccountByIdV1Response400Headers + Headers400 *DeleteNotificationTemplateByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetGlobalServiceAccountByIdV1Response401Headers + Headers401 *DeleteNotificationTemplateByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetGlobalServiceAccountByIdV1Response404Headers + Headers404 *DeleteNotificationTemplateByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetGlobalServiceAccountByIdV1Response429Headers + Headers429 *DeleteNotificationTemplateByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetGlobalServiceAccountByIdV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON200() *ServiceAccountResponseV1 { - return r.JSON200 + Headers500 *DeleteNotificationTemplateByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON404() *NotFound { +func (r DeleteNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetGlobalServiceAccountByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetGlobalServiceAccountByIdV1Response) GetBody() []byte { +func (r DeleteNotificationTemplateByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetGlobalServiceAccountByIdV1Response) Status() string { +func (r DeleteNotificationTemplateByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68455,7 +74545,7 @@ func (r GetGlobalServiceAccountByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetGlobalServiceAccountByIdV1Response) StatusCode() int { +func (r DeleteNotificationTemplateByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68463,113 +74553,145 @@ func (r GetGlobalServiceAccountByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetGlobalServiceAccountByIdV1Response) ContentType() string { +func (r DeleteNotificationTemplateByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response200Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplateByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response400Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response401Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response403Headers struct { - XRateLimitLimit *int32 +// GetNotificationTemplateByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response403Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// GetSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetSsoSettingsV1 -type GetSsoSettingsV1Response500Headers struct { +// GetNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSsoSettingsV1Response struct { +// GetNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetNotificationTemplateByIdV1 +type GetNotificationTemplateByIdV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetNotificationTemplateByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AllSsoSettingsResponseV1 + JSON200 *NotificationTemplateResponseV1 // 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 *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 + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSsoSettingsV1Response200Headers + Headers200 *GetNotificationTemplateByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSsoSettingsV1Response400Headers + Headers400 *GetNotificationTemplateByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSsoSettingsV1Response401Headers + Headers401 *GetNotificationTemplateByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSsoSettingsV1Response403Headers + Headers403 *GetNotificationTemplateByIdV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetNotificationTemplateByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSsoSettingsV1Response429Headers + Headers429 *GetNotificationTemplateByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSsoSettingsV1Response500Headers + Headers500 *GetNotificationTemplateByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON200() *AllSsoSettingsResponseV1 { +func (r GetNotificationTemplateByIdV1Response) GetJSON200() *NotificationTemplateResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON400() *BadRequest { +func (r GetNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON403() *Forbidden { +func (r GetNotificationTemplateByIdV1Response) GetJSON403() *ForbiddenV2 { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSsoSettingsV1Response) GetBody() []byte { +func (r GetNotificationTemplateByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSsoSettingsV1Response) Status() string { +func (r GetNotificationTemplateByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68577,7 +74699,7 @@ func (r GetSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSsoSettingsV1Response) StatusCode() int { +func (r GetNotificationTemplateByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68585,141 +74707,179 @@ func (r GetSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSsoSettingsV1Response) ContentType() string { +func (r GetNotificationTemplateByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateSsoSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response201Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response400Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response400Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response401Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response401Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response403Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response404Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response415Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response409Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response422Headers struct { - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response415Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// UpdateNotificationTemplateByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response422Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -// CreateSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateSsoSettingsV1 -type CreateSsoSettingsV1Response500Headers struct { +// UpdateNotificationTemplateByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateSsoSettingsV1Response struct { +// UpdateNotificationTemplateByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateNotificationTemplateByIdV1 +type UpdateNotificationTemplateByIdV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type UpdateNotificationTemplateByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *SsoSettingsResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *NotificationTemplateResponseV1 // 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 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *Forbidden + JSON401 *UnauthorizedV2 + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFoundV2 + // JSON409 the response for an HTTP 409 `application/json` response + JSON409 *ConflictV2 // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + 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 - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateSsoSettingsV1Response201Headers + JSON500 *InternalServerErrorV2 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UpdateNotificationTemplateByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateSsoSettingsV1Response400Headers + Headers400 *UpdateNotificationTemplateByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateSsoSettingsV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateSsoSettingsV1Response403Headers + Headers401 *UpdateNotificationTemplateByIdV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateNotificationTemplateByIdV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateNotificationTemplateByIdV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateSsoSettingsV1Response415Headers + Headers415 *UpdateNotificationTemplateByIdV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateSsoSettingsV1Response422Headers + Headers422 *UpdateNotificationTemplateByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateSsoSettingsV1Response429Headers + Headers429 *UpdateNotificationTemplateByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateSsoSettingsV1Response500Headers + Headers500 *UpdateNotificationTemplateByIdV1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON201() *SsoSettingsResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateNotificationTemplateByIdV1Response) GetJSON200() *NotificationTemplateResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON400() *BadRequest { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateNotificationTemplateByIdV1Response) GetJSON404() *NotFoundV2 { + return r.JSON404 +} + +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateNotificationTemplateByIdV1Response) GetJSON409() *ConflictV2 { + return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON415() *UnsupportedMediaType { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON415() *UnsupportedMediaTypeV2 { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON429() *TooManyRequests { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r UpdateNotificationTemplateByIdV1Response) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateSsoSettingsV1Response) GetBody() []byte { +func (r UpdateNotificationTemplateByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateSsoSettingsV1Response) Status() string { +func (r UpdateNotificationTemplateByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68727,7 +74887,7 @@ func (r CreateSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSsoSettingsV1Response) StatusCode() int { +func (r UpdateNotificationTemplateByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68735,120 +74895,99 @@ func (r CreateSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateSsoSettingsV1Response) ContentType() string { +func (r UpdateNotificationTemplateByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteSsoSettingsByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// DeleteSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response401Headers struct { +// GetPermissionsV1Response200Headers the declared response headers of an HTTP 200 response for GetPermissionsV1 +type GetPermissionsV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response403Headers struct { +// GetPermissionsV1Response400Headers the declared response headers of an HTTP 400 response for GetPermissionsV1 +type GetPermissionsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response404Headers struct { +// GetPermissionsV1Response401Headers the declared response headers of an HTTP 401 response for GetPermissionsV1 +type GetPermissionsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response429Headers struct { +// GetPermissionsV1Response429Headers the declared response headers of an HTTP 429 response for GetPermissionsV1 +type GetPermissionsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteSsoSettingsByIdV1 -type DeleteSsoSettingsByIdV1Response500Headers struct { +// GetPermissionsV1Response500Headers the declared response headers of an HTTP 500 response for GetPermissionsV1 +type GetPermissionsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteSsoSettingsByIdV1Response struct { +type GetPermissionsV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetPermissionsResponseV1 // 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 *DeleteSsoSettingsByIdV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetPermissionsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSsoSettingsByIdV1Response400Headers + Headers400 *GetPermissionsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSsoSettingsByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSsoSettingsByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteSsoSettingsByIdV1Response404Headers + Headers401 *GetPermissionsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSsoSettingsByIdV1Response429Headers + Headers429 *GetPermissionsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSsoSettingsByIdV1Response500Headers + Headers500 *GetPermissionsV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetPermissionsV1Response) GetJSON200() *GetPermissionsResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r GetPermissionsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r GetPermissionsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetPermissionsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { +func (r GetPermissionsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSsoSettingsByIdV1Response) GetBody() []byte { +func (r GetPermissionsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSsoSettingsByIdV1Response) Status() string { +func (r GetPermissionsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68856,7 +74995,7 @@ func (r DeleteSsoSettingsByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSsoSettingsByIdV1Response) StatusCode() int { +func (r GetPermissionsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -68864,127 +75003,99 @@ func (r DeleteSsoSettingsByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteSsoSettingsByIdV1Response) ContentType() string { +func (r GetPermissionsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response401Headers struct { +// GetPlatformAuditEventsV1Response200Headers the declared response headers of an HTTP 200 response for GetPlatformAuditEventsV1 +type GetPlatformAuditEventsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response403Headers struct { +// GetPlatformAuditEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetPlatformAuditEventsV1 +type GetPlatformAuditEventsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response404Headers struct { +// GetPlatformAuditEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetPlatformAuditEventsV1 +type GetPlatformAuditEventsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response429Headers struct { +// GetPlatformAuditEventsV1Response429Headers the declared response headers of an HTTP 429 response for GetPlatformAuditEventsV1 +type GetPlatformAuditEventsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetSsoSettingsByIdV1 -type GetSsoSettingsByIdV1Response500Headers struct { +// GetPlatformAuditEventsV1Response500Headers the declared response headers of an HTTP 500 response for GetPlatformAuditEventsV1 +type GetPlatformAuditEventsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSsoSettingsByIdV1Response struct { +type GetPlatformAuditEventsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SsoSettingsResponseV1 + JSON200 *ListAuditEventsResponse // 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 *GetSsoSettingsByIdV1Response200Headers + Headers200 *GetPlatformAuditEventsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSsoSettingsByIdV1Response400Headers + Headers400 *GetPlatformAuditEventsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSsoSettingsByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSsoSettingsByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetSsoSettingsByIdV1Response404Headers + Headers401 *GetPlatformAuditEventsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSsoSettingsByIdV1Response429Headers + Headers429 *GetPlatformAuditEventsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSsoSettingsByIdV1Response500Headers + Headers500 *GetPlatformAuditEventsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { +func (r GetPlatformAuditEventsV1Response) GetJSON200() *ListAuditEventsResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r GetPlatformAuditEventsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r GetPlatformAuditEventsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetPlatformAuditEventsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { +func (r GetPlatformAuditEventsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSsoSettingsByIdV1Response) GetBody() []byte { +func (r GetPlatformAuditEventsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSsoSettingsByIdV1Response) Status() string { +func (r GetPlatformAuditEventsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -68992,7 +75103,7 @@ func (r GetSsoSettingsByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSsoSettingsByIdV1Response) StatusCode() int { +func (r GetPlatformAuditEventsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69000,141 +75111,99 @@ func (r GetSsoSettingsByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSsoSettingsByIdV1Response) ContentType() string { +func (r GetPlatformAuditEventsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response403Headers struct { +// GetRolesV1Response200Headers the declared response headers of an HTTP 200 response for GetRolesV1 +type GetRolesV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response404Headers struct { +// GetRolesV1Response400Headers the declared response headers of an HTTP 400 response for GetRolesV1 +type GetRolesV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateSsoSettingsByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response415Headers struct { +// GetRolesV1Response401Headers the declared response headers of an HTTP 401 response for GetRolesV1 +type GetRolesV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response429Headers struct { +// GetRolesV1Response429Headers the declared response headers of an HTTP 429 response for GetRolesV1 +type GetRolesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateSsoSettingsByIdV1 -type UpdateSsoSettingsByIdV1Response500Headers struct { +// GetRolesV1Response500Headers the declared response headers of an HTTP 500 response for GetRolesV1 +type GetRolesV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateSsoSettingsByIdV1Response struct { +type GetRolesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SsoSettingsResponseV1 + JSON200 *GetRolesPaginatedResponseV1 // 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 - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType // 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 *UpdateSsoSettingsByIdV1Response200Headers + Headers200 *GetRolesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateSsoSettingsByIdV1Response400Headers + Headers400 *GetRolesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateSsoSettingsByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateSsoSettingsByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateSsoSettingsByIdV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateSsoSettingsByIdV1Response415Headers + Headers401 *GetRolesV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateSsoSettingsByIdV1Response429Headers + Headers429 *GetRolesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateSsoSettingsByIdV1Response500Headers + Headers500 *GetRolesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { +func (r GetRolesV1Response) GetJSON200() *GetRolesPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r GetRolesV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r GetRolesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetRolesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { +func (r GetRolesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateSsoSettingsByIdV1Response) GetBody() []byte { +func (r GetRolesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateSsoSettingsByIdV1Response) Status() string { +func (r GetRolesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69142,7 +75211,7 @@ func (r UpdateSsoSettingsByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateSsoSettingsByIdV1Response) StatusCode() int { +func (r GetRolesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69150,113 +75219,155 @@ func (r UpdateSsoSettingsByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateSsoSettingsByIdV1Response) ContentType() string { +func (r GetRolesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSystemSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response200Headers struct { +// CreateRoleV1Response201Headers the declared response headers of an HTTP 201 response for CreateRoleV1 +type CreateRoleV1Response201Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response400Headers struct { +// CreateRoleV1Response400Headers the declared response headers of an HTTP 400 response for CreateRoleV1 +type CreateRoleV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response401Headers struct { +// CreateRoleV1Response401Headers the declared response headers of an HTTP 401 response for CreateRoleV1 +type CreateRoleV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response403Headers struct { +// CreateRoleV1Response403Headers the declared response headers of an HTTP 403 response for CreateRoleV1 +type CreateRoleV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response429Headers struct { +// CreateRoleV1Response409Headers the declared response headers of an HTTP 409 response for CreateRoleV1 +type CreateRoleV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// CreateRoleV1Response415Headers the declared response headers of an HTTP 415 response for CreateRoleV1 +type CreateRoleV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// CreateRoleV1Response422Headers the declared response headers of an HTTP 422 response for CreateRoleV1 +type CreateRoleV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateRoleV1Response429Headers the declared response headers of an HTTP 429 response for CreateRoleV1 +type CreateRoleV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSystemSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetSystemSsoSettingsV1 -type GetSystemSsoSettingsV1Response500Headers struct { +// CreateRoleV1Response500Headers the declared response headers of an HTTP 500 response for CreateRoleV1 +type CreateRoleV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSystemSsoSettingsV1Response struct { +type CreateRoleV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AllSsoSettingsResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *RoleResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSystemSsoSettingsV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateRoleV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSystemSsoSettingsV1Response400Headers + Headers400 *CreateRoleV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSystemSsoSettingsV1Response401Headers + Headers401 *CreateRoleV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSystemSsoSettingsV1Response403Headers + Headers403 *CreateRoleV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateRoleV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateRoleV1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateRoleV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSystemSsoSettingsV1Response429Headers + Headers429 *CreateRoleV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSystemSsoSettingsV1Response500Headers + Headers500 *CreateRoleV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON200() *AllSsoSettingsResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateRoleV1Response) GetJSON201() *RoleResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON400() *BadRequest { +func (r CreateRoleV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r CreateRoleV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON403() *Forbidden { +func (r CreateRoleV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateRoleV1Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateRoleV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateRoleV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON429() *TooManyRequests { +func (r CreateRoleV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSystemSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r CreateRoleV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSystemSsoSettingsV1Response) GetBody() []byte { +func (r CreateRoleV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSystemSsoSettingsV1Response) Status() string { +func (r CreateRoleV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69264,7 +75375,7 @@ func (r GetSystemSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSystemSsoSettingsV1Response) StatusCode() int { +func (r CreateRoleV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69272,141 +75383,134 @@ func (r GetSystemSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSystemSsoSettingsV1Response) ContentType() string { +func (r CreateRoleV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateSystemSsoSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response201Headers struct { +// DeleteRoleByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response400Headers struct { +// DeleteRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response401Headers struct { +// DeleteRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response403Headers struct { +// DeleteRoleByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response415Headers struct { +// DeleteRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response422Headers struct { +// DeleteRoleByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response429Headers struct { +// DeleteRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateSystemSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateSystemSsoSettingsV1 -type CreateSystemSsoSettingsV1Response500Headers struct { +// DeleteRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteRoleByIdV1 +type DeleteRoleByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateSystemSsoSettingsV1Response struct { +type DeleteRoleByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *SsoSettingsResponseV1 // 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 - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType + // JSON404 the response for an HTTP 404 `application/json` response + 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 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateSystemSsoSettingsV1Response201Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteRoleByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateSystemSsoSettingsV1Response400Headers + Headers400 *DeleteRoleByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateSystemSsoSettingsV1Response401Headers + Headers401 *DeleteRoleByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateSystemSsoSettingsV1Response403Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateSystemSsoSettingsV1Response415Headers + Headers403 *DeleteRoleByIdV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteRoleByIdV1Response404Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateSystemSsoSettingsV1Response422Headers + Headers422 *DeleteRoleByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateSystemSsoSettingsV1Response429Headers + Headers429 *DeleteRoleByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateSystemSsoSettingsV1Response500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON201() *SsoSettingsResponseV1 { - return r.JSON201 + Headers500 *DeleteRoleByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON400() *BadRequest { +func (r DeleteRoleByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON401() *Unauthorized { +func (r DeleteRoleByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON403() *Forbidden { +func (r DeleteRoleByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteRoleByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { +func (r DeleteRoleByIdV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON429() *TooManyRequests { +func (r DeleteRoleByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateSystemSsoSettingsV1Response) GetJSON500() *InternalServerError { +func (r DeleteRoleByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateSystemSsoSettingsV1Response) GetBody() []byte { +func (r DeleteRoleByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateSystemSsoSettingsV1Response) Status() string { +func (r DeleteRoleByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69414,7 +75518,7 @@ func (r CreateSystemSsoSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateSystemSsoSettingsV1Response) StatusCode() int { +func (r DeleteRoleByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69422,120 +75526,113 @@ func (r CreateSystemSsoSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateSystemSsoSettingsV1Response) ContentType() string { +func (r DeleteRoleByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteSystemSsoSettingsByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response400Headers struct { +// GetRoleByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetRoleByIdV1 +type GetRoleByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response401Headers struct { +// GetRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetRoleByIdV1 +type GetRoleByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response403Headers struct { +// GetRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetRoleByIdV1 +type GetRoleByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response404Headers struct { +// GetRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetRoleByIdV1 +type GetRoleByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response429Headers struct { +// GetRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetRoleByIdV1 +type GetRoleByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteSystemSsoSettingsByIdV1 -type DeleteSystemSsoSettingsByIdV1Response500Headers struct { +// GetRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetRoleByIdV1 +type GetRoleByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteSystemSsoSettingsByIdV1Response struct { +type GetRoleByIdV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *RoleResponseV1 // 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 *DeleteSystemSsoSettingsByIdV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetRoleByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSystemSsoSettingsByIdV1Response400Headers + Headers400 *GetRoleByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSystemSsoSettingsByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSystemSsoSettingsByIdV1Response403Headers + Headers401 *GetRoleByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteSystemSsoSettingsByIdV1Response404Headers + Headers404 *GetRoleByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSystemSsoSettingsByIdV1Response429Headers + Headers429 *GetRoleByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSystemSsoSettingsByIdV1Response500Headers + Headers500 *GetRoleByIdV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetRoleByIdV1Response) GetJSON200() *RoleResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r GetRoleByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r GetRoleByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { +func (r GetRoleByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetRoleByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { +func (r GetRoleByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSystemSsoSettingsByIdV1Response) GetBody() []byte { +func (r GetRoleByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSystemSsoSettingsByIdV1Response) Status() string { +func (r GetRoleByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69543,7 +75640,7 @@ func (r DeleteSystemSsoSettingsByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSystemSsoSettingsByIdV1Response) StatusCode() int { +func (r GetRoleByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69551,57 +75648,72 @@ func (r DeleteSystemSsoSettingsByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteSystemSsoSettingsByIdV1Response) ContentType() string { +func (r GetRoleByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetSystemSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response200Headers struct { +// UpdateRoleByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response400Headers struct { +// UpdateRoleByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response401Headers struct { +// UpdateRoleByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response403Headers struct { +// UpdateRoleByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response404Headers struct { +// UpdateRoleByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response429Headers struct { +// UpdateRoleByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// UpdateRoleByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateRoleByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// UpdateRoleByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetSystemSsoSettingsByIdV1 -type GetSystemSsoSettingsByIdV1Response500Headers struct { +// UpdateRoleByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateRoleByIdV1 +type UpdateRoleByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetSystemSsoSettingsByIdV1Response struct { +type UpdateRoleByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SsoSettingsResponseV1 + JSON200 *RoleResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -69610,68 +75722,95 @@ type GetSystemSsoSettingsByIdV1Response struct { 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetSystemSsoSettingsByIdV1Response200Headers + Headers200 *UpdateRoleByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSystemSsoSettingsByIdV1Response400Headers + Headers400 *UpdateRoleByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSystemSsoSettingsByIdV1Response401Headers + Headers401 *UpdateRoleByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSystemSsoSettingsByIdV1Response403Headers + Headers403 *UpdateRoleByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetSystemSsoSettingsByIdV1Response404Headers + Headers404 *UpdateRoleByIdV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateRoleByIdV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateRoleByIdV1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *UpdateRoleByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSystemSsoSettingsByIdV1Response429Headers + Headers429 *UpdateRoleByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSystemSsoSettingsByIdV1Response500Headers + Headers500 *UpdateRoleByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { +func (r UpdateRoleByIdV1Response) GetJSON200() *RoleResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r UpdateRoleByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r UpdateRoleByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { +func (r UpdateRoleByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { +func (r UpdateRoleByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateRoleByIdV1Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateRoleByIdV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r UpdateRoleByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { +func (r UpdateRoleByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { +func (r UpdateRoleByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSystemSsoSettingsByIdV1Response) GetBody() []byte { +func (r UpdateRoleByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSystemSsoSettingsByIdV1Response) Status() string { +func (r UpdateRoleByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69679,7 +75818,7 @@ func (r GetSystemSsoSettingsByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSystemSsoSettingsByIdV1Response) StatusCode() int { +func (r UpdateRoleByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69687,249 +75826,99 @@ func (r GetSystemSsoSettingsByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetSystemSsoSettingsByIdV1Response) ContentType() string { +func (r UpdateRoleByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateSystemSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// UpdateSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response403Headers struct { +// GetGlobalServiceAccountsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountsV1 +type GetGlobalServiceAccountsV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response404Headers struct { +// GetGlobalServiceAccountsV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountsV1 +type GetGlobalServiceAccountsV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateSystemSsoSettingsByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response415Headers struct { +// GetGlobalServiceAccountsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountsV1 +type GetGlobalServiceAccountsV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response429Headers struct { +// GetGlobalServiceAccountsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountsV1 +type GetGlobalServiceAccountsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateSystemSsoSettingsByIdV1 -type UpdateSystemSsoSettingsByIdV1Response500Headers struct { +// GetGlobalServiceAccountsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountsV1 +type GetGlobalServiceAccountsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateSystemSsoSettingsByIdV1Response struct { +type GetGlobalServiceAccountsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SsoSettingsResponseV1 + JSON200 *GetServiceAccountsPaginatedResponseV1 // 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 - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType // 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 *UpdateSystemSsoSettingsByIdV1Response200Headers + Headers200 *GetGlobalServiceAccountsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateSystemSsoSettingsByIdV1Response400Headers + Headers400 *GetGlobalServiceAccountsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateSystemSsoSettingsByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateSystemSsoSettingsByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateSystemSsoSettingsByIdV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateSystemSsoSettingsByIdV1Response415Headers + Headers401 *GetGlobalServiceAccountsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateSystemSsoSettingsByIdV1Response429Headers + Headers429 *GetGlobalServiceAccountsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateSystemSsoSettingsByIdV1Response500Headers + Headers500 *GetGlobalServiceAccountsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { +func (r GetGlobalServiceAccountsV1Response) GetJSON200() *GetServiceAccountsPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { +func (r GetGlobalServiceAccountsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { +func (r GetGlobalServiceAccountsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetGlobalServiceAccountsV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { - return r.JSON500 -} - -// GetBody returns the raw response body bytes -func (r UpdateSystemSsoSettingsByIdV1Response) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r UpdateSystemSsoSettingsByIdV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r UpdateSystemSsoSettingsByIdV1Response) 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 UpdateSystemSsoSettingsByIdV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" -} - -// GetTeamsV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamsV1 -type GetTeamsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// GetTeamsV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamsV1 -type GetTeamsV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetTeamsV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamsV1 -type GetTeamsV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// GetTeamsV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamsV1 -type GetTeamsV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 -} - -// GetTeamsV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamsV1 -type GetTeamsV1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int32 - XRequestId *openapi_types.UUID -} - -type GetTeamsV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetTeamsPaginatedResponseV1 - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // 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 *GetTeamsV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamsV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamsV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamsV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamsV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamsV1Response) GetJSON200() *GetTeamsPaginatedResponseV1 { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamsV1Response) GetJSON400() *BadRequest { - return r.JSON400 -} - -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamsV1Response) GetJSON401() *Unauthorized { - return r.JSON401 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamsV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 -} - -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamsV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetGlobalServiceAccountsV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamsV1Response) GetBody() []byte { +func (r GetGlobalServiceAccountsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamsV1Response) Status() string { +func (r GetGlobalServiceAccountsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -69937,7 +75926,7 @@ func (r GetTeamsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamsV1Response) StatusCode() int { +func (r GetGlobalServiceAccountsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -69945,62 +75934,62 @@ func (r GetTeamsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamsV1Response) ContentType() string { +func (r GetGlobalServiceAccountsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateTeamV1Response201Headers the declared response headers of an HTTP 201 response for CreateTeamV1 -type CreateTeamV1Response201Headers struct { +// CreateGlobalServiceAccountV1Response201Headers the declared response headers of an HTTP 201 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response400Headers the declared response headers of an HTTP 400 response for CreateTeamV1 -type CreateTeamV1Response400Headers struct { +// CreateGlobalServiceAccountV1Response400Headers the declared response headers of an HTTP 400 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response401Headers the declared response headers of an HTTP 401 response for CreateTeamV1 -type CreateTeamV1Response401Headers struct { +// CreateGlobalServiceAccountV1Response401Headers the declared response headers of an HTTP 401 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response409Headers the declared response headers of an HTTP 409 response for CreateTeamV1 -type CreateTeamV1Response409Headers struct { +// CreateGlobalServiceAccountV1Response409Headers the declared response headers of an HTTP 409 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response409Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response415Headers the declared response headers of an HTTP 415 response for CreateTeamV1 -type CreateTeamV1Response415Headers struct { +// CreateGlobalServiceAccountV1Response415Headers the declared response headers of an HTTP 415 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response415Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response422Headers the declared response headers of an HTTP 422 response for CreateTeamV1 -type CreateTeamV1Response422Headers struct { +// CreateGlobalServiceAccountV1Response422Headers the declared response headers of an HTTP 422 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateTeamV1Response429Headers the declared response headers of an HTTP 429 response for CreateTeamV1 -type CreateTeamV1Response429Headers struct { +// CreateGlobalServiceAccountV1Response429Headers the declared response headers of an HTTP 429 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateTeamV1Response500Headers the declared response headers of an HTTP 500 response for CreateTeamV1 -type CreateTeamV1Response500Headers struct { +// CreateGlobalServiceAccountV1Response500Headers the declared response headers of an HTTP 500 response for CreateGlobalServiceAccountV1 +type CreateGlobalServiceAccountV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateTeamV1Response struct { +type CreateGlobalServiceAccountV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *TeamResponseV1 + JSON201 *ServiceAccountWithKeyResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -70016,70 +76005,70 @@ type CreateTeamV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateTeamV1Response201Headers + Headers201 *CreateGlobalServiceAccountV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateTeamV1Response400Headers + Headers400 *CreateGlobalServiceAccountV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateTeamV1Response401Headers + Headers401 *CreateGlobalServiceAccountV1Response401Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateTeamV1Response409Headers + Headers409 *CreateGlobalServiceAccountV1Response409Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateTeamV1Response415Headers + Headers415 *CreateGlobalServiceAccountV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateTeamV1Response422Headers + Headers422 *CreateGlobalServiceAccountV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateTeamV1Response429Headers + Headers429 *CreateGlobalServiceAccountV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateTeamV1Response500Headers + Headers500 *CreateGlobalServiceAccountV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateTeamV1Response) GetJSON201() *TeamResponseV1 { +func (r CreateGlobalServiceAccountV1Response) GetJSON201() *ServiceAccountWithKeyResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateTeamV1Response) GetJSON400() *BadRequest { +func (r CreateGlobalServiceAccountV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateTeamV1Response) GetJSON401() *Unauthorized { +func (r CreateGlobalServiceAccountV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateTeamV1Response) GetJSON409() *Conflict { +func (r CreateGlobalServiceAccountV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateTeamV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateGlobalServiceAccountV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateTeamV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateGlobalServiceAccountV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateTeamV1Response) GetJSON429() *TooManyRequests { +func (r CreateGlobalServiceAccountV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateTeamV1Response) GetJSON500() *InternalServerError { +func (r CreateGlobalServiceAccountV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateTeamV1Response) GetBody() []byte { +func (r CreateGlobalServiceAccountV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateTeamV1Response) Status() string { +func (r CreateGlobalServiceAccountV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70087,7 +76076,7 @@ func (r CreateTeamV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamV1Response) StatusCode() int { +func (r CreateGlobalServiceAccountV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70095,58 +76084,53 @@ func (r CreateTeamV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateTeamV1Response) ContentType() string { +func (r CreateGlobalServiceAccountV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteTeamByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response400Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response401Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response403Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response404Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response422Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response429Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamByIdV1 -type DeleteTeamByIdV1Response500Headers struct { +// DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGlobalServiceAccountsNotificationSettingsV1 +type DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteTeamByIdV1Response struct { +type DeleteGlobalServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -70157,72 +76141,63 @@ type DeleteTeamByIdV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response 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 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteTeamByIdV1Response204Headers + Headers204 *DeleteGlobalServiceAccountsNotificationSettingsV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteTeamByIdV1Response400Headers + Headers400 *DeleteGlobalServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteTeamByIdV1Response401Headers + Headers401 *DeleteGlobalServiceAccountsNotificationSettingsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteTeamByIdV1Response403Headers + Headers403 *DeleteGlobalServiceAccountsNotificationSettingsV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteTeamByIdV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteTeamByIdV1Response422Headers + Headers404 *DeleteGlobalServiceAccountsNotificationSettingsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteTeamByIdV1Response429Headers + Headers429 *DeleteGlobalServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteTeamByIdV1Response500Headers + Headers500 *DeleteGlobalServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON403() *Forbidden { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON404() *NotFound { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteTeamByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteTeamByIdV1Response) GetBody() []byte { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteTeamByIdV1Response) Status() string { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70230,7 +76205,7 @@ func (r DeleteTeamByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamByIdV1Response) StatusCode() int { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70238,52 +76213,52 @@ func (r DeleteTeamByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteTeamByIdV1Response) ContentType() string { +func (r DeleteGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTeamByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamByIdV1 -type GetTeamByIdV1Response200Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamByIdV1 -type GetTeamByIdV1Response400Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamByIdV1 -type GetTeamByIdV1Response401Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamByIdV1 -type GetTeamByIdV1Response404Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// GetTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamByIdV1 -type GetTeamByIdV1Response429Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamByIdV1 -type GetTeamByIdV1Response500Headers struct { +// GetGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountsNotificationSettingsV1 +type GetGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetTeamByIdV1Response struct { +type GetGlobalServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *TeamResponseV1 + JSON200 *ServiceAccountsNotificationSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -70295,56 +76270,56 @@ type GetTeamByIdV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetTeamByIdV1Response200Headers + Headers200 *GetGlobalServiceAccountsNotificationSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamByIdV1Response400Headers + Headers400 *GetGlobalServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamByIdV1Response401Headers + Headers401 *GetGlobalServiceAccountsNotificationSettingsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetTeamByIdV1Response404Headers + Headers404 *GetGlobalServiceAccountsNotificationSettingsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamByIdV1Response429Headers + Headers429 *GetGlobalServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamByIdV1Response500Headers + Headers500 *GetGlobalServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamByIdV1Response) GetJSON200() *TeamResponseV1 { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamByIdV1Response) GetJSON400() *BadRequest { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamByIdV1Response) GetJSON401() *Unauthorized { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetTeamByIdV1Response) GetJSON404() *NotFound { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamByIdV1Response) GetJSON500() *InternalServerError { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamByIdV1Response) GetBody() []byte { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamByIdV1Response) Status() string { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70352,7 +76327,7 @@ func (r GetTeamByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamByIdV1Response) StatusCode() int { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70360,82 +76335,68 @@ func (r GetTeamByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamByIdV1Response) ContentType() string { +func (r GetGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateTeamByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response401Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response403Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response404Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response409Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response415Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response422Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers struct { XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response429Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateTeamByIdV1 -type UpdateTeamByIdV1Response500Headers struct { +// CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateGlobalServiceAccountsNotificationSettingsV1 +type CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateTeamByIdV1Response struct { +type CreateGlobalServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *TeamResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ServiceAccountsNotificationSettingsResponseV1 // 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 // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -70444,85 +76405,71 @@ type UpdateTeamByIdV1Response 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 *UpdateTeamByIdV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateGlobalServiceAccountsNotificationSettingsV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateTeamByIdV1Response400Headers + Headers400 *CreateGlobalServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateTeamByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateTeamByIdV1Response403Headers + Headers401 *CreateGlobalServiceAccountsNotificationSettingsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateTeamByIdV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateTeamByIdV1Response409Headers + Headers404 *CreateGlobalServiceAccountsNotificationSettingsV1Response404Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateTeamByIdV1Response415Headers + Headers415 *CreateGlobalServiceAccountsNotificationSettingsV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *UpdateTeamByIdV1Response422Headers + Headers422 *CreateGlobalServiceAccountsNotificationSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateTeamByIdV1Response429Headers + Headers429 *CreateGlobalServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateTeamByIdV1Response500Headers + Headers500 *CreateGlobalServiceAccountsNotificationSettingsV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON200() *TeamResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON201() *ServiceAccountsNotificationSettingsResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON400() *BadRequest { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON401() *Unauthorized { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON404() *NotFound { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON429() *TooManyRequests { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateTeamByIdV1Response) GetJSON500() *InternalServerError { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateTeamByIdV1Response) GetBody() []byte { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateTeamByIdV1Response) Status() string { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70530,7 +76477,7 @@ func (r UpdateTeamByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateTeamByIdV1Response) StatusCode() int { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70538,99 +76485,141 @@ func (r UpdateTeamByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateTeamByIdV1Response) ContentType() string { +func (r CreateGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTeamServiceAccountsV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamServiceAccountsV1 -type GetTeamServiceAccountsV1Response200Headers struct { +// UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountsV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamServiceAccountsV1 -type GetTeamServiceAccountsV1Response400Headers struct { +// UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountsV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamServiceAccountsV1 -type GetTeamServiceAccountsV1Response401Headers struct { +// UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountsV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamServiceAccountsV1 -type GetTeamServiceAccountsV1Response429Headers struct { +// UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetTeamServiceAccountsV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamServiceAccountsV1 -type GetTeamServiceAccountsV1Response500Headers struct { +// UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateGlobalServiceAccountsNotificationSettingsV1 +type UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetTeamServiceAccountsV1Response struct { +type UpdateGlobalServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetServiceAccountsPaginatedResponseV1 + JSON200 *ServiceAccountsNotificationSettingsResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // 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 *GetTeamServiceAccountsV1Response200Headers + Headers200 *UpdateGlobalServiceAccountsNotificationSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamServiceAccountsV1Response400Headers + Headers400 *UpdateGlobalServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamServiceAccountsV1Response401Headers + Headers401 *UpdateGlobalServiceAccountsNotificationSettingsV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateGlobalServiceAccountsNotificationSettingsV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateGlobalServiceAccountsNotificationSettingsV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateGlobalServiceAccountsNotificationSettingsV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamServiceAccountsV1Response429Headers + Headers429 *UpdateGlobalServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamServiceAccountsV1Response500Headers + Headers500 *UpdateGlobalServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamServiceAccountsV1Response) GetJSON200() *GetServiceAccountsPaginatedResponseV1 { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamServiceAccountsV1Response) GetJSON400() *BadRequest { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamServiceAccountsV1Response) GetJSON401() *Unauthorized { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamServiceAccountsV1Response) GetJSON429() *TooManyRequests { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamServiceAccountsV1Response) GetJSON500() *InternalServerError { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamServiceAccountsV1Response) GetBody() []byte { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamServiceAccountsV1Response) Status() string { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70638,7 +76627,7 @@ func (r GetTeamServiceAccountsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamServiceAccountsV1Response) StatusCode() int { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70646,155 +76635,134 @@ func (r GetTeamServiceAccountsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamServiceAccountsV1Response) ContentType() string { +func (r UpdateGlobalServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateTeamServiceAccountV1Response201Headers the declared response headers of an HTTP 201 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response201Headers struct { - XRateLimitLimit *int32 -} - -// CreateTeamServiceAccountV1Response400Headers the declared response headers of an HTTP 400 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response400Headers struct { +// DeleteGlobalServiceAccountByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response401Headers the declared response headers of an HTTP 401 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response401Headers struct { +// DeleteGlobalServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response404Headers the declared response headers of an HTTP 404 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response404Headers struct { +// DeleteGlobalServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response409Headers the declared response headers of an HTTP 409 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response409Headers struct { +// DeleteGlobalServiceAccountByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response415Headers the declared response headers of an HTTP 415 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response415Headers struct { +// DeleteGlobalServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response422Headers the declared response headers of an HTTP 422 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response422Headers struct { +// DeleteGlobalServiceAccountByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response429Headers the declared response headers of an HTTP 429 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response429Headers struct { +// DeleteGlobalServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1Response500Headers the declared response headers of an HTTP 500 response for CreateTeamServiceAccountV1 -type CreateTeamServiceAccountV1Response500Headers struct { +// DeleteGlobalServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteGlobalServiceAccountByIdV1 +type DeleteGlobalServiceAccountByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateTeamServiceAccountV1Response struct { +type DeleteGlobalServiceAccountByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ServiceAccountWithKeyResponseV1 // 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 - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType // 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 *CreateTeamServiceAccountV1Response201Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteGlobalServiceAccountByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateTeamServiceAccountV1Response400Headers + Headers400 *DeleteGlobalServiceAccountByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateTeamServiceAccountV1Response401Headers + Headers401 *DeleteGlobalServiceAccountByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteGlobalServiceAccountByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *CreateTeamServiceAccountV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateTeamServiceAccountV1Response409Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateTeamServiceAccountV1Response415Headers + Headers404 *DeleteGlobalServiceAccountByIdV1Response404Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateTeamServiceAccountV1Response422Headers + Headers422 *DeleteGlobalServiceAccountByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateTeamServiceAccountV1Response429Headers + Headers429 *DeleteGlobalServiceAccountByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateTeamServiceAccountV1Response500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON201() *ServiceAccountWithKeyResponseV1 { - return r.JSON201 + Headers500 *DeleteGlobalServiceAccountByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON400() *BadRequest { +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON401() *Unauthorized { +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON404() *NotFound { - return r.JSON404 -} - -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON422() *UnprocessableEntity { +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON429() *TooManyRequests { +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateTeamServiceAccountV1Response) GetJSON500() *InternalServerError { +func (r DeleteGlobalServiceAccountByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateTeamServiceAccountV1Response) GetBody() []byte { +func (r DeleteGlobalServiceAccountByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateTeamServiceAccountV1Response) Status() string { +func (r DeleteGlobalServiceAccountByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70802,7 +76770,7 @@ func (r CreateTeamServiceAccountV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateTeamServiceAccountV1Response) StatusCode() int { +func (r DeleteGlobalServiceAccountByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70810,120 +76778,113 @@ func (r CreateTeamServiceAccountV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateTeamServiceAccountV1Response) ContentType() string { +func (r DeleteGlobalServiceAccountByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteServiceAccountsNotificationSettingsV1Response204Headers the declared response headers of an HTTP 204 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response400Headers struct { +// GetGlobalServiceAccountByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response401Headers struct { +// GetGlobalServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response403Headers struct { +// GetGlobalServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response404Headers struct { +// GetGlobalServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response429Headers struct { +// GetGlobalServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for DeleteServiceAccountsNotificationSettingsV1 -type DeleteServiceAccountsNotificationSettingsV1Response500Headers struct { +// GetGlobalServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetGlobalServiceAccountByIdV1 +type GetGlobalServiceAccountByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteServiceAccountsNotificationSettingsV1Response struct { +type GetGlobalServiceAccountByIdV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ServiceAccountResponseV1 // 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 *DeleteServiceAccountsNotificationSettingsV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetGlobalServiceAccountByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *GetGlobalServiceAccountByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteServiceAccountsNotificationSettingsV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteServiceAccountsNotificationSettingsV1Response403Headers + Headers401 *GetGlobalServiceAccountByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteServiceAccountsNotificationSettingsV1Response404Headers + Headers404 *GetGlobalServiceAccountByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *GetGlobalServiceAccountByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *GetGlobalServiceAccountByIdV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetGlobalServiceAccountByIdV1Response) GetJSON200() *ServiceAccountResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r GetGlobalServiceAccountByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetGlobalServiceAccountByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { +func (r GetGlobalServiceAccountByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetGlobalServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetGlobalServiceAccountByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r GetGlobalServiceAccountByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteServiceAccountsNotificationSettingsV1Response) Status() string { +func (r GetGlobalServiceAccountByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -70931,7 +76892,7 @@ func (r DeleteServiceAccountsNotificationSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r GetGlobalServiceAccountByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -70939,113 +76900,113 @@ func (r DeleteServiceAccountsNotificationSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r GetGlobalServiceAccountByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response200Headers struct { +// GetSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response400Headers struct { +// GetSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response401Headers struct { +// GetSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response404Headers struct { +// GetSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// GetServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response429Headers struct { +// GetSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetServiceAccountsNotificationSettingsV1 -type GetServiceAccountsNotificationSettingsV1Response500Headers struct { +// GetSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetSsoSettingsV1 +type GetSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetServiceAccountsNotificationSettingsV1Response struct { +type GetSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountsNotificationSettingsResponseV1 + JSON200 *AllSsoSettingsResponseV1 // 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 + // 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 *GetServiceAccountsNotificationSettingsV1Response200Headers + Headers200 *GetSsoSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *GetSsoSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetServiceAccountsNotificationSettingsV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetServiceAccountsNotificationSettingsV1Response404Headers + Headers401 *GetSsoSettingsV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSsoSettingsV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *GetSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *GetSsoSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { +func (r GetSsoSettingsV1Response) GetJSON200() *AllSsoSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r GetSsoSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r GetSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSsoSettingsV1Response) GetJSON403() *Forbidden { + return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r GetSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r GetSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r GetSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetServiceAccountsNotificationSettingsV1Response) Status() string { +func (r GetSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71053,7 +77014,7 @@ func (r GetServiceAccountsNotificationSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r GetSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71061,68 +77022,68 @@ func (r GetServiceAccountsNotificationSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r GetSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateServiceAccountsNotificationSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response201Headers struct { +// CreateSsoSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response400Headers struct { +// CreateSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response401Headers struct { +// CreateSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response404Headers struct { +// CreateSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response415Headers struct { +// CreateSsoSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response415Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response422Headers struct { +// CreateSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response429Headers struct { +// CreateSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateServiceAccountsNotificationSettingsV1 -type CreateServiceAccountsNotificationSettingsV1Response500Headers struct { +// CreateSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateSsoSettingsV1 +type CreateSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateServiceAccountsNotificationSettingsV1Response struct { +type CreateSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ServiceAccountsNotificationSettingsResponseV1 + JSON201 *SsoSettingsResponseV1 // 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 + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden // JSON415 the response for an HTTP 415 `application/json` response JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response @@ -71132,70 +77093,70 @@ type CreateServiceAccountsNotificationSettingsV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateServiceAccountsNotificationSettingsV1Response201Headers + Headers201 *CreateSsoSettingsV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *CreateSsoSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateServiceAccountsNotificationSettingsV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *CreateServiceAccountsNotificationSettingsV1Response404Headers + Headers401 *CreateSsoSettingsV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateSsoSettingsV1Response403Headers // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *CreateServiceAccountsNotificationSettingsV1Response415Headers + Headers415 *CreateSsoSettingsV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateServiceAccountsNotificationSettingsV1Response422Headers + Headers422 *CreateSsoSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *CreateSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateServiceAccountsNotificationSettingsV1Response500Headers + Headers500 *CreateSsoSettingsV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON201() *ServiceAccountsNotificationSettingsResponseV1 { +func (r CreateSsoSettingsV1Response) GetJSON201() *SsoSettingsResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r CreateSsoSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r CreateSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateSsoSettingsV1Response) GetJSON403() *Forbidden { + return r.JSON403 } // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { +func (r CreateSsoSettingsV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r CreateSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r CreateSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r CreateSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateServiceAccountsNotificationSettingsV1Response) Status() string { +func (r CreateSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71203,7 +77164,7 @@ func (r CreateServiceAccountsNotificationSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r CreateSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71211,62 +77172,55 @@ func (r CreateServiceAccountsNotificationSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r CreateSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// UpdateServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response400Headers struct { +// DeleteSsoSettingsByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response401Headers struct { +// DeleteSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response403Headers struct { +// DeleteSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response404Headers struct { +// DeleteSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response415Headers struct { +// DeleteSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response429Headers struct { +// DeleteSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateServiceAccountsNotificationSettingsV1 -type UpdateServiceAccountsNotificationSettingsV1Response500Headers struct { +// DeleteSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteSsoSettingsByIdV1 +type DeleteSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateServiceAccountsNotificationSettingsV1Response struct { +type DeleteSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountsNotificationSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -71275,77 +77229,63 @@ type UpdateServiceAccountsNotificationSettingsV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFound - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType // 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 *UpdateServiceAccountsNotificationSettingsV1Response200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteSsoSettingsByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateServiceAccountsNotificationSettingsV1Response400Headers + Headers400 *DeleteSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateServiceAccountsNotificationSettingsV1Response401Headers + Headers401 *DeleteSsoSettingsByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateServiceAccountsNotificationSettingsV1Response403Headers + Headers403 *DeleteSsoSettingsByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateServiceAccountsNotificationSettingsV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *UpdateServiceAccountsNotificationSettingsV1Response415Headers + Headers404 *DeleteSsoSettingsByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateServiceAccountsNotificationSettingsV1Response429Headers + Headers429 *DeleteSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateServiceAccountsNotificationSettingsV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { - return r.JSON200 + Headers500 *DeleteSsoSettingsByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { +func (r DeleteSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { +func (r DeleteSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { +func (r DeleteSsoSettingsByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { +func (r DeleteSsoSettingsByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { +func (r DeleteSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { +func (r DeleteSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateServiceAccountsNotificationSettingsV1Response) GetBody() []byte { +func (r DeleteSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateServiceAccountsNotificationSettingsV1Response) Status() string { +func (r DeleteSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71353,7 +77293,7 @@ func (r UpdateServiceAccountsNotificationSettingsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateServiceAccountsNotificationSettingsV1Response) StatusCode() int { +func (r DeleteSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71361,60 +77301,57 @@ func (r UpdateServiceAccountsNotificationSettingsV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateServiceAccountsNotificationSettingsV1Response) ContentType() string { +func (r DeleteSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteTeamServiceAccountByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response204Headers struct { - XRateLimitLimit *int32 -} - -// DeleteTeamServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response400Headers struct { +// GetSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response401Headers struct { +// GetSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response403Headers struct { +// GetSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response404Headers struct { +// GetSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response422Headers struct { +// GetSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response429Headers struct { +// GetSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteTeamServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamServiceAccountByIdV1 -type DeleteTeamServiceAccountByIdV1Response500Headers struct { +// GetSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetSsoSettingsByIdV1 +type GetSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteTeamServiceAccountByIdV1Response struct { +type GetSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *SsoSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -71423,72 +77360,68 @@ type DeleteTeamServiceAccountByIdV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response 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 *InternalServerError - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteTeamServiceAccountByIdV1Response204Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetSsoSettingsByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteTeamServiceAccountByIdV1Response400Headers + Headers400 *GetSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteTeamServiceAccountByIdV1Response401Headers + Headers401 *GetSsoSettingsByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteTeamServiceAccountByIdV1Response403Headers + Headers403 *GetSsoSettingsByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteTeamServiceAccountByIdV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteTeamServiceAccountByIdV1Response422Headers + Headers404 *GetSsoSettingsByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteTeamServiceAccountByIdV1Response429Headers + Headers429 *GetSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteTeamServiceAccountByIdV1Response500Headers + Headers500 *GetSsoSettingsByIdV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON400() *BadRequest { +func (r GetSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON401() *Unauthorized { +func (r GetSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON403() *Forbidden { +func (r GetSsoSettingsByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON404() *NotFound { +func (r GetSsoSettingsByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteTeamServiceAccountByIdV1Response) GetJSON500() *InternalServerError { +func (r GetSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteTeamServiceAccountByIdV1Response) GetBody() []byte { +func (r GetSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteTeamServiceAccountByIdV1Response) Status() string { +func (r GetSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71496,7 +77429,7 @@ func (r DeleteTeamServiceAccountByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamServiceAccountByIdV1Response) StatusCode() int { +func (r GetSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71504,113 +77437,141 @@ func (r DeleteTeamServiceAccountByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteTeamServiceAccountByIdV1Response) ContentType() string { +func (r GetSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTeamServiceAccountByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response200Headers struct { +// UpdateSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response400Headers struct { +// UpdateSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response401Headers struct { +// UpdateSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response404Headers struct { +// UpdateSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetTeamServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response429Headers struct { +// UpdateSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateSsoSettingsByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetTeamServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamServiceAccountByIdV1 -type GetTeamServiceAccountByIdV1Response500Headers struct { +// UpdateSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateSsoSettingsByIdV1 +type UpdateSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetTeamServiceAccountByIdV1Response struct { +type UpdateSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServiceAccountResponseV1 + JSON200 *SsoSettingsResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // 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 *GetTeamServiceAccountByIdV1Response200Headers + Headers200 *UpdateSsoSettingsByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamServiceAccountByIdV1Response400Headers + Headers400 *UpdateSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamServiceAccountByIdV1Response401Headers + Headers401 *UpdateSsoSettingsByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateSsoSettingsByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetTeamServiceAccountByIdV1Response404Headers + Headers404 *UpdateSsoSettingsByIdV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateSsoSettingsByIdV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamServiceAccountByIdV1Response429Headers + Headers429 *UpdateSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamServiceAccountByIdV1Response500Headers + Headers500 *UpdateSsoSettingsByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON200() *ServiceAccountResponseV1 { +func (r UpdateSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON400() *BadRequest { +func (r UpdateSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON401() *Unauthorized { +func (r UpdateSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateSsoSettingsByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON404() *NotFound { +func (r UpdateSsoSettingsByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateSsoSettingsByIdV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { +func (r UpdateSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamServiceAccountByIdV1Response) GetJSON500() *InternalServerError { +func (r UpdateSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamServiceAccountByIdV1Response) GetBody() []byte { +func (r UpdateSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamServiceAccountByIdV1Response) Status() string { +func (r UpdateSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71618,7 +77579,7 @@ func (r GetTeamServiceAccountByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamServiceAccountByIdV1Response) StatusCode() int { +func (r UpdateSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71626,113 +77587,113 @@ func (r GetTeamServiceAccountByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamServiceAccountByIdV1Response) ContentType() string { +func (r UpdateSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTeamUsersV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamUsersV1 -type GetTeamUsersV1Response200Headers struct { +// GetSystemSsoSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetTeamUsersV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamUsersV1 -type GetTeamUsersV1Response400Headers struct { +// GetSystemSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetTeamUsersV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamUsersV1 -type GetTeamUsersV1Response401Headers struct { +// GetSystemSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetTeamUsersV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamUsersV1 -type GetTeamUsersV1Response404Headers struct { +// GetSystemSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// GetTeamUsersV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamUsersV1 -type GetTeamUsersV1Response429Headers struct { +// GetSystemSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetTeamUsersV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamUsersV1 -type GetTeamUsersV1Response500Headers struct { +// GetSystemSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetSystemSsoSettingsV1 +type GetSystemSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetTeamUsersV1Response struct { +type GetSystemSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetTeamUsersPaginatedResponseV1 + JSON200 *AllSsoSettingsResponseV1 // 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 + // 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 *GetTeamUsersV1Response200Headers + Headers200 *GetSystemSsoSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamUsersV1Response400Headers + Headers400 *GetSystemSsoSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamUsersV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetTeamUsersV1Response404Headers + Headers401 *GetSystemSsoSettingsV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSystemSsoSettingsV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamUsersV1Response429Headers + Headers429 *GetSystemSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamUsersV1Response500Headers + Headers500 *GetSystemSsoSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamUsersV1Response) GetJSON200() *GetTeamUsersPaginatedResponseV1 { +func (r GetSystemSsoSettingsV1Response) GetJSON200() *AllSsoSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamUsersV1Response) GetJSON400() *BadRequest { +func (r GetSystemSsoSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamUsersV1Response) GetJSON401() *Unauthorized { +func (r GetSystemSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetTeamUsersV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSystemSsoSettingsV1Response) GetJSON403() *Forbidden { + return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamUsersV1Response) GetJSON429() *TooManyRequests { +func (r GetSystemSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamUsersV1Response) GetJSON500() *InternalServerError { +func (r GetSystemSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamUsersV1Response) GetBody() []byte { +func (r GetSystemSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamUsersV1Response) Status() string { +func (r GetSystemSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71740,7 +77701,7 @@ func (r GetTeamUsersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamUsersV1Response) StatusCode() int { +func (r GetSystemSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71748,120 +77709,141 @@ func (r GetTeamUsersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamUsersV1Response) ContentType() string { +func (r GetSystemSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteTeamUserByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response204Headers struct { +// CreateSystemSsoSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response201Headers struct { XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response400Headers struct { +// CreateSystemSsoSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response401Headers struct { +// CreateSystemSsoSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response403Headers struct { +// CreateSystemSsoSettingsV1Response403Headers the declared response headers of an HTTP 403 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response404Headers struct { +// CreateSystemSsoSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response415Headers struct { XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response429Headers struct { +// CreateSystemSsoSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateSystemSsoSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteTeamUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamUserByIdV1 -type DeleteTeamUserByIdV1Response500Headers struct { +// CreateSystemSsoSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateSystemSsoSettingsV1 +type CreateSystemSsoSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteTeamUserByIdV1Response struct { +type CreateSystemSsoSettingsV1Response struct { Body []byte HTTPResponse *http.Response + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *SsoSettingsResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteTeamUserByIdV1Response204Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateSystemSsoSettingsV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteTeamUserByIdV1Response400Headers + Headers400 *CreateSystemSsoSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteTeamUserByIdV1Response401Headers + Headers401 *CreateSystemSsoSettingsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteTeamUserByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteTeamUserByIdV1Response404Headers + Headers403 *CreateSystemSsoSettingsV1Response403Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateSystemSsoSettingsV1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateSystemSsoSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteTeamUserByIdV1Response429Headers + Headers429 *CreateSystemSsoSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteTeamUserByIdV1Response500Headers + Headers500 *CreateSystemSsoSettingsV1Response500Headers +} + +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateSystemSsoSettingsV1Response) GetJSON201() *SsoSettingsResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON400() *BadRequest { +func (r CreateSystemSsoSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON401() *Unauthorized { +func (r CreateSystemSsoSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON403() *Forbidden { +func (r CreateSystemSsoSettingsV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON404() *NotFound { - return r.JSON404 +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateSystemSsoSettingsV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateSystemSsoSettingsV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON429() *TooManyRequests { +func (r CreateSystemSsoSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteTeamUserByIdV1Response) GetJSON500() *InternalServerError { +func (r CreateSystemSsoSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteTeamUserByIdV1Response) GetBody() []byte { +func (r CreateSystemSsoSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteTeamUserByIdV1Response) Status() string { +func (r CreateSystemSsoSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71869,7 +77851,7 @@ func (r DeleteTeamUserByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteTeamUserByIdV1Response) StatusCode() int { +func (r CreateSystemSsoSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71877,113 +77859,120 @@ func (r DeleteTeamUserByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteTeamUserByIdV1Response) ContentType() string { +func (r CreateSystemSsoSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetTeamUserByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response200Headers struct { +// DeleteSystemSsoSettingsByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// GetTeamUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response400Headers struct { +// DeleteSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetTeamUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response401Headers struct { +// DeleteSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetTeamUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response404Headers struct { +// DeleteSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetTeamUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response429Headers struct { +// DeleteSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// DeleteSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetTeamUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamUserByIdV1 -type GetTeamUserByIdV1Response500Headers struct { +// DeleteSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteSystemSsoSettingsByIdV1 +type DeleteSystemSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetTeamUserByIdV1Response struct { +type DeleteSystemSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *TeamUserResponseV1 // 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 *GetTeamUserByIdV1Response200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteSystemSsoSettingsByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetTeamUserByIdV1Response400Headers + Headers400 *DeleteSystemSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetTeamUserByIdV1Response401Headers + Headers401 *DeleteSystemSsoSettingsByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteSystemSsoSettingsByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetTeamUserByIdV1Response404Headers + Headers404 *DeleteSystemSsoSettingsByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetTeamUserByIdV1Response429Headers + Headers429 *DeleteSystemSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetTeamUserByIdV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON200() *TeamUserResponseV1 { - return r.JSON200 + Headers500 *DeleteSystemSsoSettingsByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON404() *NotFound { +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetTeamUserByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetTeamUserByIdV1Response) GetBody() []byte { +func (r DeleteSystemSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTeamUserByIdV1Response) Status() string { +func (r DeleteSystemSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -71991,7 +77980,7 @@ func (r GetTeamUserByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTeamUserByIdV1Response) StatusCode() int { +func (r DeleteSystemSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -71999,69 +77988,57 @@ func (r GetTeamUserByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetTeamUserByIdV1Response) ContentType() string { +func (r DeleteSystemSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// SaveTeamUserV1Response200Headers the declared response headers of an HTTP 200 response for SaveTeamUserV1 -type SaveTeamUserV1Response200Headers struct { - XRateLimitLimit *int32 -} - -// SaveTeamUserV1Response201Headers the declared response headers of an HTTP 201 response for SaveTeamUserV1 -type SaveTeamUserV1Response201Headers struct { - XRateLimitLimit *int32 -} - -// SaveTeamUserV1Response400Headers the declared response headers of an HTTP 400 response for SaveTeamUserV1 -type SaveTeamUserV1Response400Headers struct { +// GetSystemSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// SaveTeamUserV1Response401Headers the declared response headers of an HTTP 401 response for SaveTeamUserV1 -type SaveTeamUserV1Response401Headers struct { +// GetSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// SaveTeamUserV1Response403Headers the declared response headers of an HTTP 403 response for SaveTeamUserV1 -type SaveTeamUserV1Response403Headers struct { +// GetSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// SaveTeamUserV1Response404Headers the declared response headers of an HTTP 404 response for SaveTeamUserV1 -type SaveTeamUserV1Response404Headers struct { +// GetSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// SaveTeamUserV1Response415Headers the declared response headers of an HTTP 415 response for SaveTeamUserV1 -type SaveTeamUserV1Response415Headers struct { +// GetSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// SaveTeamUserV1Response429Headers the declared response headers of an HTTP 429 response for SaveTeamUserV1 -type SaveTeamUserV1Response429Headers struct { +// GetSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// SaveTeamUserV1Response500Headers the declared response headers of an HTTP 500 response for SaveTeamUserV1 -type SaveTeamUserV1Response500Headers struct { +// GetSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetSystemSsoSettingsByIdV1 +type GetSystemSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type SaveTeamUserV1Response struct { +type GetSystemSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *TeamUserResponseV1 - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *TeamUserResponseV1 + JSON200 *SsoSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -72070,84 +78047,68 @@ type SaveTeamUserV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFound - // JSON415 the response for an HTTP 415 `application/json` response - JSON415 *UnsupportedMediaType // 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 *SaveTeamUserV1Response200Headers - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *SaveTeamUserV1Response201Headers + Headers200 *GetSystemSsoSettingsByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *SaveTeamUserV1Response400Headers + Headers400 *GetSystemSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *SaveTeamUserV1Response401Headers + Headers401 *GetSystemSsoSettingsByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *SaveTeamUserV1Response403Headers + Headers403 *GetSystemSsoSettingsByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *SaveTeamUserV1Response404Headers - // Headers415 the parsed response headers for an HTTP 415 response - Headers415 *SaveTeamUserV1Response415Headers + Headers404 *GetSystemSsoSettingsByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *SaveTeamUserV1Response429Headers + Headers429 *GetSystemSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *SaveTeamUserV1Response500Headers + Headers500 *GetSystemSsoSettingsByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r SaveTeamUserV1Response) GetJSON200() *TeamUserResponseV1 { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { return r.JSON200 } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r SaveTeamUserV1Response) GetJSON201() *TeamUserResponseV1 { - return r.JSON201 -} - // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r SaveTeamUserV1Response) GetJSON400() *BadRequest { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r SaveTeamUserV1Response) GetJSON401() *Unauthorized { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r SaveTeamUserV1Response) GetJSON403() *Forbidden { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r SaveTeamUserV1Response) GetJSON404() *NotFound { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r SaveTeamUserV1Response) GetJSON415() *UnsupportedMediaType { - return r.JSON415 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r SaveTeamUserV1Response) GetJSON429() *TooManyRequests { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r SaveTeamUserV1Response) GetJSON500() *InternalServerError { +func (r GetSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r SaveTeamUserV1Response) GetBody() []byte { +func (r GetSystemSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r SaveTeamUserV1Response) Status() string { +func (r GetSystemSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72155,7 +78116,7 @@ func (r SaveTeamUserV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SaveTeamUserV1Response) StatusCode() int { +func (r GetSystemSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72163,99 +78124,141 @@ func (r SaveTeamUserV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r SaveTeamUserV1Response) ContentType() string { +func (r GetSystemSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetUsersV1Response200Headers the declared response headers of an HTTP 200 response for GetUsersV1 -type GetUsersV1Response200Headers struct { +// UpdateSystemSsoSettingsByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetUsersV1Response400Headers the declared response headers of an HTTP 400 response for GetUsersV1 -type GetUsersV1Response400Headers struct { +// UpdateSystemSsoSettingsByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetUsersV1Response401Headers the declared response headers of an HTTP 401 response for GetUsersV1 -type GetUsersV1Response401Headers struct { +// UpdateSystemSsoSettingsByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetUsersV1Response429Headers the declared response headers of an HTTP 429 response for GetUsersV1 -type GetUsersV1Response429Headers struct { +// UpdateSystemSsoSettingsByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// UpdateSystemSsoSettingsByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateSystemSsoSettingsByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateSystemSsoSettingsByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetUsersV1Response500Headers the declared response headers of an HTTP 500 response for GetUsersV1 -type GetUsersV1Response500Headers struct { +// UpdateSystemSsoSettingsByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateSystemSsoSettingsByIdV1 +type UpdateSystemSsoSettingsByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetUsersV1Response struct { +type UpdateSystemSsoSettingsByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetUsersPaginatedResponseV1 + JSON200 *SsoSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized - // JSON429 the response for an HTTP 429 `application/json` response + // JSON403 the response for an HTTP 403 `application/json` response + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 *GetUsersV1Response200Headers + Headers200 *UpdateSystemSsoSettingsByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetUsersV1Response400Headers + Headers400 *UpdateSystemSsoSettingsByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetUsersV1Response401Headers + Headers401 *UpdateSystemSsoSettingsByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *UpdateSystemSsoSettingsByIdV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateSystemSsoSettingsByIdV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateSystemSsoSettingsByIdV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetUsersV1Response429Headers + Headers429 *UpdateSystemSsoSettingsByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetUsersV1Response500Headers + Headers500 *UpdateSystemSsoSettingsByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetUsersV1Response) GetJSON200() *GetUsersPaginatedResponseV1 { +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON200() *SsoSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetUsersV1Response) GetJSON400() *BadRequest { +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetUsersV1Response) GetJSON401() *Unauthorized { +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetUsersV1Response) GetJSON429() *TooManyRequests { +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetUsersV1Response) GetJSON500() *InternalServerError { +func (r UpdateSystemSsoSettingsByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetUsersV1Response) GetBody() []byte { +func (r UpdateSystemSsoSettingsByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetUsersV1Response) Status() string { +func (r UpdateSystemSsoSettingsByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72263,7 +78266,7 @@ func (r GetUsersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUsersV1Response) StatusCode() int { +func (r UpdateSystemSsoSettingsByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72271,63 +78274,178 @@ func (r GetUsersV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUsersV1Response) ContentType() string { +func (r UpdateSystemSsoSettingsByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateUserV1Response201Headers the declared response headers of an HTTP 201 response for CreateUserV1 -type CreateUserV1Response201Headers struct { +// GetTeamsV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamsV1 +type GetTeamsV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateUserV1Response400Headers the declared response headers of an HTTP 400 response for CreateUserV1 -type CreateUserV1Response400Headers struct { +// GetTeamsV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamsV1 +type GetTeamsV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateUserV1Response401Headers the declared response headers of an HTTP 401 response for CreateUserV1 -type CreateUserV1Response401Headers struct { +// GetTeamsV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamsV1 +type GetTeamsV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateUserV1Response409Headers the declared response headers of an HTTP 409 response for CreateUserV1 -type CreateUserV1Response409Headers struct { +// GetTeamsV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamsV1 +type GetTeamsV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// CreateUserV1Response422Headers the declared response headers of an HTTP 422 response for CreateUserV1 -type CreateUserV1Response422Headers struct { +// GetTeamsV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamsV1 +type GetTeamsV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetTeamsV1Response struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetTeamsPaginatedResponseV1 + // JSON400 the response for an HTTP 400 `application/json` response + JSON400 *BadRequest + // JSON401 the response for an HTTP 401 `application/json` response + JSON401 *Unauthorized + // 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 *GetTeamsV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetTeamsV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetTeamsV1Response401Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetTeamsV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetTeamsV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetTeamsV1Response) GetJSON200() *GetTeamsPaginatedResponseV1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetTeamsV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetTeamsV1Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetTeamsV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetTeamsV1Response) GetJSON500() *InternalServerError { + return r.JSON500 +} + +// GetBody returns the raw response body bytes +func (r GetTeamsV1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r GetTeamsV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamsV1Response) 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 GetTeamsV1Response) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") + } + return "" +} + +// CreateTeamV1Response201Headers the declared response headers of an HTTP 201 response for CreateTeamV1 +type CreateTeamV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateUserV1Response429Headers the declared response headers of an HTTP 429 response for CreateUserV1 -type CreateUserV1Response429Headers struct { +// CreateTeamV1Response400Headers the declared response headers of an HTTP 400 response for CreateTeamV1 +type CreateTeamV1Response400Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamV1Response401Headers the declared response headers of an HTTP 401 response for CreateTeamV1 +type CreateTeamV1Response401Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamV1Response409Headers the declared response headers of an HTTP 409 response for CreateTeamV1 +type CreateTeamV1Response409Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamV1Response415Headers the declared response headers of an HTTP 415 response for CreateTeamV1 +type CreateTeamV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamV1Response422Headers the declared response headers of an HTTP 422 response for CreateTeamV1 +type CreateTeamV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamV1Response429Headers the declared response headers of an HTTP 429 response for CreateTeamV1 +type CreateTeamV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateUserV1Response500Headers the declared response headers of an HTTP 500 response for CreateUserV1 -type CreateUserV1Response500Headers struct { +// CreateTeamV1Response500Headers the declared response headers of an HTTP 500 response for CreateTeamV1 +type CreateTeamV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateUserV1Response struct { +type CreateTeamV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *UserResponseV1 + JSON201 *TeamResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON409 the response for an HTTP 409 `application/json` response JSON409 *Conflict + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // JSON422 the response for an HTTP 422 `application/json` response JSON422 *UnprocessableEntity // JSON429 the response for an HTTP 429 `application/json` response @@ -72335,63 +78453,70 @@ type CreateUserV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateUserV1Response201Headers + Headers201 *CreateTeamV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateUserV1Response400Headers + Headers400 *CreateTeamV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateUserV1Response401Headers + Headers401 *CreateTeamV1Response401Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateUserV1Response409Headers + Headers409 *CreateTeamV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateTeamV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateUserV1Response422Headers + Headers422 *CreateTeamV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateUserV1Response429Headers + Headers429 *CreateTeamV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateUserV1Response500Headers + Headers500 *CreateTeamV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateUserV1Response) GetJSON201() *UserResponseV1 { +func (r CreateTeamV1Response) GetJSON201() *TeamResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateUserV1Response) GetJSON400() *BadRequest { +func (r CreateTeamV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateUserV1Response) GetJSON401() *Unauthorized { +func (r CreateTeamV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateUserV1Response) GetJSON409() *Conflict { +func (r CreateTeamV1Response) GetJSON409() *Conflict { return r.JSON409 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateTeamV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateUserV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateTeamV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateUserV1Response) GetJSON429() *TooManyRequests { +func (r CreateTeamV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateUserV1Response) GetJSON500() *InternalServerError { +func (r CreateTeamV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateUserV1Response) GetBody() []byte { +func (r CreateTeamV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateUserV1Response) Status() string { +func (r CreateTeamV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72399,7 +78524,7 @@ func (r CreateUserV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateUserV1Response) StatusCode() int { +func (r CreateTeamV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72407,53 +78532,58 @@ func (r CreateUserV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateUserV1Response) ContentType() string { +func (r CreateTeamV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteUserByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response204Headers struct { +// DeleteTeamByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response400Headers struct { +// DeleteTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response401Headers struct { +// DeleteTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteUserByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response403Headers struct { +// DeleteTeamByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response404Headers struct { +// DeleteTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response429Headers struct { +// DeleteTeamByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// DeleteTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteUserByIdV1 -type DeleteUserByIdV1Response500Headers struct { +// DeleteTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamByIdV1 +type DeleteTeamByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteUserByIdV1Response struct { +type DeleteTeamByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -72464,63 +78594,72 @@ type DeleteUserByIdV1Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response 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 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteUserByIdV1Response204Headers + Headers204 *DeleteTeamByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteUserByIdV1Response400Headers + Headers400 *DeleteTeamByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteUserByIdV1Response401Headers + Headers401 *DeleteTeamByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteUserByIdV1Response403Headers + Headers403 *DeleteTeamByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteUserByIdV1Response404Headers + Headers404 *DeleteTeamByIdV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *DeleteTeamByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteUserByIdV1Response429Headers + Headers429 *DeleteTeamByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteUserByIdV1Response500Headers + Headers500 *DeleteTeamByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON400() *BadRequest { +func (r DeleteTeamByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON401() *Unauthorized { +func (r DeleteTeamByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON403() *Forbidden { +func (r DeleteTeamByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON404() *NotFound { +func (r DeleteTeamByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r DeleteTeamByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON429() *TooManyRequests { +func (r DeleteTeamByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteUserByIdV1Response) GetJSON500() *InternalServerError { +func (r DeleteTeamByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteUserByIdV1Response) GetBody() []byte { +func (r DeleteTeamByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteUserByIdV1Response) Status() string { +func (r DeleteTeamByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72528,7 +78667,7 @@ func (r DeleteUserByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteUserByIdV1Response) StatusCode() int { +func (r DeleteTeamByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72536,52 +78675,52 @@ func (r DeleteUserByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteUserByIdV1Response) ContentType() string { +func (r DeleteTeamByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetUserByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetUserByIdV1 -type GetUserByIdV1Response200Headers struct { +// GetTeamByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamByIdV1 +type GetTeamByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetUserByIdV1 -type GetUserByIdV1Response400Headers struct { +// GetTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamByIdV1 +type GetTeamByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetUserByIdV1 -type GetUserByIdV1Response401Headers struct { +// GetTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamByIdV1 +type GetTeamByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetUserByIdV1 -type GetUserByIdV1Response404Headers struct { +// GetTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamByIdV1 +type GetTeamByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetUserByIdV1 -type GetUserByIdV1Response429Headers struct { +// GetTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamByIdV1 +type GetTeamByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetUserByIdV1 -type GetUserByIdV1Response500Headers struct { +// GetTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamByIdV1 +type GetTeamByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetUserByIdV1Response struct { +type GetTeamByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *UserResponseV1 + JSON200 *TeamResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -72593,56 +78732,56 @@ type GetUserByIdV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetUserByIdV1Response200Headers + Headers200 *GetTeamByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetUserByIdV1Response400Headers + Headers400 *GetTeamByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetUserByIdV1Response401Headers + Headers401 *GetTeamByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetUserByIdV1Response404Headers + Headers404 *GetTeamByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetUserByIdV1Response429Headers + Headers429 *GetTeamByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetUserByIdV1Response500Headers + Headers500 *GetTeamByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetUserByIdV1Response) GetJSON200() *UserResponseV1 { +func (r GetTeamByIdV1Response) GetJSON200() *TeamResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetUserByIdV1Response) GetJSON400() *BadRequest { +func (r GetTeamByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetUserByIdV1Response) GetJSON401() *Unauthorized { +func (r GetTeamByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetUserByIdV1Response) GetJSON404() *NotFound { +func (r GetTeamByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetUserByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetTeamByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetUserByIdV1Response) GetJSON500() *InternalServerError { +func (r GetTeamByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetUserByIdV1Response) GetBody() []byte { +func (r GetTeamByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetUserByIdV1Response) Status() string { +func (r GetTeamByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72650,7 +78789,7 @@ func (r GetUserByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetUserByIdV1Response) StatusCode() int { +func (r GetTeamByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72658,62 +78797,72 @@ func (r GetUserByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetUserByIdV1Response) ContentType() string { +func (r GetTeamByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// UpdateUserV1Response200Headers the declared response headers of an HTTP 200 response for UpdateUserV1 -type UpdateUserV1Response200Headers struct { +// UpdateTeamByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response400Headers the declared response headers of an HTTP 400 response for UpdateUserV1 -type UpdateUserV1Response400Headers struct { +// UpdateTeamByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response401Headers the declared response headers of an HTTP 401 response for UpdateUserV1 -type UpdateUserV1Response401Headers struct { +// UpdateTeamByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response403Headers the declared response headers of an HTTP 403 response for UpdateUserV1 -type UpdateUserV1Response403Headers struct { +// UpdateTeamByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response404Headers the declared response headers of an HTTP 404 response for UpdateUserV1 -type UpdateUserV1Response404Headers struct { +// UpdateTeamByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response409Headers the declared response headers of an HTTP 409 response for UpdateUserV1 -type UpdateUserV1Response409Headers struct { +// UpdateTeamByIdV1Response409Headers the declared response headers of an HTTP 409 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response409Headers struct { XRateLimitLimit *int32 } -// UpdateUserV1Response429Headers the declared response headers of an HTTP 429 response for UpdateUserV1 -type UpdateUserV1Response429Headers struct { +// UpdateTeamByIdV1Response415Headers the declared response headers of an HTTP 415 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateTeamByIdV1Response422Headers the declared response headers of an HTTP 422 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// UpdateTeamByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateUserV1Response500Headers the declared response headers of an HTTP 500 response for UpdateUserV1 -type UpdateUserV1Response500Headers struct { +// UpdateTeamByIdV1Response500Headers the declared response headers of an HTTP 500 response for UpdateTeamByIdV1 +type UpdateTeamByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateUserV1Response struct { +type UpdateTeamByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *UserResponseV1 + JSON200 *TeamResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -72724,75 +78873,93 @@ type UpdateUserV1Response struct { JSON404 *NotFound // JSON409 the response for an HTTP 409 `application/json` response JSON409 *Conflict + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType + // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateUserV1Response200Headers + Headers200 *UpdateTeamByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateUserV1Response400Headers + Headers400 *UpdateTeamByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateUserV1Response401Headers + Headers401 *UpdateTeamByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateUserV1Response403Headers + Headers403 *UpdateTeamByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateUserV1Response404Headers + Headers404 *UpdateTeamByIdV1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *UpdateUserV1Response409Headers + Headers409 *UpdateTeamByIdV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateTeamByIdV1Response415Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *UpdateTeamByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateUserV1Response429Headers + Headers429 *UpdateTeamByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateUserV1Response500Headers + Headers500 *UpdateTeamByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateUserV1Response) GetJSON200() *UserResponseV1 { +func (r UpdateTeamByIdV1Response) GetJSON200() *TeamResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateUserV1Response) GetJSON400() *BadRequest { +func (r UpdateTeamByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateUserV1Response) GetJSON401() *Unauthorized { +func (r UpdateTeamByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateUserV1Response) GetJSON403() *Forbidden { +func (r UpdateTeamByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateUserV1Response) GetJSON404() *NotFound { +func (r UpdateTeamByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateUserV1Response) GetJSON409() *Conflict { +func (r UpdateTeamByIdV1Response) GetJSON409() *Conflict { return r.JSON409 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateTeamByIdV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r UpdateTeamByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateUserV1Response) GetJSON429() *TooManyRequests { +func (r UpdateTeamByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateUserV1Response) GetJSON500() *InternalServerError { +func (r UpdateTeamByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateUserV1Response) GetBody() []byte { +func (r UpdateTeamByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateUserV1Response) Status() string { +func (r UpdateTeamByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72800,7 +78967,7 @@ func (r UpdateUserV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateUserV1Response) StatusCode() int { +func (r UpdateTeamByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72808,130 +78975,99 @@ func (r UpdateUserV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateUserV1Response) ContentType() string { +func (r UpdateTeamByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListZonesV1Response200Headers the declared response headers of an HTTP 200 response for ListZonesV1 -type ListZonesV1Response200Headers struct { - Deprecation *string - Link *string - Sunset *string +// GetTeamServiceAccountsV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamServiceAccountsV1 +type GetTeamServiceAccountsV1Response200Headers struct { XRateLimitLimit *int32 } -// ListZonesV1Response400Headers the declared response headers of an HTTP 400 response for ListZonesV1 -type ListZonesV1Response400Headers struct { +// GetTeamServiceAccountsV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamServiceAccountsV1 +type GetTeamServiceAccountsV1Response400Headers struct { XRateLimitLimit *int32 } -// ListZonesV1Response401Headers the declared response headers of an HTTP 401 response for ListZonesV1 -type ListZonesV1Response401Headers struct { +// GetTeamServiceAccountsV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamServiceAccountsV1 +type GetTeamServiceAccountsV1Response401Headers struct { XRateLimitLimit *int32 } -// ListZonesV1Response403Headers the declared response headers of an HTTP 403 response for ListZonesV1 -type ListZonesV1Response403Headers struct { +// GetTeamServiceAccountsV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamServiceAccountsV1 +type GetTeamServiceAccountsV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// ListZonesV1Response422Headers the declared response headers of an HTTP 422 response for ListZonesV1 -type ListZonesV1Response422Headers struct { - XRateLimitLimit *int32 -} - -// ListZonesV1Response429Headers the declared response headers of an HTTP 429 response for ListZonesV1 -type ListZonesV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 -} - -// ListZonesV1Response500Headers the declared response headers of an HTTP 500 response for ListZonesV1 -type ListZonesV1Response500Headers struct { +// GetTeamServiceAccountsV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamServiceAccountsV1 +type GetTeamServiceAccountsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListZonesV1Response struct { +type GetTeamServiceAccountsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListZonesResponseV1 + JSON200 *GetServiceAccountsPaginatedResponseV1 // 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 - // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListZonesV1Response200Headers + Headers200 *GetTeamServiceAccountsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListZonesV1Response400Headers + Headers400 *GetTeamServiceAccountsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListZonesV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ListZonesV1Response403Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *ListZonesV1Response422Headers + Headers401 *GetTeamServiceAccountsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListZonesV1Response429Headers + Headers429 *GetTeamServiceAccountsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListZonesV1Response500Headers + Headers500 *GetTeamServiceAccountsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListZonesV1Response) GetJSON200() *ListZonesResponseV1 { +func (r GetTeamServiceAccountsV1Response) GetJSON200() *GetServiceAccountsPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListZonesV1Response) GetJSON400() *BadRequest { +func (r GetTeamServiceAccountsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListZonesV1Response) GetJSON401() *Unauthorized { +func (r GetTeamServiceAccountsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ListZonesV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r ListZonesV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListZonesV1Response) GetJSON429() *TooManyRequests { +func (r GetTeamServiceAccountsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListZonesV1Response) GetJSON500() *InternalServerError { +func (r GetTeamServiceAccountsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListZonesV1Response) GetBody() []byte { +func (r GetTeamServiceAccountsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListZonesV1Response) Status() string { +func (r GetTeamServiceAccountsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -72939,7 +79075,7 @@ func (r ListZonesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListZonesV1Response) StatusCode() int { +func (r GetTeamServiceAccountsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -72947,144 +79083,155 @@ func (r ListZonesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListZonesV1Response) ContentType() string { +func (r GetTeamServiceAccountsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// CreateZoneV1Response200Headers the declared response headers of an HTTP 200 response for CreateZoneV1 -type CreateZoneV1Response200Headers struct { - Deprecation *string - Link *string - Sunset *string +// CreateTeamServiceAccountV1Response201Headers the declared response headers of an HTTP 201 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response400Headers the declared response headers of an HTTP 400 response for CreateZoneV1 -type CreateZoneV1Response400Headers struct { +// CreateTeamServiceAccountV1Response400Headers the declared response headers of an HTTP 400 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV1 -type CreateZoneV1Response401Headers struct { +// CreateTeamServiceAccountV1Response401Headers the declared response headers of an HTTP 401 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV1 -type CreateZoneV1Response403Headers struct { +// CreateTeamServiceAccountV1Response404Headers the declared response headers of an HTTP 404 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV1 -type CreateZoneV1Response409Headers struct { +// CreateTeamServiceAccountV1Response409Headers the declared response headers of an HTTP 409 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response409Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV1 -type CreateZoneV1Response422Headers struct { +// CreateTeamServiceAccountV1Response415Headers the declared response headers of an HTTP 415 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response415Headers struct { XRateLimitLimit *int32 } -// CreateZoneV1Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV1 -type CreateZoneV1Response429Headers struct { +// CreateTeamServiceAccountV1Response422Headers the declared response headers of an HTTP 422 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateTeamServiceAccountV1Response429Headers the declared response headers of an HTTP 429 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateZoneV1Response500Headers the declared response headers of an HTTP 500 response for CreateZoneV1 -type CreateZoneV1Response500Headers struct { +// CreateTeamServiceAccountV1Response500Headers the declared response headers of an HTTP 500 response for CreateTeamServiceAccountV1 +type CreateTeamServiceAccountV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateZoneV1Response struct { +type CreateTeamServiceAccountV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ServiceAccountWithKeyResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *CreateZoneV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateTeamServiceAccountV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateZoneV1Response400Headers + Headers400 *CreateTeamServiceAccountV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateZoneV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateZoneV1Response403Headers + Headers401 *CreateTeamServiceAccountV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *CreateTeamServiceAccountV1Response404Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateZoneV1Response409Headers + Headers409 *CreateTeamServiceAccountV1Response409Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateTeamServiceAccountV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateZoneV1Response422Headers + Headers422 *CreateTeamServiceAccountV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateZoneV1Response429Headers + Headers429 *CreateTeamServiceAccountV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateZoneV1Response500Headers + Headers500 *CreateTeamServiceAccountV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r CreateZoneV1Response) GetJSON200() *ZoneResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateTeamServiceAccountV1Response) GetJSON201() *ServiceAccountWithKeyResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateZoneV1Response) GetJSON400() *BadRequest { +func (r CreateTeamServiceAccountV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateZoneV1Response) GetJSON401() *Unauthorized { +func (r CreateTeamServiceAccountV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateZoneV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r CreateTeamServiceAccountV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateZoneV1Response) GetJSON409() *Conflict { +func (r CreateTeamServiceAccountV1Response) GetJSON409() *Conflict { return r.JSON409 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateTeamServiceAccountV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateZoneV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateTeamServiceAccountV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateZoneV1Response) GetJSON429() *TooManyRequests { +func (r CreateTeamServiceAccountV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateZoneV1Response) GetJSON500() *InternalServerError { +func (r CreateTeamServiceAccountV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateZoneV1Response) GetBody() []byte { +func (r CreateTeamServiceAccountV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateZoneV1Response) Status() string { +func (r CreateTeamServiceAccountV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73092,7 +79239,7 @@ func (r CreateZoneV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateZoneV1Response) StatusCode() int { +func (r CreateTeamServiceAccountV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73100,66 +79247,53 @@ func (r CreateZoneV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateZoneV1Response) ContentType() string { +func (r CreateTeamServiceAccountV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// DeleteZoneV1Response204Headers the declared response headers of an HTTP 204 response for DeleteZoneV1 -type DeleteZoneV1Response204Headers struct { - Deprecation *string - Link *string - Sunset *string - XRateLimitLimit *int32 -} - -// DeleteZoneV1Response400Headers the declared response headers of an HTTP 400 response for DeleteZoneV1 -type DeleteZoneV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// DeleteZoneV1Response401Headers the declared response headers of an HTTP 401 response for DeleteZoneV1 -type DeleteZoneV1Response401Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response204Headers the declared response headers of an HTTP 204 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV1Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV1 -type DeleteZoneV1Response403Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV1Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV1 -type DeleteZoneV1Response404Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV1Response409Headers the declared response headers of an HTTP 409 response for DeleteZoneV1 -type DeleteZoneV1Response409Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV1Response422Headers the declared response headers of an HTTP 422 response for DeleteZoneV1 -type DeleteZoneV1Response422Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV1Response429Headers the declared response headers of an HTTP 429 response for DeleteZoneV1 -type DeleteZoneV1Response429Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteZoneV1Response500Headers the declared response headers of an HTTP 500 response for DeleteZoneV1 -type DeleteZoneV1Response500Headers struct { +// DeleteServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for DeleteServiceAccountsNotificationSettingsV1 +type DeleteServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteZoneV1Response struct { +type DeleteServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -73170,81 +79304,63 @@ type DeleteZoneV1Response struct { 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 // 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 *DeleteZoneV1Response204Headers + Headers204 *DeleteServiceAccountsNotificationSettingsV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteZoneV1Response400Headers + Headers400 *DeleteServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteZoneV1Response401Headers + Headers401 *DeleteServiceAccountsNotificationSettingsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteZoneV1Response403Headers + Headers403 *DeleteServiceAccountsNotificationSettingsV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteZoneV1Response404Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *DeleteZoneV1Response409Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *DeleteZoneV1Response422Headers + Headers404 *DeleteServiceAccountsNotificationSettingsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteZoneV1Response429Headers + Headers429 *DeleteServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteZoneV1Response500Headers + Headers500 *DeleteServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteZoneV1Response) GetJSON400() *BadRequest { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteZoneV1Response) GetJSON401() *Unauthorized { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteZoneV1Response) GetJSON403() *Forbidden { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteZoneV1Response) GetJSON404() *NotFound { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r DeleteZoneV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r DeleteZoneV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteZoneV1Response) GetJSON429() *TooManyRequests { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteZoneV1Response) GetJSON500() *InternalServerError { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteZoneV1Response) GetBody() []byte { +func (r DeleteServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteZoneV1Response) Status() string { +func (r DeleteServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73252,7 +79368,7 @@ func (r DeleteZoneV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteZoneV1Response) StatusCode() int { +func (r DeleteServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73260,144 +79376,113 @@ func (r DeleteZoneV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteZoneV1Response) ContentType() string { +func (r DeleteServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetZoneByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetZoneByIdV1 -type GetZoneByIdV1Response200Headers struct { - Deprecation *string - Link *string - Sunset *string - XRateLimitLimit *int32 -} - -// GetZoneByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV1 -type GetZoneByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetZoneByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV1 -type GetZoneByIdV1Response401Headers struct { +// GetServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV1 -type GetZoneByIdV1Response403Headers struct { +// GetServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV1 -type GetZoneByIdV1Response404Headers struct { +// GetServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV1Response422Headers the declared response headers of an HTTP 422 response for GetZoneByIdV1 -type GetZoneByIdV1Response422Headers struct { +// GetServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetZoneByIdV1 -type GetZoneByIdV1Response429Headers struct { +// GetServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetZoneByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetZoneByIdV1 -type GetZoneByIdV1Response500Headers struct { +// GetServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for GetServiceAccountsNotificationSettingsV1 +type GetServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetZoneByIdV1Response struct { +type GetServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV1 + JSON200 *ServiceAccountsNotificationSettingsResponseV1 // 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 - // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetZoneByIdV1Response200Headers + Headers200 *GetServiceAccountsNotificationSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetZoneByIdV1Response400Headers + Headers400 *GetServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetZoneByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetZoneByIdV1Response403Headers + Headers401 *GetServiceAccountsNotificationSettingsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetZoneByIdV1Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *GetZoneByIdV1Response422Headers + Headers404 *GetServiceAccountsNotificationSettingsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetZoneByIdV1Response429Headers + Headers429 *GetServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetZoneByIdV1Response500Headers + Headers500 *GetServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetZoneByIdV1Response) GetJSON200() *ZoneResponseV1 { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetZoneByIdV1Response) GetJSON400() *BadRequest { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetZoneByIdV1Response) GetJSON401() *Unauthorized { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetZoneByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetZoneByIdV1Response) GetJSON404() *NotFound { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r GetZoneByIdV1Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetZoneByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetZoneByIdV1Response) GetJSON500() *InternalServerError { +func (r GetServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetZoneByIdV1Response) GetBody() []byte { +func (r GetServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetZoneByIdV1Response) Status() string { +func (r GetServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73405,7 +79490,7 @@ func (r GetZoneByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetZoneByIdV1Response) StatusCode() int { +func (r GetServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73413,144 +79498,141 @@ func (r GetZoneByIdV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetZoneByIdV1Response) ContentType() string { +func (r GetServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// EditZoneV1Response200Headers the declared response headers of an HTTP 200 response for EditZoneV1 -type EditZoneV1Response200Headers struct { - Deprecation *string - Link *string - Sunset *string +// CreateServiceAccountsNotificationSettingsV1Response201Headers the declared response headers of an HTTP 201 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response201Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response400Headers the declared response headers of an HTTP 400 response for EditZoneV1 -type EditZoneV1Response400Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response400Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response401Headers the declared response headers of an HTTP 401 response for EditZoneV1 -type EditZoneV1Response401Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response401Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response403Headers the declared response headers of an HTTP 403 response for EditZoneV1 -type EditZoneV1Response403Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response404Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response404Headers the declared response headers of an HTTP 404 response for EditZoneV1 -type EditZoneV1Response404Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response415Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response422Headers the declared response headers of an HTTP 422 response for EditZoneV1 -type EditZoneV1Response422Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response422Headers the declared response headers of an HTTP 422 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response422Headers struct { XRateLimitLimit *int32 } -// EditZoneV1Response429Headers the declared response headers of an HTTP 429 response for EditZoneV1 -type EditZoneV1Response429Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// EditZoneV1Response500Headers the declared response headers of an HTTP 500 response for EditZoneV1 -type EditZoneV1Response500Headers struct { +// CreateServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for CreateServiceAccountsNotificationSettingsV1 +type CreateServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type EditZoneV1Response struct { +type CreateServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *ServiceAccountsNotificationSettingsResponseV1 // 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 + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *EditZoneV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateServiceAccountsNotificationSettingsV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *EditZoneV1Response400Headers + Headers400 *CreateServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *EditZoneV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *EditZoneV1Response403Headers + Headers401 *CreateServiceAccountsNotificationSettingsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *EditZoneV1Response404Headers + Headers404 *CreateServiceAccountsNotificationSettingsV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *CreateServiceAccountsNotificationSettingsV1Response415Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *EditZoneV1Response422Headers + Headers422 *CreateServiceAccountsNotificationSettingsV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *EditZoneV1Response429Headers + Headers429 *CreateServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *EditZoneV1Response500Headers + Headers500 *CreateServiceAccountsNotificationSettingsV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EditZoneV1Response) GetJSON200() *ZoneResponseV1 { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON201() *ServiceAccountsNotificationSettingsResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r EditZoneV1Response) GetJSON400() *BadRequest { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r EditZoneV1Response) GetJSON401() *Unauthorized { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r EditZoneV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r EditZoneV1Response) GetJSON404() *NotFound { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r EditZoneV1Response) GetJSON422() *UnprocessableEntity { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r EditZoneV1Response) GetJSON429() *TooManyRequests { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r EditZoneV1Response) GetJSON500() *InternalServerError { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r EditZoneV1Response) GetBody() []byte { +func (r CreateServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r EditZoneV1Response) Status() string { +func (r CreateServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73558,7 +79640,7 @@ func (r EditZoneV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EditZoneV1Response) StatusCode() int { +func (r CreateServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73566,129 +79648,141 @@ func (r EditZoneV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r EditZoneV1Response) ContentType() string { +func (r CreateServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 +// UpdateServiceAccountsNotificationSettingsV1Response200Headers the declared response headers of an HTTP 200 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response200Headers 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 +// UpdateServiceAccountsNotificationSettingsV1Response400Headers the declared response headers of an HTTP 400 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response400Headers 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 +// UpdateServiceAccountsNotificationSettingsV1Response401Headers the declared response headers of an HTTP 401 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response401Headers struct { + XRateLimitLimit *int32 } -// ListAutomationExecutionsResponse403Headers the declared response headers of an HTTP 403 response for ListAutomationExecutions -type ListAutomationExecutionsResponse403Headers struct { +// UpdateServiceAccountsNotificationSettingsV1Response403Headers the declared response headers of an HTTP 403 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response403Headers struct { + XRateLimitLimit *int32 +} + +// UpdateServiceAccountsNotificationSettingsV1Response404Headers the declared response headers of an HTTP 404 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateServiceAccountsNotificationSettingsV1Response415Headers the declared response headers of an HTTP 415 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response415Headers struct { + XRateLimitLimit *int32 +} + +// UpdateServiceAccountsNotificationSettingsV1Response429Headers the declared response headers of an HTTP 429 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// UpdateServiceAccountsNotificationSettingsV1Response500Headers the declared response headers of an HTTP 500 response for UpdateServiceAccountsNotificationSettingsV1 +type UpdateServiceAccountsNotificationSettingsV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -// 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 -} - -// 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 ListAutomationExecutionsResponse struct { +type UpdateServiceAccountsNotificationSettingsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListAutomationExecutionsPaginatedResponseV1Alpha1 + JSON200 *ServiceAccountsNotificationSettingsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON403 *Forbidden + // JSON404 the response for an HTTP 404 `application/json` response + JSON404 *NotFound + // JSON415 the response for an HTTP 415 `application/json` response + JSON415 *UnsupportedMediaType // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListAutomationExecutionsResponse200Headers + Headers200 *UpdateServiceAccountsNotificationSettingsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListAutomationExecutionsResponse400Headers + Headers400 *UpdateServiceAccountsNotificationSettingsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListAutomationExecutionsResponse401Headers + Headers401 *UpdateServiceAccountsNotificationSettingsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ListAutomationExecutionsResponse403Headers + Headers403 *UpdateServiceAccountsNotificationSettingsV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateServiceAccountsNotificationSettingsV1Response404Headers + // Headers415 the parsed response headers for an HTTP 415 response + Headers415 *UpdateServiceAccountsNotificationSettingsV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListAutomationExecutionsResponse429Headers + Headers429 *UpdateServiceAccountsNotificationSettingsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListAutomationExecutionsResponse500Headers + Headers500 *UpdateServiceAccountsNotificationSettingsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON200() *ListAutomationExecutionsPaginatedResponseV1Alpha1 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON200() *ServiceAccountsNotificationSettingsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON400() *BadRequestV2 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON401() *UnauthorizedV2 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON403() *ForbiddenV2 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON403() *Forbidden { return r.JSON403 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON415() *UnsupportedMediaType { + return r.JSON415 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON429() *TooManyRequestsV2 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListAutomationExecutionsResponse) GetJSON500() *InternalServerErrorV2 { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListAutomationExecutionsResponse) GetBody() []byte { +func (r UpdateServiceAccountsNotificationSettingsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListAutomationExecutionsResponse) Status() string { +func (r UpdateServiceAccountsNotificationSettingsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73696,7 +79790,7 @@ func (r ListAutomationExecutionsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAutomationExecutionsResponse) StatusCode() int { +func (r UpdateServiceAccountsNotificationSettingsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73704,145 +79798,134 @@ func (r ListAutomationExecutionsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAutomationExecutionsResponse) ContentType() string { +func (r UpdateServiceAccountsNotificationSettingsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 +// DeleteTeamServiceAccountByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response204Headers 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 +// DeleteTeamServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response400Headers 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 +// DeleteTeamServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response401Headers 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 +// DeleteTeamServiceAccountByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response403Headers 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 +// DeleteTeamServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response404Headers struct { + 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 +// DeleteTeamServiceAccountByIdV1Response422Headers the declared response headers of an HTTP 422 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response422Headers struct { + XRateLimitLimit *int32 } -// GetAutomationExecutionResponse500Headers the declared response headers of an HTTP 500 response for GetAutomationExecution -type GetAutomationExecutionResponse500Headers struct { +// DeleteTeamServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +// DeleteTeamServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamServiceAccountByIdV1 +type DeleteTeamServiceAccountByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAutomationExecutionResponse struct { +type DeleteTeamServiceAccountByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetAutomationExecutionResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundV2 + 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 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetAutomationExecutionResponse200Headers + JSON500 *InternalServerError + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteTeamServiceAccountByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAutomationExecutionResponse400Headers + Headers400 *DeleteTeamServiceAccountByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAutomationExecutionResponse401Headers + Headers401 *DeleteTeamServiceAccountByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAutomationExecutionResponse403Headers + Headers403 *DeleteTeamServiceAccountByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAutomationExecutionResponse404Headers + Headers404 *DeleteTeamServiceAccountByIdV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *DeleteTeamServiceAccountByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAutomationExecutionResponse429Headers + Headers429 *DeleteTeamServiceAccountByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAutomationExecutionResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON200() *GetAutomationExecutionResponseV1Alpha1 { - return r.JSON200 + Headers500 *DeleteTeamServiceAccountByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON400() *BadRequestV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON401() *UnauthorizedV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON403() *ForbiddenV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON404() *NotFoundV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON429() *TooManyRequestsV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAutomationExecutionResponse) GetJSON500() *InternalServerErrorV2 { +func (r DeleteTeamServiceAccountByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAutomationExecutionResponse) GetBody() []byte { +func (r DeleteTeamServiceAccountByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAutomationExecutionResponse) Status() string { +func (r DeleteTeamServiceAccountByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73850,7 +79933,7 @@ func (r GetAutomationExecutionResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAutomationExecutionResponse) StatusCode() int { +func (r DeleteTeamServiceAccountByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73858,129 +79941,113 @@ func (r GetAutomationExecutionResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAutomationExecutionResponse) ContentType() string { +func (r DeleteTeamServiceAccountByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 +// GetTeamServiceAccountByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response200Headers 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 +// GetTeamServiceAccountByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response400Headers 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 +// GetTeamServiceAccountByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response401Headers 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 +// GetTeamServiceAccountByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response404Headers struct { + 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 +// GetTeamServiceAccountByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// ListAutomationsResponse500Headers the declared response headers of an HTTP 500 response for ListAutomations -type ListAutomationsResponse500Headers struct { +// GetTeamServiceAccountByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamServiceAccountByIdV1 +type GetTeamServiceAccountByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListAutomationsResponse struct { +type GetTeamServiceAccountByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListAutomationsPaginatedResponseV1Alpha1 + JSON200 *ServiceAccountResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + 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 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListAutomationsResponse200Headers + Headers200 *GetTeamServiceAccountByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListAutomationsResponse400Headers + Headers400 *GetTeamServiceAccountByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListAutomationsResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ListAutomationsResponse403Headers + Headers401 *GetTeamServiceAccountByIdV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetTeamServiceAccountByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListAutomationsResponse429Headers + Headers429 *GetTeamServiceAccountByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListAutomationsResponse500Headers + Headers500 *GetTeamServiceAccountByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListAutomationsResponse) GetJSON200() *ListAutomationsPaginatedResponseV1Alpha1 { +func (r GetTeamServiceAccountByIdV1Response) GetJSON200() *ServiceAccountResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListAutomationsResponse) GetJSON400() *BadRequestV2 { +func (r GetTeamServiceAccountByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListAutomationsResponse) GetJSON401() *UnauthorizedV2 { +func (r GetTeamServiceAccountByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ListAutomationsResponse) GetJSON403() *ForbiddenV2 { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetTeamServiceAccountByIdV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListAutomationsResponse) GetJSON429() *TooManyRequestsV2 { +func (r GetTeamServiceAccountByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListAutomationsResponse) GetJSON500() *InternalServerErrorV2 { +func (r GetTeamServiceAccountByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListAutomationsResponse) GetBody() []byte { +func (r GetTeamServiceAccountByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListAutomationsResponse) Status() string { +func (r GetTeamServiceAccountByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -73988,7 +80055,7 @@ func (r ListAutomationsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListAutomationsResponse) StatusCode() int { +func (r GetTeamServiceAccountByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -73996,181 +80063,113 @@ func (r ListAutomationsResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListAutomationsResponse) ContentType() string { +func (r GetTeamServiceAccountByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 -} - -// 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 -} - -// 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 -} - -// 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 +// GetTeamUsersV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamUsersV1 +type GetTeamUsersV1Response200Headers 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 +// GetTeamUsersV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamUsersV1 +type GetTeamUsersV1Response400Headers 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 +// GetTeamUsersV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamUsersV1 +type GetTeamUsersV1Response401Headers struct { + 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 +// GetTeamUsersV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamUsersV1 +type GetTeamUsersV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetTeamUsersV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamUsersV1 +type GetTeamUsersV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// CreateAutomationResponse500Headers the declared response headers of an HTTP 500 response for CreateAutomation -type CreateAutomationResponse500Headers struct { +// GetTeamUsersV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamUsersV1 +type GetTeamUsersV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateAutomationResponse struct { +type GetTeamUsersV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *CreateAutomationResponseV1Alpha1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *GetTeamUsersPaginatedResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 - // JSON403 the response for an HTTP 403 `application/json` response - 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 *UnprocessableEntityV2 + 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 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateAutomationResponse201Headers + JSON500 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetTeamUsersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateAutomationResponse400Headers + Headers400 *GetTeamUsersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateAutomationResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - 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 *CreateAutomationResponse422Headers + Headers401 *GetTeamUsersV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetTeamUsersV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateAutomationResponse429Headers + Headers429 *GetTeamUsersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateAutomationResponse500Headers + Headers500 *GetTeamUsersV1Response500Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateAutomationResponse) GetJSON201() *CreateAutomationResponseV1Alpha1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetTeamUsersV1Response) GetJSON200() *GetTeamUsersPaginatedResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateAutomationResponse) GetJSON400() *BadRequestV2 { +func (r GetTeamUsersV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateAutomationResponse) GetJSON401() *UnauthorizedV2 { +func (r GetTeamUsersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateAutomationResponse) GetJSON403() *ForbiddenV2 { - return r.JSON403 -} - -// 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 CreateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { - return r.JSON422 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetTeamUsersV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateAutomationResponse) GetJSON429() *TooManyRequestsV2 { +func (r GetTeamUsersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateAutomationResponse) GetJSON500() *InternalServerErrorV2 { +func (r GetTeamUsersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateAutomationResponse) GetBody() []byte { +func (r GetTeamUsersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateAutomationResponse) Status() string { +func (r GetTeamUsersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74178,7 +80177,7 @@ func (r CreateAutomationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateAutomationResponse) StatusCode() int { +func (r GetTeamUsersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74186,175 +80185,120 @@ func (r CreateAutomationResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r CreateAutomationResponse) ContentType() string { +func (r GetTeamUsersV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 +// DeleteTeamUserByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response204Headers 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 +// DeleteTeamUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response400Headers 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 +// DeleteTeamUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response401Headers 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 -} - -// 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 -} - -// 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 +// DeleteTeamUserByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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 +// DeleteTeamUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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 +// DeleteTeamUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// DeleteAutomationByIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteAutomationById -type DeleteAutomationByIdResponse500Headers struct { +// DeleteTeamUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteTeamUserByIdV1 +type DeleteTeamUserByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteAutomationByIdResponse struct { +type DeleteTeamUserByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response - 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 + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteAutomationByIdResponse204Headers + Headers204 *DeleteTeamUserByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteAutomationByIdResponse400Headers + Headers400 *DeleteTeamUserByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteAutomationByIdResponse401Headers + Headers401 *DeleteTeamUserByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteAutomationByIdResponse403Headers + Headers403 *DeleteTeamUserByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - 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 + Headers404 *DeleteTeamUserByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteAutomationByIdResponse429Headers + Headers429 *DeleteTeamUserByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteAutomationByIdResponse500Headers + Headers500 *DeleteTeamUserByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteAutomationByIdResponse) GetJSON400() *BadRequestV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteAutomationByIdResponse) GetJSON403() *ForbiddenV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteAutomationByIdResponse) GetJSON404() *NotFoundV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } -// 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 DeleteAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { +func (r DeleteTeamUserByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteAutomationByIdResponse) GetBody() []byte { +func (r DeleteTeamUserByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteAutomationByIdResponse) Status() string { +func (r DeleteTeamUserByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74362,7 +80306,7 @@ func (r DeleteAutomationByIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAutomationByIdResponse) StatusCode() int { +func (r DeleteTeamUserByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74370,146 +80314,113 @@ func (r DeleteAutomationByIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r DeleteAutomationByIdResponse) ContentType() string { +func (r DeleteTeamUserByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 -} - -// 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 +// GetTeamUserByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response200Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetTeamUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetTeamUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetTeamUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetTeamUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetAutomationByIdResponse500Headers the declared response headers of an HTTP 500 response for GetAutomationById -type GetAutomationByIdResponse500Headers struct { +// GetTeamUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetTeamUserByIdV1 +type GetTeamUserByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetAutomationByIdResponse struct { +type GetTeamUserByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetAutomationByIdResponseV1Alpha1 + JSON200 *TeamUserResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 - // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON401 *Unauthorized // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundV2 + JSON404 *NotFound // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetAutomationByIdResponse200Headers + Headers200 *GetTeamUserByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAutomationByIdResponse400Headers + Headers400 *GetTeamUserByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAutomationByIdResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAutomationByIdResponse403Headers + Headers401 *GetTeamUserByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAutomationByIdResponse404Headers + Headers404 *GetTeamUserByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAutomationByIdResponse429Headers + Headers429 *GetTeamUserByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAutomationByIdResponse500Headers + Headers500 *GetTeamUserByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAutomationByIdResponse) GetJSON200() *GetAutomationByIdResponseV1Alpha1 { +func (r GetTeamUserByIdV1Response) GetJSON200() *TeamUserResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAutomationByIdResponse) GetJSON400() *BadRequestV2 { +func (r GetTeamUserByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { +func (r GetTeamUserByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAutomationByIdResponse) GetJSON403() *ForbiddenV2 { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAutomationByIdResponse) GetJSON404() *NotFoundV2 { +func (r GetTeamUserByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { +func (r GetTeamUserByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { +func (r GetTeamUserByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAutomationByIdResponse) GetBody() []byte { +func (r GetTeamUserByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAutomationByIdResponse) Status() string { +func (r GetTeamUserByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74517,7 +80428,7 @@ func (r GetAutomationByIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAutomationByIdResponse) StatusCode() int { +func (r GetTeamUserByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74525,233 +80436,155 @@ func (r GetAutomationByIdResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAutomationByIdResponse) ContentType() string { +func (r GetTeamUserByIdV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// 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 -} - -// 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 -} - -// 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 -} - -// 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 +// SaveTeamUserV1Response200Headers the declared response headers of an HTTP 200 response for SaveTeamUserV1 +type SaveTeamUserV1Response200Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response201Headers the declared response headers of an HTTP 201 response for SaveTeamUserV1 +type SaveTeamUserV1Response201Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response400Headers the declared response headers of an HTTP 400 response for SaveTeamUserV1 +type SaveTeamUserV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response401Headers the declared response headers of an HTTP 401 response for SaveTeamUserV1 +type SaveTeamUserV1Response401Headers 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 +// SaveTeamUserV1Response403Headers the declared response headers of an HTTP 403 response for SaveTeamUserV1 +type SaveTeamUserV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response404Headers the declared response headers of an HTTP 404 response for SaveTeamUserV1 +type SaveTeamUserV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response415Headers the declared response headers of an HTTP 415 response for SaveTeamUserV1 +type SaveTeamUserV1Response415Headers struct { + XRateLimitLimit *int32 } -// 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 +// SaveTeamUserV1Response429Headers the declared response headers of an HTTP 429 response for SaveTeamUserV1 +type SaveTeamUserV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// UpdateAutomationResponse500Headers the declared response headers of an HTTP 500 response for UpdateAutomation -type UpdateAutomationResponse500Headers struct { +// SaveTeamUserV1Response500Headers the declared response headers of an HTTP 500 response for SaveTeamUserV1 +type SaveTeamUserV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type UpdateAutomationResponse struct { +type SaveTeamUserV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *UpdateAutomationResponseV1Alpha1 + JSON200 *TeamUserResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *TeamUserResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON403 *Forbidden // 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 + JSON404 *NotFound // 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 + JSON415 *UnsupportedMediaType // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *UpdateAutomationResponse200Headers + Headers200 *SaveTeamUserV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *SaveTeamUserV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateAutomationResponse400Headers + Headers400 *SaveTeamUserV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateAutomationResponse401Headers + Headers401 *SaveTeamUserV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateAutomationResponse403Headers + Headers403 *SaveTeamUserV1Response403Headers // 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 + Headers404 *SaveTeamUserV1Response404Headers // 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 + Headers415 *SaveTeamUserV1Response415Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateAutomationResponse429Headers + Headers429 *SaveTeamUserV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateAutomationResponse500Headers + Headers500 *SaveTeamUserV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateAutomationResponse) GetJSON200() *UpdateAutomationResponseV1Alpha1 { +func (r SaveTeamUserV1Response) GetJSON200() *TeamUserResponseV1 { return r.JSON200 } +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r SaveTeamUserV1Response) GetJSON201() *TeamUserResponseV1 { + return r.JSON201 +} + // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateAutomationResponse) GetJSON400() *BadRequestV2 { +func (r SaveTeamUserV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateAutomationResponse) GetJSON401() *UnauthorizedV2 { +func (r SaveTeamUserV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateAutomationResponse) GetJSON403() *ForbiddenV2 { +func (r SaveTeamUserV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateAutomationResponse) GetJSON404() *NotFoundV2 { +func (r SaveTeamUserV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r UpdateAutomationResponse) GetJSON409() *ConflictV2 { - return r.JSON409 -} - -// GetJSON412 returns the response for an HTTP 412 `application/json` response -func (r UpdateAutomationResponse) GetJSON412() *ErrorV2 { - return r.JSON412 -} - // GetJSON415 returns the response for an HTTP 415 `application/json` response -func (r UpdateAutomationResponse) GetJSON415() *UnsupportedMediaTypeV2 { +func (r SaveTeamUserV1Response) GetJSON415() *UnsupportedMediaType { return r.JSON415 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r UpdateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { - return r.JSON422 -} - -// GetJSON428 returns the response for an HTTP 428 `application/json` response -func (r UpdateAutomationResponse) GetJSON428() *ErrorV2 { - return r.JSON428 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateAutomationResponse) GetJSON429() *TooManyRequestsV2 { +func (r SaveTeamUserV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateAutomationResponse) GetJSON500() *InternalServerErrorV2 { +func (r SaveTeamUserV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateAutomationResponse) GetBody() []byte { +func (r SaveTeamUserV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateAutomationResponse) Status() string { +func (r SaveTeamUserV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74759,7 +80592,7 @@ func (r UpdateAutomationResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAutomationResponse) StatusCode() int { +func (r SaveTeamUserV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74767,127 +80600,99 @@ func (r UpdateAutomationResponse) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r UpdateAutomationResponse) ContentType() string { +func (r SaveTeamUserV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } 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 -} - -// ListZonesV2Response401Headers the declared response headers of an HTTP 401 response for ListZonesV2 -type ListZonesV2Response401Headers struct { +// GetUsersV1Response200Headers the declared response headers of an HTTP 200 response for GetUsersV1 +type GetUsersV1Response200Headers struct { XRateLimitLimit *int32 } -// ListZonesV2Response403Headers the declared response headers of an HTTP 403 response for ListZonesV2 -type ListZonesV2Response403Headers struct { +// GetUsersV1Response400Headers the declared response headers of an HTTP 400 response for GetUsersV1 +type GetUsersV1Response400Headers struct { XRateLimitLimit *int32 } -// ListZonesV2Response422Headers the declared response headers of an HTTP 422 response for ListZonesV2 -type ListZonesV2Response422Headers struct { +// GetUsersV1Response401Headers the declared response headers of an HTTP 401 response for GetUsersV1 +type GetUsersV1Response401Headers struct { XRateLimitLimit *int32 } -// ListZonesV2Response429Headers the declared response headers of an HTTP 429 response for ListZonesV2 -type ListZonesV2Response429Headers struct { +// GetUsersV1Response429Headers the declared response headers of an HTTP 429 response for GetUsersV1 +type GetUsersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ListZonesV2Response500Headers the declared response headers of an HTTP 500 response for ListZonesV2 -type ListZonesV2Response500Headers struct { +// GetUsersV1Response500Headers the declared response headers of an HTTP 500 response for GetUsersV1 +type GetUsersV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type ListZonesV2Response struct { +type GetUsersV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListZonesResponseV2 + JSON200 *GetUsersPaginatedResponseV1 // 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 - // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListZonesV2Response200Headers + Headers200 *GetUsersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListZonesV2Response400Headers + Headers400 *GetUsersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - 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 + Headers401 *GetUsersV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListZonesV2Response429Headers + Headers429 *GetUsersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListZonesV2Response500Headers + Headers500 *GetUsersV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListZonesV2Response) GetJSON200() *ListZonesResponseV2 { +func (r GetUsersV1Response) GetJSON200() *GetUsersPaginatedResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListZonesV2Response) GetJSON400() *BadRequest { +func (r GetUsersV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListZonesV2Response) GetJSON401() *Unauthorized { +func (r GetUsersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// 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 ListZonesV2Response) GetJSON429() *TooManyRequests { +func (r GetUsersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListZonesV2Response) GetJSON500() *InternalServerError { +func (r GetUsersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListZonesV2Response) GetBody() []byte { +func (r GetUsersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListZonesV2Response) Status() string { +func (r GetUsersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -74895,7 +80700,7 @@ func (r ListZonesV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListZonesV2Response) StatusCode() int { +func (r GetUsersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -74903,68 +80708,61 @@ 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 GetUsersV1Response) 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 { +// CreateUserV1Response201Headers the declared response headers of an HTTP 201 response for CreateUserV1 +type CreateUserV1Response201Headers struct { XRateLimitLimit *int32 } -// CreateZoneV2Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV2 -type CreateZoneV2Response401Headers struct { +// CreateUserV1Response400Headers the declared response headers of an HTTP 400 response for CreateUserV1 +type CreateUserV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateZoneV2Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV2 -type CreateZoneV2Response403Headers struct { +// CreateUserV1Response401Headers the declared response headers of an HTTP 401 response for CreateUserV1 +type CreateUserV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateZoneV2Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV2 -type CreateZoneV2Response409Headers struct { +// CreateUserV1Response409Headers the declared response headers of an HTTP 409 response for CreateUserV1 +type CreateUserV1Response409Headers struct { XRateLimitLimit *int32 } -// CreateZoneV2Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV2 -type CreateZoneV2Response422Headers struct { +// CreateUserV1Response422Headers the declared response headers of an HTTP 422 response for CreateUserV1 +type CreateUserV1Response422Headers struct { XRateLimitLimit *int32 } -// CreateZoneV2Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV2 -type CreateZoneV2Response429Headers struct { +// CreateUserV1Response429Headers the declared response headers of an HTTP 429 response for CreateUserV1 +type CreateUserV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// CreateZoneV2Response500Headers the declared response headers of an HTTP 500 response for CreateZoneV2 -type CreateZoneV2Response500Headers struct { +// CreateUserV1Response500Headers the declared response headers of an HTTP 500 response for CreateUserV1 +type CreateUserV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type CreateZoneV2Response struct { +type CreateUserV1Response struct { Body []byte HTTPResponse *http.Response // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *ZoneResponseV2 + JSON201 *UserResponseV1 // 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 @@ -74974,70 +80772,63 @@ type CreateZoneV2Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateZoneV2Response201Headers + Headers201 *CreateUserV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateZoneV2Response400Headers + Headers400 *CreateUserV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateZoneV2Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateZoneV2Response403Headers + Headers401 *CreateUserV1Response401Headers // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateZoneV2Response409Headers + Headers409 *CreateUserV1Response409Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *CreateZoneV2Response422Headers + Headers422 *CreateUserV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateZoneV2Response429Headers + Headers429 *CreateUserV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateZoneV2Response500Headers + Headers500 *CreateUserV1Response500Headers } // GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateZoneV2Response) GetJSON201() *ZoneResponseV2 { +func (r CreateUserV1Response) GetJSON201() *UserResponseV1 { return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateZoneV2Response) GetJSON400() *BadRequest { +func (r CreateUserV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateZoneV2Response) GetJSON401() *Unauthorized { +func (r CreateUserV1Response) 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 { +func (r CreateUserV1Response) GetJSON409() *Conflict { return r.JSON409 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r CreateZoneV2Response) GetJSON422() *UnprocessableEntity { +func (r CreateUserV1Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateZoneV2Response) GetJSON429() *TooManyRequests { +func (r CreateUserV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateZoneV2Response) GetJSON500() *InternalServerError { +func (r CreateUserV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateZoneV2Response) GetBody() []byte { +func (r CreateUserV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateZoneV2Response) Status() string { +func (r CreateUserV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75045,7 +80836,7 @@ func (r CreateZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateZoneV2Response) StatusCode() int { +func (r CreateUserV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75053,63 +80844,53 @@ 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 CreateUserV1Response) 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 { +// DeleteUserByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV2Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV2 -type DeleteZoneV2Response403Headers struct { +// DeleteUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV2Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV2 -type DeleteZoneV2Response404Headers struct { +// DeleteUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV2Response409Headers the declared response headers of an HTTP 409 response for DeleteZoneV2 -type DeleteZoneV2Response409Headers struct { +// DeleteUserByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV2Response422Headers the declared response headers of an HTTP 422 response for DeleteZoneV2 -type DeleteZoneV2Response422Headers struct { +// DeleteUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteZoneV2Response429Headers the declared response headers of an HTTP 429 response for DeleteZoneV2 -type DeleteZoneV2Response429Headers struct { +// DeleteUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteZoneV2Response500Headers the declared response headers of an HTTP 500 response for DeleteZoneV2 -type DeleteZoneV2Response500Headers struct { +// DeleteUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for DeleteUserByIdV1 +type DeleteUserByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type DeleteZoneV2Response struct { +type DeleteUserByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON400 the response for an HTTP 400 `application/json` response @@ -75120,81 +80901,63 @@ type DeleteZoneV2Response struct { 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 // 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 *DeleteZoneV2Response204Headers + Headers204 *DeleteUserByIdV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteZoneV2Response400Headers + Headers400 *DeleteUserByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteZoneV2Response401Headers + Headers401 *DeleteUserByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteZoneV2Response403Headers + Headers403 *DeleteUserByIdV1Response403Headers // 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 + Headers404 *DeleteUserByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteZoneV2Response429Headers + Headers429 *DeleteUserByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteZoneV2Response500Headers + Headers500 *DeleteUserByIdV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteZoneV2Response) GetJSON400() *BadRequest { +func (r DeleteUserByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteZoneV2Response) GetJSON401() *Unauthorized { +func (r DeleteUserByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteZoneV2Response) GetJSON403() *Forbidden { +func (r DeleteUserByIdV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteZoneV2Response) GetJSON404() *NotFound { +func (r DeleteUserByIdV1Response) 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 DeleteUserByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteZoneV2Response) GetJSON500() *InternalServerError { +func (r DeleteUserByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteZoneV2Response) GetBody() []byte { +func (r DeleteUserByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteZoneV2Response) Status() string { +func (r DeleteUserByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75202,7 +80965,7 @@ func (r DeleteZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteZoneV2Response) StatusCode() int { +func (r DeleteUserByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75210,141 +80973,113 @@ 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 DeleteUserByIdV1Response) 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 -} - -// GetZoneByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV2 -type GetZoneByIdV2Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetZoneByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV2 -type GetZoneByIdV2Response401Headers struct { +// GetUserByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetUserByIdV1 +type GetUserByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV2Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV2 -type GetZoneByIdV2Response403Headers struct { +// GetUserByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetUserByIdV1 +type GetUserByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV2 -type GetZoneByIdV2Response404Headers struct { +// GetUserByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetUserByIdV1 +type GetUserByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV2Response422Headers the declared response headers of an HTTP 422 response for GetZoneByIdV2 -type GetZoneByIdV2Response422Headers struct { +// GetUserByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetUserByIdV1 +type GetUserByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetZoneByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetZoneByIdV2 -type GetZoneByIdV2Response429Headers struct { +// GetUserByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetUserByIdV1 +type GetUserByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetZoneByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetZoneByIdV2 -type GetZoneByIdV2Response500Headers struct { +// GetUserByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetUserByIdV1 +type GetUserByIdV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type GetZoneByIdV2Response struct { +type GetUserByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV2 + JSON200 *UserResponseV1 // 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 - // 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetZoneByIdV2Response200Headers + Headers200 *GetUserByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetZoneByIdV2Response400Headers + Headers400 *GetUserByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetZoneByIdV2Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetZoneByIdV2Response403Headers + Headers401 *GetUserByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetZoneByIdV2Response404Headers - // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *GetZoneByIdV2Response422Headers + Headers404 *GetUserByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetZoneByIdV2Response429Headers + Headers429 *GetUserByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetZoneByIdV2Response500Headers + Headers500 *GetUserByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetZoneByIdV2Response) GetJSON200() *ZoneResponseV2 { +func (r GetUserByIdV1Response) GetJSON200() *UserResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetZoneByIdV2Response) GetJSON400() *BadRequest { +func (r GetUserByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetZoneByIdV2Response) GetJSON401() *Unauthorized { +func (r GetUserByIdV1Response) 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 GetZoneByIdV2Response) GetJSON404() *NotFound { +func (r GetUserByIdV1Response) 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 GetZoneByIdV2Response) GetJSON429() *TooManyRequests { +func (r GetUserByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetZoneByIdV2Response) GetJSON500() *InternalServerError { +func (r GetUserByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetZoneByIdV2Response) GetBody() []byte { +func (r GetUserByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetZoneByIdV2Response) Status() string { +func (r GetUserByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75352,7 +81087,7 @@ func (r GetZoneByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetZoneByIdV2Response) StatusCode() int { +func (r GetUserByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75360,62 +81095,62 @@ 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 GetUserByIdV1Response) 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 { +// UpdateUserV1Response200Headers the declared response headers of an HTTP 200 response for UpdateUserV1 +type UpdateUserV1Response200Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response400Headers the declared response headers of an HTTP 400 response for EditZoneV2 -type EditZoneV2Response400Headers struct { +// UpdateUserV1Response400Headers the declared response headers of an HTTP 400 response for UpdateUserV1 +type UpdateUserV1Response400Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response401Headers the declared response headers of an HTTP 401 response for EditZoneV2 -type EditZoneV2Response401Headers struct { +// UpdateUserV1Response401Headers the declared response headers of an HTTP 401 response for UpdateUserV1 +type UpdateUserV1Response401Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response403Headers the declared response headers of an HTTP 403 response for EditZoneV2 -type EditZoneV2Response403Headers struct { +// UpdateUserV1Response403Headers the declared response headers of an HTTP 403 response for UpdateUserV1 +type UpdateUserV1Response403Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response404Headers the declared response headers of an HTTP 404 response for EditZoneV2 -type EditZoneV2Response404Headers struct { +// UpdateUserV1Response404Headers the declared response headers of an HTTP 404 response for UpdateUserV1 +type UpdateUserV1Response404Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response422Headers the declared response headers of an HTTP 422 response for EditZoneV2 -type EditZoneV2Response422Headers struct { +// UpdateUserV1Response409Headers the declared response headers of an HTTP 409 response for UpdateUserV1 +type UpdateUserV1Response409Headers struct { XRateLimitLimit *int32 } -// EditZoneV2Response429Headers the declared response headers of an HTTP 429 response for EditZoneV2 -type EditZoneV2Response429Headers struct { +// UpdateUserV1Response429Headers the declared response headers of an HTTP 429 response for UpdateUserV1 +type UpdateUserV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// EditZoneV2Response500Headers the declared response headers of an HTTP 500 response for EditZoneV2 -type EditZoneV2Response500Headers struct { +// UpdateUserV1Response500Headers the declared response headers of an HTTP 500 response for UpdateUserV1 +type UpdateUserV1Response500Headers struct { XRateLimitLimit *int32 XRateLimitRemaining *int32 XRateLimitReset *int32 XRequestId *openapi_types.UUID } -type EditZoneV2Response struct { +type UpdateUserV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ZoneResponseV2 + JSON200 *UserResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response @@ -75424,77 +81159,77 @@ type EditZoneV2Response struct { JSON403 *Forbidden // JSON404 the response for an HTTP 404 `application/json` response JSON404 *NotFound - // JSON422 the response for an HTTP 422 `application/json` response - JSON422 *UnprocessableEntity + // 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 *EditZoneV2Response200Headers + Headers200 *UpdateUserV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *EditZoneV2Response400Headers + Headers400 *UpdateUserV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *EditZoneV2Response401Headers + Headers401 *UpdateUserV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *EditZoneV2Response403Headers + Headers403 *UpdateUserV1Response403Headers // 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 *UpdateUserV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *UpdateUserV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *EditZoneV2Response429Headers + Headers429 *UpdateUserV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *EditZoneV2Response500Headers + Headers500 *UpdateUserV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r EditZoneV2Response) GetJSON200() *ZoneResponseV2 { +func (r UpdateUserV1Response) GetJSON200() *UserResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r EditZoneV2Response) GetJSON400() *BadRequest { +func (r UpdateUserV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r EditZoneV2Response) GetJSON401() *Unauthorized { +func (r UpdateUserV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r EditZoneV2Response) GetJSON403() *Forbidden { +func (r UpdateUserV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r EditZoneV2Response) GetJSON404() *NotFound { +func (r UpdateUserV1Response) GetJSON404() *NotFound { return r.JSON404 } -// GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r EditZoneV2Response) GetJSON422() *UnprocessableEntity { - return r.JSON422 +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateUserV1Response) GetJSON409() *Conflict { + return r.JSON409 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r EditZoneV2Response) GetJSON429() *TooManyRequests { +func (r UpdateUserV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r EditZoneV2Response) GetJSON500() *InternalServerError { +func (r UpdateUserV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r EditZoneV2Response) GetBody() []byte { +func (r UpdateUserV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r EditZoneV2Response) Status() string { +func (r UpdateUserV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75502,7 +81237,7 @@ func (r EditZoneV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r EditZoneV2Response) StatusCode() int { +func (r UpdateUserV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75510,87 +81245,130 @@ 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 UpdateUserV1Response) 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 { +// ListZonesV1Response200Headers the declared response headers of an HTTP 200 response for ListZonesV1 +type ListZonesV1Response200Headers struct { + Deprecation *string + Link *string + Sunset *string 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 -} - -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// ListZonesV1Response400Headers the declared response headers of an HTTP 400 response for ListZonesV1 +type ListZonesV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r GetAdminTsdbCleanTombstonesV1Response) GetBody() []byte { - return r.Body +// ListZonesV1Response401Headers the declared response headers of an HTTP 401 response for ListZonesV1 +type ListZonesV1Response401Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r GetAdminTsdbCleanTombstonesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// ListZonesV1Response403Headers the declared response headers of an HTTP 403 response for ListZonesV1 +type ListZonesV1Response403Headers struct { + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbCleanTombstonesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// ListZonesV1Response422Headers the declared response headers of an HTTP 422 response for ListZonesV1 +type ListZonesV1Response422Headers struct { + XRateLimitLimit *int32 } -// 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 "" +// ListZonesV1Response429Headers the declared response headers of an HTTP 429 response for ListZonesV1 +type ListZonesV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// PostAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbCleanTombstonesV1 -type PostAdminTsdbCleanTombstonesV1Response410Headers struct { - XRateLimitLimit *int32 +// ListZonesV1Response500Headers the declared response headers of an HTTP 500 response for ListZonesV1 +type ListZonesV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -type PostAdminTsdbCleanTombstonesV1Response struct { +type ListZonesV1Response 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 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ListZonesResponseV1 + // 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 + // 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 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListZonesV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *ListZonesV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *ListZonesV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListZonesV1Response403Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *ListZonesV1Response422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *ListZonesV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ListZonesV1Response500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListZonesV1Response) GetJSON200() *ListZonesResponseV1 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r ListZonesV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r ListZonesV1Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListZonesV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r ListZonesV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r ListZonesV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r ListZonesV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostAdminTsdbCleanTombstonesV1Response) GetBody() []byte { +func (r ListZonesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostAdminTsdbCleanTombstonesV1Response) Status() string { +func (r ListZonesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75598,7 +81376,7 @@ func (r PostAdminTsdbCleanTombstonesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbCleanTombstonesV1Response) StatusCode() int { +func (r ListZonesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75606,135 +81384,144 @@ func (r PostAdminTsdbCleanTombstonesV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostAdminTsdbCleanTombstonesV1Response) ContentType() string { +func (r ListZonesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbDeleteSeriesV1 -type GetAdminTsdbDeleteSeriesV1Response410Headers struct { +// CreateZoneV1Response200Headers the declared response headers of an HTTP 200 response for CreateZoneV1 +type CreateZoneV1Response200Headers struct { + Deprecation *string + Link *string + Sunset *string XRateLimitLimit *int32 } -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 +// CreateZoneV1Response400Headers the declared response headers of an HTTP 400 response for CreateZoneV1 +type CreateZoneV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// CreateZoneV1Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV1 +type CreateZoneV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r GetAdminTsdbDeleteSeriesV1Response) GetBody() []byte { - return r.Body +// CreateZoneV1Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV1 +type CreateZoneV1Response403Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r GetAdminTsdbDeleteSeriesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// CreateZoneV1Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV1 +type CreateZoneV1Response409Headers struct { + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbDeleteSeriesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// CreateZoneV1Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV1 +type CreateZoneV1Response422Headers struct { + XRateLimitLimit *int32 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminTsdbDeleteSeriesV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// CreateZoneV1Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV1 +type CreateZoneV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// PostAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbDeleteSeriesV1 -type PostAdminTsdbDeleteSeriesV1Response410Headers struct { - XRateLimitLimit *int32 +// CreateZoneV1Response500Headers the declared response headers of an HTTP 500 response for CreateZoneV1 +type CreateZoneV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -type PostAdminTsdbDeleteSeriesV1Response struct { +type CreateZoneV1Response 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 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ZoneResponseV1 + // 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 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *CreateZoneV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *CreateZoneV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *CreateZoneV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *CreateZoneV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateZoneV1Response409Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *CreateZoneV1Response422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *CreateZoneV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *CreateZoneV1Response500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r CreateZoneV1Response) GetJSON200() *ZoneResponseV1 { + return r.JSON200 } -// GetBody returns the raw response body bytes -func (r PostAdminTsdbDeleteSeriesV1Response) GetBody() []byte { - return r.Body +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r CreateZoneV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// Status returns HTTPResponse.Status -func (r PostAdminTsdbDeleteSeriesV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r CreateZoneV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbDeleteSeriesV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateZoneV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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 "" +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateZoneV1Response) GetJSON409() *Conflict { + return r.JSON409 } -// GetAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbSnapshotV1 -type GetAdminTsdbSnapshotV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateZoneV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 } -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 +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r CreateZoneV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r CreateZoneV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAdminTsdbSnapshotV1Response) GetBody() []byte { +func (r CreateZoneV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAdminTsdbSnapshotV1Response) Status() string { +func (r CreateZoneV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75742,7 +81529,7 @@ func (r GetAdminTsdbSnapshotV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAdminTsdbSnapshotV1Response) StatusCode() int { +func (r CreateZoneV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75750,87 +81537,151 @@ func (r GetAdminTsdbSnapshotV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetAdminTsdbSnapshotV1Response) ContentType() string { +func (r CreateZoneV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// PostAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbSnapshotV1 -type PostAdminTsdbSnapshotV1Response410Headers struct { +// DeleteZoneV1Response204Headers the declared response headers of an HTTP 204 response for DeleteZoneV1 +type DeleteZoneV1Response204Headers struct { + Deprecation *string + Link *string + Sunset *string XRateLimitLimit *int32 } -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 +// DeleteZoneV1Response400Headers the declared response headers of an HTTP 400 response for DeleteZoneV1 +type DeleteZoneV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// DeleteZoneV1Response401Headers the declared response headers of an HTTP 401 response for DeleteZoneV1 +type DeleteZoneV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r PostAdminTsdbSnapshotV1Response) GetBody() []byte { - return r.Body +// DeleteZoneV1Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV1 +type DeleteZoneV1Response403Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r PostAdminTsdbSnapshotV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// DeleteZoneV1Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV1 +type DeleteZoneV1Response404Headers struct { + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r PostAdminTsdbSnapshotV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// DeleteZoneV1Response409Headers the declared response headers of an HTTP 409 response for DeleteZoneV1 +type DeleteZoneV1Response409Headers struct { + XRateLimitLimit *int32 } -// 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 "" +// DeleteZoneV1Response422Headers the declared response headers of an HTTP 422 response for DeleteZoneV1 +type DeleteZoneV1Response422Headers struct { + XRateLimitLimit *int32 } -// GetAlertManagersV1Response410Headers the declared response headers of an HTTP 410 response for GetAlertManagersV1 -type GetAlertManagersV1Response410Headers struct { +// DeleteZoneV1Response429Headers the declared response headers of an HTTP 429 response for DeleteZoneV1 +type DeleteZoneV1Response429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -type GetAlertManagersV1Response struct { +// DeleteZoneV1Response500Headers the declared response headers of an HTTP 500 response for DeleteZoneV1 +type DeleteZoneV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type DeleteZoneV1Response 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 + // 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 + // 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 + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteZoneV1Response204Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *DeleteZoneV1Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *DeleteZoneV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteZoneV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *DeleteZoneV1Response404Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *DeleteZoneV1Response409Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *DeleteZoneV1Response422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *DeleteZoneV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteZoneV1Response500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetAlertManagersV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteZoneV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteZoneV1Response) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteZoneV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteZoneV1Response) GetJSON404() *NotFound { + return r.JSON404 +} + +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r DeleteZoneV1Response) GetJSON409() *Conflict { + return r.JSON409 +} + +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r DeleteZoneV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteZoneV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteZoneV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAlertManagersV1Response) GetBody() []byte { +func (r DeleteZoneV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAlertManagersV1Response) Status() string { +func (r DeleteZoneV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75838,7 +81689,7 @@ func (r GetAlertManagersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAlertManagersV1Response) StatusCode() int { +func (r DeleteZoneV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75846,103 +81697,144 @@ 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 DeleteZoneV1Response) 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 { +// GetZoneByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetZoneByIdV1 +type GetZoneByIdV1Response200Headers struct { + Deprecation *string + Link *string + Sunset *string XRateLimitLimit *int32 } -// GetAlertsV1Response400Headers the declared response headers of an HTTP 400 response for GetAlertsV1 -type GetAlertsV1Response400Headers struct { +// GetZoneByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV1 +type GetZoneByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response401Headers the declared response headers of an HTTP 401 response for GetAlertsV1 -type GetAlertsV1Response401Headers struct { +// GetZoneByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV1 +type GetZoneByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response404Headers the declared response headers of an HTTP 404 response for GetAlertsV1 -type GetAlertsV1Response404Headers struct { +// GetZoneByIdV1Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV1 +type GetZoneByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetAlertsV1Response429Headers the declared response headers of an HTTP 429 response for GetAlertsV1 -type GetAlertsV1Response429Headers struct { +// GetZoneByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV1 +type GetZoneByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetZoneByIdV1Response422Headers the declared response headers of an HTTP 422 response for GetZoneByIdV1 +type GetZoneByIdV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// GetZoneByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetZoneByIdV1 +type GetZoneByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetAlertsV1Response struct { +// GetZoneByIdV1Response500Headers the declared response headers of an HTTP 500 response for GetZoneByIdV1 +type GetZoneByIdV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID +} + +type GetZoneByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AlertsResponseV1 + JSON200 *ZoneResponseV1 // 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 *GetAlertsV1Response200Headers + Headers200 *GetZoneByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAlertsV1Response400Headers + Headers400 *GetZoneByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAlertsV1Response401Headers + Headers401 *GetZoneByIdV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetZoneByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAlertsV1Response404Headers + Headers404 *GetZoneByIdV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *GetZoneByIdV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAlertsV1Response429Headers + Headers429 *GetZoneByIdV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetZoneByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAlertsV1Response) GetJSON200() *AlertsResponseV1 { +func (r GetZoneByIdV1Response) GetJSON200() *ZoneResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAlertsV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetZoneByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAlertsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetZoneByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetZoneByIdV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAlertsV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetZoneByIdV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r GetZoneByIdV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAlertsV1Response) GetJSON429() *TooManyRequests { +func (r GetZoneByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAlertsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetZoneByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAlertsV1Response) GetBody() []byte { +func (r GetZoneByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAlertsV1Response) Status() string { +func (r GetZoneByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -75950,7 +81842,7 @@ func (r GetAlertsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAlertsV1Response) StatusCode() int { +func (r GetZoneByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -75958,199 +81850,144 @@ 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 GetZoneByIdV1Response) 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 { +// EditZoneV1Response200Headers the declared response headers of an HTTP 200 response for EditZoneV1 +type EditZoneV1Response200Headers struct { + Deprecation *string + Link *string + Sunset *string 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 +// EditZoneV1Response400Headers the declared response headers of an HTTP 400 response for EditZoneV1 +type EditZoneV1Response400Headers struct { + XRateLimitLimit *int32 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetFormatQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// EditZoneV1Response401Headers the declared response headers of an HTTP 401 response for EditZoneV1 +type EditZoneV1Response401Headers struct { + XRateLimitLimit *int32 } -// GetBody returns the raw response body bytes -func (r GetFormatQueryV1Response) GetBody() []byte { - return r.Body +// EditZoneV1Response403Headers the declared response headers of an HTTP 403 response for EditZoneV1 +type EditZoneV1Response403Headers struct { + XRateLimitLimit *int32 } -// Status returns HTTPResponse.Status -func (r GetFormatQueryV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// EditZoneV1Response404Headers the declared response headers of an HTTP 404 response for EditZoneV1 +type EditZoneV1Response404Headers struct { + XRateLimitLimit *int32 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetFormatQueryV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// EditZoneV1Response422Headers the declared response headers of an HTTP 422 response for EditZoneV1 +type EditZoneV1Response422Headers 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 "" +// EditZoneV1Response429Headers the declared response headers of an HTTP 429 response for EditZoneV1 +type EditZoneV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// PostFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostFormatQueryV1 -type PostFormatQueryV1Response410Headers struct { - XRateLimitLimit *int32 +// EditZoneV1Response500Headers the declared response headers of an HTTP 500 response for EditZoneV1 +type EditZoneV1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int32 + XRequestId *openapi_types.UUID } -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 *PostFormatQueryV1Response410Headers -} - -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostFormatQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 -} - -// GetBody returns the raw response body bytes -func (r PostFormatQueryV1Response) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PostFormatQueryV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostFormatQueryV1Response) 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 PostFormatQueryV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetLabelValuesV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelValuesV1 -type GetLabelValuesV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetLabelValuesV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelValuesV1 -type GetLabelValuesV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// GetLabelValuesV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelValuesV1 -type GetLabelValuesV1Response404Headers struct { - XRateLimitLimit *int32 -} - -// GetLabelValuesV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelValuesV1 -type GetLabelValuesV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 -} - -type GetLabelValuesV1Response struct { +type EditZoneV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelValuesResponseV1 + JSON200 *ZoneResponseV1 // 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 *GetLabelValuesV1Response200Headers + Headers200 *EditZoneV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetLabelValuesV1Response400Headers + Headers400 *EditZoneV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetLabelValuesV1Response401Headers + Headers401 *EditZoneV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *EditZoneV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetLabelValuesV1Response404Headers + Headers404 *EditZoneV1Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *EditZoneV1Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetLabelValuesV1Response429Headers + Headers429 *EditZoneV1Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *EditZoneV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetLabelValuesV1Response) GetJSON200() *LabelValuesResponseV1 { +func (r EditZoneV1Response) GetJSON200() *ZoneResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetLabelValuesV1Response) GetJSON400() *BadRequestPrometheus { +func (r EditZoneV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetLabelValuesV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r EditZoneV1Response) GetJSON401() *Unauthorized { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r EditZoneV1Response) GetJSON403() *Forbidden { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetLabelValuesV1Response) GetJSON404() *NotFoundPrometheus { +func (r EditZoneV1Response) GetJSON404() *NotFound { return r.JSON404 } +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r EditZoneV1Response) GetJSON422() *UnprocessableEntity { + return r.JSON422 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetLabelValuesV1Response) GetJSON429() *TooManyRequests { +func (r EditZoneV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetLabelValuesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r EditZoneV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetLabelValuesV1Response) GetBody() []byte { +func (r EditZoneV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetLabelValuesV1Response) Status() string { +func (r EditZoneV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76158,7 +81995,7 @@ func (r GetLabelValuesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLabelValuesV1Response) StatusCode() int { +func (r EditZoneV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76166,103 +82003,129 @@ 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 EditZoneV1Response) 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 { - 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 } -// GetLabelsV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelsV1 -type GetLabelsV1Response400Headers 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 } -// GetLabelsV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelsV1 -type GetLabelsV1Response401Headers 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 } -// GetLabelsV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelsV1 -type GetLabelsV1Response404Headers 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 } -// GetLabelsV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelsV1 -type GetLabelsV1Response429Headers 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 } -type GetLabelsV1Response 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 ListAutomationExecutionsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelsResponseV1 + JSON200 *ListAutomationExecutionsPaginatedResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequestV2 // 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 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + 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 *InternalServerErrorPrometheus + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetLabelsV1Response200Headers + Headers200 *ListAutomationExecutionsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetLabelsV1Response400Headers + Headers400 *ListAutomationExecutionsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetLabelsV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetLabelsV1Response404Headers + Headers401 *ListAutomationExecutionsResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListAutomationExecutionsResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetLabelsV1Response429Headers + Headers429 *ListAutomationExecutionsResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ListAutomationExecutionsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetLabelsV1Response) GetJSON200() *LabelsResponseV1 { +func (r ListAutomationExecutionsResponse) GetJSON200() *ListAutomationExecutionsPaginatedResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetLabelsV1Response) GetJSON400() *BadRequestPrometheus { +func (r ListAutomationExecutionsResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r ListAutomationExecutionsResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetLabelsV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListAutomationExecutionsResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetLabelsV1Response) GetJSON429() *TooManyRequests { +func (r ListAutomationExecutionsResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r ListAutomationExecutionsResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetLabelsV1Response) GetBody() []byte { +func (r ListAutomationExecutionsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetLabelsV1Response) Status() string { +func (r ListAutomationExecutionsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76270,7 +82133,7 @@ func (r GetLabelsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetLabelsV1Response) StatusCode() int { +func (r ListAutomationExecutionsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76278,103 +82141,145 @@ 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 ListAutomationExecutionsResponse) 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 { - 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 } -// PostLabelsV1Response400Headers the declared response headers of an HTTP 400 response for PostLabelsV1 -type PostLabelsV1Response400Headers 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 } -// PostLabelsV1Response401Headers the declared response headers of an HTTP 401 response for PostLabelsV1 -type PostLabelsV1Response401Headers 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 } -// PostLabelsV1Response404Headers the declared response headers of an HTTP 404 response for PostLabelsV1 -type PostLabelsV1Response404Headers 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 } -// PostLabelsV1Response429Headers the declared response headers of an HTTP 429 response for PostLabelsV1 -type PostLabelsV1Response429Headers struct { - RetryAfter *int32 - 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 } -type PostLabelsV1Response struct { +// 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 +} + +// 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 GetAutomationExecutionResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *LabelsResponseV1 + JSON200 *GetAutomationExecutionResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + 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 *NotFoundPrometheus + 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 *InternalServerErrorPrometheus + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostLabelsV1Response200Headers + Headers200 *GetAutomationExecutionResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostLabelsV1Response400Headers + Headers400 *GetAutomationExecutionResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostLabelsV1Response401Headers + Headers401 *GetAutomationExecutionResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetAutomationExecutionResponse403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostLabelsV1Response404Headers + Headers404 *GetAutomationExecutionResponse404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostLabelsV1Response429Headers + Headers429 *GetAutomationExecutionResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAutomationExecutionResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostLabelsV1Response) GetJSON200() *LabelsResponseV1 { +func (r GetAutomationExecutionResponse) GetJSON200() *GetAutomationExecutionResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostLabelsV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetAutomationExecutionResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostLabelsV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetAutomationExecutionResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAutomationExecutionResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostLabelsV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetAutomationExecutionResponse) GetJSON404() *NotFoundV2 { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostLabelsV1Response) GetJSON429() *TooManyRequests { +func (r GetAutomationExecutionResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetAutomationExecutionResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostLabelsV1Response) GetBody() []byte { +func (r GetAutomationExecutionResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostLabelsV1Response) Status() string { +func (r GetAutomationExecutionResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76382,7 +82287,7 @@ func (r PostLabelsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostLabelsV1Response) StatusCode() int { +func (r GetAutomationExecutionResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76390,103 +82295,129 @@ 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 GetAutomationExecutionResponse) 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 { - 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 } -// GetMetadataV1Response400Headers the declared response headers of an HTTP 400 response for GetMetadataV1 -type GetMetadataV1Response400Headers 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 } -// GetMetadataV1Response401Headers the declared response headers of an HTTP 401 response for GetMetadataV1 -type GetMetadataV1Response401Headers 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 } -// GetMetadataV1Response404Headers the declared response headers of an HTTP 404 response for GetMetadataV1 -type GetMetadataV1Response404Headers 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 } -// GetMetadataV1Response429Headers the declared response headers of an HTTP 429 response for GetMetadataV1 -type GetMetadataV1Response429Headers 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 } -type GetMetadataV1Response 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 ListAutomationsResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *MetadataResponseV1 + JSON200 *ListAutomationsPaginatedResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequestV2 // 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 *UnauthorizedV2 + // JSON403 the response for an HTTP 403 `application/json` response + 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 *InternalServerErrorPrometheus + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetMetadataV1Response200Headers + Headers200 *ListAutomationsResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetMetadataV1Response400Headers + Headers400 *ListAutomationsResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetMetadataV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetMetadataV1Response404Headers + Headers401 *ListAutomationsResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *ListAutomationsResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetMetadataV1Response429Headers + Headers429 *ListAutomationsResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ListAutomationsResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetMetadataV1Response) GetJSON200() *MetadataResponseV1 { +func (r ListAutomationsResponse) GetJSON200() *ListAutomationsPaginatedResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetMetadataV1Response) GetJSON400() *BadRequestPrometheus { +func (r ListAutomationsResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetMetadataV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r ListAutomationsResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetMetadataV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ListAutomationsResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetMetadataV1Response) GetJSON429() *TooManyRequests { +func (r ListAutomationsResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetMetadataV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r ListAutomationsResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetMetadataV1Response) GetBody() []byte { +func (r ListAutomationsResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetMetadataV1Response) Status() string { +func (r ListAutomationsResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76494,7 +82425,7 @@ func (r GetMetadataV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetMetadataV1Response) StatusCode() int { +func (r ListAutomationsResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76502,135 +82433,181 @@ 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 ListAutomationsResponse) 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 { - 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 } -type GetNotificationsV1Response 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 +// 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 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetNotificationsV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// 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 } -// GetBody returns the raw response body bytes -func (r GetNotificationsV1Response) GetBody() []byte { - return r.Body +// 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 } -// Status returns HTTPResponse.Status -func (r GetNotificationsV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// 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 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetNotificationsV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// 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 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetNotificationsV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// 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 } -// GetLiveNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetLiveNotificationsV1 -type GetLiveNotificationsV1Response410Headers struct { - XRateLimitLimit *int32 +// 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 GetLiveNotificationsV1Response 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 - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetLiveNotificationsV1Response410Headers + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *CreateAutomationResponseV1Alpha1 + // 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 + // 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 *UnprocessableEntityV2 + // JSON429 the response for an HTTP 429 `application/json` response + JSON429 *TooManyRequestsV2 + // JSON500 the response for an HTTP 500 `application/json` response + 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 *CreateAutomationResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *CreateAutomationResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + 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 *CreateAutomationResponse422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *CreateAutomationResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *CreateAutomationResponse500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetLiveNotificationsV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateAutomationResponse) GetJSON201() *CreateAutomationResponseV1Alpha1 { + return r.JSON201 } -// GetBody returns the raw response body bytes -func (r GetLiveNotificationsV1Response) GetBody() []byte { - return r.Body +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r CreateAutomationResponse) GetJSON400() *BadRequestV2 { + return r.JSON400 } -// Status returns HTTPResponse.Status -func (r GetLiveNotificationsV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r CreateAutomationResponse) GetJSON401() *UnauthorizedV2 { + return r.JSON401 } -// StatusCode returns HTTPResponse.StatusCode -func (r GetLiveNotificationsV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r CreateAutomationResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetLiveNotificationsV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r CreateAutomationResponse) GetJSON409() *ConflictV2 { + return r.JSON409 } -// GetParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetParseQueryV1 -type GetParseQueryV1Response410Headers struct { - XRateLimitLimit *int32 +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r CreateAutomationResponse) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 } -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 *GetParseQueryV1Response410Headers +// GetJSON422 returns the response for an HTTP 422 `application/json` response +func (r CreateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { + return r.JSON422 } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetParseQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r CreateAutomationResponse) GetJSON429() *TooManyRequestsV2 { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r CreateAutomationResponse) GetJSON500() *InternalServerErrorV2 { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetParseQueryV1Response) GetBody() []byte { +func (r CreateAutomationResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetParseQueryV1Response) Status() string { +func (r CreateAutomationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76638,7 +82615,7 @@ func (r GetParseQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetParseQueryV1Response) StatusCode() int { +func (r CreateAutomationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76646,151 +82623,175 @@ 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 CreateAutomationResponse) 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 { - XRateLimitLimit *int32 -} - -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 *PostParseQueryV1Response410Headers -} - -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostParseQueryV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 -} - -// GetBody returns the raw response body bytes -func (r PostParseQueryV1Response) GetBody() []byte { - return r.Body +// 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 } -// Status returns HTTPResponse.Status -func (r PostParseQueryV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) +// 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 } -// StatusCode returns HTTPResponse.StatusCode -func (r PostParseQueryV1Response) StatusCode() int { - if r.HTTPResponse != nil { - return r.HTTPResponse.StatusCode - } - return 0 +// 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 } -// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r PostParseQueryV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// 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 } -// GetQueryV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryV1 -type GetQueryV1Response200Headers 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 } -// GetQueryV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryV1 -type GetQueryV1Response400Headers struct { - 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 } -// GetQueryV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryV1 -type GetQueryV1Response401Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryV1 -type GetQueryV1Response404Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryV1 -type GetQueryV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// 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 GetQueryV1Response struct { +type DeleteAutomationByIdResponse 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 + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + 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 *NotFoundPrometheus + 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 *InternalServerErrorPrometheus - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetQueryV1Response200Headers + 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 *GetQueryV1Response400Headers + Headers400 *DeleteAutomationByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetQueryV1Response401Headers + Headers401 *DeleteAutomationByIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteAutomationByIdResponse403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetQueryV1Response404Headers + 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 *GetQueryV1Response429Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetQueryV1Response) GetJSON200() *QueryResponseV1 { - return r.JSON200 + Headers429 *DeleteAutomationByIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteAutomationByIdResponse500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetQueryV1Response) GetJSON400() *BadRequestPrometheus { +func (r DeleteAutomationByIdResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetQueryV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r DeleteAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteAutomationByIdResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetQueryV1Response) GetJSON404() *NotFoundPrometheus { +func (r DeleteAutomationByIdResponse) GetJSON404() *NotFoundV2 { return r.JSON404 } +// 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 GetQueryV1Response) GetJSON429() *TooManyRequests { +func (r DeleteAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r DeleteAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetQueryV1Response) GetBody() []byte { +func (r DeleteAutomationByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetQueryV1Response) Status() string { +func (r DeleteAutomationByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76798,7 +82799,7 @@ func (r GetQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetQueryV1Response) StatusCode() int { +func (r DeleteAutomationByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76806,103 +82807,146 @@ 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 DeleteAutomationByIdResponse) 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 { - XRateLimitLimit *int32 +// 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 } -// PostQueryV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryV1 -type PostQueryV1Response400Headers struct { - XRateLimitLimit *int32 +// 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 } -// PostQueryV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryV1 -type PostQueryV1Response401Headers struct { - XRateLimitLimit *int32 +// 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 } -// PostQueryV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryV1 -type PostQueryV1Response404Headers struct { - XRateLimitLimit *int32 +// 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 } -// PostQueryV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryV1 -type PostQueryV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// 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 } -type PostQueryV1Response struct { +// 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 +} + +// 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 GetAutomationByIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 + JSON200 *GetAutomationByIdResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + 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 *NotFoundPrometheus + 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 *InternalServerErrorPrometheus + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *PostQueryV1Response200Headers + Headers200 *GetAutomationByIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostQueryV1Response400Headers + Headers400 *GetAutomationByIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostQueryV1Response401Headers + 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 *PostQueryV1Response404Headers + Headers404 *GetAutomationByIdResponse404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostQueryV1Response429Headers + Headers429 *GetAutomationByIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetAutomationByIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PostQueryV1Response) GetJSON200() *QueryResponseV1 { +func (r GetAutomationByIdResponse) GetJSON200() *GetAutomationByIdResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostQueryV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetAutomationByIdResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostQueryV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetAutomationByIdResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAutomationByIdResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostQueryV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetAutomationByIdResponse) GetJSON404() *NotFoundV2 { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostQueryV1Response) GetJSON429() *TooManyRequests { +func (r GetAutomationByIdResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetAutomationByIdResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostQueryV1Response) GetBody() []byte { +func (r GetAutomationByIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostQueryV1Response) Status() string { +func (r GetAutomationByIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -76910,7 +82954,7 @@ func (r PostQueryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostQueryV1Response) StatusCode() int { +func (r GetAutomationByIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -76918,213 +82962,233 @@ 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 GetAutomationByIdResponse) 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 { - 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 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 *GetExemplarsV1Response410Headers +// 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 GetExemplarsV1Response) 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 GetExemplarsV1Response) 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 GetExemplarsV1Response) 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 GetExemplarsV1Response) 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 GetExemplarsV1Response) 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 { - XRateLimitLimit *int32 -} - -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 *PostExemplarsV1Response410Headers -} - -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r PostExemplarsV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 -} - -// GetBody returns the raw response body bytes -func (r PostExemplarsV1Response) GetBody() []byte { - return r.Body -} - -// Status returns HTTPResponse.Status -func (r PostExemplarsV1Response) Status() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Status - } - return http.StatusText(0) -} - -// StatusCode returns HTTPResponse.StatusCode -func (r PostExemplarsV1Response) 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 PostExemplarsV1Response) ContentType() string { - if r.HTTPResponse != nil { - return r.HTTPResponse.Header.Get("Content-Type") - } - return "" +// 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 } -// GetQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryRangeV1 -type GetQueryRangeV1Response200Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryRangeV1 -type GetQueryRangeV1Response400Headers 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 } -// GetQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryRangeV1 -type GetQueryRangeV1Response401Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryRangeV1 -type GetQueryRangeV1Response404Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for GetQueryRangeV1 -type GetQueryRangeV1Response422Headers struct { - XRateLimitLimit *int32 +// 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 } -// GetQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryRangeV1 -type GetQueryRangeV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// 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 } -type GetQueryRangeV1Response struct { +type UpdateAutomationResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *QueryResponseV1 + JSON200 *UpdateAutomationResponseV1Alpha1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestPrometheus + JSON400 *BadRequestV2 // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedPrometheus + 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 *NotFoundPrometheus + 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 *UnprocessableEntityPrometheus + 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 *TooManyRequests + JSON429 *TooManyRequestsV2 // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *InternalServerErrorPrometheus + JSON500 *InternalServerErrorV2 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetQueryRangeV1Response200Headers + Headers200 *UpdateAutomationResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetQueryRangeV1Response400Headers + Headers400 *UpdateAutomationResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetQueryRangeV1Response401Headers + 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 *GetQueryRangeV1Response404Headers + 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 *GetQueryRangeV1Response422Headers + 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 *GetQueryRangeV1Response429Headers + Headers429 *UpdateAutomationResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *UpdateAutomationResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetQueryRangeV1Response) GetJSON200() *QueryResponseV1 { +func (r UpdateAutomationResponse) GetJSON200() *UpdateAutomationResponseV1Alpha1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { +func (r UpdateAutomationResponse) GetJSON400() *BadRequestV2 { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r UpdateAutomationResponse) GetJSON401() *UnauthorizedV2 { return r.JSON401 } +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateAutomationResponse) GetJSON403() *ForbiddenV2 { + return r.JSON403 +} + // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetQueryRangeV1Response) GetJSON404() *NotFoundPrometheus { +func (r UpdateAutomationResponse) GetJSON404() *NotFoundV2 { return r.JSON404 } +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r UpdateAutomationResponse) GetJSON409() *ConflictV2 { + return r.JSON409 +} + +// GetJSON412 returns the response for an HTTP 412 `application/json` response +func (r UpdateAutomationResponse) GetJSON412() *ErrorV2 { + return r.JSON412 +} + +// GetJSON415 returns the response for an HTTP 415 `application/json` response +func (r UpdateAutomationResponse) GetJSON415() *UnsupportedMediaTypeV2 { + return r.JSON415 +} + // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r GetQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { +func (r UpdateAutomationResponse) GetJSON422() *UnprocessableEntityV2 { return r.JSON422 } +// GetJSON428 returns the response for an HTTP 428 `application/json` response +func (r UpdateAutomationResponse) GetJSON428() *ErrorV2 { + return r.JSON428 +} + // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetQueryRangeV1Response) GetJSON429() *TooManyRequests { +func (r UpdateAutomationResponse) GetJSON429() *TooManyRequestsV2 { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r UpdateAutomationResponse) GetJSON500() *InternalServerErrorV2 { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetQueryRangeV1Response) GetBody() []byte { +func (r UpdateAutomationResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetQueryRangeV1Response) Status() string { +func (r UpdateAutomationResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77132,7 +83196,7 @@ func (r GetQueryRangeV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetQueryRangeV1Response) StatusCode() int { +func (r UpdateAutomationResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77140,117 +83204,127 @@ 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 UpdateAutomationResponse) 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 { +// ListZonesV2Response200Headers the declared response headers of an HTTP 200 response for ListZonesV2 +type ListZonesV2Response200Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryRangeV1 -type PostQueryRangeV1Response400Headers struct { +// ListZonesV2Response400Headers the declared response headers of an HTTP 400 response for ListZonesV2 +type ListZonesV2Response400Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryRangeV1 -type PostQueryRangeV1Response401Headers struct { +// ListZonesV2Response401Headers the declared response headers of an HTTP 401 response for ListZonesV2 +type ListZonesV2Response401Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryRangeV1 -type PostQueryRangeV1Response404Headers struct { +// ListZonesV2Response403Headers the declared response headers of an HTTP 403 response for ListZonesV2 +type ListZonesV2Response403Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for PostQueryRangeV1 -type PostQueryRangeV1Response422Headers struct { +// ListZonesV2Response422Headers the declared response headers of an HTTP 422 response for ListZonesV2 +type ListZonesV2Response422Headers struct { XRateLimitLimit *int32 } -// PostQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryRangeV1 -type PostQueryRangeV1Response429Headers struct { +// ListZonesV2Response429Headers the declared response headers of an HTTP 429 response for ListZonesV2 +type ListZonesV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type PostQueryRangeV1Response 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 *QueryResponseV1 + 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 *UnprocessableEntityPrometheus + 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 *PostQueryRangeV1Response200Headers + Headers200 *ListZonesV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostQueryRangeV1Response400Headers + Headers400 *ListZonesV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostQueryRangeV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *PostQueryRangeV1Response404Headers + 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 *PostQueryRangeV1Response422Headers + Headers422 *ListZonesV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostQueryRangeV1Response429Headers + 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 PostQueryRangeV1Response) GetJSON200() *QueryResponseV1 { +func (r ListZonesV2Response) GetJSON200() *ListZonesResponseV2 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { +func (r ListZonesV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r ListZonesV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r PostQueryRangeV1Response) 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 PostQueryRangeV1Response) GetJSON422() *UnprocessableEntityPrometheus { +func (r ListZonesV2Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostQueryRangeV1Response) GetJSON429() *TooManyRequests { +func (r ListZonesV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r ListZonesV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostQueryRangeV1Response) GetBody() []byte { +func (r ListZonesV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostQueryRangeV1Response) Status() string { +func (r ListZonesV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77258,7 +83332,7 @@ func (r PostQueryRangeV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostQueryRangeV1Response) StatusCode() int { +func (r ListZonesV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77266,103 +83340,141 @@ 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 ListZonesV2Response) 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 { +// CreateZoneV2Response201Headers the declared response headers of an HTTP 201 response for CreateZoneV2 +type CreateZoneV2Response201Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response400Headers the declared response headers of an HTTP 400 response for GetRulesV1 -type GetRulesV1Response400Headers struct { +// CreateZoneV2Response400Headers the declared response headers of an HTTP 400 response for CreateZoneV2 +type CreateZoneV2Response400Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response401Headers the declared response headers of an HTTP 401 response for GetRulesV1 -type GetRulesV1Response401Headers struct { +// CreateZoneV2Response401Headers the declared response headers of an HTTP 401 response for CreateZoneV2 +type CreateZoneV2Response401Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response404Headers the declared response headers of an HTTP 404 response for GetRulesV1 -type GetRulesV1Response404Headers struct { +// CreateZoneV2Response403Headers the declared response headers of an HTTP 403 response for CreateZoneV2 +type CreateZoneV2Response403Headers struct { XRateLimitLimit *int32 } -// GetRulesV1Response429Headers the declared response headers of an HTTP 429 response for GetRulesV1 -type GetRulesV1Response429Headers struct { +// CreateZoneV2Response409Headers the declared response headers of an HTTP 409 response for CreateZoneV2 +type CreateZoneV2Response409Headers struct { + XRateLimitLimit *int32 +} + +// CreateZoneV2Response422Headers the declared response headers of an HTTP 422 response for CreateZoneV2 +type CreateZoneV2Response422Headers struct { + XRateLimitLimit *int32 +} + +// CreateZoneV2Response429Headers the declared response headers of an HTTP 429 response for CreateZoneV2 +type CreateZoneV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type GetRulesV1Response struct { +// 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 CreateZoneV2Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RulesResponseV1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *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 - // 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 + // 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 *GetRulesV1Response200Headers + 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 *GetRulesV1Response400Headers + Headers400 *CreateZoneV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetRulesV1Response401Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetRulesV1Response404Headers + 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 *GetRulesV1Response429Headers + Headers429 *CreateZoneV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *CreateZoneV2Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetRulesV1Response) GetJSON200() *RulesResponseV1 { - return r.JSON200 +// 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 GetRulesV1Response) GetJSON400() *BadRequestPrometheus { +func (r CreateZoneV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetRulesV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r CreateZoneV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetRulesV1Response) GetJSON404() *NotFoundPrometheus { - return r.JSON404 +// 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 GetRulesV1Response) GetJSON429() *TooManyRequests { +func (r CreateZoneV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetRulesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r CreateZoneV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetRulesV1Response) GetBody() []byte { +func (r CreateZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetRulesV1Response) Status() string { +func (r CreateZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77370,7 +83482,7 @@ func (r GetRulesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetRulesV1Response) StatusCode() int { +func (r CreateZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77378,117 +83490,148 @@ 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 CreateZoneV2Response) 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 { +// DeleteZoneV2Response204Headers the declared response headers of an HTTP 204 response for DeleteZoneV2 +type DeleteZoneV2Response204Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response400Headers the declared response headers of an HTTP 400 response for GetSeriesV1 -type GetSeriesV1Response400Headers struct { +// DeleteZoneV2Response400Headers the declared response headers of an HTTP 400 response for DeleteZoneV2 +type DeleteZoneV2Response400Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response401Headers the declared response headers of an HTTP 401 response for GetSeriesV1 -type GetSeriesV1Response401Headers struct { +// DeleteZoneV2Response401Headers the declared response headers of an HTTP 401 response for DeleteZoneV2 +type DeleteZoneV2Response401Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response404Headers the declared response headers of an HTTP 404 response for GetSeriesV1 -type GetSeriesV1Response404Headers struct { +// DeleteZoneV2Response403Headers the declared response headers of an HTTP 403 response for DeleteZoneV2 +type DeleteZoneV2Response403Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response422Headers the declared response headers of an HTTP 422 response for GetSeriesV1 -type GetSeriesV1Response422Headers struct { +// DeleteZoneV2Response404Headers the declared response headers of an HTTP 404 response for DeleteZoneV2 +type DeleteZoneV2Response404Headers struct { XRateLimitLimit *int32 } -// GetSeriesV1Response429Headers the declared response headers of an HTTP 429 response for GetSeriesV1 -type GetSeriesV1Response429Headers struct { +// 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 GetSeriesV1Response 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 *SeriesResponseV1 // 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 *UnprocessableEntityPrometheus + 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 *GetSeriesV1Response200Headers + 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 *GetSeriesV1Response400Headers + Headers400 *DeleteZoneV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSeriesV1Response401Headers + 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 *GetSeriesV1Response404Headers + 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 *GetSeriesV1Response422Headers + Headers422 *DeleteZoneV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSeriesV1Response429Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSeriesV1Response) GetJSON200() *SeriesResponseV1 { - 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 GetSeriesV1Response) GetJSON400() *BadRequestPrometheus { +func (r DeleteZoneV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSeriesV1Response) 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 GetSeriesV1Response) 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 GetSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { +func (r DeleteZoneV2Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSeriesV1Response) GetJSON429() *TooManyRequests { +func (r DeleteZoneV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r DeleteZoneV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSeriesV1Response) GetBody() []byte { +func (r DeleteZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSeriesV1Response) Status() string { +func (r DeleteZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77496,7 +83639,7 @@ func (r GetSeriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSeriesV1Response) StatusCode() int { +func (r DeleteZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77504,117 +83647,141 @@ 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 DeleteZoneV2Response) 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 { +// GetZoneByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetZoneByIdV2 +type GetZoneByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// PostSeriesV1Response400Headers the declared response headers of an HTTP 400 response for PostSeriesV1 -type PostSeriesV1Response400Headers struct { +// GetZoneByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetZoneByIdV2 +type GetZoneByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// PostSeriesV1Response401Headers the declared response headers of an HTTP 401 response for PostSeriesV1 -type PostSeriesV1Response401Headers struct { +// GetZoneByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetZoneByIdV2 +type GetZoneByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// PostSeriesV1Response404Headers the declared response headers of an HTTP 404 response for PostSeriesV1 -type PostSeriesV1Response404Headers struct { +// GetZoneByIdV2Response403Headers the declared response headers of an HTTP 403 response for GetZoneByIdV2 +type GetZoneByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// PostSeriesV1Response422Headers the declared response headers of an HTTP 422 response for PostSeriesV1 -type PostSeriesV1Response422Headers struct { +// GetZoneByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetZoneByIdV2 +type GetZoneByIdV2Response404Headers struct { XRateLimitLimit *int32 } -// PostSeriesV1Response429Headers the declared response headers of an HTTP 429 response for PostSeriesV1 -type PostSeriesV1Response429Headers struct { +// 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 PostSeriesV1Response 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 *SeriesResponseV1 + 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 *UnprocessableEntityPrometheus + 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 *PostSeriesV1Response200Headers + Headers200 *GetZoneByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSeriesV1Response400Headers + Headers400 *GetZoneByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSeriesV1Response401Headers + 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 *PostSeriesV1Response404Headers + Headers404 *GetZoneByIdV2Response404Headers // Headers422 the parsed response headers for an HTTP 422 response - Headers422 *PostSeriesV1Response422Headers + Headers422 *GetZoneByIdV2Response422Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSeriesV1Response429Headers + 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 PostSeriesV1Response) GetJSON200() *SeriesResponseV1 { +func (r GetZoneByIdV2Response) GetJSON200() *ZoneResponseV2 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSeriesV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetZoneByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostSeriesV1Response) 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 PostSeriesV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetZoneByIdV2Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON422 returns the response for an HTTP 422 `application/json` response -func (r PostSeriesV1Response) GetJSON422() *UnprocessableEntityPrometheus { +func (r GetZoneByIdV2Response) GetJSON422() *UnprocessableEntity { return r.JSON422 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PostSeriesV1Response) GetJSON429() *TooManyRequests { +func (r GetZoneByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetZoneByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostSeriesV1Response) GetBody() []byte { +func (r GetZoneByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSeriesV1Response) Status() string { +func (r GetZoneByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77622,7 +83789,7 @@ func (r PostSeriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSeriesV1Response) StatusCode() int { +func (r GetZoneByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77630,39 +83797,141 @@ 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 GetZoneByIdV2Response) 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 { +// EditZoneV2Response200Headers the declared response headers of an HTTP 200 response for EditZoneV2 +type EditZoneV2Response200Headers struct { XRateLimitLimit *int32 } -type GetStatusBuildInfoV1Response struct { +// EditZoneV2Response400Headers the declared response headers of an HTTP 400 response for EditZoneV2 +type EditZoneV2Response400Headers struct { + XRateLimitLimit *int32 +} + +// EditZoneV2Response401Headers the declared response headers of an HTTP 401 response for EditZoneV2 +type EditZoneV2Response401Headers struct { + XRateLimitLimit *int32 +} + +// EditZoneV2Response403Headers the declared response headers of an HTTP 403 response for EditZoneV2 +type EditZoneV2Response403Headers struct { + XRateLimitLimit *int32 +} + +// 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 +} + +// 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 - // JSON410 the response for an HTTP 410 `application/json` response - JSON410 *GonePrometheus - // Headers410 the parsed response headers for an HTTP 410 response - Headers410 *GetStatusBuildInfoV1Response410Headers + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *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 + // JSON404 the response for an HTTP 404 `application/json` response + 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 *InternalServerError + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *EditZoneV2Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *EditZoneV2Response400Headers + // Headers401 the parsed response headers for an HTTP 401 response + 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 *EditZoneV2Response404Headers + // Headers422 the parsed response headers for an HTTP 422 response + Headers422 *EditZoneV2Response422Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *EditZoneV2Response429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *EditZoneV2Response500Headers } -// GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusBuildInfoV1Response) GetJSON410() *GonePrometheus { - return r.JSON410 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r EditZoneV2Response) GetJSON200() *ZoneResponseV2 { + return r.JSON200 +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r EditZoneV2Response) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +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 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 EditZoneV2Response) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r EditZoneV2Response) GetJSON500() *InternalServerError { + return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetStatusBuildInfoV1Response) GetBody() []byte { +func (r EditZoneV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusBuildInfoV1Response) Status() string { +func (r EditZoneV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77670,7 +83939,7 @@ func (r GetStatusBuildInfoV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusBuildInfoV1Response) StatusCode() int { +func (r EditZoneV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77678,39 +83947,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 EditZoneV2Response) 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 { +// GetAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbCleanTombstonesV1 +type GetAdminTsdbCleanTombstonesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusConfigV1Response struct { +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 *GetStatusConfigV1Response410Headers + Headers410 *GetAdminTsdbCleanTombstonesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusConfigV1Response) GetJSON410() *GonePrometheus { +func (r GetAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusConfigV1Response) GetBody() []byte { +func (r GetAdminTsdbCleanTombstonesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusConfigV1Response) Status() string { +func (r GetAdminTsdbCleanTombstonesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77718,7 +83987,7 @@ func (r GetStatusConfigV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusConfigV1Response) StatusCode() int { +func (r GetAdminTsdbCleanTombstonesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77726,39 +83995,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 GetAdminTsdbCleanTombstonesV1Response) 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 { +// PostAdminTsdbCleanTombstonesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbCleanTombstonesV1 +type PostAdminTsdbCleanTombstonesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusFlagsV1Response struct { +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 *GetStatusFlagsV1Response410Headers + Headers410 *PostAdminTsdbCleanTombstonesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusFlagsV1Response) GetJSON410() *GonePrometheus { +func (r PostAdminTsdbCleanTombstonesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusFlagsV1Response) GetBody() []byte { +func (r PostAdminTsdbCleanTombstonesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusFlagsV1Response) Status() string { +func (r PostAdminTsdbCleanTombstonesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77766,7 +84035,7 @@ func (r GetStatusFlagsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusFlagsV1Response) StatusCode() int { +func (r PostAdminTsdbCleanTombstonesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77774,39 +84043,39 @@ 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 PostAdminTsdbCleanTombstonesV1Response) 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 { +// GetAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbDeleteSeriesV1 +type GetAdminTsdbDeleteSeriesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusRuntimeInfoV1Response 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 *GetStatusRuntimeInfoV1Response410Headers + Headers410 *GetAdminTsdbDeleteSeriesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusRuntimeInfoV1Response) GetJSON410() *GonePrometheus { +func (r GetAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusRuntimeInfoV1Response) GetBody() []byte { +func (r GetAdminTsdbDeleteSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusRuntimeInfoV1Response) Status() string { +func (r GetAdminTsdbDeleteSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77814,7 +84083,7 @@ func (r GetStatusRuntimeInfoV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusRuntimeInfoV1Response) StatusCode() int { +func (r GetAdminTsdbDeleteSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77822,39 +84091,39 @@ func (r GetStatusRuntimeInfoV1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetStatusRuntimeInfoV1Response) ContentType() string { +func (r GetAdminTsdbDeleteSeriesV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// GetStatusTsdbV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusTsdbV1 -type GetStatusTsdbV1Response410Headers struct { +// PostAdminTsdbDeleteSeriesV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbDeleteSeriesV1 +type PostAdminTsdbDeleteSeriesV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusTsdbV1Response 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 *GetStatusTsdbV1Response410Headers + Headers410 *PostAdminTsdbDeleteSeriesV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusTsdbV1Response) GetJSON410() *GonePrometheus { +func (r PostAdminTsdbDeleteSeriesV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusTsdbV1Response) GetBody() []byte { +func (r PostAdminTsdbDeleteSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusTsdbV1Response) Status() string { +func (r PostAdminTsdbDeleteSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77862,7 +84131,7 @@ func (r GetStatusTsdbV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusTsdbV1Response) StatusCode() int { +func (r PostAdminTsdbDeleteSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77870,39 +84139,39 @@ 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 PostAdminTsdbDeleteSeriesV1Response) 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 { +// GetAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for GetAdminTsdbSnapshotV1 +type GetAdminTsdbSnapshotV1Response410Headers struct { XRateLimitLimit *int32 } -type GetStatusWalReplayV1Response 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 *GetStatusWalReplayV1Response410Headers + Headers410 *GetAdminTsdbSnapshotV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetStatusWalReplayV1Response) GetJSON410() *GonePrometheus { +func (r GetAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetStatusWalReplayV1Response) GetBody() []byte { +func (r GetAdminTsdbSnapshotV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetStatusWalReplayV1Response) Status() string { +func (r GetAdminTsdbSnapshotV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77910,7 +84179,7 @@ func (r GetStatusWalReplayV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetStatusWalReplayV1Response) StatusCode() int { +func (r GetAdminTsdbSnapshotV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77918,39 +84187,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 GetAdminTsdbSnapshotV1Response) 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 { +// PostAdminTsdbSnapshotV1Response410Headers the declared response headers of an HTTP 410 response for PostAdminTsdbSnapshotV1 +type PostAdminTsdbSnapshotV1Response410Headers struct { XRateLimitLimit *int32 } -type GetTargetsV1Response 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 *GetTargetsV1Response410Headers + Headers410 *PostAdminTsdbSnapshotV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetTargetsV1Response) GetJSON410() *GonePrometheus { +func (r PostAdminTsdbSnapshotV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetTargetsV1Response) GetBody() []byte { +func (r PostAdminTsdbSnapshotV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTargetsV1Response) Status() string { +func (r PostAdminTsdbSnapshotV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -77958,7 +84227,7 @@ func (r GetTargetsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTargetsV1Response) StatusCode() int { +func (r PostAdminTsdbSnapshotV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -77966,39 +84235,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 PostAdminTsdbSnapshotV1Response) 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 { +// GetAlertManagersV1Response410Headers the declared response headers of an HTTP 410 response for GetAlertManagersV1 +type GetAlertManagersV1Response410Headers struct { XRateLimitLimit *int32 } -type GetTargetsMetadataV1Response struct { +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 *GetTargetsMetadataV1Response410Headers + Headers410 *GetAlertManagersV1Response410Headers } // GetJSON410 returns the response for an HTTP 410 `application/json` response -func (r GetTargetsMetadataV1Response) GetJSON410() *GonePrometheus { +func (r GetAlertManagersV1Response) GetJSON410() *GonePrometheus { return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetTargetsMetadataV1Response) GetBody() []byte { +func (r GetAlertManagersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetTargetsMetadataV1Response) Status() string { +func (r GetAlertManagersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78006,7 +84275,7 @@ func (r GetTargetsMetadataV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetTargetsMetadataV1Response) StatusCode() int { +func (r GetAlertManagersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78014,42 +84283,44 @@ 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 GetAlertManagersV1Response) 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 { +// GetAlertsV1Response200Headers the declared response headers of an HTTP 200 response for GetAlertsV1 +type GetAlertsV1Response200Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response400Headers the declared response headers of an HTTP 400 response for RemoteWriteV1 -type RemoteWriteV1Response400Headers struct { +// GetAlertsV1Response400Headers the declared response headers of an HTTP 400 response for GetAlertsV1 +type GetAlertsV1Response400Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response401Headers the declared response headers of an HTTP 401 response for RemoteWriteV1 -type RemoteWriteV1Response401Headers struct { +// GetAlertsV1Response401Headers the declared response headers of an HTTP 401 response for GetAlertsV1 +type GetAlertsV1Response401Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response404Headers the declared response headers of an HTTP 404 response for RemoteWriteV1 -type RemoteWriteV1Response404Headers struct { +// GetAlertsV1Response404Headers the declared response headers of an HTTP 404 response for GetAlertsV1 +type GetAlertsV1Response404Headers struct { XRateLimitLimit *int32 } -// RemoteWriteV1Response429Headers the declared response headers of an HTTP 429 response for RemoteWriteV1 -type RemoteWriteV1Response429Headers struct { +// GetAlertsV1Response429Headers the declared response headers of an HTTP 429 response for GetAlertsV1 +type GetAlertsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -type RemoteWriteV1Response struct { +type GetAlertsV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *AlertsResponseV1 // JSON400 the response for an HTTP 400 `application/json` response JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response @@ -78061,49 +84332,54 @@ type RemoteWriteV1Response struct { // 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 *GetAlertsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *RemoteWriteV1Response400Headers + Headers400 *GetAlertsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *RemoteWriteV1Response401Headers + Headers401 *GetAlertsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *RemoteWriteV1Response404Headers + Headers404 *GetAlertsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *RemoteWriteV1Response429Headers + Headers429 *GetAlertsV1Response429Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAlertsV1Response) GetJSON200() *AlertsResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r RemoteWriteV1Response) GetJSON400() *BadRequestPrometheus { +func (r GetAlertsV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r RemoteWriteV1Response) GetJSON401() *UnauthorizedPrometheus { +func (r GetAlertsV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r RemoteWriteV1Response) GetJSON404() *NotFoundPrometheus { +func (r GetAlertsV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r RemoteWriteV1Response) GetJSON429() *TooManyRequests { +func (r GetAlertsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r RemoteWriteV1Response) GetJSON500() *InternalServerErrorPrometheus { +func (r GetAlertsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r RemoteWriteV1Response) GetBody() []byte { +func (r GetAlertsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r RemoteWriteV1Response) Status() string { +func (r GetAlertsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78111,7 +84387,7 @@ func (r RemoteWriteV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r RemoteWriteV1Response) StatusCode() int { +func (r GetAlertsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78119,127 +84395,87 @@ 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 GetAlertsV1Response) 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 { +// GetFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetFormatQueryV1 +type GetFormatQueryV1Response410Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response400Headers 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 } -// GetActivityAuditEntriesV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response401Headers struct { - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetFormatQueryV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// GetActivityAuditEntriesV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response403Headers struct { - XRateLimitLimit *int32 +// GetBody returns the raw response body bytes +func (r GetFormatQueryV1Response) GetBody() []byte { + return r.Body } -// GetActivityAuditEntriesV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response404Headers struct { - XRateLimitLimit *int32 +// Status returns HTTPResponse.Status +func (r GetFormatQueryV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetActivityAuditEntriesV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesV1 -type GetActivityAuditEntriesV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// StatusCode returns HTTPResponse.StatusCode +func (r GetFormatQueryV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 } -// 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 +// 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 "" } -type GetActivityAuditEntriesV1Response struct { +// PostFormatQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostFormatQueryV1 +type PostFormatQueryV1Response410Headers struct { + XRateLimitLimit *int32 +} + +type PostFormatQueryV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EntriesResponse - // 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 *GetActivityAuditEntriesV1Response200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntriesV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActivityAuditEntriesV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActivityAuditEntriesV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntriesV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActivityAuditEntriesV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActivityAuditEntriesV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON200() *EntriesResponse { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON400() *Error { - return r.JSON400 -} - -// GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON401() *Unauthorized { - 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 { - return r.JSON404 -} - -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntriesV1Response) 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 *PostFormatQueryV1Response410Headers } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntriesV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r PostFormatQueryV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntriesV1Response) GetBody() []byte { +func (r PostFormatQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntriesV1Response) Status() string { +func (r PostFormatQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78247,7 +84483,7 @@ func (r GetActivityAuditEntriesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntriesV1Response) StatusCode() int { +func (r PostFormatQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78255,127 +84491,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 PostFormatQueryV1Response) 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 { +// GetLabelValuesV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelValuesV1 +type GetLabelValuesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response401Headers struct { +// GetLabelValuesV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelValuesV1 +type GetLabelValuesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response403Headers struct { +// GetLabelValuesV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelValuesV1 +type GetLabelValuesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response404Headers struct { +// GetLabelValuesV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelValuesV1 +type GetLabelValuesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntryV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntryV1 -type GetActivityAuditEntryV1Response429Headers struct { +// GetLabelValuesV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelValuesV1 +type GetLabelValuesV1Response429Headers 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 GetLabelValuesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EntryResponse + JSON200 *LabelValuesResponseV1 // 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 *GetLabelValuesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntryV1Response400Headers + Headers400 *GetLabelValuesV1Response400Headers // 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 *GetLabelValuesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntryV1Response404Headers + Headers404 *GetLabelValuesV1Response404Headers // 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 *GetLabelValuesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON200() *EntryResponse { +func (r GetLabelValuesV1Response) GetJSON200() *LabelValuesResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON400() *Error { +func (r GetLabelValuesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON401() *Unauthorized { +func (r GetLabelValuesV1Response) 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 GetLabelValuesV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON429() *TooManyRequests { +func (r GetLabelValuesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntryV1Response) GetJSON500() *InternalServerError { +func (r GetLabelValuesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntryV1Response) GetBody() []byte { +func (r GetLabelValuesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntryV1Response) Status() string { +func (r GetLabelValuesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78383,7 +84595,7 @@ func (r GetActivityAuditEntryV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntryV1Response) StatusCode() int { +func (r GetLabelValuesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78391,127 +84603,103 @@ 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 GetLabelValuesV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetActivityAuditEntriesSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response400Headers struct { +// GetLabelsV1Response200Headers the declared response headers of an HTTP 200 response for GetLabelsV1 +type GetLabelsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response401Headers struct { +// GetLabelsV1Response400Headers the declared response headers of an HTTP 400 response for GetLabelsV1 +type GetLabelsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response403Headers struct { +// GetLabelsV1Response401Headers the declared response headers of an HTTP 401 response for GetLabelsV1 +type GetLabelsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response404Headers struct { +// GetLabelsV1Response404Headers the declared response headers of an HTTP 404 response for GetLabelsV1 +type GetLabelsV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActivityAuditEntriesSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesSupportedFiltersV1 -type GetActivityAuditEntriesSupportedFiltersV1Response429Headers struct { +// GetLabelsV1Response429Headers the declared response headers of an HTTP 429 response for GetLabelsV1 +type GetLabelsV1Response429Headers 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 GetLabelsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *AuditSupportedFiltersResponse + JSON200 *LabelsResponseV1 // 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 *GetActivityAuditEntriesSupportedFiltersV1Response200Headers + Headers200 *GetLabelsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActivityAuditEntriesSupportedFiltersV1Response400Headers + Headers400 *GetLabelsV1Response400Headers // 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 *GetLabelsV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActivityAuditEntriesSupportedFiltersV1Response404Headers + Headers404 *GetLabelsV1Response404Headers // 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 *GetLabelsV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON200() *AuditSupportedFiltersResponse { +func (r GetLabelsV1Response) GetJSON200() *LabelsResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON400() *Error { +func (r GetLabelsV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON401() *Unauthorized { +func (r GetLabelsV1Response) 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 GetLabelsV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON429() *TooManyRequests { +func (r GetLabelsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON500() *InternalServerError { +func (r GetLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetBody() []byte { +func (r GetLabelsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { +func (r GetLabelsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78519,7 +84707,7 @@ func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActivityAuditEntriesSupportedFiltersV1Response) StatusCode() int { +func (r GetLabelsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78527,99 +84715,103 @@ 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 GetLabelsV1Response) 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 { +// PostLabelsV1Response200Headers the declared response headers of an HTTP 200 response for PostLabelsV1 +type PostLabelsV1Response200Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificatesV1 -type GetCertificatesV1Response401Headers struct { +// PostLabelsV1Response400Headers the declared response headers of an HTTP 400 response for PostLabelsV1 +type PostLabelsV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificatesV1 -type GetCertificatesV1Response403Headers struct { +// PostLabelsV1Response401Headers the declared response headers of an HTTP 401 response for PostLabelsV1 +type PostLabelsV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificatesV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificatesV1 -type GetCertificatesV1Response429Headers struct { - RetryAfter *int32 +// PostLabelsV1Response404Headers the declared response headers of an HTTP 404 response for PostLabelsV1 +type PostLabelsV1Response404Headers 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 +// PostLabelsV1Response429Headers the declared response headers of an HTTP 429 response for PostLabelsV1 +type PostLabelsV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -type GetCertificatesV1Response struct { +type PostLabelsV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *CertificatesResponse + 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 *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 // 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 *PostLabelsV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostLabelsV1Response400Headers // 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 *PostLabelsV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *PostLabelsV1Response404Headers // 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 *PostLabelsV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificatesV1Response) GetJSON200() *CertificatesResponse { +func (r PostLabelsV1Response) GetJSON200() *LabelsResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostLabelsV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificatesV1Response) GetJSON401() *Unauthorized { +func (r PostLabelsV1Response) 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 PostLabelsV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificatesV1Response) GetJSON429() *TooManyRequests { +func (r PostLabelsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificatesV1Response) GetJSON500() *InternalServerError { +func (r PostLabelsV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificatesV1Response) GetBody() []byte { +func (r PostLabelsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificatesV1Response) Status() string { +func (r PostLabelsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78627,7 +84819,7 @@ func (r GetCertificatesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificatesV1Response) StatusCode() int { +func (r PostLabelsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78635,129 +84827,103 @@ 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 PostLabelsV1Response) 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 { +// GetMetadataV1Response200Headers the declared response headers of an HTTP 200 response for GetMetadataV1 +type GetMetadataV1Response200Headers struct { XRateLimitLimit *int32 } -// UploadCertificateV1Response400Headers the declared response headers of an HTTP 400 response for UploadCertificateV1 -type UploadCertificateV1Response400Headers struct { +// GetMetadataV1Response400Headers the declared response headers of an HTTP 400 response for GetMetadataV1 +type GetMetadataV1Response400Headers struct { XRateLimitLimit *int32 } -// UploadCertificateV1Response401Headers the declared response headers of an HTTP 401 response for UploadCertificateV1 -type UploadCertificateV1Response401Headers struct { +// GetMetadataV1Response401Headers the declared response headers of an HTTP 401 response for GetMetadataV1 +type GetMetadataV1Response401Headers struct { XRateLimitLimit *int32 } -// UploadCertificateV1Response403Headers the declared response headers of an HTTP 403 response for UploadCertificateV1 -type UploadCertificateV1Response403Headers struct { +// GetMetadataV1Response404Headers the declared response headers of an HTTP 404 response for GetMetadataV1 +type GetMetadataV1Response404Headers struct { XRateLimitLimit *int32 } -// UploadCertificateV1Response429Headers the declared response headers of an HTTP 429 response for UploadCertificateV1 -type UploadCertificateV1Response429Headers struct { +// GetMetadataV1Response429Headers the declared response headers of an HTTP 429 response for GetMetadataV1 +type GetMetadataV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// 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 UploadCertificateV1Response struct { +type GetMetadataV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *Certificate + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *MetadataResponseV1 // 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 UploadCertificateV1400JSONResponseBodyMessage `json:"message"` - - // Type Example: parsing_error - Type UploadCertificateV1400JSONResponseBodyType `json:"type"` - } + 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 // 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 + 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 *UploadCertificateV1Response400Headers + Headers400 *GetMetadataV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UploadCertificateV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UploadCertificateV1Response403Headers + 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 *UploadCertificateV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UploadCertificateV1Response500Headers + Headers429 *GetMetadataV1Response429Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r UploadCertificateV1Response) GetJSON201() *Certificate { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetMetadataV1Response) GetJSON200() *MetadataResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -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"` -} { +func (r GetMetadataV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UploadCertificateV1Response) GetJSON401() *Unauthorized { +func (r GetMetadataV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UploadCertificateV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetMetadataV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UploadCertificateV1Response) GetJSON429() *TooManyRequests { +func (r GetMetadataV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UploadCertificateV1Response) GetJSON500() *InternalServerError { +func (r GetMetadataV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UploadCertificateV1Response) GetBody() []byte { +func (r GetMetadataV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UploadCertificateV1Response) Status() string { +func (r GetMetadataV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78765,7 +84931,7 @@ func (r UploadCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UploadCertificateV1Response) StatusCode() int { +func (r GetMetadataV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78773,134 +84939,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 GetMetadataV1Response) 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 { +// GetNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetNotificationsV1 +type GetNotificationsV1Response410Headers struct { XRateLimitLimit *int32 } -// DeleteCertificateV1Response400Headers the declared response headers of an HTTP 400 response for DeleteCertificateV1 -type DeleteCertificateV1Response400Headers struct { - XRateLimitLimit *int32 +type GetNotificationsV1Response 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 } -// 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 GetNotificationsV1Response) 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 GetNotificationsV1Response) 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 GetNotificationsV1Response) 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 GetNotificationsV1Response) 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 GetNotificationsV1Response) 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 +// GetLiveNotificationsV1Response410Headers the declared response headers of an HTTP 410 response for GetLiveNotificationsV1 +type GetLiveNotificationsV1Response410Headers struct { + XRateLimitLimit *int32 } -type DeleteCertificateV1Response struct { +type GetLiveNotificationsV1Response 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 *GetLiveNotificationsV1Response410Headers } -// 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 GetLiveNotificationsV1Response) 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 GetLiveNotificationsV1Response) 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 GetLiveNotificationsV1Response) 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 GetLiveNotificationsV1Response) 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 GetLiveNotificationsV1Response) 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 +// GetParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for GetParseQueryV1 +type GetParseQueryV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteCertificateV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +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 *GetParseQueryV1Response410Headers +} + +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetParseQueryV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r DeleteCertificateV1Response) GetBody() []byte { +func (r GetParseQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteCertificateV1Response) Status() string { +func (r GetParseQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -78908,7 +85075,7 @@ func (r DeleteCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteCertificateV1Response) StatusCode() int { +func (r GetParseQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -78916,127 +85083,151 @@ 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 GetParseQueryV1Response) 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 { +// PostParseQueryV1Response410Headers the declared response headers of an HTTP 410 response for PostParseQueryV1 +type PostParseQueryV1Response410Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateV1 -type GetCertificateV1Response400Headers struct { - XRateLimitLimit *int32 +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 *PostParseQueryV1Response410Headers } -// 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 PostParseQueryV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 +} + +// GetBody returns the raw response body bytes +func (r PostParseQueryV1Response) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r PostParseQueryV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostParseQueryV1Response) 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 PostParseQueryV1Response) 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 } -// GetCertificateV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateV1 -type GetCertificateV1Response403Headers struct { +// GetQueryV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryV1 +type GetQueryV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateV1 -type GetCertificateV1Response404Headers struct { +// GetQueryV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryV1 +type GetQueryV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificateV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateV1 -type GetCertificateV1Response429Headers struct { - RetryAfter *int32 +// GetQueryV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryV1 +type GetQueryV1Response404Headers 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 +// GetQueryV1Response429Headers the declared response headers of an HTTP 429 response for GetQueryV1 +type GetQueryV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -type GetCertificateV1Response struct { +type GetQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *Certificate + 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 // 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 *GetQueryV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCertificateV1Response400Headers + Headers400 *GetQueryV1Response400Headers // 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 *GetQueryV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetCertificateV1Response404Headers + Headers404 *GetQueryV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCertificateV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCertificateV1Response500Headers + Headers429 *GetQueryV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificateV1Response) GetJSON200() *Certificate { +func (r GetQueryV1Response) GetJSON200() *QueryResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetCertificateV1Response) GetJSON400() *Error { +func (r GetQueryV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificateV1Response) GetJSON401() *Unauthorized { +func (r GetQueryV1Response) 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 GetQueryV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificateV1Response) GetJSON429() *TooManyRequests { +func (r GetQueryV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificateV1Response) GetJSON500() *InternalServerError { +func (r GetQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificateV1Response) GetBody() []byte { +func (r GetQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificateV1Response) Status() string { +func (r GetQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79044,7 +85235,7 @@ func (r GetCertificateV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificateV1Response) StatusCode() int { +func (r GetQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79052,127 +85243,103 @@ 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 GetQueryV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetCertificateRegistrationV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response400Headers struct { +// PostQueryV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryV1 +type PostQueryV1Response200Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response401Headers struct { +// PostQueryV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryV1 +type PostQueryV1Response400Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response403Headers struct { +// PostQueryV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryV1 +type PostQueryV1Response401Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response404Headers struct { +// PostQueryV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryV1 +type PostQueryV1Response404Headers struct { XRateLimitLimit *int32 } -// GetCertificateRegistrationV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateRegistrationV1 -type GetCertificateRegistrationV1Response429Headers struct { +// PostQueryV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryV1 +type PostQueryV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// 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 GetCertificateRegistrationV1Response struct { +type PostQueryV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ServicesResponse + 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 // 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 *GetCertificateRegistrationV1Response200Headers + Headers200 *PostQueryV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCertificateRegistrationV1Response400Headers + Headers400 *PostQueryV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCertificateRegistrationV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetCertificateRegistrationV1Response403Headers + Headers401 *PostQueryV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetCertificateRegistrationV1Response404Headers + Headers404 *PostQueryV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetCertificateRegistrationV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCertificateRegistrationV1Response500Headers + Headers429 *PostQueryV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON200() *ServicesResponse { +func (r PostQueryV1Response) GetJSON200() *QueryResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON400() *Error { +func (r PostQueryV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON401() *Unauthorized { +func (r PostQueryV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON404() *NotFound { +func (r PostQueryV1Response) GetJSON404() *NotFoundPrometheus { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON429() *TooManyRequests { +func (r PostQueryV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCertificateRegistrationV1Response) GetJSON500() *InternalServerError { +func (r PostQueryV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetCertificateRegistrationV1Response) GetBody() []byte { +func (r PostQueryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCertificateRegistrationV1Response) Status() string { +func (r PostQueryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79180,7 +85347,7 @@ func (r GetCertificateRegistrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCertificateRegistrationV1Response) StatusCode() int { +func (r PostQueryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79188,92 +85355,87 @@ 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 PostQueryV1Response) 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 { +// GetExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for GetExemplarsV1 +type GetExemplarsV1Response410Headers struct { XRateLimitLimit *int32 } -// CreateCSRV1Response401Headers the declared response headers of an HTTP 401 response for CreateCSRV1 -type CreateCSRV1Response401Headers struct { - XRateLimitLimit *int32 +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 *GetExemplarsV1Response410Headers } -// CreateCSRV1Response403Headers the declared response headers of an HTTP 403 response for CreateCSRV1 -type CreateCSRV1Response403Headers struct { - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetExemplarsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// CreateCSRV1Response429Headers the declared response headers of an HTTP 429 response for CreateCSRV1 -type CreateCSRV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetBody returns the raw response body bytes +func (r GetExemplarsV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r GetExemplarsV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -type CreateCSRV1Response struct { - Body []byte - HTTPResponse *http.Response - // 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 *CreateCSRV1Response200Headers - // Headers401 the parsed response headers for an HTTP 401 response - 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 *CreateCSRV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateCSRV1Response500Headers +// StatusCode returns HTTPResponse.StatusCode +func (r GetExemplarsV1Response) 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 CreateCSRV1Response) GetJSON401() *Unauthorized { - return r.JSON401 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetExemplarsV1Response) 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 CreateCSRV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// PostExemplarsV1Response410Headers the declared response headers of an HTTP 410 response for PostExemplarsV1 +type PostExemplarsV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateCSRV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +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 *PostExemplarsV1Response410Headers } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateCSRV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r PostExemplarsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r CreateCSRV1Response) GetBody() []byte { +func (r PostExemplarsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateCSRV1Response) Status() string { +func (r PostExemplarsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79281,7 +85443,7 @@ func (r CreateCSRV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateCSRV1Response) StatusCode() int { +func (r PostExemplarsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79289,85 +85451,117 @@ 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 PostExemplarsV1Response) 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 { +// GetQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for GetQueryRangeV1 +type GetQueryRangeV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response401Headers struct { +// GetQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for GetQueryRangeV1 +type GetQueryRangeV1Response400Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV1 -type ListEFOChannelsByIntegrationV1Response429Headers struct { - RetryAfter *int32 +// GetQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for GetQueryRangeV1 +type GetQueryRangeV1Response401Headers struct { XRateLimitLimit *int32 } -// 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 +// GetQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for GetQueryRangeV1 +type GetQueryRangeV1Response404Headers struct { + XRateLimitLimit *int32 } -type ListEFOChannelsByIntegrationV1Response 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 GetQueryRangeV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationChannelsResponse + 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 *Unauthorized + 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 *ListEFOChannelsByIntegrationV1Response200Headers + Headers200 *GetQueryRangeV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetQueryRangeV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOChannelsByIntegrationV1Response401Headers + Headers401 *GetQueryRangeV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + 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 *ListEFOChannelsByIntegrationV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOChannelsByIntegrationV1Response500Headers + Headers429 *GetQueryRangeV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON200() *IntegrationChannelsResponse { +func (r GetQueryRangeV1Response) GetJSON200() *QueryResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON401() *Unauthorized { +func (r GetQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +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 ListEFOChannelsByIntegrationV1Response) GetJSON429() *TooManyRequests { +func (r GetQueryRangeV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOChannelsByIntegrationV1Response) GetJSON500() *InternalServerError { +func (r GetQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOChannelsByIntegrationV1Response) GetBody() []byte { +func (r GetQueryRangeV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOChannelsByIntegrationV1Response) Status() string { +func (r GetQueryRangeV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79375,7 +85569,7 @@ func (r ListEFOChannelsByIntegrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOChannelsByIntegrationV1Response) StatusCode() int { +func (r GetQueryRangeV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79383,85 +85577,117 @@ 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 GetQueryRangeV1Response) 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 { +// PostQueryRangeV1Response200Headers the declared response headers of an HTTP 200 response for PostQueryRangeV1 +type PostQueryRangeV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response401Headers struct { +// PostQueryRangeV1Response400Headers the declared response headers of an HTTP 400 response for PostQueryRangeV1 +type PostQueryRangeV1Response400Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV1 -type ListEFOIntegrationsV1Response429Headers struct { - RetryAfter *int32 +// PostQueryRangeV1Response401Headers the declared response headers of an HTTP 401 response for PostQueryRangeV1 +type PostQueryRangeV1Response401Headers struct { XRateLimitLimit *int32 } -// 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 +// PostQueryRangeV1Response404Headers the declared response headers of an HTTP 404 response for PostQueryRangeV1 +type PostQueryRangeV1Response404Headers struct { + XRateLimitLimit *int32 } -type ListEFOIntegrationsV1Response struct { +// PostQueryRangeV1Response422Headers the declared response headers of an HTTP 422 response for PostQueryRangeV1 +type PostQueryRangeV1Response422Headers struct { + XRateLimitLimit *int32 +} + +// PostQueryRangeV1Response429Headers the declared response headers of an HTTP 429 response for PostQueryRangeV1 +type PostQueryRangeV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 +} + +type PostQueryRangeV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListEfoIntegrationsResponseV1 + 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 *Unauthorized + 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 *ListEFOIntegrationsV1Response200Headers + Headers200 *PostQueryRangeV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostQueryRangeV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsV1Response401Headers + Headers401 *PostQueryRangeV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + 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 *ListEFOIntegrationsV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsV1Response500Headers + Headers429 *PostQueryRangeV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON200() *ListEfoIntegrationsResponseV1 { +func (r PostQueryRangeV1Response) GetJSON200() *QueryResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostQueryRangeV1Response) GetJSON400() *BadRequestPrometheus { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON401() *Unauthorized { +func (r PostQueryRangeV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } +// GetJSON404 returns the response for an HTTP 404 `application/json` response +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 ListEFOIntegrationsV1Response) GetJSON429() *TooManyRequests { +func (r PostQueryRangeV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsV1Response) GetJSON500() *InternalServerError { +func (r PostQueryRangeV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsV1Response) GetBody() []byte { +func (r PostQueryRangeV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsV1Response) Status() string { +func (r PostQueryRangeV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79469,7 +85695,7 @@ func (r ListEFOIntegrationsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsV1Response) StatusCode() int { +func (r PostQueryRangeV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79477,127 +85703,103 @@ 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 PostQueryRangeV1Response) 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 { +// GetRulesV1Response200Headers the declared response headers of an HTTP 200 response for GetRulesV1 +type GetRulesV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response401Headers struct { +// GetRulesV1Response400Headers the declared response headers of an HTTP 400 response for GetRulesV1 +type GetRulesV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response403Headers struct { +// GetRulesV1Response401Headers the declared response headers of an HTTP 401 response for GetRulesV1 +type GetRulesV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response409Headers struct { +// GetRulesV1Response404Headers the declared response headers of an HTTP 404 response for GetRulesV1 +type GetRulesV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV1 -type CreateEFOIntegrationV1Response429Headers struct { +// GetRulesV1Response429Headers the declared response headers of an HTTP 429 response for GetRulesV1 +type GetRulesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// 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 CreateEFOIntegrationV1Response struct { +type GetRulesV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *EfoIntegrationResponseV1 + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *RulesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + 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 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + 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 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateEFOIntegrationV1Response201Headers + JSON500 *InternalServerErrorPrometheus + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetRulesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateEFOIntegrationV1Response400Headers + Headers400 *GetRulesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateEFOIntegrationV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateEFOIntegrationV1Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateEFOIntegrationV1Response409Headers + Headers401 *GetRulesV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetRulesV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateEFOIntegrationV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateEFOIntegrationV1Response500Headers + Headers429 *GetRulesV1Response429Headers } -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON201() *EfoIntegrationResponseV1 { - return r.JSON201 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetRulesV1Response) GetJSON200() *RulesResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON400() *BadRequest { +func (r GetRulesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON401() *Unauthorized { +func (r GetRulesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetRulesV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON429() *TooManyRequests { +func (r GetRulesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateEFOIntegrationV1Response) GetJSON500() *InternalServerError { +func (r GetRulesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateEFOIntegrationV1Response) GetBody() []byte { +func (r GetRulesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateEFOIntegrationV1Response) Status() string { +func (r GetRulesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79605,7 +85807,7 @@ func (r CreateEFOIntegrationV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEFOIntegrationV1Response) StatusCode() int { +func (r GetRulesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79613,113 +85815,117 @@ 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 GetRulesV1Response) 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 { +// GetSeriesV1Response200Headers the declared response headers of an HTTP 200 response for GetSeriesV1 +type GetSeriesV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response400Headers struct { +// GetSeriesV1Response400Headers the declared response headers of an HTTP 400 response for GetSeriesV1 +type GetSeriesV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response401Headers struct { +// GetSeriesV1Response401Headers the declared response headers of an HTTP 401 response for GetSeriesV1 +type GetSeriesV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response403Headers struct { +// GetSeriesV1Response404Headers the declared response headers of an HTTP 404 response for GetSeriesV1 +type GetSeriesV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response404Headers struct { +// GetSeriesV1Response422Headers the declared response headers of an HTTP 422 response for GetSeriesV1 +type GetSeriesV1Response422Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV1 -type DeleteEFOIntegrationByIdV1Response429Headers struct { +// GetSeriesV1Response429Headers the declared response headers of an HTTP 429 response for GetSeriesV1 +type GetSeriesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// 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 DeleteEFOIntegrationByIdV1Response struct { +type GetSeriesV1Response 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 *BadRequest + 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 - // Headers204 the parsed response headers for an HTTP 204 response - Headers204 *DeleteEFOIntegrationByIdV1Response204Headers + JSON500 *InternalServerErrorPrometheus + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetSeriesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteEFOIntegrationByIdV1Response400Headers + Headers400 *GetSeriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteEFOIntegrationByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteEFOIntegrationByIdV1Response403Headers + Headers401 *GetSeriesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteEFOIntegrationByIdV1Response404Headers + 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 *DeleteEFOIntegrationByIdV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteEFOIntegrationByIdV1Response500Headers + Headers429 *GetSeriesV1Response429Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSeriesV1Response) GetJSON200() *SeriesResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { +func (r GetSeriesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { +func (r GetSeriesV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +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 DeleteEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { +func (r GetSeriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { +func (r GetSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteEFOIntegrationByIdV1Response) GetBody() []byte { +func (r GetSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteEFOIntegrationByIdV1Response) Status() string { +func (r GetSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79727,7 +85933,7 @@ func (r DeleteEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEFOIntegrationByIdV1Response) StatusCode() int { +func (r GetSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79735,106 +85941,117 @@ 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 GetSeriesV1Response) 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 { +// PostSeriesV1Response200Headers the declared response headers of an HTTP 200 response for PostSeriesV1 +type PostSeriesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response400Headers struct { +// PostSeriesV1Response400Headers the declared response headers of an HTTP 400 response for PostSeriesV1 +type PostSeriesV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response401Headers struct { +// PostSeriesV1Response401Headers the declared response headers of an HTTP 401 response for PostSeriesV1 +type PostSeriesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response404Headers struct { +// PostSeriesV1Response404Headers the declared response headers of an HTTP 404 response for PostSeriesV1 +type PostSeriesV1Response404Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV1 -type GetEFOIntegrationByIdV1Response429Headers struct { - RetryAfter *int32 +// PostSeriesV1Response422Headers the declared response headers of an HTTP 422 response for PostSeriesV1 +type PostSeriesV1Response422Headers struct { XRateLimitLimit *int32 } -// 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 +// PostSeriesV1Response429Headers the declared response headers of an HTTP 429 response for PostSeriesV1 +type PostSeriesV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -type GetEFOIntegrationByIdV1Response struct { +type PostSeriesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *EfoIntegrationResponseV1 + JSON200 *SeriesResponseV1 // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + JSON400 *BadRequestPrometheus // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized + 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 *GetEFOIntegrationByIdV1Response200Headers + Headers200 *PostSeriesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEFOIntegrationByIdV1Response400Headers + Headers400 *PostSeriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEFOIntegrationByIdV1Response401Headers + Headers401 *PostSeriesV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEFOIntegrationByIdV1Response404Headers + 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 *GetEFOIntegrationByIdV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEFOIntegrationByIdV1Response500Headers + Headers429 *PostSeriesV1Response429Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { +func (r PostSeriesV1Response) GetJSON200() *SeriesResponseV1 { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { +func (r PostSeriesV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { +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 GetEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { +func (r PostSeriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { +func (r PostSeriesV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEFOIntegrationByIdV1Response) GetBody() []byte { +func (r PostSeriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEFOIntegrationByIdV1Response) Status() string { +func (r PostSeriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79842,7 +86059,7 @@ func (r GetEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEFOIntegrationByIdV1Response) StatusCode() int { +func (r PostSeriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79850,120 +86067,87 @@ 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 PostSeriesV1Response) 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 { - XRateLimitLimit *int32 -} - -// UpdateEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response400Headers struct { - XRateLimitLimit *int32 -} - -// UpdateEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response401Headers struct { - XRateLimitLimit *int32 -} - -// UpdateEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response403Headers struct { - XRateLimitLimit *int32 -} - -// UpdateEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response404Headers struct { +// GetStatusBuildInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusBuildInfoV1 +type GetStatusBuildInfoV1Response410Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV1 -type UpdateEFOIntegrationByIdV1Response429Headers struct { - RetryAfter *int32 - 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 } -// 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 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusBuildInfoV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -type UpdateEFOIntegrationByIdV1Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - 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 - // 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 - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateEFOIntegrationByIdV1Response400Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateEFOIntegrationByIdV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateEFOIntegrationByIdV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateEFOIntegrationByIdV1Response404Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateEFOIntegrationByIdV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateEFOIntegrationByIdV1Response500Headers +// GetBody returns the raw response body bytes +func (r GetStatusBuildInfoV1Response) GetBody() []byte { + return r.Body } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { - return r.JSON200 +// Status returns HTTPResponse.Status +func (r GetStatusBuildInfoV1Response) 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 UpdateEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { - return r.JSON400 +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusBuildInfoV1Response) 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 UpdateEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { - return r.JSON401 +// 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 "" } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON403() *Forbidden { - return r.JSON403 +// GetStatusConfigV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusConfigV1 +type GetStatusConfigV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +type GetStatusConfigV1Response 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 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusConfigV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r UpdateEFOIntegrationByIdV1Response) GetBody() []byte { +func (r GetStatusConfigV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateEFOIntegrationByIdV1Response) Status() string { +func (r GetStatusConfigV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -79971,7 +86155,7 @@ func (r UpdateEFOIntegrationByIdV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEFOIntegrationByIdV1Response) StatusCode() int { +func (r GetStatusConfigV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -79979,85 +86163,87 @@ 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 GetStatusConfigV1Response) 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 { +// GetStatusFlagsV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusFlagsV1 +type GetStatusFlagsV1Response410Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response401Headers struct { - XRateLimitLimit *int32 +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 } -// ListEFOIntegrationsTypesV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV1 -type ListEFOIntegrationsTypesV1Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusFlagsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// 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 +// GetBody returns the raw response body bytes +func (r GetStatusFlagsV1Response) GetBody() []byte { + return r.Body } -type ListEFOIntegrationsTypesV1Response 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 - // 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 - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsTypesV1Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsTypesV1Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsTypesV1Response500Headers +// Status returns HTTPResponse.Status +func (r GetStatusFlagsV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON200() *IntegrationTypesResponse { - return r.JSON200 +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusFlagsV1Response) 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 ListEFOIntegrationsTypesV1Response) GetJSON401() *Unauthorized { - return r.JSON401 +// 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 "" } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetStatusRuntimeInfoV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusRuntimeInfoV1 +type GetStatusRuntimeInfoV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsTypesV1Response) GetJSON500() *InternalServerError { - return r.JSON500 +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 ListEFOIntegrationsTypesV1Response) GetBody() []byte { +func (r GetStatusRuntimeInfoV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsTypesV1Response) Status() string { +func (r GetStatusRuntimeInfoV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80065,7 +86251,7 @@ func (r ListEFOIntegrationsTypesV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsTypesV1Response) StatusCode() int { +func (r GetStatusRuntimeInfoV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80073,85 +86259,87 @@ 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 GetStatusRuntimeInfoV1Response) 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 { +// GetStatusTsdbV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusTsdbV1 +type GetStatusTsdbV1Response410Headers struct { XRateLimitLimit *int32 } -// ListEFOChannelsByIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response401Headers 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 } -// ListEFOChannelsByIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV2 -type ListEFOChannelsByIntegrationV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusTsdbV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// 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 +// GetBody returns the raw response body bytes +func (r GetStatusTsdbV1Response) GetBody() []byte { + return r.Body } -type ListEFOChannelsByIntegrationV2Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationChannelsResponse - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // 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 *ListEFOChannelsByIntegrationV2Response200Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOChannelsByIntegrationV2Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOChannelsByIntegrationV2Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOChannelsByIntegrationV2Response500Headers +// Status returns HTTPResponse.Status +func (r GetStatusTsdbV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON200() *IntegrationChannelsResponse { - return r.JSON200 +// StatusCode returns HTTPResponse.StatusCode +func (r GetStatusTsdbV1Response) 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 ListEFOChannelsByIntegrationV2Response) GetJSON401() *Unauthorized { - return r.JSON401 +// 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 "" } -// GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetStatusWalReplayV1Response410Headers the declared response headers of an HTTP 410 response for GetStatusWalReplayV1 +type GetStatusWalReplayV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOChannelsByIntegrationV2Response) GetJSON500() *InternalServerError { - return r.JSON500 +type GetStatusWalReplayV1Response 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 +} + +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetStatusWalReplayV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } // GetBody returns the raw response body bytes -func (r ListEFOChannelsByIntegrationV2Response) GetBody() []byte { +func (r GetStatusWalReplayV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOChannelsByIntegrationV2Response) Status() string { +func (r GetStatusWalReplayV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80159,7 +86347,7 @@ func (r ListEFOChannelsByIntegrationV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOChannelsByIntegrationV2Response) StatusCode() int { +func (r GetStatusWalReplayV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80167,85 +86355,87 @@ 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 GetStatusWalReplayV1Response) 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 { +// GetTargetsV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsV1 +type GetTargetsV1Response410Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response401Headers struct { - XRateLimitLimit *int32 +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 } -// ListEFOIntegrationsV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV2 -type ListEFOIntegrationsV2Response429Headers struct { - RetryAfter *int32 - XRateLimitLimit *int32 +// GetJSON410 returns the response for an HTTP 410 `application/json` response +func (r GetTargetsV1Response) GetJSON410() *GonePrometheus { + return r.JSON410 } -// 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 +// GetBody returns the raw response body bytes +func (r GetTargetsV1Response) GetBody() []byte { + return r.Body } -type ListEFOIntegrationsV2Response struct { - Body []byte - HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListIntegrationsResponse - // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *Unauthorized - // 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 *ListEFOIntegrationsV2Response200Headers - // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsV2Response401Headers - // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListEFOIntegrationsV2Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsV2Response500Headers +// Status returns HTTPResponse.Status +func (r GetTargetsV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON200() *ListIntegrationsResponse { - return r.JSON200 +// StatusCode returns HTTPResponse.StatusCode +func (r GetTargetsV1Response) 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 ListEFOIntegrationsV2Response) GetJSON401() *Unauthorized { - return r.JSON401 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetTargetsV1Response) 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 ListEFOIntegrationsV2Response) GetJSON429() *TooManyRequests { - return r.JSON429 +// GetTargetsMetadataV1Response410Headers the declared response headers of an HTTP 410 response for GetTargetsMetadataV1 +type GetTargetsMetadataV1Response410Headers struct { + XRateLimitLimit *int32 } -// GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsV2Response) GetJSON500() *InternalServerError { - return r.JSON500 +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 +} + +// 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 ListEFOIntegrationsV2Response) GetBody() []byte { +func (r GetTargetsMetadataV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsV2Response) Status() string { +func (r GetTargetsMetadataV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80253,7 +86443,7 @@ func (r ListEFOIntegrationsV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsV2Response) StatusCode() int { +func (r GetTargetsMetadataV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80261,127 +86451,96 @@ 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 GetTargetsMetadataV1Response) 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 { - XRateLimitLimit *int32 -} - -// CreateEFOIntegrationV2Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response400Headers struct { +// RemoteWriteV1Response200Headers the declared response headers of an HTTP 200 response for RemoteWriteV1 +type RemoteWriteV1Response200Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response401Headers struct { +// RemoteWriteV1Response400Headers the declared response headers of an HTTP 400 response for RemoteWriteV1 +type RemoteWriteV1Response400Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response403Headers struct { +// RemoteWriteV1Response401Headers the declared response headers of an HTTP 401 response for RemoteWriteV1 +type RemoteWriteV1Response401Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response409Headers struct { +// RemoteWriteV1Response404Headers the declared response headers of an HTTP 404 response for RemoteWriteV1 +type RemoteWriteV1Response404Headers struct { XRateLimitLimit *int32 } -// CreateEFOIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV2 -type CreateEFOIntegrationV2Response429Headers struct { +// RemoteWriteV1Response429Headers the declared response headers of an HTTP 429 response for RemoteWriteV1 +type RemoteWriteV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// 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 CreateEFOIntegrationV2Response struct { +type RemoteWriteV1Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *IntegrationResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + 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 - // JSON409 the response for an HTTP 409 `application/json` response - JSON409 *Conflict + 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 *InternalServerError - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *CreateEFOIntegrationV2Response201Headers + JSON500 *InternalServerErrorPrometheus + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *RemoteWriteV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *CreateEFOIntegrationV2Response400Headers + Headers400 *RemoteWriteV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *CreateEFOIntegrationV2Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *CreateEFOIntegrationV2Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *CreateEFOIntegrationV2Response409Headers + Headers401 *RemoteWriteV1Response401Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *RemoteWriteV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *CreateEFOIntegrationV2Response429Headers - // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *CreateEFOIntegrationV2Response500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON201() *IntegrationResponse { - return r.JSON201 + Headers429 *RemoteWriteV1Response429Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON400() *BadRequest { +func (r RemoteWriteV1Response) GetJSON400() *BadRequestPrometheus { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON401() *Unauthorized { +func (r RemoteWriteV1Response) GetJSON401() *UnauthorizedPrometheus { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r RemoteWriteV1Response) GetJSON404() *NotFoundPrometheus { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON429() *TooManyRequests { +func (r RemoteWriteV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r CreateEFOIntegrationV2Response) GetJSON500() *InternalServerError { +func (r RemoteWriteV1Response) GetJSON500() *InternalServerErrorPrometheus { return r.JSON500 } // GetBody returns the raw response body bytes -func (r CreateEFOIntegrationV2Response) GetBody() []byte { +func (r RemoteWriteV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r CreateEFOIntegrationV2Response) Status() string { +func (r RemoteWriteV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80389,7 +86548,7 @@ func (r CreateEFOIntegrationV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r CreateEFOIntegrationV2Response) StatusCode() int { +func (r RemoteWriteV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80397,57 +86556,59 @@ 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 RemoteWriteV1Response) 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 { +// GetActivityAuditEntriesV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response400Headers struct { +// GetActivityAuditEntriesV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response401Headers struct { +// GetActivityAuditEntriesV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response403Headers struct { +// GetActivityAuditEntriesV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response404Headers struct { +// GetActivityAuditEntriesV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response429Headers struct { +// GetActivityAuditEntriesV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesV1 +type GetActivityAuditEntriesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for DeleteEFOIntegrationByIdV2 -type DeleteEFOIntegrationByIdV2Response500Headers 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 DeleteEFOIntegrationByIdV2Response struct { +type GetActivityAuditEntriesV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *EntriesResponse // 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 @@ -80458,59 +86619,64 @@ type DeleteEFOIntegrationByIdV2Response struct { 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 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetActivityAuditEntriesV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteEFOIntegrationByIdV2Response400Headers + Headers400 *GetActivityAuditEntriesV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteEFOIntegrationByIdV2Response401Headers + Headers401 *GetActivityAuditEntriesV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteEFOIntegrationByIdV2Response403Headers + Headers403 *GetActivityAuditEntriesV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteEFOIntegrationByIdV2Response404Headers + Headers404 *GetActivityAuditEntriesV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteEFOIntegrationByIdV2Response429Headers + Headers429 *GetActivityAuditEntriesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteEFOIntegrationByIdV2Response500Headers + Headers500 *GetActivityAuditEntriesV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetActivityAuditEntriesV1Response) GetJSON200() *EntriesResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r GetActivityAuditEntriesV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntriesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { +func (r GetActivityAuditEntriesV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON404() *NotFound { +func (r GetActivityAuditEntriesV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntriesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntriesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteEFOIntegrationByIdV2Response) GetBody() []byte { +func (r GetActivityAuditEntriesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteEFOIntegrationByIdV2Response) Status() string { +func (r GetActivityAuditEntriesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80518,7 +86684,7 @@ func (r DeleteEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteEFOIntegrationByIdV2Response) StatusCode() int { +func (r GetActivityAuditEntriesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80526,56 +86692,63 @@ 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 GetActivityAuditEntriesV1Response) 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 { +// GetActivityAuditEntryV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response200Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response400Headers struct { +// GetActivityAuditEntryV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response401Headers struct { +// GetActivityAuditEntryV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response404Headers struct { +// GetActivityAuditEntryV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntryV1 +type GetActivityAuditEntryV1Response403Headers struct { XRateLimitLimit *int32 } -// GetEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response429Headers 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 } -// GetEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for GetEFOIntegrationByIdV2 -type GetEFOIntegrationByIdV2Response500Headers struct { +// 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 GetEFOIntegrationByIdV2Response struct { +type GetActivityAuditEntryV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationResponse + JSON200 *EntryResponse // 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 @@ -80583,56 +86756,63 @@ type GetEFOIntegrationByIdV2Response struct { // 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 *GetActivityAuditEntryV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEFOIntegrationByIdV2Response400Headers + Headers400 *GetActivityAuditEntryV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEFOIntegrationByIdV2Response401Headers + Headers401 *GetActivityAuditEntryV1Response401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetActivityAuditEntryV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEFOIntegrationByIdV2Response404Headers + Headers404 *GetActivityAuditEntryV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEFOIntegrationByIdV2Response429Headers + Headers429 *GetActivityAuditEntryV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEFOIntegrationByIdV2Response500Headers + Headers500 *GetActivityAuditEntryV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { +func (r GetActivityAuditEntryV1Response) GetJSON200() *EntryResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r GetActivityAuditEntryV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntryV1Response) GetJSON401() *Unauthorized { 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 GetEFOIntegrationByIdV2Response) GetJSON404() *NotFound { +func (r GetActivityAuditEntryV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntryV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntryV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEFOIntegrationByIdV2Response) GetBody() []byte { +func (r GetActivityAuditEntryV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEFOIntegrationByIdV2Response) Status() string { +func (r GetActivityAuditEntryV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80640,7 +86820,7 @@ func (r GetEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEFOIntegrationByIdV2Response) StatusCode() int { +func (r GetActivityAuditEntryV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80648,59 +86828,59 @@ 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 GetActivityAuditEntryV1Response) 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 { +// GetActivityAuditEntriesSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response400Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response400Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response401Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response403Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response404Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response429Headers struct { +// GetActivityAuditEntriesSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetActivityAuditEntriesSupportedFiltersV1 +type GetActivityAuditEntriesSupportedFiltersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateEFOIntegrationByIdV2Response500Headers the declared response headers of an HTTP 500 response for UpdateEFOIntegrationByIdV2 -type UpdateEFOIntegrationByIdV2Response500Headers 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 UpdateEFOIntegrationByIdV2Response struct { +type GetActivityAuditEntriesSupportedFiltersV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationResponse + JSON200 *AuditSupportedFiltersResponse // 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 @@ -80712,63 +86892,63 @@ type UpdateEFOIntegrationByIdV2Response struct { // 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 *GetActivityAuditEntriesSupportedFiltersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UpdateEFOIntegrationByIdV2Response400Headers + Headers400 *GetActivityAuditEntriesSupportedFiltersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateEFOIntegrationByIdV2Response401Headers + Headers401 *GetActivityAuditEntriesSupportedFiltersV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateEFOIntegrationByIdV2Response403Headers + Headers403 *GetActivityAuditEntriesSupportedFiltersV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateEFOIntegrationByIdV2Response404Headers + Headers404 *GetActivityAuditEntriesSupportedFiltersV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateEFOIntegrationByIdV2Response429Headers + Headers429 *GetActivityAuditEntriesSupportedFiltersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateEFOIntegrationByIdV2Response500Headers + Headers500 *GetActivityAuditEntriesSupportedFiltersV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON200() *AuditSupportedFiltersResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON403() *Forbidden { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON404() *NotFound { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateEFOIntegrationByIdV2Response) GetBody() []byte { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateEFOIntegrationByIdV2Response) Status() string { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80776,7 +86956,7 @@ func (r UpdateEFOIntegrationByIdV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateEFOIntegrationByIdV2Response) StatusCode() int { +func (r GetActivityAuditEntriesSupportedFiltersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80784,85 +86964,99 @@ 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 GetActivityAuditEntriesSupportedFiltersV1Response) 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 { +// GetCertificatesV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificatesV1 +type GetCertificatesV1Response200Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response401Headers struct { +// GetCertificatesV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificatesV1 +type GetCertificatesV1Response401Headers struct { XRateLimitLimit *int32 } -// ListEFOIntegrationsTypesV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response429Headers 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 } -// ListEFOIntegrationsTypesV2Response500Headers the declared response headers of an HTTP 500 response for ListEFOIntegrationsTypesV2 -type ListEFOIntegrationsTypesV2Response500Headers 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 ListEFOIntegrationsTypesV2Response struct { +type GetCertificatesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *IntegrationTypesResponse + 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 *ListEFOIntegrationsTypesV2Response200Headers + Headers200 *GetCertificatesV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListEFOIntegrationsTypesV2Response401Headers + 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 *ListEFOIntegrationsTypesV2Response429Headers + Headers429 *GetCertificatesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListEFOIntegrationsTypesV2Response500Headers + Headers500 *GetCertificatesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON200() *IntegrationTypesResponse { +func (r GetCertificatesV1Response) GetJSON200() *CertificatesResponse { return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) 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 ListEFOIntegrationsTypesV2Response) GetJSON429() *TooManyRequests { +func (r GetCertificatesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListEFOIntegrationsTypesV2Response) GetJSON500() *InternalServerError { +func (r GetCertificatesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ListEFOIntegrationsTypesV2Response) GetBody() []byte { +func (r GetCertificatesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListEFOIntegrationsTypesV2Response) Status() string { +func (r GetCertificatesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -80870,7 +87064,7 @@ func (r ListEFOIntegrationsTypesV2Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListEFOIntegrationsTypesV2Response) StatusCode() int { +func (r GetCertificatesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -80878,127 +87072,129 @@ 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 GetCertificatesV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsV1 -type GetEventsV1Response400Headers struct { +// UploadCertificateV1Response201Headers the declared response headers of an HTTP 201 response for UploadCertificateV1 +type UploadCertificateV1Response201Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsV1 -type GetEventsV1Response401Headers struct { +// UploadCertificateV1Response400Headers the declared response headers of an HTTP 400 response for UploadCertificateV1 +type UploadCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsV1 -type GetEventsV1Response403Headers struct { +// UploadCertificateV1Response401Headers the declared response headers of an HTTP 401 response for UploadCertificateV1 +type UploadCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsV1 -type GetEventsV1Response404Headers struct { +// UploadCertificateV1Response403Headers the declared response headers of an HTTP 403 response for UploadCertificateV1 +type UploadCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// GetEventsV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsV1 -type GetEventsV1Response429Headers struct { +// UploadCertificateV1Response429Headers the declared response headers of an HTTP 429 response for UploadCertificateV1 +type UploadCertificateV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEventsV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsV1 -type GetEventsV1Response500Headers 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 GetEventsV1Response struct { +type UploadCertificateV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListEventsResponse + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *Certificate // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *Error + 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 - // 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 + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *UploadCertificateV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventsV1Response400Headers + Headers400 *UploadCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventsV1Response401Headers + Headers401 *UploadCertificateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventsV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventsV1Response404Headers + Headers403 *UploadCertificateV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEventsV1Response429Headers + Headers429 *UploadCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventsV1Response500Headers + Headers500 *UploadCertificateV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventsV1Response) GetJSON200() *ListEventsResponse { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r UploadCertificateV1Response) GetJSON201() *Certificate { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventsV1Response) GetJSON400() *Error { +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 GetEventsV1Response) GetJSON401() *Unauthorized { +func (r UploadCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventsV1Response) GetJSON403() *Forbidden { +func (r UploadCertificateV1Response) 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 UploadCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventsV1Response) GetJSON500() *InternalServerError { +func (r UploadCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventsV1Response) GetBody() []byte { +func (r UploadCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventsV1Response) Status() string { +func (r UploadCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81006,7 +87202,7 @@ func (r GetEventsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventsV1Response) StatusCode() int { +func (r UploadCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81014,127 +87210,134 @@ 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 UploadCertificateV1Response) 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 { +// DeleteCertificateV1Response204Headers the declared response headers of an HTTP 204 response for DeleteCertificateV1 +type DeleteCertificateV1Response204Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response400Headers the declared response headers of an HTTP 400 response for GetEventV1 -type GetEventV1Response400Headers struct { +// DeleteCertificateV1Response400Headers the declared response headers of an HTTP 400 response for DeleteCertificateV1 +type DeleteCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response401Headers the declared response headers of an HTTP 401 response for GetEventV1 -type GetEventV1Response401Headers struct { +// DeleteCertificateV1Response401Headers the declared response headers of an HTTP 401 response for DeleteCertificateV1 +type DeleteCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response403Headers the declared response headers of an HTTP 403 response for GetEventV1 -type GetEventV1Response403Headers struct { +// DeleteCertificateV1Response403Headers the declared response headers of an HTTP 403 response for DeleteCertificateV1 +type DeleteCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response404Headers the declared response headers of an HTTP 404 response for GetEventV1 -type GetEventV1Response404Headers struct { +// DeleteCertificateV1Response404Headers the declared response headers of an HTTP 404 response for DeleteCertificateV1 +type DeleteCertificateV1Response404Headers struct { XRateLimitLimit *int32 } -// GetEventV1Response429Headers the declared response headers of an HTTP 429 response for GetEventV1 -type GetEventV1Response429Headers 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 } -// GetEventV1Response500Headers the declared response headers of an HTTP 500 response for GetEventV1 -type GetEventV1Response500Headers 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 GetEventV1Response struct { +type DeleteCertificateV1Response 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 + 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 - // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEventV1Response200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteCertificateV1Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventV1Response400Headers + Headers400 *DeleteCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventV1Response401Headers + Headers401 *DeleteCertificateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventV1Response403Headers + Headers403 *DeleteCertificateV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventV1Response404Headers + 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 *GetEventV1Response429Headers + Headers429 *DeleteCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventV1Response) GetJSON200() *Event { - return r.JSON200 + Headers500 *DeleteCertificateV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventV1Response) GetJSON400() *Error { +func (r DeleteCertificateV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEventV1Response) GetJSON401() *Unauthorized { +func (r DeleteCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventV1Response) GetJSON403() *Forbidden { +func (r DeleteCertificateV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEventV1Response) GetJSON404() *NotFound { +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 GetEventV1Response) GetJSON429() *TooManyRequests { +func (r DeleteCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventV1Response) GetJSON500() *InternalServerError { +func (r DeleteCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventV1Response) GetBody() []byte { +func (r DeleteCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventV1Response) Status() string { +func (r DeleteCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81142,7 +87345,7 @@ func (r GetEventV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventV1Response) StatusCode() int { +func (r DeleteCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81150,57 +87353,57 @@ 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 DeleteCertificateV1Response) 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 { +// GetCertificateV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateV1 +type GetCertificateV1Response200Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response400Headers struct { +// GetCertificateV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateV1 +type GetCertificateV1Response400Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response401Headers struct { +// GetCertificateV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateV1 +type GetCertificateV1Response401Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response403Headers struct { +// GetCertificateV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateV1 +type GetCertificateV1Response403Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response404Headers struct { +// GetCertificateV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateV1 +type GetCertificateV1Response404Headers struct { XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response429Headers struct { +// GetCertificateV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateV1 +type GetCertificateV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetEventsSupportedFiltersV1Response500Headers the declared response headers of an HTTP 500 response for GetEventsSupportedFiltersV1 -type GetEventsSupportedFiltersV1Response500Headers 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 GetEventsSupportedFiltersV1Response struct { +type GetCertificateV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SupportedFiltersResponse + JSON200 *Certificate // JSON400 the response for an HTTP 400 `application/json` response JSON400 *Error // JSON401 the response for an HTTP 401 `application/json` response @@ -81214,63 +87417,63 @@ type GetEventsSupportedFiltersV1Response struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetEventsSupportedFiltersV1Response200Headers + Headers200 *GetCertificateV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetEventsSupportedFiltersV1Response400Headers + Headers400 *GetCertificateV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetEventsSupportedFiltersV1Response401Headers + Headers401 *GetCertificateV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetEventsSupportedFiltersV1Response403Headers + Headers403 *GetCertificateV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetEventsSupportedFiltersV1Response404Headers + Headers404 *GetCertificateV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetEventsSupportedFiltersV1Response429Headers + Headers429 *GetCertificateV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetEventsSupportedFiltersV1Response500Headers + Headers500 *GetCertificateV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON200() *SupportedFiltersResponse { +func (r GetCertificateV1Response) GetJSON200() *Certificate { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON400() *Error { +func (r GetCertificateV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON401() *Unauthorized { +func (r GetCertificateV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON403() *Forbidden { +func (r GetCertificateV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON404() *NotFound { +func (r GetCertificateV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON429() *TooManyRequests { +func (r GetCertificateV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetEventsSupportedFiltersV1Response) GetJSON500() *InternalServerError { +func (r GetCertificateV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetEventsSupportedFiltersV1Response) GetBody() []byte { +func (r GetCertificateV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetEventsSupportedFiltersV1Response) Status() string { +func (r GetCertificateV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81278,7 +87481,7 @@ func (r GetEventsSupportedFiltersV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetEventsSupportedFiltersV1Response) StatusCode() int { +func (r GetCertificateV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81286,113 +87489,127 @@ 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 GetCertificateV1Response) 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 { +// GetCertificateRegistrationV1Response200Headers the declared response headers of an HTTP 200 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response200Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse400Headers the declared response headers of an HTTP 400 response for GetResources -type GetResourcesResponse400Headers struct { +// GetCertificateRegistrationV1Response400Headers the declared response headers of an HTTP 400 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response400Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse401Headers the declared response headers of an HTTP 401 response for GetResources -type GetResourcesResponse401Headers struct { +// GetCertificateRegistrationV1Response401Headers the declared response headers of an HTTP 401 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response401Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse403Headers the declared response headers of an HTTP 403 response for GetResources -type GetResourcesResponse403Headers struct { +// GetCertificateRegistrationV1Response403Headers the declared response headers of an HTTP 403 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response403Headers struct { XRateLimitLimit *int32 } -// GetResourcesResponse429Headers the declared response headers of an HTTP 429 response for GetResources -type GetResourcesResponse429Headers struct { +// GetCertificateRegistrationV1Response404Headers the declared response headers of an HTTP 404 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// GetCertificateRegistrationV1Response429Headers the declared response headers of an HTTP 429 response for GetCertificateRegistrationV1 +type GetCertificateRegistrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetResourcesResponse500Headers the declared response headers of an HTTP 500 response for GetResources -type GetResourcesResponse500Headers 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 GetResourcesResponse struct { +type GetCertificateRegistrationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *InventoryResourceResponse + 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 *GetResourcesResponse200Headers + Headers200 *GetCertificateRegistrationV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetResourcesResponse400Headers + Headers400 *GetCertificateRegistrationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetResourcesResponse401Headers + Headers401 *GetCertificateRegistrationV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetResourcesResponse403Headers + Headers403 *GetCertificateRegistrationV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetCertificateRegistrationV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetResourcesResponse429Headers + Headers429 *GetCertificateRegistrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetResourcesResponse500Headers + Headers500 *GetCertificateRegistrationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetResourcesResponse) GetJSON200() *InventoryResourceResponse { +func (r GetCertificateRegistrationV1Response) GetJSON200() *ServicesResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetResourcesResponse) GetJSON400() *BadRequest { +func (r GetCertificateRegistrationV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetResourcesResponse) GetJSON401() *Unauthorized { +func (r GetCertificateRegistrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetResourcesResponse) 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 GetResourcesResponse) GetJSON429() *TooManyRequests { +func (r GetCertificateRegistrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetResourcesResponse) GetJSON500() *InternalServerError { +func (r GetCertificateRegistrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetResourcesResponse) GetBody() []byte { +func (r GetCertificateRegistrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetResourcesResponse) Status() string { +func (r GetCertificateRegistrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81400,7 +87617,7 @@ func (r GetResourcesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetResourcesResponse) StatusCode() int { +func (r GetCertificateRegistrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81408,54 +87625,45 @@ 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 GetCertificateRegistrationV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetResourceResponse400Headers the declared response headers of an HTTP 400 response for GetResource -type GetResourceResponse400Headers struct { +// CreateCSRV1Response200Headers the declared response headers of an HTTP 200 response for CreateCSRV1 +type CreateCSRV1Response200Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse401Headers the declared response headers of an HTTP 401 response for GetResource -type GetResourceResponse401Headers struct { +// CreateCSRV1Response401Headers the declared response headers of an HTTP 401 response for CreateCSRV1 +type CreateCSRV1Response401Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse403Headers the declared response headers of an HTTP 403 response for GetResource -type GetResourceResponse403Headers struct { +// CreateCSRV1Response403Headers the declared response headers of an HTTP 403 response for CreateCSRV1 +type CreateCSRV1Response403Headers struct { XRateLimitLimit *int32 } -// GetResourceResponse429Headers the declared response headers of an HTTP 429 response for GetResource -type GetResourceResponse429Headers struct { +// CreateCSRV1Response429Headers the declared response headers of an HTTP 429 response for CreateCSRV1 +type CreateCSRV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetResourceResponse500Headers the declared response headers of an HTTP 500 response for GetResource -type GetResourceResponse500Headers 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 GetResourceResponse struct { +type CreateCSRV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *InventoryResourceExtended - // 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 @@ -81465,56 +87673,44 @@ type GetResourceResponse struct { // JSON500 the response for an HTTP 500 `application/json` response JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *GetResourceResponse200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetResourceResponse400Headers + Headers200 *CreateCSRV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetResourceResponse401Headers + Headers401 *CreateCSRV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetResourceResponse403Headers + Headers403 *CreateCSRV1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetResourceResponse429Headers + Headers429 *CreateCSRV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetResourceResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetResourceResponse) GetJSON200() *InventoryResourceExtended { - return r.JSON200 -} - -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetResourceResponse) GetJSON400() *BadRequest { - return r.JSON400 + Headers500 *CreateCSRV1Response500Headers } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetResourceResponse) GetJSON401() *Unauthorized { +func (r CreateCSRV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetResourceResponse) GetJSON403() *Forbidden { +func (r CreateCSRV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetResourceResponse) GetJSON429() *TooManyRequests { +func (r CreateCSRV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetResourceResponse) GetJSON500() *InternalServerError { +func (r CreateCSRV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetResourceResponse) GetBody() []byte { +func (r CreateCSRV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetResourceResponse) Status() string { +func (r CreateCSRV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81522,7 +87718,7 @@ func (r GetResourceResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetResourceResponse) StatusCode() int { +func (r CreateCSRV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81530,129 +87726,85 @@ 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 CreateCSRV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetActionExecutionsv1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response400Headers struct { - XRateLimitLimit *int32 -} - -// GetActionExecutionsv1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response401Headers struct { +// ListEFOChannelsByIntegrationV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response403Headers struct { +// ListEFOChannelsByIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionsv1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response429Headers struct { +// ListEFOChannelsByIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV1 +type ListEFOChannelsByIntegrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionsv1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionsv1 -type GetActionExecutionsv1Response500Headers 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 GetActionExecutionsv1Response struct { +type ListEFOChannelsByIntegrationV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ActionExecutions - // 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"` - } + 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 // 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 - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActionExecutionsv1Response400Headers + Headers200 *ListEFOChannelsByIntegrationV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionsv1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionsv1Response403Headers + Headers401 *ListEFOChannelsByIntegrationV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionsv1Response429Headers + Headers429 *ListEFOChannelsByIntegrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionsv1Response500Headers + Headers500 *ListEFOChannelsByIntegrationV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON200() *ActionExecutions { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON200() *IntegrationChannelsResponse { 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"` -} { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON401() *Unauthorized { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON429() *TooManyRequests { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionsv1Response) GetJSON500() *InternalServerError { +func (r ListEFOChannelsByIntegrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionsv1Response) GetBody() []byte { +func (r ListEFOChannelsByIntegrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionsv1Response) Status() string { +func (r ListEFOChannelsByIntegrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81660,7 +87812,7 @@ func (r GetActionExecutionsv1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionsv1Response) StatusCode() int { +func (r ListEFOChannelsByIntegrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81668,129 +87820,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 ListEFOChannelsByIntegrationV1Response) 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 { +// ListEFOIntegrationsV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response200Headers struct { XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response403Headers the declared response headers of an HTTP 403 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response403Headers struct { +// ListEFOIntegrationsV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response401Headers struct { XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response429Headers the declared response headers of an HTTP 429 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response429Headers struct { +// ListEFOIntegrationsV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV1 +type ListEFOIntegrationsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// SubmitActionExecutionv1Response500Headers the declared response headers of an HTTP 500 response for SubmitActionExecutionv1 -type SubmitActionExecutionv1Response500Headers 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 SubmitActionExecutionv1Response struct { +type ListEFOIntegrationsV1Response 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 *ListEfoIntegrationsResponseV1 // 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 *ListEFOIntegrationsV1Response200Headers // 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 *ListEFOIntegrationsV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *SubmitActionExecutionv1Response429Headers + Headers429 *ListEFOIntegrationsV1Response429Headers // 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 *ListEFOIntegrationsV1Response500Headers } -// 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 ListEFOIntegrationsV1Response) GetJSON200() *ListEfoIntegrationsResponseV1 { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsV1Response) 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 ListEFOIntegrationsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r SubmitActionExecutionv1Response) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r SubmitActionExecutionv1Response) GetBody() []byte { +func (r ListEFOIntegrationsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r SubmitActionExecutionv1Response) Status() string { +func (r ListEFOIntegrationsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81798,7 +87906,7 @@ func (r SubmitActionExecutionv1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r SubmitActionExecutionv1Response) StatusCode() int { +func (r ListEFOIntegrationsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81806,127 +87914,127 @@ 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 ListEFOIntegrationsV1Response) 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 { +// CreateEFOIntegrationV1Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response201Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response400Headers the declared response headers of an HTTP 400 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response400Headers struct { +// CreateEFOIntegrationV1Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response400Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response401Headers struct { +// CreateEFOIntegrationV1Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response401Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response403Headers struct { +// CreateEFOIntegrationV1Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response403Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response404Headers struct { +// CreateEFOIntegrationV1Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response409Headers struct { XRateLimitLimit *int32 } -// UndoActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response429Headers struct { +// CreateEFOIntegrationV1Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV1 +type CreateEFOIntegrationV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UndoActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for UndoActionExecutionV1 -type UndoActionExecutionV1Response500Headers 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 UndoActionExecutionV1Response struct { +type CreateEFOIntegrationV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ActionExecution + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *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 + // 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 *UndoActionExecutionV1Response200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateEFOIntegrationV1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *UndoActionExecutionV1Response400Headers + Headers400 *CreateEFOIntegrationV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UndoActionExecutionV1Response401Headers + Headers401 *CreateEFOIntegrationV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UndoActionExecutionV1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UndoActionExecutionV1Response404Headers + Headers403 *CreateEFOIntegrationV1Response403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *CreateEFOIntegrationV1Response409Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UndoActionExecutionV1Response429Headers + Headers429 *CreateEFOIntegrationV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UndoActionExecutionV1Response500Headers + Headers500 *CreateEFOIntegrationV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON200() *ActionExecution { - return r.JSON200 +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r CreateEFOIntegrationV1Response) GetJSON201() *EfoIntegrationResponseV1 { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON400() *BadRequest { +func (r CreateEFOIntegrationV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON401() *Unauthorized { +func (r CreateEFOIntegrationV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON403() *Forbidden { +func (r CreateEFOIntegrationV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON404() *NotFound { - return r.JSON404 +// 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 UndoActionExecutionV1Response) GetJSON429() *TooManyRequests { +func (r CreateEFOIntegrationV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UndoActionExecutionV1Response) GetJSON500() *InternalServerError { +func (r CreateEFOIntegrationV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UndoActionExecutionV1Response) GetBody() []byte { +func (r CreateEFOIntegrationV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UndoActionExecutionV1Response) Status() string { +func (r CreateEFOIntegrationV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -81934,7 +88042,7 @@ func (r UndoActionExecutionV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UndoActionExecutionV1Response) StatusCode() int { +func (r CreateEFOIntegrationV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -81942,113 +88050,113 @@ 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 CreateEFOIntegrationV1Response) 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 { +// DeleteEFOIntegrationByIdV1Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response204Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionV1 -type GetActionExecutionV1Response401Headers struct { +// DeleteEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionV1 -type GetActionExecutionV1Response403Headers struct { +// DeleteEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionV1 -type GetActionExecutionV1Response404Headers struct { +// DeleteEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionV1 -type GetActionExecutionV1Response429Headers struct { +// DeleteEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// DeleteEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for DeleteEFOIntegrationByIdV1 +type DeleteEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionV1 -type GetActionExecutionV1Response500Headers 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 GetActionExecutionV1Response struct { +type DeleteEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - 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 *GetActionExecutionV1Response200Headers + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteEFOIntegrationByIdV1Response204Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *DeleteEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionV1Response401Headers + Headers401 *DeleteEFOIntegrationByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionV1Response403Headers + Headers403 *DeleteEFOIntegrationByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionExecutionV1Response404Headers + Headers404 *DeleteEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionV1Response429Headers + Headers429 *DeleteEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionV1Response500Headers + Headers500 *DeleteEFOIntegrationByIdV1Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionExecutionV1Response) GetJSON200() *ActionExecution { - return r.JSON200 +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { + return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionV1Response) GetJSON401() *Unauthorized { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionV1Response) GetJSON403() *Forbidden { +func (r DeleteEFOIntegrationByIdV1Response) 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 GetActionExecutionV1Response) GetJSON429() *TooManyRequests { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionV1Response) GetJSON500() *InternalServerError { +func (r DeleteEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionV1Response) GetBody() []byte { +func (r DeleteEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionV1Response) Status() string { +func (r DeleteEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82056,7 +88164,7 @@ func (r GetActionExecutionV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionV1Response) StatusCode() int { +func (r DeleteEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82064,120 +88172,106 @@ 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 DeleteEFOIntegrationByIdV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetActionExecutionFileAcquireV1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response400Headers struct { +// GetEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response401Headers struct { +// GetEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response403Headers struct { +// GetEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response404Headers struct { +// GetEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response404Headers struct { XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response429Headers struct { +// GetEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV1 +type GetEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionExecutionFileAcquireV1Response500Headers the declared response headers of an HTTP 500 response for GetActionExecutionFileAcquireV1 -type GetActionExecutionFileAcquireV1Response500Headers 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 GetActionExecutionFileAcquireV1Response struct { +type GetEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + 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 *GetActionExecutionFileAcquireV1Response200Headers + Headers200 *GetEFOIntegrationByIdV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetActionExecutionFileAcquireV1Response400Headers + Headers400 *GetEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionExecutionFileAcquireV1Response401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionExecutionFileAcquireV1Response403Headers + Headers401 *GetEFOIntegrationByIdV1Response401Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionExecutionFileAcquireV1Response404Headers + Headers404 *GetEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionExecutionFileAcquireV1Response429Headers + Headers429 *GetEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionExecutionFileAcquireV1Response500Headers + Headers500 *GetEFOIntegrationByIdV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON400() *BadRequest { +func (r GetEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON401() *Unauthorized { +func (r GetEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON403() *Forbidden { - return r.JSON403 -} - -// 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 GetActionExecutionFileAcquireV1Response) GetJSON429() *TooManyRequests { +func (r GetEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionExecutionFileAcquireV1Response) GetJSON500() *InternalServerError { +func (r GetEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionExecutionFileAcquireV1Response) GetBody() []byte { +func (r GetEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionExecutionFileAcquireV1Response) Status() string { +func (r GetEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82185,7 +88279,7 @@ func (r GetActionExecutionFileAcquireV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionExecutionFileAcquireV1Response) StatusCode() int { +func (r GetEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82193,113 +88287,120 @@ 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 GetEFOIntegrationByIdV1Response) 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 { +// UpdateEFOIntegrationByIdV1Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response200Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response401Headers the declared response headers of an HTTP 401 response for GetActionsV1 -type GetActionsV1Response401Headers struct { +// UpdateEFOIntegrationByIdV1Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response400Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response403Headers the declared response headers of an HTTP 403 response for GetActionsV1 -type GetActionsV1Response403Headers struct { +// UpdateEFOIntegrationByIdV1Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response401Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response404Headers the declared response headers of an HTTP 404 response for GetActionsV1 -type GetActionsV1Response404Headers struct { +// UpdateEFOIntegrationByIdV1Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response403Headers struct { XRateLimitLimit *int32 } -// GetActionsV1Response429Headers the declared response headers of an HTTP 429 response for GetActionsV1 -type GetActionsV1Response429Headers struct { +// UpdateEFOIntegrationByIdV1Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response404Headers struct { + XRateLimitLimit *int32 +} + +// UpdateEFOIntegrationByIdV1Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV1 +type UpdateEFOIntegrationByIdV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetActionsV1Response500Headers the declared response headers of an HTTP 500 response for GetActionsV1 -type GetActionsV1Response500Headers 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 GetActionsV1Response struct { +type UpdateEFOIntegrationByIdV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *Actions + 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 *GetActionsV1Response200Headers + Headers200 *UpdateEFOIntegrationByIdV1Response200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *UpdateEFOIntegrationByIdV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetActionsV1Response401Headers + Headers401 *UpdateEFOIntegrationByIdV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetActionsV1Response403Headers + Headers403 *UpdateEFOIntegrationByIdV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetActionsV1Response404Headers + Headers404 *UpdateEFOIntegrationByIdV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetActionsV1Response429Headers + Headers429 *UpdateEFOIntegrationByIdV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetActionsV1Response500Headers + Headers500 *UpdateEFOIntegrationByIdV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetActionsV1Response) GetJSON200() *Actions { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON200() *EfoIntegrationResponseV1 { return r.JSON200 } +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r UpdateEFOIntegrationByIdV1Response) GetJSON400() *BadRequest { + return r.JSON400 +} + // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetActionsV1Response) GetJSON401() *Unauthorized { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetActionsV1Response) GetJSON403() *Forbidden { +func (r UpdateEFOIntegrationByIdV1Response) 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 UpdateEFOIntegrationByIdV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetActionsV1Response) GetJSON500() *InternalServerError { +func (r UpdateEFOIntegrationByIdV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetActionsV1Response) GetBody() []byte { +func (r UpdateEFOIntegrationByIdV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetActionsV1Response) Status() string { +func (r UpdateEFOIntegrationByIdV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82307,7 +88408,7 @@ func (r GetActionsV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetActionsV1Response) StatusCode() int { +func (r UpdateEFOIntegrationByIdV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82315,113 +88416,85 @@ 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 UpdateEFOIntegrationByIdV1Response) 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 { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse400Headers struct { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse401Headers struct { +// ListEFOIntegrationsTypesV1Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse403Headers struct { +// ListEFOIntegrationsTypesV1Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse429Headers struct { +// ListEFOIntegrationsTypesV1Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV1 +type ListEFOIntegrationsTypesV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Bundles -type GetSecureVulnerabilityV1BundlesResponse500Headers 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 GetSecureVulnerabilityV1BundlesResponse struct { +type ListEFOIntegrationsTypesV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListBundlesResponse - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + 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 *GetSecureVulnerabilityV1BundlesResponse200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1BundlesResponse400Headers + Headers200 *ListEFOIntegrationsTypesV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1BundlesResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1BundlesResponse403Headers + Headers401 *ListEFOIntegrationsTypesV1Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1BundlesResponse429Headers + Headers429 *ListEFOIntegrationsTypesV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1BundlesResponse500Headers + Headers500 *ListEFOIntegrationsTypesV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON200() *ListBundlesResponse { +func (r ListEFOIntegrationsTypesV1Response) GetJSON200() *IntegrationTypesResponse { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsTypesV1Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsTypesV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsTypesV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1BundlesResponse) GetBody() []byte { +func (r ListEFOIntegrationsTypesV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { +func (r ListEFOIntegrationsTypesV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82429,7 +88502,7 @@ func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1BundlesResponse) StatusCode() int { +func (r ListEFOIntegrationsTypesV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82437,127 +88510,85 @@ 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 ListEFOIntegrationsTypesV1Response) 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 { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse401Headers struct { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse403Headers struct { +// ListEFOChannelsByIntegrationV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response200Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse409Headers struct { +// ListEFOChannelsByIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response401Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse429Headers struct { +// ListEFOChannelsByIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOChannelsByIntegrationV2 +type ListEFOChannelsByIntegrationV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1BundlesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Bundles -type PostSecureVulnerabilityV1BundlesResponse500Headers 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 PostSecureVulnerabilityV1BundlesResponse struct { +type ListEFOChannelsByIntegrationV2Response 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 + // JSON200 the response for an HTTP 200 `application/json` response + 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 - // 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 - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSecureVulnerabilityV1BundlesResponse400Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListEFOChannelsByIntegrationV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSecureVulnerabilityV1BundlesResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostSecureVulnerabilityV1BundlesResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostSecureVulnerabilityV1BundlesResponse409Headers + Headers401 *ListEFOChannelsByIntegrationV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSecureVulnerabilityV1BundlesResponse429Headers + Headers429 *ListEFOChannelsByIntegrationV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostSecureVulnerabilityV1BundlesResponse500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON201() *GetBundleResponse { - return r.JSON201 + Headers500 *ListEFOChannelsByIntegrationV2Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { - return r.JSON400 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListEFOChannelsByIntegrationV2Response) GetJSON200() *IntegrationChannelsResponse { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -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 PostSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { +func (r ListEFOChannelsByIntegrationV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostSecureVulnerabilityV1BundlesResponse) GetBody() []byte { +func (r ListEFOChannelsByIntegrationV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { +func (r ListEFOChannelsByIntegrationV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82565,7 +88596,7 @@ func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSecureVulnerabilityV1BundlesResponse) StatusCode() int { +func (r ListEFOChannelsByIntegrationV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82573,106 +88604,85 @@ 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 ListEFOChannelsByIntegrationV2Response) 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 { - XRateLimitLimit *int32 -} - -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { - XRateLimitLimit *int32 -} - -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// ListEFOIntegrationsV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response200Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// ListEFOIntegrationsV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response401Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { +// ListEFOIntegrationsV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsV2 +type ListEFOIntegrationsV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1BundlesBundleId -type DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers 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 DeleteSecureVulnerabilityV1BundlesBundleIdResponse struct { +type ListEFOIntegrationsV2Response struct { Body []byte HTTPResponse *http.Response - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + // JSON200 the response for an HTTP 200 `application/json` response + 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 // 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 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers200 *ListEFOIntegrationsV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers + Headers401 *ListEFOIntegrationsV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *ListEFOIntegrationsV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers + Headers500 *ListEFOIntegrationsV2Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { - return r.JSON400 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ListEFOIntegrationsV2Response) GetJSON200() *ListIntegrationsResponse { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { - return r.JSON403 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r ListEFOIntegrationsV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r ListEFOIntegrationsV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r ListEFOIntegrationsV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82680,7 +88690,7 @@ func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r ListEFOIntegrationsV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82688,113 +88698,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 ListEFOIntegrationsV2Response) 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 { +// CreateEFOIntegrationV2Response201Headers the declared response headers of an HTTP 201 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response201Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { +// CreateEFOIntegrationV2Response400Headers the declared response headers of an HTTP 400 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// CreateEFOIntegrationV2Response401Headers the declared response headers of an HTTP 401 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// CreateEFOIntegrationV2Response403Headers the declared response headers of an HTTP 403 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { +// CreateEFOIntegrationV2Response409Headers the declared response headers of an HTTP 409 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response409Headers struct { + XRateLimitLimit *int32 +} + +// CreateEFOIntegrationV2Response429Headers the declared response headers of an HTTP 429 response for CreateEFOIntegrationV2 +type CreateEFOIntegrationV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1BundlesBundleId -type GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers 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 GetSecureVulnerabilityV1BundlesBundleIdResponse struct { +type CreateEFOIntegrationV2Response struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetBundleResponse + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *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 + // 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 *GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *CreateEFOIntegrationV2Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers400 *CreateEFOIntegrationV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers + Headers401 *CreateEFOIntegrationV2Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers + 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 *GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *CreateEFOIntegrationV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers + Headers500 *CreateEFOIntegrationV2Response500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { - 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 GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { +func (r CreateEFOIntegrationV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r CreateEFOIntegrationV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { +func (r CreateEFOIntegrationV2Response) GetJSON403() *Forbidden { return r.JSON403 } +// 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 GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r CreateEFOIntegrationV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r CreateEFOIntegrationV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r CreateEFOIntegrationV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r CreateEFOIntegrationV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82802,7 +88826,7 @@ func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r CreateEFOIntegrationV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82810,113 +88834,120 @@ 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 CreateEFOIntegrationV2Response) 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 { +// DeleteEFOIntegrationByIdV2Response204Headers the declared response headers of an HTTP 204 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response204Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { +// DeleteEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { +// DeleteEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { +// DeleteEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for DeleteEFOIntegrationByIdV2 +type DeleteEFOIntegrationByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers 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 } -// PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1BundlesBundleId -type PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers 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 PutSecureVulnerabilityV1BundlesBundleIdResponse struct { +type DeleteEFOIntegrationByIdV2Response 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 // 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 + // Headers204 the parsed response headers for an HTTP 204 response + Headers204 *DeleteEFOIntegrationByIdV2Response204Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers + Headers400 *DeleteEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers + Headers401 *DeleteEFOIntegrationByIdV2Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers + 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 *PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers + Headers429 *DeleteEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { - return r.JSON200 + Headers500 *DeleteEFOIntegrationByIdV2Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) 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 PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { +func (r DeleteEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { +func (r DeleteEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { +func (r DeleteEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -82924,7 +88955,7 @@ func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { +func (r DeleteEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -82932,127 +88963,113 @@ 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 DeleteEFOIntegrationByIdV2Response) 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 { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1PipelineResultsResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse400Headers struct { +// GetEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse401Headers struct { +// GetEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse403Headers struct { +// GetEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse409Headers struct { +// GetEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response404Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse429Headers struct { +// GetEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for GetEFOIntegrationByIdV2 +type GetEFOIntegrationByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PipelineResultsResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PipelineResults -type GetSecureVulnerabilityV1PipelineResultsResponse500Headers 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 GetSecureVulnerabilityV1PipelineResultsResponse struct { +type GetEFOIntegrationByIdV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *PipelineResultsResponse + 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 - // 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 *GetEFOIntegrationByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PipelineResultsResponse400Headers + Headers400 *GetEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PipelineResultsResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1PipelineResultsResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1PipelineResultsResponse409Headers + 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 *GetSecureVulnerabilityV1PipelineResultsResponse429Headers + Headers429 *GetEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PipelineResultsResponse500Headers + Headers500 *GetEFOIntegrationByIdV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON200() *PipelineResultsResponse { +func (r GetEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON400() *BadRequest { +func (r GetEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON401() *Unauthorized { +func (r GetEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) 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 GetEFOIntegrationByIdV2Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON429() *TooManyRequests { +func (r GetEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON500() *InternalServerError { +func (r GetEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetBody() []byte { +func (r GetEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { +func (r GetEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83060,7 +89077,7 @@ func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PipelineResultsResponse) StatusCode() int { +func (r GetEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83068,127 +89085,127 @@ 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 GetEFOIntegrationByIdV2Response) 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 { +// UpdateEFOIntegrationByIdV2Response200Headers the declared response headers of an HTTP 200 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse400Headers struct { +// UpdateEFOIntegrationByIdV2Response400Headers the declared response headers of an HTTP 400 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse401Headers struct { +// UpdateEFOIntegrationByIdV2Response401Headers the declared response headers of an HTTP 401 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse403Headers struct { +// UpdateEFOIntegrationByIdV2Response403Headers the declared response headers of an HTTP 403 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse409Headers struct { +// UpdateEFOIntegrationByIdV2Response404Headers the declared response headers of an HTTP 404 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response404Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse429Headers struct { +// UpdateEFOIntegrationByIdV2Response429Headers the declared response headers of an HTTP 429 response for UpdateEFOIntegrationByIdV2 +type UpdateEFOIntegrationByIdV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1Policies -type GetSecureVulnerabilityV1PoliciesResponse500Headers 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 GetSecureVulnerabilityV1PoliciesResponse struct { +type UpdateEFOIntegrationByIdV2Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListPoliciesResponse + 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 - // 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 + Headers200 *UpdateEFOIntegrationByIdV2Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PoliciesResponse400Headers + Headers400 *UpdateEFOIntegrationByIdV2Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PoliciesResponse401Headers + Headers401 *UpdateEFOIntegrationByIdV2Response401Headers // 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 *UpdateEFOIntegrationByIdV2Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *UpdateEFOIntegrationByIdV2Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1PoliciesResponse429Headers + Headers429 *UpdateEFOIntegrationByIdV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PoliciesResponse500Headers + Headers500 *UpdateEFOIntegrationByIdV2Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON200() *ListPoliciesResponse { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON200() *IntegrationResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { +func (r UpdateEFOIntegrationByIdV2Response) 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 UpdateEFOIntegrationByIdV2Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { +func (r UpdateEFOIntegrationByIdV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { +func (r UpdateEFOIntegrationByIdV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { +func (r UpdateEFOIntegrationByIdV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83196,7 +89213,7 @@ func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PoliciesResponse) StatusCode() int { +func (r UpdateEFOIntegrationByIdV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83204,127 +89221,85 @@ 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 UpdateEFOIntegrationByIdV2Response) 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 { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse401Headers struct { - XRateLimitLimit *int32 -} - -// PostSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse403Headers struct { +// ListEFOIntegrationsTypesV2Response200Headers the declared response headers of an HTTP 200 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response200Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse409Headers struct { +// ListEFOIntegrationsTypesV2Response401Headers the declared response headers of an HTTP 401 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response401Headers struct { XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse429Headers struct { +// ListEFOIntegrationsTypesV2Response429Headers the declared response headers of an HTTP 429 response for ListEFOIntegrationsTypesV2 +type ListEFOIntegrationsTypesV2Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostSecureVulnerabilityV1PoliciesResponse500Headers the declared response headers of an HTTP 500 response for PostSecureVulnerabilityV1Policies -type PostSecureVulnerabilityV1PoliciesResponse500Headers 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 PostSecureVulnerabilityV1PoliciesResponse struct { +type ListEFOIntegrationsTypesV2Response struct { Body []byte HTTPResponse *http.Response - // JSON201 the response for an HTTP 201 `application/json` response - JSON201 *GetPolicyResponse - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + // 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 - // 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 - // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostSecureVulnerabilityV1PoliciesResponse400Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *ListEFOIntegrationsTypesV2Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostSecureVulnerabilityV1PoliciesResponse401Headers - // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostSecureVulnerabilityV1PoliciesResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostSecureVulnerabilityV1PoliciesResponse409Headers + Headers401 *ListEFOIntegrationsTypesV2Response401Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PostSecureVulnerabilityV1PoliciesResponse429Headers + Headers429 *ListEFOIntegrationsTypesV2Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostSecureVulnerabilityV1PoliciesResponse500Headers -} - -// GetJSON201 returns the response for an HTTP 201 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON201() *GetPolicyResponse { - return r.JSON201 + Headers500 *ListEFOIntegrationsTypesV2Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { - 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 PostSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { +func (r ListEFOIntegrationsTypesV2Response) GetJSON401() *Unauthorized { return r.JSON401 } -// GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) 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 ListEFOIntegrationsTypesV2Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { +func (r ListEFOIntegrationsTypesV2Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { +func (r ListEFOIntegrationsTypesV2Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { +func (r ListEFOIntegrationsTypesV2Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83332,7 +89307,7 @@ func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostSecureVulnerabilityV1PoliciesResponse) StatusCode() int { +func (r ListEFOIntegrationsTypesV2Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83340,106 +89315,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 ListEFOIntegrationsTypesV2Response) 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 { +// GetEventsV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsV1 +type GetEventsV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// GetEventsV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsV1 +type GetEventsV1Response400Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// GetEventsV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsV1 +type GetEventsV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// GetEventsV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsV1 +type GetEventsV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// 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 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for DeleteSecureVulnerabilityV1PoliciesPolicyId -type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers 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 DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type GetEventsV1Response 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 *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 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + Headers200 *GetEventsV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *GetEventsV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *GetEventsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + Headers403 *GetEventsV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetEventsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *GetEventsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + Headers500 *GetEventsV1Response500Headers +} + +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetEventsV1Response) GetJSON200() *ListEventsResponse { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r GetEventsV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r GetEventsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +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 DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r GetEventsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r GetEventsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r GetEventsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r GetEventsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83447,7 +89443,7 @@ func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r GetEventsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83455,127 +89451,127 @@ 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 GetEventsV1Response) 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 { +// GetEventV1Response200Headers the declared response headers of an HTTP 200 response for GetEventV1 +type GetEventV1Response200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// GetEventV1Response400Headers the declared response headers of an HTTP 400 response for GetEventV1 +type GetEventV1Response400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// GetEventV1Response401Headers the declared response headers of an HTTP 401 response for GetEventV1 +type GetEventV1Response401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// GetEventV1Response403Headers the declared response headers of an HTTP 403 response for GetEventV1 +type GetEventV1Response403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { +// GetEventV1Response404Headers the declared response headers of an HTTP 404 response for GetEventV1 +type GetEventV1Response404Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// GetEventV1Response429Headers the declared response headers of an HTTP 429 response for GetEventV1 +type GetEventV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1PoliciesPolicyId -type GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers 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 GetSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type GetEventV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetPolicyResponse + JSON200 *Event // 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 - // 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 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + Headers200 *GetEventV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *GetEventV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *GetEventV1Response401Headers // 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 *GetEventV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetEventV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *GetEventV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + Headers500 *GetEventV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { +func (r GetEventV1Response) GetJSON200() *Event { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r GetEventV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r GetEventV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +func (r GetEventV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { - return r.JSON409 +// 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 GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r GetEventV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r GetEventV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r GetEventV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r GetEventV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83583,7 +89579,7 @@ func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r GetEventV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83591,127 +89587,127 @@ 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 GetEventV1Response) 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 { +// GetEventsSupportedFiltersV1Response200Headers the declared response headers of an HTTP 200 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response200Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { +// GetEventsSupportedFiltersV1Response400Headers the declared response headers of an HTTP 400 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response400Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { +// GetEventsSupportedFiltersV1Response401Headers the declared response headers of an HTTP 401 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response401Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { +// GetEventsSupportedFiltersV1Response403Headers the declared response headers of an HTTP 403 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response403Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { +// GetEventsSupportedFiltersV1Response404Headers the declared response headers of an HTTP 404 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response404Headers struct { XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { +// GetEventsSupportedFiltersV1Response429Headers the declared response headers of an HTTP 429 response for GetEventsSupportedFiltersV1 +type GetEventsSupportedFiltersV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers the declared response headers of an HTTP 500 response for PutSecureVulnerabilityV1PoliciesPolicyId -type PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers 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 PutSecureVulnerabilityV1PoliciesPolicyIdResponse struct { +type GetEventsSupportedFiltersV1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *GetPolicyResponse + 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 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 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers + Headers200 *GetEventsSupportedFiltersV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + Headers400 *GetEventsSupportedFiltersV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + Headers401 *GetEventsSupportedFiltersV1Response401Headers // 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 *GetEventsSupportedFiltersV1Response403Headers + // Headers404 the parsed response headers for an HTTP 404 response + Headers404 *GetEventsSupportedFiltersV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + Headers429 *GetEventsSupportedFiltersV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers + Headers500 *GetEventsSupportedFiltersV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { +func (r GetEventsSupportedFiltersV1Response) GetJSON200() *SupportedFiltersResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { +func (r GetEventsSupportedFiltersV1Response) GetJSON400() *Error { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { +func (r GetEventsSupportedFiltersV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { +func (r GetEventsSupportedFiltersV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { - return r.JSON409 +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetEventsSupportedFiltersV1Response) GetJSON404() *NotFound { + return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { +func (r GetEventsSupportedFiltersV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { +func (r GetEventsSupportedFiltersV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { +func (r GetEventsSupportedFiltersV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { +func (r GetEventsSupportedFiltersV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83719,7 +89715,7 @@ func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { +func (r GetEventsSupportedFiltersV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83727,127 +89723,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 GetEventsSupportedFiltersV1Response) 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 { +// GetResourcesResponse200Headers the declared response headers of an HTTP 200 response for GetResources +type GetResourcesResponse200Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse401Headers struct { +// GetResourcesResponse400Headers the declared response headers of an HTTP 400 response for GetResources +type GetResourcesResponse400Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse403Headers struct { +// GetResourcesResponse401Headers the declared response headers of an HTTP 401 response for GetResources +type GetResourcesResponse401Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse409Headers struct { +// GetResourcesResponse403Headers the declared response headers of an HTTP 403 response for GetResources +type GetResourcesResponse403Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse429Headers struct { +// GetResourcesResponse429Headers the declared response headers of an HTTP 429 response for GetResources +type GetResourcesResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ScannerAPIServiceListRegistryResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRegistryResults -type ScannerAPIServiceListRegistryResultsResponse500Headers 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 ScannerAPIServiceListRegistryResultsResponse struct { +type GetResourcesResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RegistryResultsResponse + 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 - // 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 *GetResourcesResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ScannerAPIServiceListRegistryResultsResponse400Headers + Headers400 *GetResourcesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ScannerAPIServiceListRegistryResultsResponse401Headers + Headers401 *GetResourcesResponse401Headers // 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 *GetResourcesResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ScannerAPIServiceListRegistryResultsResponse429Headers + Headers429 *GetResourcesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ScannerAPIServiceListRegistryResultsResponse500Headers + Headers500 *GetResourcesResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON200() *RegistryResultsResponse { +func (r GetResourcesResponse) GetJSON200() *InventoryResourceResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON400() *BadRequest { +func (r GetResourcesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON401() *Unauthorized { +func (r GetResourcesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON403() *Forbidden { +func (r GetResourcesResponse) 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 GetResourcesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON500() *InternalServerError { +func (r GetResourcesResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ScannerAPIServiceListRegistryResultsResponse) GetBody() []byte { +func (r GetResourcesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { +func (r GetResourcesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83855,7 +89837,7 @@ func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScannerAPIServiceListRegistryResultsResponse) StatusCode() int { +func (r GetResourcesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83863,127 +89845,113 @@ 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 GetResourcesResponse) 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 { +// GetResourceResponse200Headers the declared response headers of an HTTP 200 response for GetResource +type GetResourceResponse200Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse400Headers struct { +// GetResourceResponse400Headers the declared response headers of an HTTP 400 response for GetResource +type GetResourceResponse400Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse401Headers struct { +// GetResourceResponse401Headers the declared response headers of an HTTP 401 response for GetResource +type GetResourceResponse401Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse403Headers struct { +// GetResourceResponse403Headers the declared response headers of an HTTP 403 response for GetResource +type GetResourceResponse403Headers struct { XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse409Headers struct { - XRateLimitLimit *int32 -} - -// GetSecureVulnerabilityV1ResultsResultIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse429Headers struct { +// GetResourceResponse429Headers the declared response headers of an HTTP 429 response for GetResource +type GetResourceResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSecureVulnerabilityV1ResultsResultIdResponse500Headers the declared response headers of an HTTP 500 response for GetSecureVulnerabilityV1ResultsResultId -type GetSecureVulnerabilityV1ResultsResultIdResponse500Headers 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 GetSecureVulnerabilityV1ResultsResultIdResponse struct { +type GetResourceResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ScanResultResponse + JSON200 *InventoryResourceExtended // 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 *GetSecureVulnerabilityV1ResultsResultIdResponse200Headers + Headers200 *GetResourceResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSecureVulnerabilityV1ResultsResultIdResponse400Headers + Headers400 *GetResourceResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSecureVulnerabilityV1ResultsResultIdResponse401Headers + Headers401 *GetResourceResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetSecureVulnerabilityV1ResultsResultIdResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetSecureVulnerabilityV1ResultsResultIdResponse409Headers + Headers403 *GetResourceResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSecureVulnerabilityV1ResultsResultIdResponse429Headers + Headers429 *GetResourceResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSecureVulnerabilityV1ResultsResultIdResponse500Headers + Headers500 *GetResourceResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON200() *ScanResultResponse { +func (r GetResourceResponse) GetJSON200() *InventoryResourceExtended { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON400() *BadRequest { +func (r GetResourceResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON401() *Unauthorized { +func (r GetResourceResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON403() *Forbidden { +func (r GetResourceResponse) GetJSON403() *Forbidden { return r.JSON403 } -// 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 GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON429() *TooManyRequests { +func (r GetResourceResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON500() *InternalServerError { +func (r GetResourceResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetBody() []byte { +func (r GetResourceResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { +func (r GetResourceResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -83991,7 +89959,7 @@ func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSecureVulnerabilityV1ResultsResultIdResponse) StatusCode() int { +func (r GetResourceResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -83999,127 +89967,129 @@ 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 GetResourceResponse) 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 { - XRateLimitLimit *int32 -} - -// ScannerAPIServiceListRuntimeResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse400Headers struct { +// GetActionExecutionsv1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response200Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse401Headers struct { +// GetActionExecutionsv1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response400Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse403Headers struct { +// GetActionExecutionsv1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response401Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse409Headers struct { +// GetActionExecutionsv1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response403Headers struct { XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse429Headers struct { +// GetActionExecutionsv1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionsv1 +type GetActionExecutionsv1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// ScannerAPIServiceListRuntimeResultsResponse500Headers the declared response headers of an HTTP 500 response for ScannerAPIServiceListRuntimeResults -type ScannerAPIServiceListRuntimeResultsResponse500Headers 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 ScannerAPIServiceListRuntimeResultsResponse struct { +type GetActionExecutionsv1Response struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *RuntimeResultsResponse + 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 // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ScannerAPIServiceListRuntimeResultsResponse200Headers + Headers200 *GetActionExecutionsv1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ScannerAPIServiceListRuntimeResultsResponse400Headers + Headers400 *GetActionExecutionsv1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ScannerAPIServiceListRuntimeResultsResponse401Headers + Headers401 *GetActionExecutionsv1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ScannerAPIServiceListRuntimeResultsResponse403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *ScannerAPIServiceListRuntimeResultsResponse409Headers + Headers403 *GetActionExecutionsv1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ScannerAPIServiceListRuntimeResultsResponse429Headers + Headers429 *GetActionExecutionsv1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ScannerAPIServiceListRuntimeResultsResponse500Headers + Headers500 *GetActionExecutionsv1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON200() *RuntimeResultsResponse { +func (r GetActionExecutionsv1Response) GetJSON200() *ActionExecutions { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) 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 ScannerAPIServiceListRuntimeResultsResponse) GetJSON401() *Unauthorized { +func (r GetActionExecutionsv1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON403() *Forbidden { +func (r GetActionExecutionsv1Response) GetJSON403() *Forbidden { return r.JSON403 } -// 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 ScannerAPIServiceListRuntimeResultsResponse) GetJSON429() *TooManyRequests { +func (r GetActionExecutionsv1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON500() *InternalServerError { +func (r GetActionExecutionsv1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r ScannerAPIServiceListRuntimeResultsResponse) GetBody() []byte { +func (r GetActionExecutionsv1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { +func (r GetActionExecutionsv1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84127,7 +90097,7 @@ func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ScannerAPIServiceListRuntimeResultsResponse) StatusCode() int { +func (r GetActionExecutionsv1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84135,127 +90105,129 @@ 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 GetActionExecutionsv1Response) 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 { - XRateLimitLimit *int32 -} - -// GetAcceptedRisksV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response400Headers struct { +// SubmitActionExecutionv1Response201Headers the declared response headers of an HTTP 201 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response201Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response401Headers struct { +// SubmitActionExecutionv1Response400Headers the declared response headers of an HTTP 400 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response400Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response403Headers struct { +// SubmitActionExecutionv1Response401Headers the declared response headers of an HTTP 401 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response401Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response409Headers the declared response headers of an HTTP 409 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response409Headers struct { +// SubmitActionExecutionv1Response403Headers the declared response headers of an HTTP 403 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response403Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response429Headers struct { +// SubmitActionExecutionv1Response429Headers the declared response headers of an HTTP 429 response for SubmitActionExecutionv1 +type SubmitActionExecutionv1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetAcceptedRisksV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRisksV1 -type GetAcceptedRisksV1Response500Headers 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 GetAcceptedRisksV1Response struct { +type SubmitActionExecutionv1Response 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 *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 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 + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *SubmitActionExecutionv1Response201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAcceptedRisksV1Response400Headers + Headers400 *SubmitActionExecutionv1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAcceptedRisksV1Response401Headers + Headers401 *SubmitActionExecutionv1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAcceptedRisksV1Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *GetAcceptedRisksV1Response409Headers + Headers403 *SubmitActionExecutionv1Response403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAcceptedRisksV1Response429Headers + Headers429 *SubmitActionExecutionv1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAcceptedRisksV1Response500Headers + Headers500 *SubmitActionExecutionv1Response500Headers } -// 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 SubmitActionExecutionv1Response) GetJSON201() *ActionExecution { + return r.JSON201 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAcceptedRisksV1Response) 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 GetAcceptedRisksV1Response) GetJSON401() *Unauthorized { +func (r SubmitActionExecutionv1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON403() *Forbidden { +func (r SubmitActionExecutionv1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON409() *Conflict { - return r.JSON409 -} - // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON429() *TooManyRequests { +func (r SubmitActionExecutionv1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAcceptedRisksV1Response) GetJSON500() *InternalServerError { +func (r SubmitActionExecutionv1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAcceptedRisksV1Response) GetBody() []byte { +func (r SubmitActionExecutionv1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAcceptedRisksV1Response) Status() string { +func (r SubmitActionExecutionv1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84263,7 +90235,7 @@ func (r GetAcceptedRisksV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAcceptedRisksV1Response) StatusCode() int { +func (r SubmitActionExecutionv1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84271,127 +90243,127 @@ 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 SubmitActionExecutionv1Response) 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 { +// UndoActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response200Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response400Headers struct { +// UndoActionExecutionV1Response400Headers the declared response headers of an HTTP 400 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response400Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response401Headers struct { +// UndoActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response401Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response403Headers struct { +// UndoActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response403Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response409Headers the declared response headers of an HTTP 409 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response409Headers struct { +// UndoActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response404Headers struct { XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response429Headers struct { +// UndoActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for UndoActionExecutionV1 +type UndoActionExecutionV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// PostAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for PostAcceptedRiskV1 -type PostAcceptedRiskV1Response500Headers 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 PostAcceptedRiskV1Response struct { +type UndoActionExecutionV1Response 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 *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 - // 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 - // Headers201 the parsed response headers for an HTTP 201 response - Headers201 *PostAcceptedRiskV1Response201Headers + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *UndoActionExecutionV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *PostAcceptedRiskV1Response400Headers + Headers400 *UndoActionExecutionV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *PostAcceptedRiskV1Response401Headers + Headers401 *UndoActionExecutionV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *PostAcceptedRiskV1Response403Headers - // Headers409 the parsed response headers for an HTTP 409 response - Headers409 *PostAcceptedRiskV1Response409Headers + 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 *PostAcceptedRiskV1Response429Headers + Headers429 *UndoActionExecutionV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *PostAcceptedRiskV1Response500Headers + Headers500 *UndoActionExecutionV1Response500Headers } -// 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 UndoActionExecutionV1Response) GetJSON200() *ActionExecution { + return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r UndoActionExecutionV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r UndoActionExecutionV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r UndoActionExecutionV1Response) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON409 returns the response for an HTTP 409 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON409() *Conflict { - return r.JSON409 +// 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 PostAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r UndoActionExecutionV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r PostAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r UndoActionExecutionV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r PostAcceptedRiskV1Response) GetBody() []byte { +func (r UndoActionExecutionV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r PostAcceptedRiskV1Response) Status() string { +func (r UndoActionExecutionV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84399,7 +90371,7 @@ func (r PostAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r PostAcceptedRiskV1Response) StatusCode() int { +func (r UndoActionExecutionV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84407,57 +90379,52 @@ 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 UndoActionExecutionV1Response) 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 { - XRateLimitLimit *int32 -} - -// DeleteAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response400Headers struct { +// GetActionExecutionV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionV1 +type GetActionExecutionV1Response200Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response401Headers struct { +// GetActionExecutionV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionV1 +type GetActionExecutionV1Response401Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response403Headers struct { +// GetActionExecutionV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionV1 +type GetActionExecutionV1Response403Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response404Headers struct { +// GetActionExecutionV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionV1 +type GetActionExecutionV1Response404Headers struct { XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response429Headers struct { +// GetActionExecutionV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionV1 +type GetActionExecutionV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// DeleteAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for DeleteAcceptedRiskV1 -type DeleteAcceptedRiskV1Response500Headers 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 DeleteAcceptedRiskV1Response struct { +type GetActionExecutionV1Response struct { Body []byte HTTPResponse *http.Response - // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequest + // JSON200 the response for an HTTP 200 `application/json` response + JSON200 *ActionExecution // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -84468,59 +90435,57 @@ type DeleteAcceptedRiskV1Response struct { 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 + // Headers200 the parsed response headers for an HTTP 200 response + Headers200 *GetActionExecutionV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *DeleteAcceptedRiskV1Response401Headers + Headers401 *GetActionExecutionV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *DeleteAcceptedRiskV1Response403Headers + Headers403 *GetActionExecutionV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *DeleteAcceptedRiskV1Response404Headers + Headers404 *GetActionExecutionV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *DeleteAcceptedRiskV1Response429Headers + Headers429 *GetActionExecutionV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *DeleteAcceptedRiskV1Response500Headers + Headers500 *GetActionExecutionV1Response500Headers } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON400() *BadRequest { - return r.JSON400 +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetActionExecutionV1Response) GetJSON200() *ActionExecution { + return r.JSON200 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r GetActionExecutionV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r GetActionExecutionV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON404() *NotFound { +func (r GetActionExecutionV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r GetActionExecutionV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r DeleteAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r GetActionExecutionV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r DeleteAcceptedRiskV1Response) GetBody() []byte { +func (r GetActionExecutionV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r DeleteAcceptedRiskV1Response) Status() string { +func (r GetActionExecutionV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84528,7 +90493,7 @@ func (r DeleteAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r DeleteAcceptedRiskV1Response) StatusCode() int { +func (r GetActionExecutionV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84536,57 +90501,55 @@ 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 GetActionExecutionV1Response) 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 { +// GetActionExecutionFileAcquireV1Response200Headers the declared response headers of an HTTP 200 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response200Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response400Headers struct { +// GetActionExecutionFileAcquireV1Response400Headers the declared response headers of an HTTP 400 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response400Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response401Headers struct { +// GetActionExecutionFileAcquireV1Response401Headers the declared response headers of an HTTP 401 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response401Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response403Headers struct { +// GetActionExecutionFileAcquireV1Response403Headers the declared response headers of an HTTP 403 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response403Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response404Headers struct { +// GetActionExecutionFileAcquireV1Response404Headers the declared response headers of an HTTP 404 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response404Headers struct { XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response429Headers struct { +// GetActionExecutionFileAcquireV1Response429Headers the declared response headers of an HTTP 429 response for GetActionExecutionFileAcquireV1 +type GetActionExecutionFileAcquireV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for GetAcceptedRiskV1 -type GetAcceptedRiskV1Response500Headers 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 GetAcceptedRiskV1Response struct { +type GetActionExecutionFileAcquireV1Response 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 @@ -84600,63 +90563,58 @@ type GetAcceptedRiskV1Response struct { // 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 *GetActionExecutionFileAcquireV1Response200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetAcceptedRiskV1Response400Headers + Headers400 *GetActionExecutionFileAcquireV1Response400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetAcceptedRiskV1Response401Headers + Headers401 *GetActionExecutionFileAcquireV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetAcceptedRiskV1Response403Headers + Headers403 *GetActionExecutionFileAcquireV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetAcceptedRiskV1Response404Headers + Headers404 *GetActionExecutionFileAcquireV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetAcceptedRiskV1Response429Headers + Headers429 *GetActionExecutionFileAcquireV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetAcceptedRiskV1Response500Headers -} - -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { - return r.JSON200 + Headers500 *GetActionExecutionFileAcquireV1Response500Headers } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON400() *BadRequest { +func (r GetActionExecutionFileAcquireV1Response) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r GetActionExecutionFileAcquireV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r GetActionExecutionFileAcquireV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON404() *NotFound { +func (r GetActionExecutionFileAcquireV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r GetActionExecutionFileAcquireV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r GetActionExecutionFileAcquireV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetAcceptedRiskV1Response) GetBody() []byte { +func (r GetActionExecutionFileAcquireV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetAcceptedRiskV1Response) Status() string { +func (r GetActionExecutionFileAcquireV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84664,7 +90622,7 @@ func (r GetAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetAcceptedRiskV1Response) StatusCode() int { +func (r GetActionExecutionFileAcquireV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84672,59 +90630,52 @@ 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 GetActionExecutionFileAcquireV1Response) 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 { - XRateLimitLimit *int32 -} - -// UpdateAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response400Headers struct { +// GetActionsV1Response200Headers the declared response headers of an HTTP 200 response for GetActionsV1 +type GetActionsV1Response200Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response401Headers struct { +// GetActionsV1Response401Headers the declared response headers of an HTTP 401 response for GetActionsV1 +type GetActionsV1Response401Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response403Headers struct { +// GetActionsV1Response403Headers the declared response headers of an HTTP 403 response for GetActionsV1 +type GetActionsV1Response403Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response404Headers struct { +// GetActionsV1Response404Headers the declared response headers of an HTTP 404 response for GetActionsV1 +type GetActionsV1Response404Headers struct { XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response429Headers struct { +// GetActionsV1Response429Headers the declared response headers of an HTTP 429 response for GetActionsV1 +type GetActionsV1Response429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// UpdateAcceptedRiskV1Response500Headers the declared response headers of an HTTP 500 response for UpdateAcceptedRiskV1 -type UpdateAcceptedRiskV1Response500Headers 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 UpdateAcceptedRiskV1Response struct { +type GetActionsV1Response 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 + JSON200 *Actions // JSON401 the response for an HTTP 401 `application/json` response JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response @@ -84736,63 +90687,56 @@ type UpdateAcceptedRiskV1Response struct { // 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 + Headers200 *GetActionsV1Response200Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *UpdateAcceptedRiskV1Response401Headers + Headers401 *GetActionsV1Response401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *UpdateAcceptedRiskV1Response403Headers + Headers403 *GetActionsV1Response403Headers // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *UpdateAcceptedRiskV1Response404Headers + Headers404 *GetActionsV1Response404Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *UpdateAcceptedRiskV1Response429Headers + Headers429 *GetActionsV1Response429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *UpdateAcceptedRiskV1Response500Headers + Headers500 *GetActionsV1Response500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { +func (r GetActionsV1Response) GetJSON200() *Actions { return r.JSON200 } -// GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON400() *BadRequest { - return r.JSON400 -} - // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON401() *Unauthorized { +func (r GetActionsV1Response) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON403() *Forbidden { +func (r GetActionsV1Response) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON404() *NotFound { +func (r GetActionsV1Response) GetJSON404() *NotFound { return r.JSON404 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON429() *TooManyRequests { +func (r GetActionsV1Response) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r UpdateAcceptedRiskV1Response) GetJSON500() *InternalServerError { +func (r GetActionsV1Response) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r UpdateAcceptedRiskV1Response) GetBody() []byte { +func (r GetActionsV1Response) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r UpdateAcceptedRiskV1Response) Status() string { +func (r GetActionsV1Response) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84800,7 +90744,7 @@ func (r UpdateAcceptedRiskV1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r UpdateAcceptedRiskV1Response) StatusCode() int { +func (r GetActionsV1Response) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84808,146 +90752,113 @@ 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 GetActionsV1Response) ContentType() string { if r.HTTPResponse != nil { return r.HTTPResponse.Header.Get("Content-Type") } return "" } -// ListCveCatalogV1beta1Response200Headers the declared response headers of an HTTP 200 response for ListCveCatalogV1beta1 -type ListCveCatalogV1beta1Response200Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int64 - XRequestId string -} - -// 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 +// GetSecureVulnerabilityV1BundlesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse200Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse400Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse401Headers struct { + XRateLimitLimit *int32 } -// 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 +// GetSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse403Headers struct { + XRateLimitLimit *int32 } -// ListCveCatalogV1beta1Response500Headers the declared response headers of an HTTP 500 response for ListCveCatalogV1beta1 -type ListCveCatalogV1beta1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int64 - XRequestId string +// GetSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Bundles +type GetSecureVulnerabilityV1BundlesResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// ListCveCatalogV1beta1Response503Headers the declared response headers of an HTTP 503 response for ListCveCatalogV1beta1 -type ListCveCatalogV1beta1Response503Headers struct { - RetryAfter *int32 +// 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 ListCveCatalogV1beta1Response struct { +type GetSecureVulnerabilityV1BundlesResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *ListCveCatalogResponseV1Beta1 + JSON200 *ListBundlesResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 + JSON403 *Forbidden // JSON429 the response for an HTTP 429 `application/json` response - JSON429 *TooManyRequestsV2 + JSON429 *TooManyRequests // JSON500 the response for an HTTP 500 `application/json` response - JSON500 *CveCatalogInternalServerErrorV2 - // JSON503 the response for an HTTP 503 `application/json` response - JSON503 *ErrorV2 + JSON500 *InternalServerError // Headers200 the parsed response headers for an HTTP 200 response - Headers200 *ListCveCatalogV1beta1Response200Headers + Headers200 *GetSecureVulnerabilityV1BundlesResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *ListCveCatalogV1beta1Response400Headers + Headers400 *GetSecureVulnerabilityV1BundlesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *ListCveCatalogV1beta1Response401Headers + Headers401 *GetSecureVulnerabilityV1BundlesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *ListCveCatalogV1beta1Response403Headers + Headers403 *GetSecureVulnerabilityV1BundlesResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *ListCveCatalogV1beta1Response429Headers + Headers429 *GetSecureVulnerabilityV1BundlesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *ListCveCatalogV1beta1Response500Headers - // Headers503 the parsed response headers for an HTTP 503 response - Headers503 *ListCveCatalogV1beta1Response503Headers + Headers500 *GetSecureVulnerabilityV1BundlesResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON200() *ListCveCatalogResponseV1Beta1 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON200() *ListBundlesResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON400() *BadRequestV2 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON401() *UnauthorizedV2 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON403() *ForbiddenV2 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { return r.JSON403 } // GetJSON429 returns the response for an HTTP 429 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON429() *TooManyRequestsV2 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r ListCveCatalogV1beta1Response) GetJSON500() *CveCatalogInternalServerErrorV2 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { 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 { +func (r GetSecureVulnerabilityV1BundlesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r ListCveCatalogV1beta1Response) Status() string { +func (r GetSecureVulnerabilityV1BundlesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -84955,7 +90866,7 @@ func (r ListCveCatalogV1beta1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r ListCveCatalogV1beta1Response) StatusCode() int { +func (r GetSecureVulnerabilityV1BundlesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -84963,163 +90874,127 @@ func (r ListCveCatalogV1beta1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r ListCveCatalogV1beta1Response) ContentType() string { +func (r GetSecureVulnerabilityV1BundlesResponse) 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 +// PostSecureVulnerabilityV1BundlesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse201Headers struct { + XRateLimitLimit *int32 } -// 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 +// PostSecureVulnerabilityV1BundlesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse400Headers struct { + XRateLimitLimit *int32 } -// 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 +// PostSecureVulnerabilityV1BundlesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse401Headers struct { + XRateLimitLimit *int32 } -// 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 +// PostSecureVulnerabilityV1BundlesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse403Headers struct { + XRateLimitLimit *int32 } -// 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 +// PostSecureVulnerabilityV1BundlesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse409Headers struct { + XRateLimitLimit *int32 } -// GetCveCatalogEntryV1beta1Response500Headers the declared response headers of an HTTP 500 response for GetCveCatalogEntryV1beta1 -type GetCveCatalogEntryV1beta1Response500Headers struct { - XRateLimitLimit *int32 - XRateLimitRemaining *int32 - XRateLimitReset *int64 - XRequestId string +// PostSecureVulnerabilityV1BundlesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Bundles +type PostSecureVulnerabilityV1BundlesResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetCveCatalogEntryV1beta1Response503Headers the declared response headers of an HTTP 503 response for GetCveCatalogEntryV1beta1 -type GetCveCatalogEntryV1beta1Response503Headers struct { - RetryAfter *int32 +// 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 GetCveCatalogEntryV1beta1Response struct { +type PostSecureVulnerabilityV1BundlesResponse struct { Body []byte HTTPResponse *http.Response - // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *CveDetailV1Beta1 + // JSON201 the response for an HTTP 201 `application/json` response + JSON201 *GetBundleResponse // JSON400 the response for an HTTP 400 `application/json` response - JSON400 *BadRequestV2 + JSON400 *BadRequest // JSON401 the response for an HTTP 401 `application/json` response - JSON401 *UnauthorizedV2 + JSON401 *Unauthorized // JSON403 the response for an HTTP 403 `application/json` response - JSON403 *ForbiddenV2 - // JSON404 the response for an HTTP 404 `application/json` response - JSON404 *NotFoundV2 + 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 *TooManyRequestsV2 + JSON429 *TooManyRequests // 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 + JSON500 *InternalServerError + // Headers201 the parsed response headers for an HTTP 201 response + Headers201 *PostSecureVulnerabilityV1BundlesResponse201Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetCveCatalogEntryV1beta1Response400Headers + Headers400 *PostSecureVulnerabilityV1BundlesResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetCveCatalogEntryV1beta1Response401Headers + Headers401 *PostSecureVulnerabilityV1BundlesResponse401Headers // Headers403 the parsed response headers for an HTTP 403 response - Headers403 *GetCveCatalogEntryV1beta1Response403Headers - // Headers404 the parsed response headers for an HTTP 404 response - Headers404 *GetCveCatalogEntryV1beta1Response404Headers + 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 *GetCveCatalogEntryV1beta1Response429Headers + Headers429 *PostSecureVulnerabilityV1BundlesResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetCveCatalogEntryV1beta1Response500Headers - // Headers503 the parsed response headers for an HTTP 503 response - Headers503 *GetCveCatalogEntryV1beta1Response503Headers + Headers500 *PostSecureVulnerabilityV1BundlesResponse500Headers } -// GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetCveCatalogEntryV1beta1Response) GetJSON200() *CveDetailV1Beta1 { - return r.JSON200 +// 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 GetCveCatalogEntryV1beta1Response) GetJSON400() *BadRequestV2 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetCveCatalogEntryV1beta1Response) GetJSON401() *UnauthorizedV2 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetCveCatalogEntryV1beta1Response) GetJSON403() *ForbiddenV2 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON403() *Forbidden { return r.JSON403 } -// GetJSON404 returns the response for an HTTP 404 `application/json` response -func (r GetCveCatalogEntryV1beta1Response) GetJSON404() *NotFoundV2 { - return r.JSON404 +// 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 GetCveCatalogEntryV1beta1Response) GetJSON429() *TooManyRequestsV2 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetCveCatalogEntryV1beta1Response) GetJSON500() *CveCatalogInternalServerErrorV2 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetJSON500() *InternalServerError { 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 { +func (r PostSecureVulnerabilityV1BundlesResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetCveCatalogEntryV1beta1Response) Status() string { +func (r PostSecureVulnerabilityV1BundlesResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -85127,7 +91002,7 @@ func (r GetCveCatalogEntryV1beta1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetCveCatalogEntryV1beta1Response) StatusCode() int { +func (r PostSecureVulnerabilityV1BundlesResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -85135,142 +91010,228 @@ func (r GetCveCatalogEntryV1beta1Response) StatusCode() int { } // ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers -func (r GetCveCatalogEntryV1beta1Response) ContentType() string { +func (r PostSecureVulnerabilityV1BundlesResponse) 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 +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response400Headers the declared response headers of an HTTP 400 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response400Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response401Headers the declared response headers of an HTTP 401 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response401Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response403Headers the declared response headers of an HTTP 403 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response403Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response404Headers the declared response headers of an HTTP 404 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response404Headers struct { +// DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1BundlesBundleId +type DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { + RetryAfter *int32 XRateLimitLimit *int32 } -// GetSBOMV1beta1Response406Headers the declared response headers of an HTTP 406 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response406Headers 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 DeleteSecureVulnerabilityV1BundlesBundleIdResponse 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 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse403Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *DeleteSecureVulnerabilityV1BundlesBundleIdResponse500Headers +} + +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { + return r.JSON400 +} + +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 +} + +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { + return r.JSON403 +} + +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 +} + +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 +} + +// GetBody returns the raw response body bytes +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { + return r.Body +} + +// Status returns HTTPResponse.Status +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSecureVulnerabilityV1BundlesBundleIdResponse) 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 DeleteSecureVulnerabilityV1BundlesBundleIdResponse) 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 { XRateLimitLimit *int32 } -// GetSBOMV1beta1Response429Headers the declared response headers of an HTTP 429 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response429Headers struct { +// GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers struct { + XRateLimitLimit *int32 +} + +// GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1BundlesBundleId +type GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { RetryAfter *int32 XRateLimitLimit *int32 } -// GetSBOMV1beta1Response500Headers the declared response headers of an HTTP 500 response for GetSBOMV1beta1 -type GetSBOMV1beta1Response500Headers 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 GetSBOMV1beta1Response struct { +type GetSecureVulnerabilityV1BundlesBundleIdResponse struct { Body []byte HTTPResponse *http.Response // JSON200 the response for an HTTP 200 `application/json` response - JSON200 *SbomResultResponse + 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 - // 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 + Headers200 *GetSecureVulnerabilityV1BundlesBundleIdResponse200Headers // Headers400 the parsed response headers for an HTTP 400 response - Headers400 *GetSBOMV1beta1Response400Headers + Headers400 *GetSecureVulnerabilityV1BundlesBundleIdResponse400Headers // Headers401 the parsed response headers for an HTTP 401 response - Headers401 *GetSBOMV1beta1Response401Headers + Headers401 *GetSecureVulnerabilityV1BundlesBundleIdResponse401Headers // 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 *GetSecureVulnerabilityV1BundlesBundleIdResponse403Headers // Headers429 the parsed response headers for an HTTP 429 response - Headers429 *GetSBOMV1beta1Response429Headers + Headers429 *GetSecureVulnerabilityV1BundlesBundleIdResponse429Headers // Headers500 the parsed response headers for an HTTP 500 response - Headers500 *GetSBOMV1beta1Response500Headers + Headers500 *GetSecureVulnerabilityV1BundlesBundleIdResponse500Headers } // GetJSON200 returns the response for an HTTP 200 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON200() *SbomResultResponse { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { return r.JSON200 } // GetJSON400 returns the response for an HTTP 400 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON400() *BadRequest { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { return r.JSON400 } // GetJSON401 returns the response for an HTTP 401 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON401() *Unauthorized { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { return r.JSON401 } // GetJSON403 returns the response for an HTTP 403 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON403() *Forbidden { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) 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 { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { return r.JSON429 } // GetJSON500 returns the response for an HTTP 500 `application/json` response -func (r GetSBOMV1beta1Response) GetJSON500() *InternalServerError { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { return r.JSON500 } // GetBody returns the raw response body bytes -func (r GetSBOMV1beta1Response) GetBody() []byte { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { return r.Body } // Status returns HTTPResponse.Status -func (r GetSBOMV1beta1Response) Status() string { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { if r.HTTPResponse != nil { return r.HTTPResponse.Status } @@ -85278,7 +91239,7 @@ func (r GetSBOMV1beta1Response) Status() string { } // StatusCode returns HTTPResponse.StatusCode -func (r GetSBOMV1beta1Response) StatusCode() int { +func (r GetSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { if r.HTTPResponse != nil { return r.HTTPResponse.StatusCode } @@ -85286,5182 +91247,11655 @@ 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 GetSecureVulnerabilityV1BundlesBundleIdResponse) 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) +// PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers 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) +// PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers 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) +// PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers 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) +// PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers 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) +// PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1BundlesBundleId +type PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers struct { + RetryAfter *int32 + 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) +// 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 } -// 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) +type PutSecureVulnerabilityV1BundlesBundleIdResponse 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 + // 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 *PutSecureVulnerabilityV1BundlesBundleIdResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PutSecureVulnerabilityV1BundlesBundleIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *PutSecureVulnerabilityV1BundlesBundleIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *PutSecureVulnerabilityV1BundlesBundleIdResponse403Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *PutSecureVulnerabilityV1BundlesBundleIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *PutSecureVulnerabilityV1BundlesBundleIdResponse500Headers } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON200() *GetBundleResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetInhibitionRuleByIdResponse(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateInhibitionRuleResponse(rsp) + return 0 } -// 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PutSecureVulnerabilityV1BundlesBundleIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseUpdateInhibitionRuleResponse(rsp) + return "" } -// 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 - } - return ParseGetPricingV1Response(rsp) +// GetSecureVulnerabilityV1PipelineResultsResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse200Headers struct { + XRateLimitLimit *int32 } -// 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 - } - return ParseCreatePricingV1Response(rsp) +// GetSecureVulnerabilityV1PipelineResultsResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse400Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetSecureVulnerabilityV1PipelineResultsResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse401Headers 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) +// GetSecureVulnerabilityV1PipelineResultsResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse403Headers 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) +// GetSecureVulnerabilityV1PipelineResultsResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse409Headers 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) +// GetSecureVulnerabilityV1PipelineResultsResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PipelineResults +type GetSecureVulnerabilityV1PipelineResultsResponse429Headers struct { + RetryAfter *int32 + 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) +// 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 } -// 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) +type GetSecureVulnerabilityV1PipelineResultsResponse 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 + // 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 + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetSecureVulnerabilityV1PipelineResultsResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetSecureVulnerabilityV1PipelineResultsResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSecureVulnerabilityV1PipelineResultsResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *GetSecureVulnerabilityV1PipelineResultsResponse409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetSecureVulnerabilityV1PipelineResultsResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetSecureVulnerabilityV1PipelineResultsResponse500Headers } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON200() *PipelineResultsResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON409() *Conflict { + return r.JSON409 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r GetSecureVulnerabilityV1PipelineResultsResponse) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r GetSecureVulnerabilityV1PipelineResultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostDisabledMetricsV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecureVulnerabilityV1PipelineResultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostDisabledMetricsV1Response(rsp) + return 0 } -// 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSecureVulnerabilityV1PipelineResultsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetCustomPrometheusJobsV1Response(rsp) + return "" } -// 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 - } - return ParseDeleteCustomPrometheusJobByIdV1Response(rsp) +// GetSecureVulnerabilityV1PoliciesResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse200Headers struct { + XRateLimitLimit *int32 } -// 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 - } - return ParseGetCustomPrometheusJobByNameV1Response(rsp) +// GetSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse400Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse401Headers 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) +// GetSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse403Headers 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) +// GetSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse409Headers 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) +// GetSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1Policies +type GetSecureVulnerabilityV1PoliciesResponse429Headers struct { + RetryAfter *int32 + 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) +// 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 } -// 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) +type GetSecureVulnerabilityV1PoliciesResponse 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 + // 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 *GetSecureVulnerabilityV1PoliciesResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetSecureVulnerabilityV1PoliciesResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetSecureVulnerabilityV1PoliciesResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSecureVulnerabilityV1PoliciesResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *GetSecureVulnerabilityV1PoliciesResponse409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetSecureVulnerabilityV1PoliciesResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetSecureVulnerabilityV1PoliciesResponse500Headers } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON200() *ListPoliciesResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { + return r.JSON409 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r GetSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r GetSecureVulnerabilityV1PoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateJiraIssueTypeV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecureVulnerabilityV1PoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteJiraIssueTypeV1Response(rsp) + return 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSecureVulnerabilityV1PoliciesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetJiraIssueTypeV1Response(rsp) + return "" } -// 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 - } - return ParseUpdateJiraIssueTypeV1Response(rsp) +// PostSecureVulnerabilityV1PoliciesResponse201Headers the declared response headers of an HTTP 201 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse201Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostSecureVulnerabilityV1PoliciesResponse400Headers the declared response headers of an HTTP 400 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse400Headers 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) +// PostSecureVulnerabilityV1PoliciesResponse401Headers the declared response headers of an HTTP 401 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse401Headers 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) +// PostSecureVulnerabilityV1PoliciesResponse403Headers the declared response headers of an HTTP 403 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse403Headers 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) +// PostSecureVulnerabilityV1PoliciesResponse409Headers the declared response headers of an HTTP 409 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse409Headers 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) +// PostSecureVulnerabilityV1PoliciesResponse429Headers the declared response headers of an HTTP 429 response for PostSecureVulnerabilityV1Policies +type PostSecureVulnerabilityV1PoliciesResponse429Headers struct { + RetryAfter *int32 + 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) +// 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 } -// 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) +type PostSecureVulnerabilityV1PoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + // 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 + 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 + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PostSecureVulnerabilityV1PoliciesResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *PostSecureVulnerabilityV1PoliciesResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *PostSecureVulnerabilityV1PoliciesResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *PostSecureVulnerabilityV1PoliciesResponse409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *PostSecureVulnerabilityV1PoliciesResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *PostSecureVulnerabilityV1PoliciesResponse500Headers } -// 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) +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON201() *GetPolicyResponse { + return r.JSON201 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON409() *Conflict { + return r.JSON409 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PostSecureVulnerabilityV1PoliciesResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r PostSecureVulnerabilityV1PoliciesResponse) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r PostSecureVulnerabilityV1PoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateUserDeactivationConfigurationByIdV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r PostSecureVulnerabilityV1PoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetDefaultNotificationTemplateV1Response(rsp) + return 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PostSecureVulnerabilityV1PoliciesResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetDefaultRoleByDisplayNameV1Response(rsp) + return "" } -// 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 - } - return ParseGetGlobalSsoSettingsV1Response(rsp) +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers 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) +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers 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) +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers 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) +// DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for DeleteSecureVulnerabilityV1PoliciesPolicyId +type DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { + RetryAfter *int32 + 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) +// 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 } -// 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) +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 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetIpFiltersV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateIpFilterV1Response(rsp) + return 0 } -// 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 +// 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 ParseCreateIpFilterV1Response(rsp) + return "" } -// 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) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { + XRateLimitLimit *int32 } -// 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 - } - return ParseSaveIpFiltersSettingsV1Response(rsp) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { + XRateLimitLimit *int32 } -// 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 - } - return ParseSaveIpFiltersSettingsV1Response(rsp) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { + XRateLimitLimit *int32 } -// 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 - } - return ParseDeleteIpFilterByIdV1Response(rsp) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1PoliciesPolicyId +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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) +// 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 } -// 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) +type GetSecureVulnerabilityV1PoliciesPolicyIdResponse 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 + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + Headers403 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers + // Headers409 the parsed response headers for an HTTP 409 response + Headers409 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers + // Headers429 the parsed response headers for an HTTP 429 response + Headers429 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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 - } - return ParseGetNotificationChannelByIdResponse(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// UpdateNotificationChannelByIdWithBodyWithResponse Update Notification Channel -// -// Update a notification channel by its ID.\ -// \ -// **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 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 ParseUpdateNotificationChannelByIdResponse(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { + return r.JSON409 } -// UpdateNotificationChannelByIdWithResponse Update Notification Channel -// -// Update a notification channel by its ID.\ -// \ -// **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 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 ParseUpdateNotificationChannelByIdResponse(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// GetNotificationTemplatesV1WithResponse List Notification Templates -// -// 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 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 ParseGetNotificationTemplatesV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// CreateNotificationTemplateV1WithBodyWithResponse Create Notification Template -// -// Create a notification template.\ -// \ -// **Required permissions:** _notification-templates.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-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 ParseCreateNotificationTemplateV1Response(rsp) +// GetBody returns the raw response body bytes +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { + return r.Body } -// CreateNotificationTemplateV1WithResponse Create Notification Template -// -// Create a notification template.\ -// \ -// **Required permissions:** _notification-templates.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-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 +// Status returns HTTPResponse.Status +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateNotificationTemplateV1Response(rsp) + return http.StatusText(0) } -// DeleteNotificationTemplateByIdV1WithResponse Delete Notification Template -// -// 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 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteNotificationTemplateByIdV1Response(rsp) + return 0 } -// GetNotificationTemplateByIdV1WithResponse Get Notification Template -// -// 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 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetNotificationTemplateByIdV1Response(rsp) + return "" } -// UpdateNotificationTemplateByIdV1WithBodyWithResponse Update Notification Template -// -// Update a notification template by its ID.\ -// \ -// **Required permissions:** _notification-templates.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/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 ParseUpdateNotificationTemplateByIdV1Response(rsp) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers the declared response headers of an HTTP 200 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse200Headers struct { + XRateLimitLimit *int32 } -// UpdateNotificationTemplateByIdV1WithResponse Update Notification Template -// -// Update a notification template by its ID.\ -// \ -// **Required permissions:** _notification-templates.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/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 ParseUpdateNotificationTemplateByIdV1Response(rsp) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers the declared response headers of an HTTP 400 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers struct { + XRateLimitLimit *int32 } -// GetPermissionsV1WithResponse Get Customer Permissions -// -// Retrieve a list of permissions that are used in custom roles.\ -// \ -// **Required permissions:** _permissions.read_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetPermissionsV1Response(rsp) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers the declared response headers of an HTTP 401 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers struct { + XRateLimitLimit *int32 } -// GetPlatformAuditEventsV1WithResponse Get Platform Audit Events -// -// Retrieve a paginated list of Platform Audit Events.\ -// \ -// **Required permissions:** _audit-trail-events.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) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers the declared response headers of an HTTP 403 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse403Headers struct { + XRateLimitLimit *int32 } -// 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...) - if err != nil { - return nil, err - } - return ParseGetRolesV1Response(rsp) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers the declared response headers of an HTTP 409 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse409Headers struct { + XRateLimitLimit *int32 } -// CreateRoleV1WithBodyWithResponse Create Role -// -// Create a new role.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseCreateRoleV1Response(rsp) +// PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers the declared response headers of an HTTP 429 response for PutSecureVulnerabilityV1PoliciesPolicyId +type PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// CreateRoleV1WithResponse Create Role -// -// Create a new role.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseCreateRoleV1Response(rsp) +// 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 } -// DeleteRoleByIdV1WithResponse Delete Role -// -// Delete a role by its ID.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseDeleteRoleByIdV1Response(rsp) +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 + // 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 + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + 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 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *PutSecureVulnerabilityV1PoliciesPolicyIdResponse500Headers } -// GetRoleByIdV1WithResponse Get Role -// -// Return a role by its ID.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseGetRoleByIdV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON200() *GetPolicyResponse { + return r.JSON200 } -// UpdateRoleByIdV1WithBodyWithResponse Update Role -// -// Update a role by its ID.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseUpdateRoleByIdV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// UpdateRoleByIdV1WithResponse Update Role -// -// Update a role by its ID.\ -// \ -// **Required permissions:** _roles.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...) - if err != nil { - return nil, err - } - return ParseUpdateRoleByIdV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// GetGlobalServiceAccountsV1WithResponse List Global Service Accounts -// -// 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 /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 ParseGetGlobalServiceAccountsV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// CreateGlobalServiceAccountV1WithBodyWithResponse Create a Global Service Account -// -// Create a new global service account.\ -// \ -// **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). -// -// 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 ParseCreateGlobalServiceAccountV1Response(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON409() *Conflict { + return r.JSON409 } -// CreateGlobalServiceAccountV1WithResponse Create a Global Service Account -// -// Create a new global service account.\ -// \ -// **Required permissions:** _global-service-accounts.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...) - if err != nil { - return nil, err - } - return ParseCreateGlobalServiceAccountV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse Delete Global Service Accounts Notification Settings -// -// 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 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 ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// GetGlobalServiceAccountsNotificationSettingsV1WithResponse Get Global Service Accounts Notification Settings -// -// 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 /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 ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp) +// GetBody returns the raw response body bytes +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) GetBody() []byte { + return r.Body } -// CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Global Service Accounts Notification Settings -// -// Create a new Notification Settings for Global Service Accounts.\ -// \ -// **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 /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 +// Status returns HTTPResponse.Status +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return http.StatusText(0) } -// CreateGlobalServiceAccountsNotificationSettingsV1WithResponse Create Global Service Accounts Notification Settings -// -// Create a new Notification Settings for Global Service Accounts.\ -// \ -// **Required permissions:** _global-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). -// -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return 0 } -// UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Global Service Accounts Notification Settings -// -// Update Notification Settings for Global Service Accounts.\ -// \ -// **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 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r PutSecureVulnerabilityV1PoliciesPolicyIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) + return "" } -// UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse Update Global Service Accounts Notification Settings -// -// Update Notification Settings for Global Service Accounts.\ -// \ -// **Required permissions:** _global-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). -// -// 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 ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse200Headers struct { + XRateLimitLimit *int32 } -// DeleteGlobalServiceAccountByIdV1WithResponse Delete a Global Service Account -// -// Delete a global service account by ID.\ -// \ -// **Required permissions:** _global-service-accounts.edit_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseDeleteGlobalServiceAccountByIdV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse400Headers struct { + XRateLimitLimit *int32 } -// GetGlobalServiceAccountByIdV1WithResponse Get a Global Service Account -// -// Return a global service account by ID.\ -// \ -// **Required permissions:** _global-service-accounts.read_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetGlobalServiceAccountByIdV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse401Headers struct { + XRateLimitLimit *int32 } -// GetSsoSettingsV1WithResponse List SSO Settings -// -// Retrieve the list of SSO settings.\ -// \ -// **Required permissions:** _sso.config_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetSsoSettingsV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse403Headers struct { + XRateLimitLimit *int32 } -// CreateSsoSettingsV1WithBodyWithResponse Create SSO Settings -// -// Create a new 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 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 ParseCreateSsoSettingsV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse409Headers struct { + XRateLimitLimit *int32 } -// CreateSsoSettingsV1WithResponse Create SSO Settings -// -// Create a new 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 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 ParseCreateSsoSettingsV1Response(rsp) +// ScannerAPIServiceListRegistryResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRegistryResults +type ScannerAPIServiceListRegistryResultsResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// DeleteSsoSettingsByIdV1WithResponse Delete SSO Settings -// -// Delete SSO settings by its ID.\ -// \ -// **Required permissions:** _sso.config_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseDeleteSsoSettingsByIdV1Response(rsp) +// 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 } -// GetSsoSettingsByIdV1WithResponse Get SSO Settings -// -// Return SSO settings by ID.\ -// \ -// **Required permissions:** _sso.config_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetSsoSettingsByIdV1Response(rsp) +type ScannerAPIServiceListRegistryResultsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + 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 + // 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 + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *ScannerAPIServiceListRegistryResultsResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *ScannerAPIServiceListRegistryResultsResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + 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 *ScannerAPIServiceListRegistryResultsResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ScannerAPIServiceListRegistryResultsResponse500Headers } -// UpdateSsoSettingsByIdV1WithBodyWithResponse Update SSO Settings -// -// Update SSO settings by its ID.\ -// \ -// **Required permissions:** _sso.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 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 ParseUpdateSsoSettingsByIdV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON200() *RegistryResultsResponse { + return r.JSON200 } -// UpdateSsoSettingsByIdV1WithResponse Update SSO Settings -// -// Update SSO settings by its 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). -// -// 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 ParseUpdateSsoSettingsByIdV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// GetSystemSsoSettingsV1WithResponse List System SSO Settings -// -// Retrieve a paginated list of System SSO settings.\ -// \ -// **Required permissions:** _sso-system.config_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetSystemSsoSettingsV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// CreateSystemSsoSettingsV1WithBodyWithResponse Create System SSO Settings -// -// Create a new System SSO settings.\ -// \ -// **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 /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 ParseCreateSystemSsoSettingsV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// CreateSystemSsoSettingsV1WithResponse Create System SSO Settings -// -// 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). -// -// 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 ParseCreateSystemSsoSettingsV1Response(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON409() *Conflict { + return r.JSON409 } -// DeleteSystemSsoSettingsByIdV1WithResponse Delete System SSO Settings -// -// 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 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 ParseDeleteSystemSsoSettingsByIdV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// GetSystemSsoSettingsByIdV1WithResponse Get System SSO Settings -// -// 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 /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 ParseGetSystemSsoSettingsByIdV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r ScannerAPIServiceListRegistryResultsResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// UpdateSystemSsoSettingsByIdV1WithBodyWithResponse Update System SSO Settings -// -// 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 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 ParseUpdateSystemSsoSettingsByIdV1Response(rsp) +// GetBody returns the raw response body bytes +func (r ScannerAPIServiceListRegistryResultsResponse) GetBody() []byte { + return r.Body } -// UpdateSystemSsoSettingsByIdV1WithResponse Update System SSO Settings -// -// 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 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 +// Status returns HTTPResponse.Status +func (r ScannerAPIServiceListRegistryResultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUpdateSystemSsoSettingsByIdV1Response(rsp) + return http.StatusText(0) } -// GetTeamsV1WithResponse List Teams -// -// Retrieve a paginated list of teams.\ -// \ -// **Required permissions:** _customer-teams.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...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r ScannerAPIServiceListRegistryResultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetTeamsV1Response(rsp) + return 0 } -// CreateTeamV1WithBodyWithResponse Create Team -// -// 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). -// -// 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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ScannerAPIServiceListRegistryResultsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseCreateTeamV1Response(rsp) + return "" } -// CreateTeamV1WithResponse Create Team -// -// Create a new team.\ -// \ -// **Required permissions:** _teams.create_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseCreateTeamV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse200Headers the declared response headers of an HTTP 200 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse200Headers struct { + XRateLimitLimit *int32 } -// DeleteTeamByIdV1WithResponse Delete Team -// -// Delete a team by its ID.\ -// \ -// **Required permissions:** _teams.edit_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseDeleteTeamByIdV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse400Headers the declared response headers of an HTTP 400 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse400Headers struct { + XRateLimitLimit *int32 } -// GetTeamByIdV1WithResponse Get Team -// -// Return a team by ID.\ -// \ -// **Required permissions:** _customer-teams.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...) - if err != nil { - return nil, err - } - return ParseGetTeamByIdV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse401Headers the declared response headers of an HTTP 401 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse401Headers struct { + XRateLimitLimit *int32 } -// UpdateTeamByIdV1WithBodyWithResponse Update Team -// -// Update a team by its ID.\ -// \ -// **Required permissions:** _teams.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} (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 ParseUpdateTeamByIdV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse403Headers the declared response headers of an HTTP 403 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse403Headers struct { + XRateLimitLimit *int32 } -// UpdateTeamByIdV1WithResponse Update Team -// -// Update 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). -// -// 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 ParseUpdateTeamByIdV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse409Headers the declared response headers of an HTTP 409 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse409Headers struct { + XRateLimitLimit *int32 } -// GetTeamServiceAccountsV1WithResponse List Team Service Accounts -// -// 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 /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 ParseGetTeamServiceAccountsV1Response(rsp) +// GetSecureVulnerabilityV1ResultsResultIdResponse429Headers the declared response headers of an HTTP 429 response for GetSecureVulnerabilityV1ResultsResultId +type GetSecureVulnerabilityV1ResultsResultIdResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// CreateTeamServiceAccountV1WithBodyWithResponse Create a Team Service Account -// -// Create a new team service account.\ -// \ -// **Required permissions:** _team-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). -// -// 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 ParseCreateTeamServiceAccountV1Response(rsp) +// 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 } -// CreateTeamServiceAccountV1WithResponse Create a Team Service Account -// -// Create a new team service account.\ -// \ -// **Required permissions:** _team-service-accounts.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/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 ParseCreateTeamServiceAccountV1Response(rsp) +type GetSecureVulnerabilityV1ResultsResultIdResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + 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 + // 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 *GetSecureVulnerabilityV1ResultsResultIdResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *GetSecureVulnerabilityV1ResultsResultIdResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *GetSecureVulnerabilityV1ResultsResultIdResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + 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 *GetSecureVulnerabilityV1ResultsResultIdResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *GetSecureVulnerabilityV1ResultsResultIdResponse500Headers } -// DeleteServiceAccountsNotificationSettingsV1WithResponse Delete Service Accounts Notification Settings -// -// 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 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 ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON200() *ScanResultResponse { + return r.JSON200 } -// GetServiceAccountsNotificationSettingsV1WithResponse Get Service Accounts Notification Settings -// -// Return Service Accounts Notification Settings for a given team.\ -// \ -// **Required permissions:** _service-accounts-notification-settings.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...) - if err != nil { - return nil, err - } - return ParseGetServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Service Accounts Notification Settings -// -// Create a new Notification Settings for Service Accounts which belong to a specific team.\ -// \ -// **Required permissions:** _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 /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 ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// CreateServiceAccountsNotificationSettingsV1WithResponse Create Service Accounts Notification Settings -// -// 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). -// -// 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 ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Service Accounts Notification Settings -// -// Update Service Accounts Notification Settings for a given team.\ -// \ -// **Required permissions:** _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 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 ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON409() *Conflict { + return r.JSON409 } -// UpdateServiceAccountsNotificationSettingsV1WithResponse Update Service Accounts Notification Settings -// -// Update Service Accounts Notification Settings for a given 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). -// -// 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 ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// DeleteTeamServiceAccountByIdV1WithResponse Delete a Team Service Account -// -// Delete a team service account by ID.\ -// \ -// **Required permissions:** _team-service-accounts.edit_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseDeleteTeamServiceAccountByIdV1Response(rsp) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// GetTeamServiceAccountByIdV1WithResponse Get a Team Service Account -// -// 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 /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 ParseGetTeamServiceAccountByIdV1Response(rsp) +// GetBody returns the raw response body bytes +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) GetBody() []byte { + return r.Body } -// GetTeamUsersV1WithResponse List Memberships -// -// Retrieve a paginated list of memberships in a given team ID.\ -// \ -// **Required permissions:** _memberships.read_ -// -// 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...) - if err != nil { - return nil, err +// Status returns HTTPResponse.Status +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetTeamUsersV1Response(rsp) + return http.StatusText(0) } -// DeleteTeamUserByIdV1WithResponse Delete Membership -// -// Delete a membership defined by its ID.\ -// \ -// **Required permissions:** _memberships.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...) - if err != nil { - return nil, err +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteTeamUserByIdV1Response(rsp) + return 0 } -// GetTeamUserByIdV1WithResponse Get Membership -// -// Return a membership by its ID.\ -// \ -// **Required permissions:** _memberships.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...) - if err != nil { - return nil, err +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r GetSecureVulnerabilityV1ResultsResultIdResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseGetTeamUserByIdV1Response(rsp) + return "" } -// SaveTeamUserV1WithBodyWithResponse 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 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) +// ScannerAPIServiceListRuntimeResultsResponse200Headers the declared response headers of an HTTP 200 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse200Headers struct { + XRateLimitLimit *int32 } -// 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) +// ScannerAPIServiceListRuntimeResultsResponse400Headers the declared response headers of an HTTP 400 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse400Headers struct { + XRateLimitLimit *int32 } -// 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 /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 ParseGetUsersV1Response(rsp) +// ScannerAPIServiceListRuntimeResultsResponse401Headers the declared response headers of an HTTP 401 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse401Headers struct { + XRateLimitLimit *int32 } -// CreateUserV1WithBodyWithResponse Create User -// -// 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 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 ParseCreateUserV1Response(rsp) +// ScannerAPIServiceListRuntimeResultsResponse403Headers the declared response headers of an HTTP 403 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse403Headers struct { + XRateLimitLimit *int32 } -// CreateUserV1WithResponse Create User -// -// 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 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 ParseCreateUserV1Response(rsp) +// ScannerAPIServiceListRuntimeResultsResponse409Headers the declared response headers of an HTTP 409 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse409Headers struct { + XRateLimitLimit *int32 } -// DeleteUserByIdV1WithResponse Delete User -// -// Delete a user by its ID.\ -// \ -// **Required permissions:** _users.edit_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseDeleteUserByIdV1Response(rsp) +// ScannerAPIServiceListRuntimeResultsResponse429Headers the declared response headers of an HTTP 429 response for ScannerAPIServiceListRuntimeResults +type ScannerAPIServiceListRuntimeResultsResponse429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// GetUserByIdV1WithResponse Get User -// -// Display a user by ID.\ -// \ -// **Required permissions:** _users.read_ -// -// 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...) - if err != nil { - return nil, err - } - return ParseGetUserByIdV1Response(rsp) +// 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 } -// UpdateUserV1WithBodyWithResponse Update User -// -// 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 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 ParseUpdateUserV1Response(rsp) +type ScannerAPIServiceListRuntimeResultsResponse struct { + Body []byte + HTTPResponse *http.Response + // JSON200 the response for an HTTP 200 `application/json` response + 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 + // 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 *ScannerAPIServiceListRuntimeResultsResponse200Headers + // Headers400 the parsed response headers for an HTTP 400 response + Headers400 *ScannerAPIServiceListRuntimeResultsResponse400Headers + // Headers401 the parsed response headers for an HTTP 401 response + Headers401 *ScannerAPIServiceListRuntimeResultsResponse401Headers + // Headers403 the parsed response headers for an HTTP 403 response + 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 *ScannerAPIServiceListRuntimeResultsResponse429Headers + // Headers500 the parsed response headers for an HTTP 500 response + Headers500 *ScannerAPIServiceListRuntimeResultsResponse500Headers } -// UpdateUserV1WithResponse Update User -// -// 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 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 ParseUpdateUserV1Response(rsp) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON200() *RuntimeResultsResponse { + return r.JSON200 } -// ListZonesV1WithResponse List Zones (Deprecated) -// -// **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 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 ParseListZonesV1Response(rsp) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON400() *BadRequest { + return r.JSON400 } -// CreateZoneV1WithBodyWithResponse Create Zone (Deprecated) -// -// **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). -// -// 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 ParseCreateZoneV1Response(rsp) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON401() *Unauthorized { + return r.JSON401 } -// CreateZoneV1WithResponse Create Zone (Deprecated) -// -// **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 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/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 ParseCreateZoneV1Response(rsp) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON403() *Forbidden { + return r.JSON403 } -// DeleteZoneV1WithResponse Delete Zone (Deprecated) -// -// **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 -// -// Returns a wrapper object for the known response body format(s). -// -// 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 ParseDeleteZoneV1Response(rsp) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON409() *Conflict { + return r.JSON409 } -// GetZoneByIdV1WithResponse Get Zone (Deprecated) -// -// **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 /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 ParseGetZoneByIdV1Response(rsp) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON429() *TooManyRequests { + return r.JSON429 } -// EditZoneV1WithBodyWithResponse 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 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r ScannerAPIServiceListRuntimeResultsResponse) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r ScannerAPIServiceListRuntimeResultsResponse) GetBody() []byte { + return r.Body } -// 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). -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 +// Status returns HTTPResponse.Status +func (r ScannerAPIServiceListRuntimeResultsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseListAutomationExecutionsResponse(rsp) + return http.StatusText(0) } -// 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). -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 +// StatusCode returns HTTPResponse.StatusCode +func (r ScannerAPIServiceListRuntimeResultsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetAutomationExecutionResponse(rsp) + return 0 } -// 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). -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 +// ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers +func (r ScannerAPIServiceListRuntimeResultsResponse) ContentType() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Header.Get("Content-Type") } - return ParseListAutomationsResponse(rsp) + return "" } -// 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). -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 ParseCreateAutomationResponse(rsp) +// GetAcceptedRisksV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response200Headers struct { + XRateLimitLimit *int32 } -// 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). -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 ParseCreateAutomationResponse(rsp) +// GetAcceptedRisksV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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). -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 ParseDeleteAutomationByIdResponse(rsp) +// GetAcceptedRisksV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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). -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 ParseGetAutomationByIdResponse(rsp) +// GetAcceptedRisksV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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). -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 ParseUpdateAutomationResponse(rsp) +// GetAcceptedRisksV1Response409Headers the declared response headers of an HTTP 409 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response409Headers struct { + XRateLimitLimit *int32 } -// 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). -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 ParseUpdateAutomationResponse(rsp) +// GetAcceptedRisksV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRisksV1 +type GetAcceptedRisksV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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. -// -// **Required permissions:** `zones.read` or `teams.edit` -// -// 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...) - if err != nil { - return nil, err - } - return ParseListZonesV2Response(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 } -// 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) +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 } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON200() *ListRiskAcceptedResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON409() *Conflict { + return r.JSON409 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAcceptedRisksV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r GetAcceptedRisksV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r GetAcceptedRisksV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParsePostAdminTsdbDeleteSeriesV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetAcceptedRisksV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetAdminTsdbSnapshotV1Response(rsp) + return 0 } -// 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 +// 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 ParsePostAdminTsdbSnapshotV1Response(rsp) + return "" } -// 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) +// PostAcceptedRiskV1Response201Headers the declared response headers of an HTTP 201 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response201Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostAcceptedRiskV1Response409Headers the declared response headers of an HTTP 409 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response409Headers struct { + XRateLimitLimit *int32 } -// 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) +// PostAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for PostAcceptedRiskV1 +type PostAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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) +// 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 } -// 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) +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 } -// 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) +// GetJSON201 returns the response for an HTTP 201 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON201() *RiskAcceptedResponse { + return r.JSON201 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON409 returns the response for an HTTP 409 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON409() *Conflict { + return r.JSON409 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r PostAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r PostAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r PostAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetQueryRangeV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r PostAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostQueryRangeV1Response(rsp) + return 0 } -// 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 +// 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 ParseGetRulesV1Response(rsp) + return "" } -// 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) +// DeleteAcceptedRiskV1Response204Headers the declared response headers of an HTTP 204 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response204Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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) +// DeleteAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for DeleteAcceptedRiskV1 +type DeleteAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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) +// 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 } -// 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) +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 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r DeleteAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r DeleteAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r DeleteAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseUploadCertificateV1Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseDeleteCertificateV1Response(rsp) + return 0 } -// 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 +// 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 ParseGetCertificateV1Response(rsp) + return "" } -// 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) +// GetAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response200Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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) +// GetAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for GetAcceptedRiskV1 +type GetAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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) +// 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 } -// 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) +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 } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r GetAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r GetAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r GetAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseGetEFOIntegrationByIdV2Response(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r GetAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseUpdateEFOIntegrationByIdV2Response(rsp) + return 0 } -// 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 +// 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 ParseUpdateEFOIntegrationByIdV2Response(rsp) + return "" } -// 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) +// UpdateAcceptedRiskV1Response200Headers the declared response headers of an HTTP 200 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response200Headers struct { + XRateLimitLimit *int32 } -// 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) +// UpdateAcceptedRiskV1Response400Headers the declared response headers of an HTTP 400 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response400Headers struct { + XRateLimitLimit *int32 } -// 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) +// UpdateAcceptedRiskV1Response401Headers the declared response headers of an HTTP 401 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response401Headers struct { + XRateLimitLimit *int32 } -// 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) +// UpdateAcceptedRiskV1Response403Headers the declared response headers of an HTTP 403 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response403Headers struct { + XRateLimitLimit *int32 } -// 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) +// UpdateAcceptedRiskV1Response404Headers the declared response headers of an HTTP 404 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response404Headers struct { + XRateLimitLimit *int32 } -// 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) +// UpdateAcceptedRiskV1Response429Headers the declared response headers of an HTTP 429 response for UpdateAcceptedRiskV1 +type UpdateAcceptedRiskV1Response429Headers struct { + RetryAfter *int32 + XRateLimitLimit *int32 } -// 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) +// 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 } -// 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) +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 } -// 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) +// GetJSON200 returns the response for an HTTP 200 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON200() *RiskAcceptedResponse { + return r.JSON200 } -// 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) +// GetJSON400 returns the response for an HTTP 400 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON400() *BadRequest { + return r.JSON400 } -// 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) +// GetJSON401 returns the response for an HTTP 401 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON401() *Unauthorized { + return r.JSON401 } -// 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) +// GetJSON403 returns the response for an HTTP 403 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON403() *Forbidden { + return r.JSON403 } -// 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) +// GetJSON404 returns the response for an HTTP 404 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON404() *NotFound { + return r.JSON404 } -// 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) +// GetJSON429 returns the response for an HTTP 429 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON429() *TooManyRequests { + return r.JSON429 } -// 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) +// GetJSON500 returns the response for an HTTP 500 `application/json` response +func (r UpdateAcceptedRiskV1Response) GetJSON500() *InternalServerError { + return r.JSON500 } -// 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) +// GetBody returns the raw response body bytes +func (r UpdateAcceptedRiskV1Response) GetBody() []byte { + return r.Body } -// 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 +// Status returns HTTPResponse.Status +func (r UpdateAcceptedRiskV1Response) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status } - return ParseDeleteSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r UpdateAcceptedRiskV1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParseGetSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return 0 } -// 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 +// 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 ParsePutSecureVulnerabilityV1BundlesBundleIdResponse(rsp) + return "" } -// 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) +// ListCveCatalogV1beta1Response200Headers the declared response headers of an HTTP 200 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response200Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string } -// 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) +// 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 } -// 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) +// 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 } -// 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 +// 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 +} + +// 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 +} + +// ListCveCatalogV1beta1Response500Headers the declared response headers of an HTTP 500 response for ListCveCatalogV1beta1 +type ListCveCatalogV1beta1Response500Headers struct { + XRateLimitLimit *int32 + XRateLimitRemaining *int32 + XRateLimitReset *int64 + XRequestId string +} + +// 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 +} + +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 ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) + return http.StatusText(0) } -// 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 +// StatusCode returns HTTPResponse.StatusCode +func (r ListCveCatalogV1beta1Response) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode } - return ParsePostSecureVulnerabilityV1PoliciesResponse(rsp) + return 0 } -// DeleteSecureVulnerabilityV1PoliciesPolicyIdWithResponse Delete a Policy +// 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 // -// 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. +// 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 /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 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 ParseDeleteSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseDeleteZonePolicyAssociationResponse(rsp) } -// GetSecureVulnerabilityV1PoliciesPolicyIdWithResponse Get a Policy +// GetZonePolicyAssociationWithResponse Get Zone Policy Association // -// Retrieves a specific Policy definition. +// 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 /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 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 ParseGetSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) + return ParseGetZonePolicyAssociationResponse(rsp) } -// PutSecureVulnerabilityV1PoliciesPolicyIdWithBodyWithResponse Edit a Policy +// CreateZonePolicyAssociationWithBodyWithResponse Create Zone Policy Association // -// 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. +// 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 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 /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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseUpdateInhibitionRuleResponse(rsp) +} + +// 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 + } + return ParseGetPricingV1Response(rsp) +} + +// 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 + } + return ParseCreatePricingV1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 ParsePutSecureVulnerabilityV1PoliciesPolicyIdResponse(rsp) -} + return ParseGetWorkloadRightsizingDataResponse(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseGetCustomPrometheusJobsV1Response(rsp) +} + +// 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 + } + return ParseDeleteCustomPrometheusJobByIdV1Response(rsp) +} + +// 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 + } + return ParseGetCustomPrometheusJobByNameV1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseDeleteJiraIssueTypeV1Response(rsp) +} + +// 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 + } + return ParseGetJiraIssueTypeV1Response(rsp) +} + +// 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 + } + return ParseUpdateJiraIssueTypeV1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// ListReportsV2Alpha1WithResponse List Reports +// +// Retrieve the list of reports.\ +// \ +// **Visibility scope:** returns reports belonging to the caller's team within the caller's +// customer account, not the whole tenant.\ +// \ +// **Reports of a superseded kind are omitted.** A report created from a template of an earlier +// resource-posture generation has no `kind` this API can express, so it is not listed here and +// `GET /reports/{reportId}` returns `404` for it. Such reports still exist and stay readable through +// the v1 API and the Sysdig UI — nothing is deleted — so a report visible in the UI may be absent +// here.\ +// \ +// **Required permissions:** platform.reporting.reports.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/reports (the `ListReportsV2Alpha1` operationId). +func (c *ClientWithResponses) ListReportsV2Alpha1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReportsV2Alpha1Response, error) { + rsp, err := c.ListReportsV2Alpha1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListReportsV2Alpha1Response(rsp) +} + +// CreateReportV2Alpha1WithBodyWithResponse Create Report +// +// Create a report from a template. Optionally create a schedule in the same request by including +// a `schedule` object.\ +// \ +// **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is +// invalid or cannot be created, the report is not created either and nothing is left behind. +// Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains +// supported.\ +// \ +// The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and +// `Location` points at the report.\ +// \ +// **Required permissions:** platform.reporting.reports.edit, plus +// `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a +// schedule as well, and is refused as a whole if either permission is missing. +// +// 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/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). +func (c *ClientWithResponses) CreateReportV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReportV2Alpha1Response, error) { + rsp, err := c.CreateReportV2Alpha1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReportV2Alpha1Response(rsp) +} + +// CreateReportV2Alpha1WithResponse Create Report +// +// Create a report from a template. Optionally create a schedule in the same request by including +// a `schedule` object.\ +// \ +// **Atomicity:** when a `schedule` is included the call is all-or-nothing — if the schedule is +// invalid or cannot be created, the report is not created either and nothing is left behind. +// Creating a report and its schedule separately (`POST /reports` then `POST /schedules`) remains +// supported.\ +// \ +// The `201` body's `scheduleIds` holds the id of the schedule created alongside the report, and +// `Location` points at the report.\ +// \ +// **Required permissions:** platform.reporting.reports.edit, plus +// `platform.reporting.schedules.edit` when the body includes a `schedule` — that request creates a +// schedule as well, and is refused as a whole if either permission is missing. +// +// 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/reporting/v2alpha1/reports (the `CreateReportV2Alpha1` operationId). +func (c *ClientWithResponses) CreateReportV2Alpha1WithResponse(ctx context.Context, body CreateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReportV2Alpha1Response, error) { + rsp, err := c.CreateReportV2Alpha1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateReportV2Alpha1Response(rsp) +} + +// DeleteReportV2Alpha1WithResponse Delete Report +// +// Delete a report. Cascades to its schedules and run history.\ +// \ +// `If-Match` is **optional** here, unlike on `PUT` and `PATCH`: an unconditional delete is accepted. +// Supply the report's `ETag` to abort the delete if the report has changed since you read it.\ +// \ +// **Required permissions:** platform.reporting.reports.edit +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /platform/reporting/v2alpha1/reports/{reportId} (the `DeleteReportV2Alpha1` operationId). +func (c *ClientWithResponses) DeleteReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, params *DeleteReportV2Alpha1Params, reqEditors ...RequestEditorFn) (*DeleteReportV2Alpha1Response, error) { + rsp, err := c.DeleteReportV2Alpha1(ctx, reportID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReportV2Alpha1Response(rsp) +} + +// GetReportV2Alpha1WithResponse Get Report +// +// Retrieve a report by its identifier.\ +// \ +// **Required permissions:** platform.reporting.reports.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/reports/{reportId} (the `GetReportV2Alpha1` operationId). +func (c *ClientWithResponses) GetReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, reqEditors ...RequestEditorFn) (*GetReportV2Alpha1Response, error) { + rsp, err := c.GetReportV2Alpha1(ctx, reportID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReportV2Alpha1Response(rsp) +} + +// PatchReportV2Alpha1WithBodyWithResponse Patch Report +// +// Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `templateId` and +// `kind` are immutable.\ +// \ +// Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that +// is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.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 PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). +func (c *ClientWithResponses) PatchReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReportV2Alpha1Response, error) { + rsp, err := c.PatchReportV2Alpha1WithBody(ctx, reportID, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReportV2Alpha1Response(rsp) +} + +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse Patch Report +// +// Partially update a report using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `templateId` and +// `kind` are immutable.\ +// \ +// Array-valued fields (`filters`, `panels`) are **replaced wholesale**, not merged element-wise — that +// is what Merge Patch specifies. To clear a report's filters send `"filters": null`.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.edit +// +// Takes a body of the `application/merge-patch+json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PATCH /platform/reporting/v2alpha1/reports/{reportId} (the `PatchReportV2Alpha1` operationId). +func (c *ClientWithResponses) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, reportID ReportID, params *PatchReportV2Alpha1Params, body PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchReportV2Alpha1Response, error) { + rsp, err := c.PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx, reportID, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReportV2Alpha1Response(rsp) +} + +// UpdateReportV2Alpha1WithBodyWithResponse Update Report +// +// Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. +// `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use +// `PATCH` to change a subset.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.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/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). +func (c *ClientWithResponses) UpdateReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateReportV2Alpha1Response, error) { + rsp, err := c.UpdateReportV2Alpha1WithBody(ctx, reportID, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportV2Alpha1Response(rsp) +} + +// UpdateReportV2Alpha1WithResponse Update Report +// +// Replace a report's mutable fields — `name`, `description`, `filters`, and per-panel `filters`. +// `templateId` and `kind` are immutable. Omitted mutable fields are reset to their defaults; use +// `PATCH` to change a subset.\ +// \ +// `If-Match` is **required** — supply the report's current `ETag` so a concurrent change cannot be silently overwritten.\ +// \ +// **Required permissions:** platform.reporting.reports.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/reporting/v2alpha1/reports/{reportId} (the `UpdateReportV2Alpha1` operationId). +func (c *ClientWithResponses) UpdateReportV2Alpha1WithResponse(ctx context.Context, reportID ReportID, params *UpdateReportV2Alpha1Params, body UpdateReportV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateReportV2Alpha1Response, error) { + rsp, err := c.UpdateReportV2Alpha1(ctx, reportID, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateReportV2Alpha1Response(rsp) +} + +// ListRunsV2Alpha1WithResponse List Report Runs +// +// Retrieve report runs, optionally filtered by report, schedule, how they were triggered, status, +// or activity time.\ +// \ +// **`reportId` and `scheduleId` are mutually exclusive** — supply at most one. Sending both is +// rejected with `400`.\ +// \ +// To count or list a report's ad-hoc downloads — for instance to warn a user how many produced files +// deleting the report would destroy — combine `reportId` with `trigger=on_demand`.\ +// \ +// **Incremental polling:** use `sinceAt` to fetch only runs with activity at or after a given +// instant. Because this listing is unpaginated, `sinceAt` is the recommended way to avoid +// re-reading the whole retained history on every poll. `sinceAt` cannot be combined with +// `status=pending` or `status=running` (`400`).\ +// \ +// **Retention:** this listing is not a complete history. Completed runs — including truncated +// ones — are returned only while their produced file is still retrievable (a fixed retention +// window, currently expressed in days); older completed runs are omitted. Runs in any other +// state, including failed runs, are not subject to this window. Treat +// the listing as "runs whose output is still available", not "everything that ever ran".\ +// \ +// **Downloadable files:** to list the files currently available for download, filter with +// `status=completed` — each such run carries its `resultUri` until its file expires.\ +// \ +// **Visibility scope:** returns runs belonging to the caller's team within the caller's customer +// account, not the whole tenant.\ +// \ +// **Required permissions:** platform.reporting.report-downloads.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/runs (the `ListRunsV2Alpha1` operationId). +func (c *ClientWithResponses) ListRunsV2Alpha1WithResponse(ctx context.Context, params *ListRunsV2Alpha1Params, reqEditors ...RequestEditorFn) (*ListRunsV2Alpha1Response, error) { + rsp, err := c.ListRunsV2Alpha1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListRunsV2Alpha1Response(rsp) +} + +// CreateRunV2Alpha1WithBodyWithResponse Generate Report Run +// +// Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then +// download the file from its `resultUri`.\ +// \ +// **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). +// +// Corresponds with POST /platform/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). +func (c *ClientWithResponses) CreateRunV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateRunV2Alpha1Response, error) { + rsp, err := c.CreateRunV2Alpha1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRunV2Alpha1Response(rsp) +} + +// CreateRunV2Alpha1WithResponse Generate Report Run +// +// Generate a report on demand (asynchronous). Poll `GET /runs/{runId}` until the run completes, then +// download the file from its `resultUri`.\ +// \ +// **Required permissions:** platform.reporting.report-downloads.read +// +// 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/reporting/v2alpha1/runs (the `CreateRunV2Alpha1` operationId). +func (c *ClientWithResponses) CreateRunV2Alpha1WithResponse(ctx context.Context, body CreateRunV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateRunV2Alpha1Response, error) { + rsp, err := c.CreateRunV2Alpha1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateRunV2Alpha1Response(rsp) +} + +// GetRunV2Alpha1WithResponse Get Report Run +// +// Retrieve a report run by its identifier (poll for status).\ +// \ +// **Required permissions:** platform.reporting.report-downloads.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/runs/{runId} (the `GetRunV2Alpha1` operationId). +func (c *ClientWithResponses) GetRunV2Alpha1WithResponse(ctx context.Context, runID RunID, reqEditors ...RequestEditorFn) (*GetRunV2Alpha1Response, error) { + rsp, err := c.GetRunV2Alpha1(ctx, runID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRunV2Alpha1Response(rsp) +} + +// ListSchedulesV2Alpha1WithResponse List Report Schedules +// +// Retrieve the list of report schedules, optionally filtered by report.\ +// \ +// **Visibility scope:** returns schedules belonging to the caller's team within the caller's customer +// account, and only schedules attached to a **report**. The reporting service also stores schedules of +// other kinds — ones attached directly to a template, and data-export schedules — which have no +// representation in this API and are never returned here. A schedule visible in the Sysdig UI may +// therefore be absent from this listing.\ +// \ +// **Required permissions:** platform.reporting.schedules.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/schedules (the `ListSchedulesV2Alpha1` operationId). +func (c *ClientWithResponses) ListSchedulesV2Alpha1WithResponse(ctx context.Context, params *ListSchedulesV2Alpha1Params, reqEditors ...RequestEditorFn) (*ListSchedulesV2Alpha1Response, error) { + rsp, err := c.ListSchedulesV2Alpha1(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListSchedulesV2Alpha1Response(rsp) +} + +// CreateScheduleV2Alpha1WithBodyWithResponse Create Report Schedule +// +// Create a schedule for an existing report.\ +// \ +// **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) CreateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateScheduleV2Alpha1Response, error) { + rsp, err := c.CreateScheduleV2Alpha1WithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateScheduleV2Alpha1Response(rsp) +} + +// CreateScheduleV2Alpha1WithResponse Create Report Schedule +// +// Create a schedule for an existing report.\ +// \ +// **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules (the `CreateScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) CreateScheduleV2Alpha1WithResponse(ctx context.Context, body CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*CreateScheduleV2Alpha1Response, error) { + rsp, err := c.CreateScheduleV2Alpha1(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateScheduleV2Alpha1Response(rsp) +} + +// DeleteScheduleV2Alpha1WithResponse Delete Report Schedule +// +// Delete a schedule. Cascades to its run history.\ +// \ +// **Required permissions:** platform.reporting.schedules.edit +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with DELETE /platform/reporting/v2alpha1/schedules/{scheduleId} (the `DeleteScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) DeleteScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*DeleteScheduleV2Alpha1Response, error) { + rsp, err := c.DeleteScheduleV2Alpha1(ctx, scheduleID, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteScheduleV2Alpha1Response(rsp) +} + +// GetScheduleV2Alpha1WithResponse Get Report Schedule +// +// Retrieve a schedule by its identifier.\ +// \ +// **Required permissions:** platform.reporting.schedules.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/schedules/{scheduleId} (the `GetScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) GetScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, reqEditors ...RequestEditorFn) (*GetScheduleV2Alpha1Response, error) { + rsp, err := c.GetScheduleV2Alpha1(ctx, scheduleID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetScheduleV2Alpha1Response(rsp) +} + +// PatchScheduleV2Alpha1WithBodyWithResponse Patch Report Schedule +// +// Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `reportId` is +// immutable and `status` is server-computed.\ +// \ +// Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ +// \ +// Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite +// the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are +// unconditional.\ +// \ +// **Required permissions:** platform.reporting.schedules.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 PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) PatchScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchScheduleV2Alpha1Response, error) { + rsp, err := c.PatchScheduleV2Alpha1WithBody(ctx, scheduleID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchScheduleV2Alpha1Response(rsp) +} + +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse Patch Report Schedule +// +// Partially update a schedule using JSON Merge Patch ([RFC 7386](https://www.rfc-editor.org/rfc/rfc7386)). +// Send only the fields you want to change; omitted fields keep their current values. `reportId` is +// immutable and `status` is server-computed.\ +// \ +// Typical use is pausing or resuming without resending the whole definition: `{"enabled": false}`.\ +// \ +// Objects and arrays are replaced wholesale rather than merged, so `delivery` and `timeframe` overwrite +// the current value entirely. Schedules are not versioned and carry no `ETag`, so writes are +// unconditional.\ +// \ +// **Required permissions:** platform.reporting.schedules.edit +// +// Takes a body of the `application/merge-patch+json` content type, and returns a wrapper object for the known response body format(s). +// +// Corresponds with PATCH /platform/reporting/v2alpha1/schedules/{scheduleId} (the `PatchScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, scheduleID ScheduleID, body PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchScheduleV2Alpha1Response, error) { + rsp, err := c.PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx, scheduleID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchScheduleV2Alpha1Response(rsp) +} + +// UpdateScheduleV2Alpha1WithBodyWithResponse Update Report Schedule +// +// Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ +// \ +// **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) UpdateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID ScheduleID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateScheduleV2Alpha1Response, error) { + rsp, err := c.UpdateScheduleV2Alpha1WithBody(ctx, scheduleID, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateScheduleV2Alpha1Response(rsp) +} + +// UpdateScheduleV2Alpha1WithResponse Update Report Schedule +// +// Update a schedule. `reportId` is immutable; `status` is server-computed (read-only).\ +// \ +// **Required permissions:** platform.reporting.schedules.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/reporting/v2alpha1/schedules/{scheduleId} (the `UpdateScheduleV2Alpha1` operationId). +func (c *ClientWithResponses) UpdateScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID ScheduleID, body UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateScheduleV2Alpha1Response, error) { + rsp, err := c.UpdateScheduleV2Alpha1(ctx, scheduleID, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseUpdateScheduleV2Alpha1Response(rsp) +} + +// ListReportTemplatesV2Alpha1WithResponse List Report Templates +// +// Retrieve the catalog of available report templates.\ +// \ +// **The catalog is not the same for every customer.** Templates gated by controlled availability +// or by product entitlement are omitted for customers that do not have them enabled, so this +// listing is the authoritative set of templates the caller may create reports from. Do not +// hard-code template ids — read them from here. A template absent from this listing also cannot be +// fetched by id (`404`).\ +// \ +// **Superseded templates are omitted for everyone.** The reporting service still stores templates of +// an earlier resource-posture generation that the Sysdig UI no longer offers; those have no `kind` in +// this API and never appear here. Their replacements are the `posture_v2` templates. Reports created +// from a superseded template before it was retired remain readable through the v1 API and the UI, but +// are not exposed here — see `GET /reports`.\ +// \ +// **Required permissions:** platform.reporting.reports.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/templates (the `ListReportTemplatesV2Alpha1` operationId). +func (c *ClientWithResponses) ListReportTemplatesV2Alpha1WithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListReportTemplatesV2Alpha1Response, error) { + rsp, err := c.ListReportTemplatesV2Alpha1(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseListReportTemplatesV2Alpha1Response(rsp) +} + +// GetReportTemplateV2Alpha1WithResponse Get Report Template +// +// Retrieve a single report template by its identifier.\ +// \ +// **Required permissions:** platform.reporting.reports.read +// +// Returns a wrapper object for the known response body format(s). +// +// Corresponds with GET /platform/reporting/v2alpha1/templates/{templateId} (the `GetReportTemplateV2Alpha1` operationId). +func (c *ClientWithResponses) GetReportTemplateV2Alpha1WithResponse(ctx context.Context, templateID TemplateID, reqEditors ...RequestEditorFn) (*GetReportTemplateV2Alpha1Response, error) { + rsp, err := c.GetReportTemplateV2Alpha1(ctx, templateID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReportTemplateV2Alpha1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseGetDefaultNotificationTemplateV1Response(rsp) +} + +// 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 + } + return ParseGetDefaultRoleByDisplayNameV1Response(rsp) +} + +// 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 + } + return ParseGetGlobalSsoSettingsV1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseSaveIpFiltersSettingsV1Response(rsp) +} + +// 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 + } + return ParseSaveIpFiltersSettingsV1Response(rsp) +} + +// 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 + } + return ParseDeleteIpFilterByIdV1Response(rsp) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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) +} + +// 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 + } + return ParseGetNotificationChannelByIdResponse(rsp) +} + +// UpdateNotificationChannelByIdWithBodyWithResponse Update Notification Channel +// +// Update a notification channel by its ID.\ +// \ +// **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 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 ParseUpdateNotificationChannelByIdResponse(rsp) +} + +// UpdateNotificationChannelByIdWithResponse Update Notification Channel +// +// Update a notification channel by its ID.\ +// \ +// **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 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 ParseUpdateNotificationChannelByIdResponse(rsp) +} + +// GetNotificationTemplatesV1WithResponse List Notification Templates +// +// 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 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 ParseGetNotificationTemplatesV1Response(rsp) +} + +// CreateNotificationTemplateV1WithBodyWithResponse Create Notification Template +// +// Create a notification template.\ +// \ +// **Required permissions:** _notification-templates.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-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 ParseCreateNotificationTemplateV1Response(rsp) +} + +// CreateNotificationTemplateV1WithResponse Create Notification Template +// +// Create a notification template.\ +// \ +// **Required permissions:** _notification-templates.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-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 ParseCreateNotificationTemplateV1Response(rsp) +} + +// DeleteNotificationTemplateByIdV1WithResponse Delete Notification Template +// +// 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 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 ParseDeleteNotificationTemplateByIdV1Response(rsp) +} + +// GetNotificationTemplateByIdV1WithResponse Get Notification Template +// +// 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 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 ParseGetNotificationTemplateByIdV1Response(rsp) +} + +// UpdateNotificationTemplateByIdV1WithBodyWithResponse Update Notification Template +// +// Update a notification template by its ID.\ +// \ +// **Required permissions:** _notification-templates.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/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 ParseUpdateNotificationTemplateByIdV1Response(rsp) +} + +// UpdateNotificationTemplateByIdV1WithResponse Update Notification Template +// +// Update a notification template by its ID.\ +// \ +// **Required permissions:** _notification-templates.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/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 ParseUpdateNotificationTemplateByIdV1Response(rsp) +} + +// GetPermissionsV1WithResponse Get Customer Permissions +// +// Retrieve a list of permissions that are used in custom roles.\ +// \ +// **Required permissions:** _permissions.read_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetPermissionsV1Response(rsp) +} + +// GetPlatformAuditEventsV1WithResponse Get Platform Audit Events +// +// Retrieve a paginated list of Platform Audit Events.\ +// \ +// **Required permissions:** _audit-trail-events.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...) + if err != nil { + return nil, err + } + return ParseGetRolesV1Response(rsp) +} + +// CreateRoleV1WithBodyWithResponse Create Role +// +// Create a new role.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseCreateRoleV1Response(rsp) +} + +// CreateRoleV1WithResponse Create Role +// +// Create a new role.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseCreateRoleV1Response(rsp) +} + +// DeleteRoleByIdV1WithResponse Delete Role +// +// Delete a role by its ID.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseDeleteRoleByIdV1Response(rsp) +} + +// GetRoleByIdV1WithResponse Get Role +// +// Return a role by its ID.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseGetRoleByIdV1Response(rsp) +} + +// UpdateRoleByIdV1WithBodyWithResponse Update Role +// +// Update a role by its ID.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseUpdateRoleByIdV1Response(rsp) +} + +// UpdateRoleByIdV1WithResponse Update Role +// +// Update a role by its ID.\ +// \ +// **Required permissions:** _roles.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...) + if err != nil { + return nil, err + } + return ParseUpdateRoleByIdV1Response(rsp) +} + +// GetGlobalServiceAccountsV1WithResponse List Global Service Accounts +// +// 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 /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 ParseGetGlobalServiceAccountsV1Response(rsp) +} + +// CreateGlobalServiceAccountV1WithBodyWithResponse Create a Global Service Account +// +// Create a new global service account.\ +// \ +// **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). +// +// 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 ParseCreateGlobalServiceAccountV1Response(rsp) +} + +// CreateGlobalServiceAccountV1WithResponse Create a Global Service Account +// +// Create a new global service account.\ +// \ +// **Required permissions:** _global-service-accounts.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...) + if err != nil { + return nil, err + } + return ParseCreateGlobalServiceAccountV1Response(rsp) +} + +// DeleteGlobalServiceAccountsNotificationSettingsV1WithResponse Delete Global Service Accounts Notification Settings +// +// 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 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 ParseDeleteGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// GetGlobalServiceAccountsNotificationSettingsV1WithResponse Get Global Service Accounts Notification Settings +// +// 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 /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 ParseGetGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// CreateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Global Service Accounts Notification Settings +// +// Create a new Notification Settings for Global Service Accounts.\ +// \ +// **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 /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 ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// CreateGlobalServiceAccountsNotificationSettingsV1WithResponse Create Global Service Accounts Notification Settings +// +// Create a new Notification Settings for Global Service Accounts.\ +// \ +// **Required permissions:** _global-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). +// +// 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 ParseCreateGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// UpdateGlobalServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Global Service Accounts Notification Settings +// +// Update Notification Settings for Global Service Accounts.\ +// \ +// **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 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 ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// UpdateGlobalServiceAccountsNotificationSettingsV1WithResponse Update Global Service Accounts Notification Settings +// +// Update Notification Settings for Global Service Accounts.\ +// \ +// **Required permissions:** _global-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). +// +// 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 ParseUpdateGlobalServiceAccountsNotificationSettingsV1Response(rsp) +} + +// DeleteGlobalServiceAccountByIdV1WithResponse Delete a Global Service Account +// +// Delete a global service account by ID.\ +// \ +// **Required permissions:** _global-service-accounts.edit_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseDeleteGlobalServiceAccountByIdV1Response(rsp) +} + +// GetGlobalServiceAccountByIdV1WithResponse Get a Global Service Account +// +// Return a global service account by ID.\ +// \ +// **Required permissions:** _global-service-accounts.read_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetGlobalServiceAccountByIdV1Response(rsp) +} + +// GetSsoSettingsV1WithResponse List SSO Settings +// +// Retrieve the list of SSO settings.\ +// \ +// **Required permissions:** _sso.config_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetSsoSettingsV1Response(rsp) +} + +// CreateSsoSettingsV1WithBodyWithResponse Create SSO Settings +// +// Create a new 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 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 ParseCreateSsoSettingsV1Response(rsp) +} + +// CreateSsoSettingsV1WithResponse Create SSO Settings +// +// Create a new 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 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 ParseCreateSsoSettingsV1Response(rsp) +} + +// DeleteSsoSettingsByIdV1WithResponse Delete SSO Settings +// +// Delete SSO settings by its ID.\ +// \ +// **Required permissions:** _sso.config_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseDeleteSsoSettingsByIdV1Response(rsp) +} + +// GetSsoSettingsByIdV1WithResponse Get SSO Settings +// +// Return SSO settings by ID.\ +// \ +// **Required permissions:** _sso.config_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetSsoSettingsByIdV1Response(rsp) +} + +// UpdateSsoSettingsByIdV1WithBodyWithResponse Update SSO Settings +// +// Update SSO settings by its ID.\ +// \ +// **Required permissions:** _sso.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 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 ParseUpdateSsoSettingsByIdV1Response(rsp) +} + +// UpdateSsoSettingsByIdV1WithResponse Update SSO Settings +// +// Update SSO settings by its 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). +// +// 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 ParseUpdateSsoSettingsByIdV1Response(rsp) +} + +// GetSystemSsoSettingsV1WithResponse List System SSO Settings +// +// Retrieve a paginated list of System SSO settings.\ +// \ +// **Required permissions:** _sso-system.config_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetSystemSsoSettingsV1Response(rsp) +} + +// CreateSystemSsoSettingsV1WithBodyWithResponse Create System SSO Settings +// +// Create a new System SSO settings.\ +// \ +// **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 /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 ParseCreateSystemSsoSettingsV1Response(rsp) +} + +// CreateSystemSsoSettingsV1WithResponse Create System SSO Settings +// +// 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). +// +// 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 ParseCreateSystemSsoSettingsV1Response(rsp) +} + +// DeleteSystemSsoSettingsByIdV1WithResponse Delete System SSO Settings +// +// 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 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 ParseDeleteSystemSsoSettingsByIdV1Response(rsp) +} + +// GetSystemSsoSettingsByIdV1WithResponse Get System SSO Settings +// +// 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 /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 ParseGetSystemSsoSettingsByIdV1Response(rsp) +} + +// UpdateSystemSsoSettingsByIdV1WithBodyWithResponse Update System SSO Settings +// +// 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 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 ParseUpdateSystemSsoSettingsByIdV1Response(rsp) +} + +// UpdateSystemSsoSettingsByIdV1WithResponse Update System SSO Settings +// +// 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 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 ParseUpdateSystemSsoSettingsByIdV1Response(rsp) +} + +// GetTeamsV1WithResponse List Teams +// +// Retrieve a paginated list of teams.\ +// \ +// **Required permissions:** _customer-teams.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...) + if err != nil { + return nil, err + } + return ParseGetTeamsV1Response(rsp) +} + +// CreateTeamV1WithBodyWithResponse Create Team +// +// 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). +// +// 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 ParseCreateTeamV1Response(rsp) +} + +// CreateTeamV1WithResponse Create Team +// +// Create a new team.\ +// \ +// **Required permissions:** _teams.create_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseCreateTeamV1Response(rsp) +} + +// DeleteTeamByIdV1WithResponse Delete Team +// +// Delete a team by its ID.\ +// \ +// **Required permissions:** _teams.edit_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseDeleteTeamByIdV1Response(rsp) +} + +// GetTeamByIdV1WithResponse Get Team +// +// Return a team by ID.\ +// \ +// **Required permissions:** _customer-teams.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...) + if err != nil { + return nil, err + } + return ParseGetTeamByIdV1Response(rsp) +} + +// UpdateTeamByIdV1WithBodyWithResponse Update Team +// +// Update a team by its ID.\ +// \ +// **Required permissions:** _teams.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} (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 ParseUpdateTeamByIdV1Response(rsp) +} + +// UpdateTeamByIdV1WithResponse Update Team +// +// Update 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). +// +// 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 ParseUpdateTeamByIdV1Response(rsp) +} + +// GetTeamServiceAccountsV1WithResponse List Team Service Accounts +// +// 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 /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 ParseGetTeamServiceAccountsV1Response(rsp) +} + +// CreateTeamServiceAccountV1WithBodyWithResponse Create a Team Service Account +// +// Create a new team service account.\ +// \ +// **Required permissions:** _team-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). +// +// 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 ParseCreateTeamServiceAccountV1Response(rsp) +} + +// CreateTeamServiceAccountV1WithResponse Create a Team Service Account +// +// Create a new team service account.\ +// \ +// **Required permissions:** _team-service-accounts.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/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 ParseCreateTeamServiceAccountV1Response(rsp) +} + +// DeleteServiceAccountsNotificationSettingsV1WithResponse Delete Service Accounts Notification Settings +// +// 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 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 ParseDeleteServiceAccountsNotificationSettingsV1Response(rsp) +} + +// GetServiceAccountsNotificationSettingsV1WithResponse Get Service Accounts Notification Settings +// +// Return Service Accounts Notification Settings for a given team.\ +// \ +// **Required permissions:** _service-accounts-notification-settings.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...) + if err != nil { + return nil, err + } + return ParseGetServiceAccountsNotificationSettingsV1Response(rsp) +} + +// CreateServiceAccountsNotificationSettingsV1WithBodyWithResponse Create Service Accounts Notification Settings +// +// Create a new Notification Settings for Service Accounts which belong to a specific team.\ +// \ +// **Required permissions:** _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 /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 ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) +} + +// CreateServiceAccountsNotificationSettingsV1WithResponse Create Service Accounts Notification Settings +// +// 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). +// +// 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 ParseCreateServiceAccountsNotificationSettingsV1Response(rsp) +} + +// UpdateServiceAccountsNotificationSettingsV1WithBodyWithResponse Update Service Accounts Notification Settings +// +// Update Service Accounts Notification Settings for a given team.\ +// \ +// **Required permissions:** _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 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 ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) +} + +// UpdateServiceAccountsNotificationSettingsV1WithResponse Update Service Accounts Notification Settings +// +// Update Service Accounts Notification Settings for a given 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). +// +// 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 ParseUpdateServiceAccountsNotificationSettingsV1Response(rsp) +} + +// DeleteTeamServiceAccountByIdV1WithResponse Delete a Team Service Account +// +// Delete a team service account by ID.\ +// \ +// **Required permissions:** _team-service-accounts.edit_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseDeleteTeamServiceAccountByIdV1Response(rsp) +} + +// GetTeamServiceAccountByIdV1WithResponse Get a Team Service Account +// +// 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 /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 ParseGetTeamServiceAccountByIdV1Response(rsp) +} + +// GetTeamUsersV1WithResponse List Memberships +// +// Retrieve a paginated list of memberships in a given team ID.\ +// \ +// **Required permissions:** _memberships.read_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetTeamUsersV1Response(rsp) +} + +// DeleteTeamUserByIdV1WithResponse Delete Membership +// +// Delete a membership defined by its ID.\ +// \ +// **Required permissions:** _memberships.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...) + if err != nil { + return nil, err + } + return ParseDeleteTeamUserByIdV1Response(rsp) +} + +// GetTeamUserByIdV1WithResponse Get Membership +// +// Return a membership by its ID.\ +// \ +// **Required permissions:** _memberships.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...) + if err != nil { + return nil, err + } + return ParseGetTeamUserByIdV1Response(rsp) +} + +// SaveTeamUserV1WithBodyWithResponse 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 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 /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 ParseGetUsersV1Response(rsp) +} + +// CreateUserV1WithBodyWithResponse Create User +// +// 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 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 ParseCreateUserV1Response(rsp) +} + +// CreateUserV1WithResponse Create User +// +// 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 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 ParseCreateUserV1Response(rsp) +} + +// DeleteUserByIdV1WithResponse Delete User +// +// Delete a user by its ID.\ +// \ +// **Required permissions:** _users.edit_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseDeleteUserByIdV1Response(rsp) +} + +// GetUserByIdV1WithResponse Get User +// +// Display a user by ID.\ +// \ +// **Required permissions:** _users.read_ +// +// 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...) + if err != nil { + return nil, err + } + return ParseGetUserByIdV1Response(rsp) +} + +// UpdateUserV1WithBodyWithResponse Update User +// +// 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 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 ParseUpdateUserV1Response(rsp) +} + +// UpdateUserV1WithResponse Update User +// +// 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 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 ParseUpdateUserV1Response(rsp) +} + +// ListZonesV1WithResponse List Zones (Deprecated) +// +// **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 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 ParseListZonesV1Response(rsp) +} + +// CreateZoneV1WithBodyWithResponse Create Zone (Deprecated) +// +// **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). +// +// 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 ParseCreateZoneV1Response(rsp) +} + +// CreateZoneV1WithResponse Create Zone (Deprecated) +// +// **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 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/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 ParseCreateZoneV1Response(rsp) +} + +// DeleteZoneV1WithResponse Delete Zone (Deprecated) +// +// **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 +// +// Returns a wrapper object for the known response body format(s). +// +// 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 ParseDeleteZoneV1Response(rsp) +} + +// GetZoneByIdV1WithResponse Get Zone (Deprecated) +// +// **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 /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 ParseGetZoneByIdV1Response(rsp) +} + +// EditZoneV1WithBodyWithResponse 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 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 /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 ParseListAutomationExecutionsResponse(rsp) +} + +// 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). +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 ParseGetAutomationExecutionResponse(rsp) +} + +// 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). +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 ParseListAutomationsResponse(rsp) +} + +// 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). +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 ParseCreateAutomationResponse(rsp) +} + +// 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). +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 ParseCreateAutomationResponse(rsp) +} + +// 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). +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 ParseDeleteAutomationByIdResponse(rsp) +} + +// 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). +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 ParseGetAutomationByIdResponse(rsp) +} + +// 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). +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 ParseUpdateAutomationResponse(rsp) +} + +// 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). +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 ParseUpdateAutomationResponse(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. +// +// **Required permissions:** `zones.read` or `teams.edit` +// +// 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...) + if err != nil { + return nil, err + } + return ParseListZonesV2Response(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. +// +// **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) +} + +// 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) +} + +// 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 + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 403: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 +} + +// 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 := &GetInhibitionRulesResponse{ + 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 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 == 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 +} + +// 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 := &CreateInhibitionRuleResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + 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.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 { + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers201 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + 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 + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 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 { + 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 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 { + 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 +} + +// 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 := &DeleteInhibitionRuleByIdResponse{ + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers204 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + 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 { + 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 +} + +// 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 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 { + 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 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 { + 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 +} + +// 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 := &UpdateInhibitionRuleResponse{ + 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 == 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 == 200: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + 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 + 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 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 { + 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 +} + +// 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 := &GetPricingV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetPricingPaginatedResponseV1 + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + 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 + 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 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 { + 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 +} + +// 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 := &CreatePricingV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + 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.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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers201 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + 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 + 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 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 { + 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 +} + +// 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 := &DeletePricingByIdV1Response{ + 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 == 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 == 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers204 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + 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 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 { + 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 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 { + 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 +} + +// 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 := &GetPricingByIdV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + 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 + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 +} + +// 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 := &UpdatePricingByIdV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + 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 + 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 == 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 == 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 { + return nil, err + } + 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 + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 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 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 { + 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 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 { + 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 +} + +// 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 := &GetPricingProjectedCostsV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest GetPricingProjectedPaginatedResponseV1 + 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 404: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 +} + +// 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 := &GetWastedWorkloadDataResponse{ + 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 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 == 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 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 + } -// 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) + return response, nil } -// 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...) +// 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 } - 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 + response := &GetWorkloadCostDataV1Response{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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) -} + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest WorkloadCostTrendsDataResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest -// 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) -} + 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 -// 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) -} + 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 -// 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) -} + 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 -// 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) -} + 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 -// 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 + switch { + case rsp.StatusCode == 200: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 ParseUpdateAcceptedRiskV1Response(rsp) + + return response, nil } -// 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...) +// 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 } - 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 + response := &GetWorkloadRightsizingDataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, } - 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 + switch { + 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.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 == 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 + } - 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 + switch { + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers200 = &headers + case rsp.StatusCode == 400: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers400 = &headers + case rsp.StatusCode == 401: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers401 = &headers + case rsp.StatusCode == 429: + 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 { + 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 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 { + 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 ParseGetSBOMV1beta1Response(rsp) + + return response, nil } -// ParseDeleteZonePolicyAssociationResponse parses an HTTP response from a DeleteZonePolicyAssociationWithResponse call -func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePolicyAssociationResponse, 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 := &DeleteZonePolicyAssociationResponse{ + 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 } @@ -90505,8 +102939,8 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } switch { - case rsp.StatusCode == 204: - var headers DeleteZonePolicyAssociationResponse204Headers + 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 { @@ -90514,9 +102948,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 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 { @@ -90526,7 +102960,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteZonePolicyAssociationResponse401Headers + 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 { @@ -90536,7 +102970,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeleteZonePolicyAssociationResponse403Headers + 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 { @@ -90546,7 +102980,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeleteZonePolicyAssociationResponse404Headers + 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 { @@ -90556,7 +102990,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers DeleteZonePolicyAssociationResponse429Headers + 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 { @@ -90573,7 +103007,7 @@ func ParseDeleteZonePolicyAssociationResponse(rsp *http.Response) (*DeleteZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteZonePolicyAssociationResponse500Headers + 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 { @@ -90608,22 +103042,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) { +// 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 := &GetZonePolicyAssociationResponse{ + response := &GetDisabledMetricsByJobV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse + var dest ResponseListDisabledMetricsV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -90643,13 +103077,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 { @@ -90675,7 +103102,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs switch { case rsp.StatusCode == 200: - var headers GetZonePolicyAssociationResponse200Headers + 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 { @@ -90685,7 +103112,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetZonePolicyAssociationResponse400Headers + 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 { @@ -90695,7 +103122,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetZonePolicyAssociationResponse401Headers + 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 { @@ -90704,18 +103131,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 + 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 { @@ -90725,7 +103142,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetZonePolicyAssociationResponse429Headers + 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 { @@ -90742,7 +103159,7 @@ func ParseGetZonePolicyAssociationResponse(rsp *http.Response) (*GetZonePolicyAs } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetZonePolicyAssociationResponse500Headers + 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 { @@ -90777,27 +103194,34 @@ 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) { +// 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 := &CreateZonePolicyAssociationResponse{ + response := &PostDisabledMetricsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse + 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 { @@ -90812,13 +103236,6 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } 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 { @@ -90826,20 +103243,6 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } 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 { @@ -90858,7 +103261,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo switch { case rsp.StatusCode == 200: - var headers CreateZonePolicyAssociationResponse200Headers + 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 { @@ -90867,8 +103270,8 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo headers.XRateLimitLimit = &value } response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers CreateZonePolicyAssociationResponse400Headers + 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 { @@ -90876,9 +103279,9 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers CreateZonePolicyAssociationResponse401Headers + 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 { @@ -90886,9 +103289,9 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers CreateZonePolicyAssociationResponse403Headers + 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 { @@ -90896,9 +103299,9 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + response.Headers401 = &headers case rsp.StatusCode == 404: - var headers CreateZonePolicyAssociationResponse404Headers + 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 { @@ -90907,28 +103310,8 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo 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 + 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 { @@ -90945,7 +103328,7 @@ func ParseCreateZonePolicyAssociationResponse(rsp *http.Response) (*CreateZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateZonePolicyAssociationResponse500Headers + 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 { @@ -90980,22 +103363,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) { +// 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 := &UpdateZonePolicyAssociationResponse{ + response := &GetCustomPrometheusJobsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ZonePolicyAssociationResponse + var dest GetCustomJobsPaginatedResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91015,13 +103398,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 { @@ -91029,13 +103405,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 { @@ -91054,7 +103423,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo switch { case rsp.StatusCode == 200: - var headers UpdateZonePolicyAssociationResponse200Headers + 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 { @@ -91064,7 +103433,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers UpdateZonePolicyAssociationResponse400Headers + 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 { @@ -91074,7 +103443,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateZonePolicyAssociationResponse401Headers + 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 { @@ -91083,18 +103452,8 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo 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 + 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 { @@ -91103,18 +103462,8 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo 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 + 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 { @@ -91131,7 +103480,7 @@ func ParseUpdateZonePolicyAssociationResponse(rsp *http.Response) (*UpdateZonePo } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateZonePolicyAssociationResponse500Headers + 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 { @@ -91166,26 +103515,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) { +// 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 := &GetQueryResultResponse{ + response := &DeleteCustomPrometheusJobByIdV1Response{ 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 rsp.StatusCode == 204: + break // No content-type case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -91208,8 +103553,15 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } 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 ParseErrorResponse + var dest UnprocessableEntity if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -91232,8 +103584,8 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } switch { - case rsp.StatusCode == 200: - var headers GetQueryResultResponse200Headers + 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 { @@ -91241,9 +103593,9 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetQueryResultResponse400Headers + 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 { @@ -91253,7 +103605,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetQueryResultResponse401Headers + 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 { @@ -91263,7 +103615,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers GetQueryResultResponse403Headers + 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 { @@ -91272,8 +103624,18 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e 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 GetQueryResultResponse422Headers + 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 { @@ -91283,7 +103645,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetQueryResultResponse429Headers + 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 { @@ -91300,7 +103662,7 @@ func ParseGetQueryResultResponse(rsp *http.Response) (*GetQueryResultResponse, e } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetQueryResultResponse500Headers + 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 { @@ -91335,26 +103697,26 @@ 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) { +// 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 := &PostQueryResultResponse{ + response := &GetCustomPrometheusJobByNameV1Response{ 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 { + 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 @@ -91370,19 +103732,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 @@ -91402,7 +103757,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, switch { case rsp.StatusCode == 200: - var headers PostQueryResultResponse200Headers + 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 { @@ -91412,7 +103767,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers PostQueryResultResponse400Headers + 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 { @@ -91422,7 +103777,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers PostQueryResultResponse401Headers + 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 { @@ -91431,18 +103786,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 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 { @@ -91450,9 +103795,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 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 { @@ -91469,7 +103814,7 @@ func ParsePostQueryResultResponse(rsp *http.Response) (*PostQueryResultResponse, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers PostQueryResultResponse500Headers + 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 { @@ -91504,26 +103849,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) { +// 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 := &GetSchemaResponse{ + response := &CreateCustomPrometheusJobV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: - var dest string + 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.YAML200 = &dest + response.YAML201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -91539,12 +103884,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 @@ -91563,8 +103922,8 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } switch { - case rsp.StatusCode == 200: - var headers GetSchemaResponse200Headers + 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 { @@ -91572,9 +103931,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 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 { @@ -91584,7 +103943,7 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetSchemaResponse401Headers + 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 { @@ -91593,8 +103952,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 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 { @@ -91602,9 +103961,29 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } headers.XRateLimitLimit = &value } - response.Headers403 = &headers + 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 GetSchemaResponse429Headers + 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 { @@ -91621,7 +104000,7 @@ func ParseGetSchemaResponse(rsp *http.Response) (*GetSchemaResponse, error) { } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetSchemaResponse500Headers + 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 { @@ -91656,26 +104035,26 @@ 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) { +// 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 := &GetInhibitionRulesResponse{ + response := &UpdateCustomPrometheusJobByIdV1Response{ 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 { + 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 @@ -91691,6 +104070,34 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } 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 { @@ -91709,7 +104116,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes switch { case rsp.StatusCode == 200: - var headers GetInhibitionRulesResponse200Headers + 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 { @@ -91719,7 +104126,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetInhibitionRulesResponse400Headers + 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 { @@ -91729,7 +104136,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetInhibitionRulesResponse401Headers + 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 { @@ -91738,8 +104145,48 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes 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 + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 GetInhibitionRulesResponse429Headers + 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 { @@ -91756,7 +104203,7 @@ func ParseGetInhibitionRulesResponse(rsp *http.Response) (*GetInhibitionRulesRes } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetInhibitionRulesResponse500Headers + 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 { @@ -91791,26 +104238,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) { +// 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 := &CreateInhibitionRuleResponse{ + response := &GetCustomPrometheusJobEnablementV1Response{ 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 CustomJobsEnablementV1 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 @@ -91826,26 +104273,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 @@ -91864,8 +104297,8 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } switch { - case rsp.StatusCode == 201: - var headers CreateInhibitionRuleResponse201Headers + case rsp.StatusCode == 200: + 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 { @@ -91873,9 +104306,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 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 { @@ -91885,7 +104318,7 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreateInhibitionRuleResponse401Headers + 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 { @@ -91894,28 +104327,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 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 { @@ -91923,9 +104336,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 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 { @@ -91942,7 +104355,7 @@ func ParseCreateInhibitionRuleResponse(rsp *http.Response) (*CreateInhibitionRul } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreateInhibitionRuleResponse500Headers + 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 { @@ -91977,22 +104390,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) { +// 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 := &DeleteInhibitionRuleByIdResponse{ + response := &UpdateCustomPrometheusJobEnablementV1Response{ 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 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 == 400: var dest BadRequest @@ -92015,6 +104432,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 { @@ -92032,8 +104470,8 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } switch { - case rsp.StatusCode == 204: - var headers DeleteInhibitionRuleByIdResponse204Headers + case rsp.StatusCode == 200: + 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 { @@ -92041,9 +104479,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 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 { @@ -92053,7 +104491,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeleteInhibitionRuleByIdResponse401Headers + 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 { @@ -92063,7 +104501,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers401 = &headers case rsp.StatusCode == 404: - var headers DeleteInhibitionRuleByIdResponse404Headers + 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 { @@ -92072,8 +104510,38 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio 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 + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 DeleteInhibitionRuleByIdResponse429Headers + 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 { @@ -92090,7 +104558,7 @@ func ParseDeleteInhibitionRuleByIdResponse(rsp *http.Response) (*DeleteInhibitio } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeleteInhibitionRuleByIdResponse500Headers + 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 { @@ -92125,22 +104593,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) { +// 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 := &GetInhibitionRuleByIdResponse{ + response := &GetJiraIntegrationsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InhibitionRuleResponseV1 + var dest PaginatedIntegrationsResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -92160,12 +104628,12 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } 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 @@ -92185,7 +104653,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB switch { case rsp.StatusCode == 200: - var headers GetInhibitionRuleByIdResponse200Headers + 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 { @@ -92195,7 +104663,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetInhibitionRuleByIdResponse400Headers + 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 { @@ -92205,7 +104673,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetInhibitionRuleByIdResponse401Headers + 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 { @@ -92214,8 +104682,8 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetInhibitionRuleByIdResponse404Headers + 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 { @@ -92223,9 +104691,9 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetInhibitionRuleByIdResponse429Headers + 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 { @@ -92242,7 +104710,7 @@ func ParseGetInhibitionRuleByIdResponse(rsp *http.Response) (*GetInhibitionRuleB } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetInhibitionRuleByIdResponse500Headers + 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 { @@ -92277,26 +104745,26 @@ 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) { +// 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 := &UpdateInhibitionRuleResponse{ + response := &CreateJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest InhibitionRuleResponseV1 + 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.JSON200 = &dest + response.JSON201 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: var dest BadRequest @@ -92312,33 +104780,12 @@ 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 + 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.JSON422 = &dest + response.JSON403 = &dest case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: var dest TooManyRequests @@ -92357,8 +104804,8 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } switch { - case rsp.StatusCode == 200: - var headers UpdateInhibitionRuleResponse200Headers + 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 { @@ -92366,9 +104813,9 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdateInhibitionRuleResponse400Headers + 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 { @@ -92378,7 +104825,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdateInhibitionRuleResponse401Headers + 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 { @@ -92387,38 +104834,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 + case rsp.StatusCode == 403: + 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 { @@ -92426,9 +104843,9 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers UpdateInhibitionRuleResponse429Headers + 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 { @@ -92445,7 +104862,7 @@ func ParseUpdateInhibitionRuleResponse(rsp *http.Response) (*UpdateInhibitionRul } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdateInhibitionRuleResponse500Headers + 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 { @@ -92480,26 +104897,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) { +// 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 := &GetPricingV1Response{ + response := &DeleteJiraIntegrationV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPricingPaginatedResponseV1 - 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 @@ -92515,6 +104928,13 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, 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 { @@ -92522,6 +104942,13 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } 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 { @@ -92539,8 +104966,8 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } switch { - case rsp.StatusCode == 200: - var headers GetPricingV1Response200Headers + 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 { @@ -92548,9 +104975,9 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetPricingV1Response400Headers + 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 { @@ -92560,7 +104987,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingV1Response401Headers + 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 { @@ -92569,8 +104996,18 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error 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 GetPricingV1Response404Headers + 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 { @@ -92579,8 +105016,18 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error 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 GetPricingV1Response429Headers + 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 { @@ -92597,7 +105044,7 @@ func ParseGetPricingV1Response(rsp *http.Response) (*GetPricingV1Response, error } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingV1Response500Headers + 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 { @@ -92632,26 +105079,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) { +// 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 := &CreatePricingV1Response{ + response := &GetJiraIntegrationV1Response{ 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 IntegrationResponseV1 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 @@ -92667,26 +105114,19 @@ 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 + 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 @@ -92705,8 +105145,8 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } switch { - case rsp.StatusCode == 201: - var headers CreatePricingV1Response201Headers + 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 { @@ -92714,9 +105154,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 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 { @@ -92726,7 +105166,7 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers CreatePricingV1Response401Headers + 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 { @@ -92735,18 +105175,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 + 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 { @@ -92754,9 +105184,9 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers CreatePricingV1Response422Headers + 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 { @@ -92764,9 +105194,9 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } headers.XRateLimitLimit = &value } - response.Headers422 = &headers + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers CreatePricingV1Response429Headers + 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 { @@ -92783,7 +105213,7 @@ func ParseCreatePricingV1Response(rsp *http.Response) (*CreatePricingV1Response, } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers CreatePricingV1Response500Headers + 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 { @@ -92818,22 +105248,26 @@ 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) { +// 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 := &DeletePricingByIdV1Response{ + response := &UpdateJiraIntegrationV1Response{ 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 IntegrationResponseV1 + 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 @@ -92863,13 +105297,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 { @@ -92887,8 +105314,8 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } switch { - case rsp.StatusCode == 204: - var headers DeletePricingByIdV1Response204Headers + case rsp.StatusCode == 200: + 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 { @@ -92896,9 +105323,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 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 { @@ -92908,7 +105335,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers DeletePricingByIdV1Response401Headers + 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 { @@ -92918,7 +105345,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers401 = &headers case rsp.StatusCode == 403: - var headers DeletePricingByIdV1Response403Headers + 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 { @@ -92928,7 +105355,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers403 = &headers case rsp.StatusCode == 404: - var headers DeletePricingByIdV1Response404Headers + 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 { @@ -92937,18 +105364,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 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 { @@ -92965,7 +105382,7 @@ func ParseDeletePricingByIdV1Response(rsp *http.Response) (*DeletePricingByIdV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers DeletePricingByIdV1Response500Headers + 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 { @@ -93000,22 +105417,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) { +// 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 := &GetPricingByIdV1Response{ + response := &GetJiraIssueTypesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PricingResponseV1 + var dest IssueTypesResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93035,12 +105452,12 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } 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 @@ -93060,7 +105477,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons switch { case rsp.StatusCode == 200: - var headers GetPricingByIdV1Response200Headers + 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 { @@ -93070,7 +105487,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetPricingByIdV1Response400Headers + 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 { @@ -93080,7 +105497,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingByIdV1Response401Headers + 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 { @@ -93089,8 +105506,8 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetPricingByIdV1Response404Headers + 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 { @@ -93098,9 +105515,9 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers403 = &headers case rsp.StatusCode == 429: - var headers GetPricingByIdV1Response429Headers + 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 { @@ -93117,7 +105534,7 @@ func ParseGetPricingByIdV1Response(rsp *http.Response) (*GetPricingByIdV1Respons } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingByIdV1Response500Headers + 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 { @@ -93152,26 +105569,26 @@ 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) { +// 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 := &UpdatePricingByIdV1Response{ + response := &CreateJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PricingResponseV1 + 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 @@ -93187,33 +105604,19 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } 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 @@ -93232,8 +105635,8 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } switch { - case rsp.StatusCode == 200: - var headers UpdatePricingByIdV1Response200Headers + 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 { @@ -93241,9 +105644,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers201 = &headers case rsp.StatusCode == 400: - var headers UpdatePricingByIdV1Response400Headers + 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 { @@ -93253,7 +105656,7 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers UpdatePricingByIdV1Response401Headers + 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 { @@ -93262,28 +105665,8 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 404: - 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 { - return nil, err - } - 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 + 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 { @@ -93291,9 +105674,9 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } headers.XRateLimitLimit = &value } - response.Headers415 = &headers - case rsp.StatusCode == 422: - var headers UpdatePricingByIdV1Response422Headers + 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 { @@ -93301,9 +105684,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 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 { @@ -93320,7 +105703,7 @@ func ParseUpdatePricingByIdV1Response(rsp *http.Response) (*UpdatePricingByIdV1R } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers UpdatePricingByIdV1Response500Headers + 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 { @@ -93355,26 +105738,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) { +// 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 := &GetPricingProjectedCostsV1Response{ + response := &DeleteJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetPricingProjectedPaginatedResponseV1 - 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 @@ -93390,6 +105769,13 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } 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 { @@ -93414,8 +105800,8 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } switch { - case rsp.StatusCode == 200: - var headers GetPricingProjectedCostsV1Response200Headers + 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 { @@ -93423,9 +105809,9 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } headers.XRateLimitLimit = &value } - response.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetPricingProjectedCostsV1Response400Headers + 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 { @@ -93435,7 +105821,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetPricingProjectedCostsV1Response401Headers + 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 { @@ -93444,8 +105830,18 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers case rsp.StatusCode == 404: - var headers GetPricingProjectedCostsV1Response404Headers + 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 { @@ -93455,7 +105851,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetPricingProjectedCostsV1Response429Headers + 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 { @@ -93472,7 +105868,7 @@ func ParseGetPricingProjectedCostsV1Response(rsp *http.Response) (*GetPricingPro } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetPricingProjectedCostsV1Response500Headers + 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 { @@ -93507,22 +105903,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) { +// 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 := &GetWastedWorkloadDataResponse{ + response := &GetJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WastedWorkloadSpendDataResponse + var dest IssueTypeResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93542,6 +105938,20 @@ 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 == 429: var dest TooManyRequests if err := json.Unmarshal(bodyBytes, &dest); err != nil { @@ -93560,7 +105970,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD switch { case rsp.StatusCode == 200: - var headers GetWastedWorkloadDataResponse200Headers + 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 { @@ -93570,7 +105980,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetWastedWorkloadDataResponse400Headers + 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 { @@ -93580,7 +105990,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWastedWorkloadDataResponse401Headers + 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 { @@ -93589,8 +105999,28 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD 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 + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 GetWastedWorkloadDataResponse429Headers + 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 { @@ -93607,7 +106037,7 @@ func ParseGetWastedWorkloadDataResponse(rsp *http.Response) (*GetWastedWorkloadD } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWastedWorkloadDataResponse500Headers + 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 { @@ -93642,22 +106072,22 @@ 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) { +// 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 := &GetWorkloadCostDataV1Response{ + response := &UpdateJiraIssueTypeV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkloadCostTrendsDataResponse + var dest IssueTypeResponseV1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93677,6 +106107,20 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } 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 { @@ -93695,7 +106139,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat switch { case rsp.StatusCode == 200: - var headers GetWorkloadCostDataV1Response200Headers + 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 { @@ -93705,7 +106149,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetWorkloadCostDataV1Response400Headers + 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 { @@ -93715,7 +106159,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWorkloadCostDataV1Response401Headers + 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 { @@ -93724,8 +106168,28 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat headers.XRateLimitLimit = &value } response.Headers401 = &headers + case rsp.StatusCode == 403: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers403 = &headers + case rsp.StatusCode == 404: + 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 { + return nil, err + } + headers.XRateLimitLimit = &value + } + response.Headers404 = &headers case rsp.StatusCode == 429: - var headers GetWorkloadCostDataV1Response429Headers + 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 { @@ -93742,7 +106206,7 @@ func ParseGetWorkloadCostDataV1Response(rsp *http.Response) (*GetWorkloadCostDat } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWorkloadCostDataV1Response500Headers + 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 { @@ -93777,22 +106241,22 @@ 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) { +// 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 := &GetWorkloadRightsizingDataResponse{ + response := &ListJobsV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest WorkloadRightsizingDataResponse + var dest ListJobs if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -93812,6 +106276,13 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } 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 { @@ -93830,7 +106301,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi switch { case rsp.StatusCode == 200: - var headers GetWorkloadRightsizingDataResponse200Headers + 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 { @@ -93840,7 +106311,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetWorkloadRightsizingDataResponse400Headers + 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 { @@ -93850,7 +106321,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetWorkloadRightsizingDataResponse401Headers + 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 { @@ -93859,8 +106330,18 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi 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 GetWorkloadRightsizingDataResponse429Headers + 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 { @@ -93877,7 +106358,7 @@ func ParseGetWorkloadRightsizingDataResponse(rsp *http.Response) (*GetWorkloadRi } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetWorkloadRightsizingDataResponse500Headers + 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 { @@ -93912,29 +106393,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) { +// 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 := &GetMonitorEventsV1Response{ + response := &ListSchedulesV1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListMonitorEventsResponse + var dest ListSchedules 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 } @@ -93947,19 +106428,12 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } 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 @@ -93979,7 +106453,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res switch { case rsp.StatusCode == 200: - var headers GetMonitorEventsV1Response200Headers + 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 { @@ -93989,7 +106463,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetMonitorEventsV1Response400Headers + 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 { @@ -93999,7 +106473,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers400 = &headers case rsp.StatusCode == 401: - var headers GetMonitorEventsV1Response401Headers + 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 { @@ -94008,18 +106482,8 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res headers.XRateLimitLimit = &value } response.Headers401 = &headers - case rsp.StatusCode == 403: - 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 { - return nil, err - } - headers.XRateLimitLimit = &value - } - response.Headers403 = &headers - case rsp.StatusCode == 404: - var headers GetMonitorEventsV1Response404Headers + 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 { @@ -94027,9 +106491,9 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } headers.XRateLimitLimit = &value } - response.Headers404 = &headers + response.Headers422 = &headers case rsp.StatusCode == 429: - var headers GetMonitorEventsV1Response429Headers + 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 { @@ -94046,7 +106510,7 @@ func ParseGetMonitorEventsV1Response(rsp *http.Response) (*GetMonitorEventsV1Res } response.Headers429 = &headers case rsp.StatusCode == 500: - var headers GetMonitorEventsV1Response500Headers + 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 { @@ -94081,57 +106545,50 @@ 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) { +// ParseListReportsV2Alpha1Response parses an HTTP response from a ListReportsV2Alpha1WithResponse call +func ParseListReportsV2Alpha1Response(rsp *http.Response) (*ListReportsV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetDisabledMetricsByJobV1Response{ + response := &ListReportsV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ResponseListDisabledMetricsV1 + var dest ListReportsV2Alpha1 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 - 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 + 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.JSON429 = &dest + response.JSON403 = &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 } @@ -94141,17 +106598,17 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet switch { case rsp.StatusCode == 200: - 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 { + var headers ListReportsV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetDisabledMetricsByJobV1Response400Headers + var headers ListReportsV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94159,9 +106616,30 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } 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 GetDisabledMetricsByJobV1Response401Headers + var headers ListReportsV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94169,9 +106647,30 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } 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 GetDisabledMetricsByJobV1Response404Headers + case rsp.StatusCode == 403: + var headers ListReportsV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94179,26 +106678,30 @@ func ParseGetDisabledMetricsByJobV1Response(rsp *http.Response) (*GetDisabledMet } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetDisabledMetricsByJobV1Response429Headers - 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 + 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 == 500: - var headers GetDisabledMetricsByJobV1Response500Headers + var headers ListReportsV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94233,64 +106736,71 @@ 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) { +// ParseCreateReportV2Alpha1Response parses an HTTP response from a CreateReportV2Alpha1WithResponse call +func ParseCreateReportV2Alpha1Response(rsp *http.Response) (*CreateReportV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &PostDisabledMetricsV1Response{ + response := &CreateReportV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: + var dest ReportResponseV2Alpha1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON207 = &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 == 429: - var dest TooManyRequests + 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.JSON429 = &dest + 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 == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94299,8 +106809,32 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } switch { - case rsp.StatusCode == 200: - var headers PostDisabledMetricsV1Response200Headers + case rsp.StatusCode == 201: + var headers CreateReportV2Alpha1Response201Headers + 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: true, 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-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 CreateReportV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94308,9 +106842,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 207: - var headers PostDisabledMetricsV1Response207Headers + 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 CreateReportV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94318,9 +106873,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers207 = &headers - case rsp.StatusCode == 400: - var headers PostDisabledMetricsV1Response400Headers + 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 CreateReportV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94328,9 +106904,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers400 = &headers - case rsp.StatusCode == 401: - var headers PostDisabledMetricsV1Response401Headers + 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 CreateReportV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94338,9 +106935,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers PostDisabledMetricsV1Response404Headers + 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 CreateReportV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94348,16 +106966,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers PostDisabledMetricsV1Response429Headers - 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-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 CreateReportV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94365,9 +106997,30 @@ func ParsePostDisabledMetricsV1Response(rsp *http.Response) (*PostDisabledMetric } headers.XRateLimitLimit = &value } - response.Headers429 = &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.Headers422 = &headers case rsp.StatusCode == 500: - var headers PostDisabledMetricsV1Response500Headers + var headers CreateReportV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94402,57 +107055,60 @@ 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) { +// ParseDeleteReportV2Alpha1Response parses an HTTP response from a DeleteReportV2Alpha1WithResponse call +func ParseDeleteReportV2Alpha1Response(rsp *http.Response) (*DeleteReportV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobsV1Response{ + response := &DeleteReportV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest GetCustomJobsPaginatedResponseV1 - 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 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: + var dest PreconditionFailedV2Alpha1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON412 = &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 } @@ -94461,18 +107117,18 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } switch { - case rsp.StatusCode == 200: - 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 { + case rsp.StatusCode == 204: + var headers DeleteReportV2Alpha1Response204Headers + 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.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers GetCustomPrometheusJobsV1Response400Headers + var headers DeleteReportV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94480,9 +107136,30 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } 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 GetCustomPrometheusJobsV1Response401Headers + var headers DeleteReportV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94490,9 +107167,30 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } 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 GetCustomPrometheusJobsV1Response404Headers + case rsp.StatusCode == 403: + var headers DeleteReportV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94500,26 +107198,71 @@ func ParseGetCustomPrometheusJobsV1Response(rsp *http.Response) (*GetCustomProme } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetCustomPrometheusJobsV1Response429Headers - 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-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 DeleteReportV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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.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 == 412: + var headers DeleteReportV2Alpha1Response412Headers + 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.Headers429 = &headers + response.Headers412 = &headers case rsp.StatusCode == 500: - var headers GetCustomPrometheusJobsV1Response500Headers + var headers DeleteReportV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94554,67 +107297,57 @@ 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) { +// ParseGetReportV2Alpha1Response parses an HTTP response from a GetReportV2Alpha1WithResponse call +func ParseGetReportV2Alpha1Response(rsp *http.Response) (*GetReportV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteCustomPrometheusJobByIdV1Response{ + response := &GetReportV2Alpha1Response{ 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 ReportResponseV2Alpha1 + 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 - 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 } @@ -94623,18 +107356,25 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } switch { - 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 { + case rsp.StatusCode == 200: + var headers GetReportV2Alpha1Response200Headers + 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: true, Type: "string", Format: ""}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.ETag = 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 DeleteCustomPrometheusJobByIdV1Response400Headers + var headers GetReportV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94642,9 +107382,30 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } 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 DeleteCustomPrometheusJobByIdV1Response401Headers + var headers GetReportV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94652,9 +107413,30 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } 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 DeleteCustomPrometheusJobByIdV1Response403Headers + var headers GetReportV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94662,9 +107444,30 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } 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 DeleteCustomPrometheusJobByIdV1Response404Headers + var headers GetReportV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94672,36 +107475,30 @@ func ParseDeleteCustomPrometheusJobByIdV1Response(rsp *http.Response) (*DeleteCu } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 422: - var headers DeleteCustomPrometheusJobByIdV1Response422Headers - 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 DeleteCustomPrometheusJobByIdV1Response429Headers - 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 + response.Headers404 = &headers case rsp.StatusCode == 500: - var headers DeleteCustomPrometheusJobByIdV1Response500Headers + var headers GetReportV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94736,57 +107533,92 @@ 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) { +// ParsePatchReportV2Alpha1Response parses an HTTP response from a PatchReportV2Alpha1WithResponse call +func ParsePatchReportV2Alpha1Response(rsp *http.Response) (*PatchReportV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobByNameV1Response{ + response := &PatchReportV2Alpha1Response{ 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 ReportResponseV2Alpha1 + 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 + 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 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 + 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.JSON429 = &dest + response.JSON409 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 412: + var dest PreconditionFailedV2Alpha1 + 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 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 PreconditionRequiredV2Alpha1 + 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 == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -94796,17 +107628,24 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom switch { case rsp.StatusCode == 200: - 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 { + var headers PatchReportV2Alpha1Response200Headers + 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: true, Type: "string", Format: ""}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.ETag = 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 GetCustomPrometheusJobByNameV1Response400Headers + var headers PatchReportV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94814,9 +107653,30 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } 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 GetCustomPrometheusJobByNameV1Response401Headers + var headers PatchReportV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94824,36 +107684,30 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 404: - var headers GetCustomPrometheusJobByNameV1Response404Headers - 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 GetCustomPrometheusJobByNameV1Response429Headers - 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 GetCustomPrometheusJobByNameV1Response500Headers + response.Headers401 = &headers + case rsp.StatusCode == 403: + var headers PatchReportV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94882,87 +107736,9 @@ func ParseGetCustomPrometheusJobByNameV1Response(rsp *http.Response) (*GetCustom } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// 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 := &CreateCustomPrometheusJobV1Response{ - 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 { - return nil, err - } - response.YAML201 = &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 CreateCustomPrometheusJobV1Response201Headers + response.Headers403 = &headers + case rsp.StatusCode == 404: + var headers PatchReportV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -94970,29 +107746,30 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } headers.XRateLimitLimit = &value } - response.Headers201 = &headers - case rsp.StatusCode == 400: - var headers CreateCustomPrometheusJobV1Response400Headers - 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 CreateCustomPrometheusJobV1Response401Headers - 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.Headers404 = &headers case rsp.StatusCode == 409: - var headers CreateCustomPrometheusJobV1Response409Headers + var headers PatchReportV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95000,9 +107777,40 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } 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 == 412: + var headers PatchReportV2Alpha1Response412Headers + 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 == 415: - var headers CreateCustomPrometheusJobV1Response415Headers + var headers PatchReportV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95010,9 +107818,30 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } 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 CreateCustomPrometheusJobV1Response422Headers + var headers PatchReportV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95020,26 +107849,40 @@ func ParseCreateCustomPrometheusJobV1Response(rsp *http.Response) (*CreateCustom } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers CreateCustomPrometheusJobV1Response429Headers - 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 + 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 == 428: + var headers PatchReportV2Alpha1Response428Headers + 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 == 500: - var headers CreateCustomPrometheusJobV1Response500Headers + var headers PatchReportV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95074,78 +107917,92 @@ 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) { +// ParseUpdateReportV2Alpha1Response parses an HTTP response from a UpdateReportV2Alpha1WithResponse call +func ParseUpdateReportV2Alpha1Response(rsp *http.Response) (*UpdateReportV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomPrometheusJobByIdV1Response{ + response := &UpdateReportV2Alpha1Response{ 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 ReportResponseV2Alpha1 + 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 + 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 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 PreconditionFailedV2Alpha1 + 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 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 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 428: + var dest PreconditionRequiredV2Alpha1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON429 = &dest + response.JSON428 = &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 } @@ -95155,17 +108012,24 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu switch { case rsp.StatusCode == 200: - 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 { + var headers UpdateReportV2Alpha1Response200Headers + 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: true, Type: "string", Format: ""}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.ETag = 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 UpdateCustomPrometheusJobByIdV1Response400Headers + var headers UpdateReportV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95173,9 +108037,30 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } 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 UpdateCustomPrometheusJobByIdV1Response401Headers + var headers UpdateReportV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95183,9 +108068,61 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } 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 UpdateReportV2Alpha1Response403Headers + if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var value int32 + if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", 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 UpdateCustomPrometheusJobByIdV1Response404Headers + var headers UpdateReportV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95193,9 +108130,30 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } 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 == 409: - var headers UpdateCustomPrometheusJobByIdV1Response409Headers + var headers UpdateReportV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95203,9 +108161,40 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } 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 == 412: + var headers UpdateReportV2Alpha1Response412Headers + 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 == 415: - var headers UpdateCustomPrometheusJobByIdV1Response415Headers + var headers UpdateReportV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95213,9 +108202,30 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } 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 UpdateCustomPrometheusJobByIdV1Response422Headers + var headers UpdateReportV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95223,26 +108233,40 @@ func ParseUpdateCustomPrometheusJobByIdV1Response(rsp *http.Response) (*UpdateCu } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers UpdateCustomPrometheusJobByIdV1Response429Headers - 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 + 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 == 428: + var headers UpdateReportV2Alpha1Response428Headers + 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 == 500: - var headers UpdateCustomPrometheusJobByIdV1Response500Headers + var headers UpdateReportV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95277,57 +108301,50 @@ 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) { +// ParseListRunsV2Alpha1Response parses an HTTP response from a ListRunsV2Alpha1WithResponse call +func ParseListRunsV2Alpha1Response(rsp *http.Response) (*ListRunsV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetCustomPrometheusJobEnablementV1Response{ + response := &ListRunsV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest CustomJobsEnablementV1 + var dest ListRunsV2Alpha1 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 - 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 + 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.JSON429 = &dest + response.JSON403 = &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 } @@ -95337,17 +108354,17 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu switch { case rsp.StatusCode == 200: - 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 { + var headers ListRunsV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetCustomPrometheusJobEnablementV1Response400Headers + var headers ListRunsV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95355,9 +108372,30 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } 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 GetCustomPrometheusJobEnablementV1Response401Headers + var headers ListRunsV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95365,9 +108403,30 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } 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 GetCustomPrometheusJobEnablementV1Response404Headers + case rsp.StatusCode == 403: + var headers ListRunsV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95375,26 +108434,30 @@ func ParseGetCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*GetCu } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetCustomPrometheusJobEnablementV1Response429Headers - 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 + 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 == 500: - var headers GetCustomPrometheusJobEnablementV1Response500Headers + var headers ListRunsV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95429,78 +108492,71 @@ 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) { +// ParseCreateRunV2Alpha1Response parses an HTTP response from a CreateRunV2Alpha1WithResponse call +func ParseCreateRunV2Alpha1Response(rsp *http.Response) (*CreateRunV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateCustomPrometheusJobEnablementV1Response{ + response := &CreateRunV2Alpha1Response{ 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 == 202: + var dest RunResponseV2Alpha1 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } - response.JSON200 = &dest + response.JSON202 = &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 Conflict + 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.JSON409 = &dest + response.JSON404 = &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 - 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 } @@ -95509,18 +108565,32 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } switch { - case rsp.StatusCode == 200: - var headers UpdateCustomPrometheusJobEnablementV1Response200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + case rsp.StatusCode == 202: + var headers CreateRunV2Alpha1Response202Headers + 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("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: true, Type: "integer", Format: "int32"}); err != nil { return nil, err } - headers.XRateLimitLimit = &value + headers.RetryAfter = 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.Headers202 = &headers case rsp.StatusCode == 400: - var headers UpdateCustomPrometheusJobEnablementV1Response400Headers + var headers CreateRunV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95528,9 +108598,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } 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 UpdateCustomPrometheusJobEnablementV1Response401Headers + var headers CreateRunV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95538,9 +108629,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } 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 UpdateCustomPrometheusJobEnablementV1Response404Headers + case rsp.StatusCode == 403: + var headers CreateRunV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95548,9 +108660,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 409: - var headers UpdateCustomPrometheusJobEnablementV1Response409Headers + 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 CreateRunV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95558,9 +108691,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } 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.Headers404 = &headers case rsp.StatusCode == 415: - var headers UpdateCustomPrometheusJobEnablementV1Response415Headers + var headers CreateRunV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95568,9 +108722,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } 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 UpdateCustomPrometheusJobEnablementV1Response422Headers + var headers CreateRunV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95578,26 +108753,30 @@ func ParseUpdateCustomPrometheusJobEnablementV1Response(rsp *http.Response) (*Up } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers UpdateCustomPrometheusJobEnablementV1Response429Headers - 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 + 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 == 500: - var headers UpdateCustomPrometheusJobEnablementV1Response500Headers + var headers CreateRunV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95632,57 +108811,57 @@ 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) { +// ParseGetRunV2Alpha1Response parses an HTTP response from a GetRunV2Alpha1WithResponse call +func ParseGetRunV2Alpha1Response(rsp *http.Response) (*GetRunV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIntegrationsV1Response{ + response := &GetRunV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest PaginatedIntegrationsResponseV1 + var dest RunResponseV2Alpha1 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 == 429: - var dest TooManyRequests + 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.JSON429 = &dest + response.JSON404 = &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 } @@ -95692,17 +108871,24 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration switch { case rsp.StatusCode == 200: - var headers GetJiraIntegrationsV1Response200Headers - if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { + var headers GetRunV2Alpha1Response200Headers + 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 + } + 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 GetJiraIntegrationsV1Response400Headers + var headers GetRunV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95710,9 +108896,30 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } 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 GetJiraIntegrationsV1Response401Headers + var headers GetRunV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95720,9 +108927,30 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } 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 GetJiraIntegrationsV1Response403Headers + var headers GetRunV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95730,16 +108958,30 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 429: - var headers GetJiraIntegrationsV1Response429Headers - 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-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 GetRunV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95747,9 +108989,30 @@ func ParseGetJiraIntegrationsV1Response(rsp *http.Response) (*GetJiraIntegration } headers.XRateLimitLimit = &value } - response.Headers429 = &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 == 500: - var headers GetJiraIntegrationsV1Response500Headers + var headers GetRunV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95784,57 +109047,50 @@ 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) { +// ParseListSchedulesV2Alpha1Response parses an HTTP response from a ListSchedulesV2Alpha1WithResponse call +func ParseListSchedulesV2Alpha1Response(rsp *http.Response) (*ListSchedulesV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateJiraIntegrationV1Response{ + response := &ListSchedulesV2Alpha1Response{ 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 ListSchedulesV2Alpha1 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 + 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 - 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 } @@ -95843,18 +109099,18 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } switch { - 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 { + case rsp.StatusCode == 200: + var headers ListSchedulesV2Alpha1Response200Headers + 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.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateJiraIntegrationV1Response400Headers + var headers ListSchedulesV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95862,9 +109118,30 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } 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 CreateJiraIntegrationV1Response401Headers + var headers ListSchedulesV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95872,9 +109149,30 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } 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 CreateJiraIntegrationV1Response403Headers + var headers ListSchedulesV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95882,26 +109180,30 @@ func ParseCreateJiraIntegrationV1Response(rsp *http.Response) (*CreateJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 429: - var headers CreateJiraIntegrationV1Response429Headers - 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 + 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 == 500: - var headers CreateJiraIntegrationV1Response500Headers + var headers ListSchedulesV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -95936,67 +109238,71 @@ 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) { +// ParseCreateScheduleV2Alpha1Response parses an HTTP response from a CreateScheduleV2Alpha1WithResponse call +func ParseCreateScheduleV2Alpha1Response(rsp *http.Response) (*CreateScheduleV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &DeleteJiraIntegrationV1Response{ + response := &CreateScheduleV2Alpha1Response{ 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 ScheduleResponseV2Alpha1 + 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 + 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 == 429: - var dest TooManyRequests + 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.JSON429 = &dest + response.JSON422 = &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 } @@ -96005,18 +109311,25 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } switch { - 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 { + case rsp.StatusCode == 201: + var headers CreateScheduleV2Alpha1Response201Headers + 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.XRateLimitLimit = &value + headers.Location = 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.Headers201 = &headers case rsp.StatusCode == 400: - var headers DeleteJiraIntegrationV1Response400Headers + var headers CreateScheduleV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96024,9 +109337,30 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } 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 DeleteJiraIntegrationV1Response401Headers + var headers CreateScheduleV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96034,29 +109368,30 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers401 = &headers - case rsp.StatusCode == 403: - var headers DeleteJiraIntegrationV1Response403Headers - 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 DeleteJiraIntegrationV1Response404Headers - 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 DeleteJiraIntegrationV1Response409Headers + 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 CreateScheduleV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96064,26 +109399,30 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers409 = &headers - case rsp.StatusCode == 429: - var headers DeleteJiraIntegrationV1Response429Headers - 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 DeleteJiraIntegrationV1Response500Headers + 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 CreateScheduleV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96112,80 +109451,9 @@ func ParseDeleteJiraIntegrationV1Response(rsp *http.Response) (*DeleteJiraIntegr } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// 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 := &GetJiraIntegrationV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - 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.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 GetJiraIntegrationV1Response200Headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers CreateScheduleV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96193,39 +109461,30 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers GetJiraIntegrationV1Response400Headers - 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 GetJiraIntegrationV1Response401Headers - 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 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 { + 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 GetJiraIntegrationV1Response404Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers CreateScheduleV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96233,26 +109492,30 @@ func ParseGetJiraIntegrationV1Response(rsp *http.Response) (*GetJiraIntegrationV } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetJiraIntegrationV1Response429Headers - 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 + 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 == 500: - var headers GetJiraIntegrationV1Response500Headers + var headers CreateScheduleV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96287,64 +109550,53 @@ 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) { +// ParseDeleteScheduleV2Alpha1Response parses an HTTP response from a DeleteScheduleV2Alpha1WithResponse call +func ParseDeleteScheduleV2Alpha1Response(rsp *http.Response) (*DeleteScheduleV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &UpdateJiraIntegrationV1Response{ + response := &DeleteScheduleV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - 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.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 == 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 - 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 } @@ -96353,18 +109605,18 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } switch { - case rsp.StatusCode == 200: - 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 { + case rsp.StatusCode == 204: + var headers DeleteScheduleV2Alpha1Response204Headers + 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.Headers200 = &headers + response.Headers204 = &headers case rsp.StatusCode == 400: - var headers UpdateJiraIntegrationV1Response400Headers + var headers DeleteScheduleV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96372,9 +109624,30 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } 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 UpdateJiraIntegrationV1Response401Headers + var headers DeleteScheduleV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96382,9 +109655,30 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } 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 UpdateJiraIntegrationV1Response403Headers + var headers DeleteScheduleV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96392,9 +109686,30 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } 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 UpdateJiraIntegrationV1Response404Headers + var headers DeleteScheduleV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96402,26 +109717,30 @@ func ParseUpdateJiraIntegrationV1Response(rsp *http.Response) (*UpdateJiraIntegr } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers UpdateJiraIntegrationV1Response429Headers - 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 + 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 == 500: - var headers UpdateJiraIntegrationV1Response500Headers + var headers DeleteScheduleV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96456,57 +109775,57 @@ 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) { +// ParseGetScheduleV2Alpha1Response parses an HTTP response from a GetScheduleV2Alpha1WithResponse call +func ParseGetScheduleV2Alpha1Response(rsp *http.Response) (*GetScheduleV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIssueTypesV1Response{ + response := &GetScheduleV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IssueTypesResponseV1 + var dest ScheduleResponseV2Alpha1 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 == 429: - var dest TooManyRequests + 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.JSON429 = &dest + response.JSON404 = &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 } @@ -96516,17 +109835,17 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R switch { case rsp.StatusCode == 200: - 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 { + var headers GetScheduleV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetJiraIssueTypesV1Response400Headers + var headers GetScheduleV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96534,9 +109853,30 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } 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 GetJiraIssueTypesV1Response401Headers + var headers GetScheduleV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96544,9 +109884,30 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } 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 GetJiraIssueTypesV1Response403Headers + var headers GetScheduleV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96554,16 +109915,30 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } headers.XRateLimitLimit = &value } - response.Headers403 = &headers - case rsp.StatusCode == 429: - var headers GetJiraIssueTypesV1Response429Headers - 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-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 GetScheduleV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96571,9 +109946,30 @@ func ParseGetJiraIssueTypesV1Response(rsp *http.Response) (*GetJiraIssueTypesV1R } headers.XRateLimitLimit = &value } - response.Headers429 = &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 == 500: - var headers GetJiraIssueTypesV1Response500Headers + var headers GetScheduleV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96608,64 +110004,78 @@ 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) { +// ParsePatchScheduleV2Alpha1Response parses an HTTP response from a PatchScheduleV2Alpha1WithResponse call +func ParsePatchScheduleV2Alpha1Response(rsp *http.Response) (*PatchScheduleV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &CreateJiraIssueTypeV1Response{ + response := &PatchScheduleV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 201: - var dest IssueTypeResponseV1 + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest ScheduleResponseV2Alpha1 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 + 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 + 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.JSON429 = &dest + 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 == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -96674,18 +110084,18 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } switch { - 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 { + case rsp.StatusCode == 200: + var headers PatchScheduleV2Alpha1Response200Headers + 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.Headers201 = &headers + response.Headers200 = &headers case rsp.StatusCode == 400: - var headers CreateJiraIssueTypeV1Response400Headers + var headers PatchScheduleV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96693,9 +110103,30 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } 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 CreateJiraIssueTypeV1Response401Headers + var headers PatchScheduleV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96703,9 +110134,30 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } 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 CreateJiraIssueTypeV1Response403Headers + var headers PatchScheduleV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96713,9 +110165,30 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } 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 CreateJiraIssueTypeV1Response404Headers + var headers PatchScheduleV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96723,26 +110196,30 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers CreateJiraIssueTypeV1Response429Headers - 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 CreateJiraIssueTypeV1Response500Headers + 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 PatchScheduleV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96771,76 +110248,9 @@ func ParseCreateJiraIssueTypeV1Response(rsp *http.Response) (*CreateJiraIssueTyp } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// 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 := &DeleteJiraIssueTypeV1Response{ - 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 DeleteJiraIssueTypeV1Response204Headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers PatchScheduleV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96848,39 +110258,30 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers204 = &headers - case rsp.StatusCode == 400: - var headers DeleteJiraIssueTypeV1Response400Headers - 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 DeleteJiraIssueTypeV1Response401Headers - 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 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 { + 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 DeleteJiraIssueTypeV1Response404Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers PatchScheduleV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96888,26 +110289,30 @@ func ParseDeleteJiraIssueTypeV1Response(rsp *http.Response) (*DeleteJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers DeleteJiraIssueTypeV1Response429Headers - 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.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.XRateLimitLimit = &value + headers.XRequestId = &value } - response.Headers429 = &headers + response.Headers422 = &headers case rsp.StatusCode == 500: - var headers DeleteJiraIssueTypeV1Response500Headers + var headers PatchScheduleV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -96942,64 +110347,78 @@ 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) { +// ParseUpdateScheduleV2Alpha1Response parses an HTTP response from a UpdateScheduleV2Alpha1WithResponse call +func ParseUpdateScheduleV2Alpha1Response(rsp *http.Response) (*UpdateScheduleV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &GetJiraIssueTypeV1Response{ + response := &UpdateScheduleV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest IssueTypeResponseV1 + var dest ScheduleResponseV2Alpha1 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 + 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.JSON429 = &dest + 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 == 500: - var dest InternalServerError + var dest InternalServerErrorV2 if err := json.Unmarshal(bodyBytes, &dest); err != nil { return nil, err } @@ -97009,17 +110428,17 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res switch { 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 { + var headers UpdateScheduleV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers GetJiraIssueTypeV1Response400Headers + var headers UpdateScheduleV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97027,9 +110446,30 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } 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 GetJiraIssueTypeV1Response401Headers + var headers UpdateScheduleV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97037,9 +110477,30 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } 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 GetJiraIssueTypeV1Response403Headers + var headers UpdateScheduleV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97047,9 +110508,30 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } 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 GetJiraIssueTypeV1Response404Headers + var headers UpdateScheduleV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97057,26 +110539,30 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers GetJiraIssueTypeV1Response429Headers - 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 GetJiraIssueTypeV1Response500Headers + 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 UpdateScheduleV2Alpha1Response409Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97105,80 +110591,9 @@ func ParseGetJiraIssueTypeV1Response(rsp *http.Response) (*GetJiraIssueTypeV1Res } headers.XRequestId = &value } - response.Headers500 = &headers - } - - return response, nil -} - -// 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 := &UpdateJiraIssueTypeV1Response{ - Body: bodyBytes, - HTTPResponse: rsp, - } - - switch { - 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 - 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 UpdateJiraIssueTypeV1Response200Headers + response.Headers409 = &headers + case rsp.StatusCode == 415: + var headers UpdateScheduleV2Alpha1Response415Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97186,39 +110601,30 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers200 = &headers - case rsp.StatusCode == 400: - var headers UpdateJiraIssueTypeV1Response400Headers - 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 UpdateJiraIssueTypeV1Response401Headers - 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 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 { + 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 UpdateJiraIssueTypeV1Response404Headers + response.Headers415 = &headers + case rsp.StatusCode == 422: + var headers UpdateScheduleV2Alpha1Response422Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97226,26 +110632,30 @@ func ParseUpdateJiraIssueTypeV1Response(rsp *http.Response) (*UpdateJiraIssueTyp } headers.XRateLimitLimit = &value } - response.Headers404 = &headers - case rsp.StatusCode == 429: - var headers UpdateJiraIssueTypeV1Response429Headers - 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 + 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 == 500: - var headers UpdateJiraIssueTypeV1Response500Headers + var headers UpdateScheduleV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97280,57 +110690,50 @@ 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) { +// ParseListReportTemplatesV2Alpha1Response parses an HTTP response from a ListReportTemplatesV2Alpha1WithResponse call +func ParseListReportTemplatesV2Alpha1Response(rsp *http.Response) (*ListReportTemplatesV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListJobsV1Response{ + response := &ListReportTemplatesV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListJobs + var dest ListTemplatesV2Alpha1 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 == 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 + 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.JSON429 = &dest + response.JSON403 = &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 } @@ -97340,17 +110743,17 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { switch { case rsp.StatusCode == 200: - 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 { + var headers ListReportTemplatesV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers ListJobsV1Response400Headers + var headers ListReportTemplatesV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97358,9 +110761,30 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, 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 ListJobsV1Response401Headers + var headers ListReportTemplatesV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97368,9 +110792,30 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, 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 == 422: - var headers ListJobsV1Response422Headers + case rsp.StatusCode == 403: + var headers ListReportTemplatesV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97378,26 +110823,30 @@ func ParseListJobsV1Response(rsp *http.Response) (*ListJobsV1Response, error) { } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers ListJobsV1Response429Headers - 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 + 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 == 500: - var headers ListJobsV1Response500Headers + var headers ListReportTemplatesV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97432,57 +110881,57 @@ 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) { +// ParseGetReportTemplateV2Alpha1Response parses an HTTP response from a GetReportTemplateV2Alpha1WithResponse call +func ParseGetReportTemplateV2Alpha1Response(rsp *http.Response) (*GetReportTemplateV2Alpha1Response, error) { bodyBytes, err := io.ReadAll(rsp.Body) defer func() { _ = rsp.Body.Close() }() if err != nil { return nil, err } - response := &ListSchedulesV1Response{ + response := &GetReportTemplateV2Alpha1Response{ Body: bodyBytes, HTTPResponse: rsp, } switch { case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: - var dest ListSchedules + var dest TemplateV2Alpha1 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 == 422: - var dest UnprocessableEntity + 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.JSON422 = &dest + response.JSON403 = &dest - case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 429: - var dest TooManyRequests + 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.JSON429 = &dest + response.JSON404 = &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 } @@ -97492,17 +110941,17 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, switch { case rsp.StatusCode == 200: - 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 { + var headers GetReportTemplateV2Alpha1Response200Headers + 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.Headers200 = &headers case rsp.StatusCode == 400: - var headers ListSchedulesV1Response400Headers + var headers GetReportTemplateV2Alpha1Response400Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97510,9 +110959,30 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } 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 ListSchedulesV1Response401Headers + var headers GetReportTemplateV2Alpha1Response401Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97520,9 +110990,30 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } 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 == 422: - var headers ListSchedulesV1Response422Headers + case rsp.StatusCode == 403: + var headers GetReportTemplateV2Alpha1Response403Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97530,16 +111021,30 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } headers.XRateLimitLimit = &value } - response.Headers422 = &headers - case rsp.StatusCode == 429: - var headers ListSchedulesV1Response429Headers - 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-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 GetReportTemplateV2Alpha1Response404Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { @@ -97547,9 +111052,30 @@ func ParseListSchedulesV1Response(rsp *http.Response) (*ListSchedulesV1Response, } headers.XRateLimitLimit = &value } - response.Headers429 = &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 == 500: - var headers ListSchedulesV1Response500Headers + var headers GetReportTemplateV2Alpha1Response500Headers if values := rsp.Header.Values("X-RateLimit-Limit"); len(values) > 0 { var value int32 if err := runtime.BindStyledParameterWithOptions("simple", "X-RateLimit-Limit", values[0], &value, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationHeader, Explode: false, Required: false, Type: "integer", Format: "int32"}); err != nil { diff --git a/internal/infra/sysdig/mocks/client_extension.go b/internal/infra/sysdig/mocks/client_extension.go index 2998c35..395719d 100644 --- a/internal/infra/sysdig/mocks/client_extension.go +++ b/internal/infra/sysdig/mocks/client_extension.go @@ -1243,6 +1243,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreatePricingV1W return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePricingV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreatePricingV1WithResponse), varargs...) } +// CreateReportV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateReportV2Alpha1(ctx context.Context, body sysdig.CreateReportV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReportV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReportV2Alpha1 indicates an expected call of CreateReportV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateReportV2Alpha1(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReportV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateReportV2Alpha1), varargs...) +} + +// CreateReportV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateReportV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReportV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReportV2Alpha1WithBody indicates an expected call of CreateReportV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateReportV2Alpha1WithBody(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReportV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateReportV2Alpha1WithBody), varargs...) +} + +// CreateReportV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateReportV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReportV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReportV2Alpha1WithBodyWithResponse indicates an expected call of CreateReportV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateReportV2Alpha1WithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReportV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateReportV2Alpha1WithBodyWithResponse), varargs...) +} + +// CreateReportV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateReportV2Alpha1WithResponse(ctx context.Context, body sysdig.CreateReportV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateReportV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateReportV2Alpha1WithResponse indicates an expected call of CreateReportV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateReportV2Alpha1WithResponse(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateReportV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateReportV2Alpha1WithResponse), varargs...) +} + // CreateRoleV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) CreateRoleV1(ctx context.Context, body sysdig.CreateRoleV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -1323,6 +1403,166 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateRoleV1With return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRoleV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateRoleV1WithResponse), varargs...) } +// CreateRunV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateRunV2Alpha1(ctx context.Context, body sysdig.CreateRunV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRunV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRunV2Alpha1 indicates an expected call of CreateRunV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateRunV2Alpha1(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRunV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateRunV2Alpha1), varargs...) +} + +// CreateRunV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateRunV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRunV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRunV2Alpha1WithBody indicates an expected call of CreateRunV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateRunV2Alpha1WithBody(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRunV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateRunV2Alpha1WithBody), varargs...) +} + +// CreateRunV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateRunV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateRunV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRunV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateRunV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRunV2Alpha1WithBodyWithResponse indicates an expected call of CreateRunV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateRunV2Alpha1WithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRunV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateRunV2Alpha1WithBodyWithResponse), varargs...) +} + +// CreateRunV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateRunV2Alpha1WithResponse(ctx context.Context, body sysdig.CreateRunV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateRunV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateRunV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateRunV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateRunV2Alpha1WithResponse indicates an expected call of CreateRunV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateRunV2Alpha1WithResponse(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRunV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateRunV2Alpha1WithResponse), varargs...) +} + +// CreateScheduleV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateScheduleV2Alpha1(ctx context.Context, body sysdig.CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScheduleV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScheduleV2Alpha1 indicates an expected call of CreateScheduleV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateScheduleV2Alpha1(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScheduleV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateScheduleV2Alpha1), varargs...) +} + +// CreateScheduleV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateScheduleV2Alpha1WithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScheduleV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScheduleV2Alpha1WithBody indicates an expected call of CreateScheduleV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateScheduleV2Alpha1WithBody(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScheduleV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateScheduleV2Alpha1WithBody), varargs...) +} + +// CreateScheduleV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScheduleV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScheduleV2Alpha1WithBodyWithResponse indicates an expected call of CreateScheduleV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateScheduleV2Alpha1WithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScheduleV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateScheduleV2Alpha1WithBodyWithResponse), varargs...) +} + +// CreateScheduleV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) CreateScheduleV2Alpha1WithResponse(ctx context.Context, body sysdig.CreateScheduleV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.CreateScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "CreateScheduleV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.CreateScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// CreateScheduleV2Alpha1WithResponse indicates an expected call of CreateScheduleV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) CreateScheduleV2Alpha1WithResponse(ctx, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateScheduleV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).CreateScheduleV2Alpha1WithResponse), varargs...) +} + // CreateServiceAccountsNotificationSettingsV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) CreateServiceAccountsNotificationSettingsV1(ctx context.Context, teamId sysdig.TeamIdPath, body sysdig.CreateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -2723,6 +2963,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeletePricingByI return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePricingByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeletePricingByIdV1WithResponse), varargs...) } +// DeleteReportV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteReportV2Alpha1(ctx context.Context, reportID sysdig.ReportID, params *sysdig.DeleteReportV2Alpha1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteReportV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReportV2Alpha1 indicates an expected call of DeleteReportV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteReportV2Alpha1(ctx, reportID, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReportV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteReportV2Alpha1), varargs...) +} + +// DeleteReportV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteReportV2Alpha1WithResponse(ctx context.Context, reportID sysdig.ReportID, params *sysdig.DeleteReportV2Alpha1Params, reqEditors ...sysdig.RequestEditorFn) (*sysdig.DeleteReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteReportV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.DeleteReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteReportV2Alpha1WithResponse indicates an expected call of DeleteReportV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteReportV2Alpha1WithResponse(ctx, reportID, params any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteReportV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteReportV2Alpha1WithResponse), varargs...) +} + // DeleteRoleByIdV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) DeleteRoleByIdV1(ctx context.Context, roleId sysdig.RoleIdPath, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -2763,6 +3043,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteRoleByIdV1 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRoleByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteRoleByIdV1WithResponse), varargs...) } +// DeleteScheduleV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteScheduleV2Alpha1(ctx context.Context, scheduleID sysdig.ScheduleID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteScheduleV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScheduleV2Alpha1 indicates an expected call of DeleteScheduleV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteScheduleV2Alpha1(ctx, scheduleID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScheduleV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteScheduleV2Alpha1), varargs...) +} + +// DeleteScheduleV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) DeleteScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.DeleteScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "DeleteScheduleV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.DeleteScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// DeleteScheduleV2Alpha1WithResponse indicates an expected call of DeleteScheduleV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) DeleteScheduleV2Alpha1WithResponse(ctx, scheduleID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteScheduleV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).DeleteScheduleV2Alpha1WithResponse), varargs...) +} + // DeleteSecureVulnerabilityV1BundlesBundleId mocks base method. func (m *MockExtendedClientWithResponsesInterface) DeleteSecureVulnerabilityV1BundlesBundleId(ctx context.Context, bundleId int64, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -6263,6 +6583,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetQueryV1WithRe return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetQueryV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetQueryV1WithResponse), varargs...) } +// GetReportTemplateV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetReportTemplateV2Alpha1(ctx context.Context, templateID sysdig.TemplateID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, templateID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReportTemplateV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReportTemplateV2Alpha1 indicates an expected call of GetReportTemplateV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetReportTemplateV2Alpha1(ctx, templateID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, templateID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReportTemplateV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetReportTemplateV2Alpha1), varargs...) +} + +// GetReportTemplateV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetReportTemplateV2Alpha1WithResponse(ctx context.Context, templateID sysdig.TemplateID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetReportTemplateV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, templateID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReportTemplateV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetReportTemplateV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReportTemplateV2Alpha1WithResponse indicates an expected call of GetReportTemplateV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetReportTemplateV2Alpha1WithResponse(ctx, templateID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, templateID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReportTemplateV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetReportTemplateV2Alpha1WithResponse), varargs...) +} + +// GetReportV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetReportV2Alpha1(ctx context.Context, reportID sysdig.ReportID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReportV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReportV2Alpha1 indicates an expected call of GetReportV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetReportV2Alpha1(ctx, reportID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReportV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetReportV2Alpha1), varargs...) +} + +// GetReportV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetReportV2Alpha1WithResponse(ctx context.Context, reportID sysdig.ReportID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetReportV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetReportV2Alpha1WithResponse indicates an expected call of GetReportV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetReportV2Alpha1WithResponse(ctx, reportID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetReportV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetReportV2Alpha1WithResponse), varargs...) +} + // GetResource mocks base method. func (m *MockExtendedClientWithResponsesInterface) GetResource(ctx context.Context, hash string, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -6463,8 +6863,48 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetRulesV1WithRe return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRulesV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetRulesV1WithResponse), varargs...) } -// GetSBOMV1beta1 mocks base method. -func (m *MockExtendedClientWithResponsesInterface) GetSBOMV1beta1(ctx context.Context, params *sysdig.GetSBOMV1beta1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { +// GetRunV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetRunV2Alpha1(ctx context.Context, runID sysdig.RunID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, runID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRunV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRunV2Alpha1 indicates an expected call of GetRunV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetRunV2Alpha1(ctx, runID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, runID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRunV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetRunV2Alpha1), varargs...) +} + +// GetRunV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetRunV2Alpha1WithResponse(ctx context.Context, runID sysdig.RunID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetRunV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, runID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetRunV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetRunV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetRunV2Alpha1WithResponse indicates an expected call of GetRunV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetRunV2Alpha1WithResponse(ctx, runID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, runID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRunV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetRunV2Alpha1WithResponse), varargs...) +} + +// GetSBOMV1beta1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetSBOMV1beta1(ctx context.Context, params *sysdig.GetSBOMV1beta1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() varargs := []any{ctx, params} for _, a := range reqEditors { @@ -6503,6 +6943,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetSBOMV1beta1Wi return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSBOMV1beta1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetSBOMV1beta1WithResponse), varargs...) } +// GetScheduleV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetScheduleV2Alpha1(ctx context.Context, scheduleID sysdig.ScheduleID, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetScheduleV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetScheduleV2Alpha1 indicates an expected call of GetScheduleV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetScheduleV2Alpha1(ctx, scheduleID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScheduleV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetScheduleV2Alpha1), varargs...) +} + +// GetScheduleV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) GetScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, reqEditors ...sysdig.RequestEditorFn) (*sysdig.GetScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "GetScheduleV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.GetScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// GetScheduleV2Alpha1WithResponse indicates an expected call of GetScheduleV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) GetScheduleV2Alpha1WithResponse(ctx, scheduleID any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetScheduleV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).GetScheduleV2Alpha1WithResponse), varargs...) +} + // GetSchema mocks base method. func (m *MockExtendedClientWithResponsesInterface) GetSchema(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -8463,6 +8943,126 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListJobsV1WithRe return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListJobsV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListJobsV1WithResponse), varargs...) } +// ListReportTemplatesV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListReportTemplatesV2Alpha1(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListReportTemplatesV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReportTemplatesV2Alpha1 indicates an expected call of ListReportTemplatesV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListReportTemplatesV2Alpha1(ctx any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReportTemplatesV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListReportTemplatesV2Alpha1), varargs...) +} + +// ListReportTemplatesV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListReportTemplatesV2Alpha1WithResponse(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListReportTemplatesV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListReportTemplatesV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListReportTemplatesV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReportTemplatesV2Alpha1WithResponse indicates an expected call of ListReportTemplatesV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListReportTemplatesV2Alpha1WithResponse(ctx any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReportTemplatesV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListReportTemplatesV2Alpha1WithResponse), varargs...) +} + +// ListReportsV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListReportsV2Alpha1(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListReportsV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReportsV2Alpha1 indicates an expected call of ListReportsV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListReportsV2Alpha1(ctx any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReportsV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListReportsV2Alpha1), varargs...) +} + +// ListReportsV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListReportsV2Alpha1WithResponse(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListReportsV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListReportsV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListReportsV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListReportsV2Alpha1WithResponse indicates an expected call of ListReportsV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListReportsV2Alpha1WithResponse(ctx any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListReportsV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListReportsV2Alpha1WithResponse), varargs...) +} + +// ListRunsV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListRunsV2Alpha1(ctx context.Context, params *sysdig.ListRunsV2Alpha1Params, 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, "ListRunsV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRunsV2Alpha1 indicates an expected call of ListRunsV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListRunsV2Alpha1(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, "ListRunsV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListRunsV2Alpha1), varargs...) +} + +// ListRunsV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListRunsV2Alpha1WithResponse(ctx context.Context, params *sysdig.ListRunsV2Alpha1Params, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListRunsV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListRunsV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListRunsV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListRunsV2Alpha1WithResponse indicates an expected call of ListRunsV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListRunsV2Alpha1WithResponse(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, "ListRunsV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListRunsV2Alpha1WithResponse), varargs...) +} + // ListSchedulesV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) ListSchedulesV1(ctx context.Context, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -8503,6 +9103,46 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListSchedulesV1W return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListSchedulesV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListSchedulesV1WithResponse), varargs...) } +// ListSchedulesV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListSchedulesV2Alpha1(ctx context.Context, params *sysdig.ListSchedulesV2Alpha1Params, 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, "ListSchedulesV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchedulesV2Alpha1 indicates an expected call of ListSchedulesV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListSchedulesV2Alpha1(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, "ListSchedulesV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListSchedulesV2Alpha1), varargs...) +} + +// ListSchedulesV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) ListSchedulesV2Alpha1WithResponse(ctx context.Context, params *sysdig.ListSchedulesV2Alpha1Params, reqEditors ...sysdig.RequestEditorFn) (*sysdig.ListSchedulesV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, params} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "ListSchedulesV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.ListSchedulesV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListSchedulesV2Alpha1WithResponse indicates an expected call of ListSchedulesV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListSchedulesV2Alpha1WithResponse(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, "ListSchedulesV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListSchedulesV2Alpha1WithResponse), varargs...) +} + // ListZonesV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) ListZonesV1(ctx context.Context, params *sysdig.ListZonesV1Params, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -8583,6 +9223,166 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) ListZonesV2WithR return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListZonesV2WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).ListZonesV2WithResponse), varargs...) } +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, reportID sysdig.ReportID, params *sysdig.PatchReportV2Alpha1Params, body sysdig.PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody indicates an expected call of PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx, reportID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBody), varargs...) +} + +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, reportID sysdig.ReportID, params *sysdig.PatchReportV2Alpha1Params, body sysdig.PatchReportV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.PatchReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.PatchReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse indicates an expected call of PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx, reportID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchReportV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse), varargs...) +} + +// PatchReportV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchReportV2Alpha1WithBody(ctx context.Context, reportID sysdig.ReportID, params *sysdig.PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchReportV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchReportV2Alpha1WithBody indicates an expected call of PatchReportV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchReportV2Alpha1WithBody(ctx, reportID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchReportV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchReportV2Alpha1WithBody), varargs...) +} + +// PatchReportV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID sysdig.ReportID, params *sysdig.PatchReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.PatchReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchReportV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.PatchReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchReportV2Alpha1WithBodyWithResponse indicates an expected call of PatchReportV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchReportV2Alpha1WithBodyWithResponse(ctx, reportID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchReportV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchReportV2Alpha1WithBodyWithResponse), varargs...) +} + +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx context.Context, scheduleID sysdig.ScheduleID, body sysdig.PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody indicates an expected call of PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody(ctx, scheduleID, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBody), varargs...) +} + +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, body sysdig.PatchScheduleV2Alpha1ApplicationMergePatchPlusJSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.PatchScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.PatchScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse indicates an expected call of PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse(ctx, scheduleID, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchScheduleV2Alpha1WithApplicationMergePatchPlusJSONBodyWithResponse), varargs...) +} + +// PatchScheduleV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchScheduleV2Alpha1WithBody(ctx context.Context, scheduleID sysdig.ScheduleID, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchScheduleV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchScheduleV2Alpha1WithBody indicates an expected call of PatchScheduleV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchScheduleV2Alpha1WithBody(ctx, scheduleID, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScheduleV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchScheduleV2Alpha1WithBody), varargs...) +} + +// PatchScheduleV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) PatchScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.PatchScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "PatchScheduleV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.PatchScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// PatchScheduleV2Alpha1WithBodyWithResponse indicates an expected call of PatchScheduleV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) PatchScheduleV2Alpha1WithBodyWithResponse(ctx, scheduleID, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PatchScheduleV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).PatchScheduleV2Alpha1WithBodyWithResponse), varargs...) +} + // PostAcceptedRiskV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) PostAcceptedRiskV1(ctx context.Context, body sysdig.PostAcceptedRiskV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -11423,6 +12223,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdatePricingByI return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePricingByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdatePricingByIdV1WithResponse), varargs...) } +// UpdateReportV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateReportV2Alpha1(ctx context.Context, reportID sysdig.ReportID, params *sysdig.UpdateReportV2Alpha1Params, body sysdig.UpdateReportV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateReportV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReportV2Alpha1 indicates an expected call of UpdateReportV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateReportV2Alpha1(ctx, reportID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReportV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateReportV2Alpha1), varargs...) +} + +// UpdateReportV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateReportV2Alpha1WithBody(ctx context.Context, reportID sysdig.ReportID, params *sysdig.UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateReportV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReportV2Alpha1WithBody indicates an expected call of UpdateReportV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateReportV2Alpha1WithBody(ctx, reportID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReportV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateReportV2Alpha1WithBody), varargs...) +} + +// UpdateReportV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateReportV2Alpha1WithBodyWithResponse(ctx context.Context, reportID sysdig.ReportID, params *sysdig.UpdateReportV2Alpha1Params, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateReportV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReportV2Alpha1WithBodyWithResponse indicates an expected call of UpdateReportV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateReportV2Alpha1WithBodyWithResponse(ctx, reportID, params, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReportV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateReportV2Alpha1WithBodyWithResponse), varargs...) +} + +// UpdateReportV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateReportV2Alpha1WithResponse(ctx context.Context, reportID sysdig.ReportID, params *sysdig.UpdateReportV2Alpha1Params, body sysdig.UpdateReportV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateReportV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, reportID, params, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateReportV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateReportV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateReportV2Alpha1WithResponse indicates an expected call of UpdateReportV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateReportV2Alpha1WithResponse(ctx, reportID, params, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, reportID, params, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateReportV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateReportV2Alpha1WithResponse), varargs...) +} + // UpdateRoleByIdV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) UpdateRoleByIdV1(ctx context.Context, roleId sysdig.RoleIdPath, body sysdig.UpdateRoleByIdV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() @@ -11503,6 +12383,86 @@ func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateRoleByIdV1 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateRoleByIdV1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateRoleByIdV1WithResponse), varargs...) } +// UpdateScheduleV2Alpha1 mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateScheduleV2Alpha1(ctx context.Context, scheduleID sysdig.ScheduleID, body sysdig.UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateScheduleV2Alpha1", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScheduleV2Alpha1 indicates an expected call of UpdateScheduleV2Alpha1. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateScheduleV2Alpha1(ctx, scheduleID, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduleV2Alpha1", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateScheduleV2Alpha1), varargs...) +} + +// UpdateScheduleV2Alpha1WithBody mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateScheduleV2Alpha1WithBody(ctx context.Context, scheduleID sysdig.ScheduleID, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateScheduleV2Alpha1WithBody", varargs...) + ret0, _ := ret[0].(*http.Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScheduleV2Alpha1WithBody indicates an expected call of UpdateScheduleV2Alpha1WithBody. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateScheduleV2Alpha1WithBody(ctx, scheduleID, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduleV2Alpha1WithBody", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateScheduleV2Alpha1WithBody), varargs...) +} + +// UpdateScheduleV2Alpha1WithBodyWithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateScheduleV2Alpha1WithBodyWithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, contentType string, body io.Reader, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, contentType, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateScheduleV2Alpha1WithBodyWithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScheduleV2Alpha1WithBodyWithResponse indicates an expected call of UpdateScheduleV2Alpha1WithBodyWithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateScheduleV2Alpha1WithBodyWithResponse(ctx, scheduleID, contentType, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, contentType, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduleV2Alpha1WithBodyWithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateScheduleV2Alpha1WithBodyWithResponse), varargs...) +} + +// UpdateScheduleV2Alpha1WithResponse mocks base method. +func (m *MockExtendedClientWithResponsesInterface) UpdateScheduleV2Alpha1WithResponse(ctx context.Context, scheduleID sysdig.ScheduleID, body sysdig.UpdateScheduleV2Alpha1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*sysdig.UpdateScheduleV2Alpha1Response, error) { + m.ctrl.T.Helper() + varargs := []any{ctx, scheduleID, body} + for _, a := range reqEditors { + varargs = append(varargs, a) + } + ret := m.ctrl.Call(m, "UpdateScheduleV2Alpha1WithResponse", varargs...) + ret0, _ := ret[0].(*sysdig.UpdateScheduleV2Alpha1Response) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// UpdateScheduleV2Alpha1WithResponse indicates an expected call of UpdateScheduleV2Alpha1WithResponse. +func (mr *MockExtendedClientWithResponsesInterfaceMockRecorder) UpdateScheduleV2Alpha1WithResponse(ctx, scheduleID, body any, reqEditors ...any) *gomock.Call { + mr.mock.ctrl.T.Helper() + varargs := append([]any{ctx, scheduleID, body}, reqEditors...) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateScheduleV2Alpha1WithResponse", reflect.TypeOf((*MockExtendedClientWithResponsesInterface)(nil).UpdateScheduleV2Alpha1WithResponse), varargs...) +} + // UpdateServiceAccountsNotificationSettingsV1 mocks base method. func (m *MockExtendedClientWithResponsesInterface) UpdateServiceAccountsNotificationSettingsV1(ctx context.Context, teamId sysdig.TeamIdPath, body sysdig.UpdateServiceAccountsNotificationSettingsV1JSONRequestBody, reqEditors ...sysdig.RequestEditorFn) (*http.Response, error) { m.ctrl.T.Helper() diff --git a/package.nix b/package.nix index 0193e02..6504114 100644 --- a/package.nix +++ b/package.nix @@ -1,10 +1,10 @@ { buildGoLatestModule, versionCheckHook }: buildGoLatestModule (finalAttrs: { pname = "sysdig-mcp-server"; - version = "3.0.4"; + version = "3.0.5"; src = ./.; # This hash is automatically re-calculated with `just rehash-package-nix`. This is automatically called as well by `just update`. - vendorHash = "sha256-Tg3OLihG0lJRb5u0/+EMy/0LhVEsTn6a60K6y1eMgo0="; + vendorHash = "sha256-hOShCXh5aaaHQpPPzUBYx8BBs3NxYLrL1cZYFvbH4/E="; subPackages = [ "cmd/server"