From ad4f353ab312cbf4a158ce9ecaff74986816beb3 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 30 Nov 2024 17:38:25 +0100 Subject: [PATCH] generate go client from openapi with oapi-codegen --- .cspell.json | 6 +- .mockery.yaml | 9 + Makefile | 3 + go.mod | 43 +- go.sum | 122 + tools/tools.go | 2 + woodpecker-go/LICENSE | 201 - woodpecker-go/client.go | 65 + woodpecker-go/client/client.gen.go | 16119 ++++++++++++++++ .../client/mocks/mock_ClientInterface.go | 8932 +++++++++ woodpecker-go/client_test.go | 120 + woodpecker-go/config.yaml | 8 + woodpecker-go/woodpecker/client.go | 4 + woodpecker-go/woodpecker/interface.go | 3 + 14 files changed, 25433 insertions(+), 204 deletions(-) delete mode 100644 woodpecker-go/LICENSE create mode 100644 woodpecker-go/client.go create mode 100644 woodpecker-go/client/client.gen.go create mode 100644 woodpecker-go/client/mocks/mock_ClientInterface.go create mode 100644 woodpecker-go/client_test.go create mode 100644 woodpecker-go/config.yaml diff --git a/.cspell.json b/.cspell.json index 8774c09bea..76a9073a52 100644 --- a/.cspell.json +++ b/.cspell.json @@ -223,7 +223,11 @@ "yamls", "Yuno", "zerolog", - "zerologger" + "zerologger", + "woodpeckergo", + "httptransport", + "oapi", + "codegen" ], "ignorePaths": [ "*.excalidraw", diff --git a/.mockery.yaml b/.mockery.yaml index cc734bcae2..2ba526a280 100644 --- a/.mockery.yaml +++ b/.mockery.yaml @@ -1,2 +1,11 @@ --- disable-version-string: true +outpkg: 'mocks' +dir: '{{.InterfaceDir}}/mocks' +packages: + go.woodpecker-ci.org/woodpecker/v2/woodpecker-go/client: + config: + resolve-type-alias: false + issue-845-fix: true + interfaces: + ClientInterface: diff --git a/Makefile b/Makefile index dadacae451..56d3ede516 100644 --- a/Makefile +++ b/Makefile @@ -122,6 +122,9 @@ generate-openapi: install-tools ## Run openapi code generation and format it generate-license-header: install-tools addlicense -c "Woodpecker Authors" -ignore "vendor/**" **/*.go +generate-client: + go generate woodpecker-go/client.go + check-xgo: ## Check if xgo is installed @hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ $(GO) install src.techknowlogick.com/xgo@latest; \ diff --git a/go.mod b/go.mod index 5eb7972e7d..7791ea820f 100644 --- a/go.mod +++ b/go.mod @@ -30,7 +30,9 @@ require ( github.com/getkin/kin-openapi v0.127.0 github.com/gin-gonic/gin v1.10.0 github.com/gitsight/go-vcsurl v1.0.1 + github.com/go-openapi/runtime v0.28.0 github.com/go-sql-driver/mysql v1.8.1 + github.com/go-swagger/go-swagger v0.31.0 github.com/golang-jwt/jwt/v5 v5.2.1 github.com/google/go-github/v67 v67.0.0 github.com/google/tink/go v1.7.0 @@ -47,6 +49,8 @@ require ( github.com/moby/term v0.5.0 github.com/muesli/termenv v0.15.3-0.20240912151726-82936c5ea257 github.com/neticdk/go-bitbucket v1.0.0 + github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 + github.com/oapi-codegen/runtime v1.1.1 github.com/oklog/ulid/v2 v2.1.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.20.5 @@ -84,7 +88,12 @@ require ( github.com/42wim/httpsig v1.2.2 // indirect github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect github.com/KyleBanks/depth v1.2.1 // indirect + github.com/Masterminds/goutils v1.1.1 // indirect + github.com/Masterminds/semver/v3 v3.2.1 // indirect + github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/atotto/clipboard v0.1.4 // indirect github.com/aymanbagabas/go-osc52/v2 v2.0.1 // indirect github.com/beorn7/perks v1.0.1 // indirect @@ -108,6 +117,7 @@ require ( github.com/davidmz/go-pageant v1.0.2 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect github.com/docker/docker-credential-helpers v0.8.0 // indirect + github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 // indirect github.com/dunglas/httpsfv v1.0.2 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/emicklei/go-restful/v3 v3.11.0 // indirect @@ -120,10 +130,16 @@ require ( github.com/go-fed/httpsig v1.1.0 // indirect github.com/go-logr/logr v1.4.2 // indirect github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-openapi/analysis v0.23.0 // indirect + github.com/go-openapi/errors v0.22.0 // indirect + github.com/go-openapi/inflect v0.21.0 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect github.com/go-openapi/jsonreference v0.21.0 // indirect + github.com/go-openapi/loads v0.22.0 // indirect github.com/go-openapi/spec v0.21.0 // indirect + github.com/go-openapi/strfmt v0.23.0 // indirect github.com/go-openapi/swag v0.23.0 // indirect + github.com/go-openapi/validate v0.24.0 // indirect github.com/go-playground/locales v0.14.1 // indirect github.com/go-playground/universal-translator v0.18.1 // indirect github.com/go-playground/validator/v10 v10.20.0 // indirect @@ -137,17 +153,23 @@ require ( github.com/google/go-querystring v1.1.0 // indirect github.com/google/gofuzz v1.2.0 // indirect github.com/google/uuid v1.6.0 // indirect + github.com/gorilla/handlers v1.5.2 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-retryablehttp v0.7.7 // indirect github.com/hashicorp/go-version v1.7.0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect github.com/hashicorp/yamux v0.1.1 // indirect + github.com/huandu/xstrings v1.4.0 // indirect github.com/imdario/mergo v0.3.16 // indirect github.com/invopop/yaml v0.3.1 // indirect + github.com/jessevdk/go-flags v1.5.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/julienschmidt/httprouter v1.3.0 // indirect github.com/klauspost/compress v1.17.9 // indirect github.com/klauspost/cpuid/v2 v2.2.8 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect github.com/leodido/go-urn v1.4.0 // indirect github.com/lestrrat-go/blackmagic v1.0.2 // indirect github.com/lestrrat-go/httpcc v1.0.1 // indirect @@ -157,6 +179,7 @@ require ( github.com/lestrrat-go/option v1.0.1 // indirect github.com/libdns/libdns v0.2.2 // indirect github.com/lucasb-eyer/go-colorful v1.2.0 // indirect + github.com/magiconair/properties v1.8.7 // indirect github.com/mailru/easyjson v0.7.7 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect @@ -164,7 +187,9 @@ require ( github.com/mattn/go-runewidth v0.0.16 // indirect github.com/mholt/acmez/v2 v2.0.3 // indirect github.com/miekg/dns v1.1.62 // indirect + github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect + github.com/mitchellh/reflectwalk v1.0.2 // indirect github.com/moby/docker-image-spec v1.3.1 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect @@ -174,11 +199,12 @@ require ( github.com/muesli/cancelreader v0.2.2 // indirect github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/oklog/run v1.0.0 // indirect - github.com/onsi/ginkgo v1.16.4 // indirect + github.com/oklog/ulid v1.3.1 // indirect github.com/onsi/ginkgo/v2 v2.20.2 // indirect github.com/onsi/gomega v1.34.2 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.0.2 // indirect + github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pelletier/go-toml/v2 v2.2.3 // indirect github.com/perimeterx/marshmallow v1.1.5 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect @@ -188,18 +214,30 @@ require ( github.com/rivo/uniseg v0.4.7 // indirect github.com/rogpeppe/go-internal v1.13.1 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect github.com/segmentio/asm v1.2.0 // indirect + github.com/shopspring/decimal v1.3.1 // indirect github.com/sirupsen/logrus v1.9.3 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/speakeasy-api/openapi-overlay v0.9.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect github.com/spf13/pflag v1.0.5 // indirect + github.com/spf13/viper v1.18.2 // indirect github.com/stretchr/objx v0.5.2 // indirect + github.com/subosito/gotenv v1.6.0 // indirect github.com/syndtr/goleveldb v1.0.0 // indirect + github.com/toqueteos/webbrowser v1.2.0 // indirect github.com/twitchyliquid64/golang-asm v0.15.1 // indirect github.com/ugorji/go/codec v1.2.12 // indirect github.com/urfave/cli/v2 v2.3.0 // indirect + github.com/vmware-labs/yaml-jsonpath v0.3.2 // indirect github.com/x448/float16 v0.8.4 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/zeebo/blake3 v0.2.4 // indirect + go.mongodb.org/mongo-driver v1.14.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 // indirect go.opentelemetry.io/otel v1.29.0 // indirect go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect @@ -208,13 +246,14 @@ require ( go.opentelemetry.io/otel/trace v1.29.0 // indirect go.uber.org/zap v1.27.0 // indirect golang.org/x/arch v0.8.0 // indirect + golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect golang.org/x/mod v0.22.0 // indirect golang.org/x/sys v0.27.0 // indirect golang.org/x/time v0.6.0 // indirect golang.org/x/tools v0.27.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 // indirect gopkg.in/inf.v0 v0.9.1 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gotest.tools/v3 v3.4.0 // indirect k8s.io/klog/v2 v2.130.1 // indirect diff --git a/go.sum b/go.sum index 9095124fff..2f110c2c10 100644 --- a/go.sum +++ b/go.sum @@ -27,19 +27,32 @@ github.com/KyleBanks/depth v1.2.1 h1:5h8fQADFrWtarTdtDudMmGsC7GPbOAu6RVB3ffsVFHc github.com/KyleBanks/depth v1.2.1/go.mod h1:jzSb9d0L43HxTQfT+oSA1EEp2q+ne2uh6XgeJcm8brE= github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= +github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI= +github.com/Masterminds/goutils v1.1.1/go.mod h1:8cTjp+g8YejhMuvIA5y2vz3BpJxksy863GQaJW2MFNU= github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/semver/v3 v3.2.1 h1:RN9w6+7QoMeJVGyfmbcgs28Br8cvmnucEXnY0rYXWg0= +github.com/Masterminds/semver/v3 v3.2.1/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Masterminds/sprig/v3 v3.2.3 h1:eL2fZNezLomi0uOLqjQoN6BfsDD+fyLtgbJMAj9n6YA= +github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBaRMhvYXJNkGuM= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= github.com/adrg/xdg v0.5.3 h1:xRnxJXne7+oWDatRhR1JLnvuccuIeCoBu2rtuLqQB78= github.com/adrg/xdg v0.5.3/go.mod h1:nlTsY+NNiCBGCK2tpm09vRqfVzrc2fLmXGpBLF0zlTQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883 h1:bvNMNQO63//z+xNgfBlViaCIJKLlCJ6/fmUseuG0wVQ= github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= +github.com/apapsch/go-jsonmerge/v2 v2.0.0 h1:axGnT1gRIfimI7gJifB699GoE/oq+F2MU7Dml6nw9rQ= +github.com/apapsch/go-jsonmerge/v2 v2.0.0/go.mod h1:lvDnEdqiQrp0O42VQGgmlKpxL1AP2+08jFMw88y4klk= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z4= github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI= github.com/aymanbagabas/go-osc52/v2 v2.0.1 h1:HwpRHbFMcZLEVr42D4p7XBqjyuxQH5SMiErDT4WkJ2k= github.com/aymanbagabas/go-osc52/v2 v2.0.1/go.mod h1:uYgXzlJ7ZpABp8OJ+exZzJJhRNQ2ASbcXHWsFqH8hp8= github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA= @@ -74,8 +87,11 @@ github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0 h1:qko github.com/charmbracelet/x/exp/strings v0.0.0-20240722160745-212f7b056ed0/go.mod h1:pBhA0ybfXv6hDjQUZ7hk1lVxBiUbupdw5R31yPUViVQ= github.com/charmbracelet/x/term v0.2.0 h1:cNB9Ot9q8I711MyZ7myUR5HFWL/lc3OpU8jZ4hwm0x0= github.com/charmbracelet/x/term v0.2.0/go.mod h1:GVxgxAbjUrmpvIINHIQnJJKpMlHiZ4cktEQCN6GWyF0= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= github.com/chzyer/logex v1.2.0/go.mod h1:9+9sk7u7pGNWYMkh0hdiL++6OeibzJccyQU4p4MedaY= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= github.com/chzyer/readline v1.5.0/go.mod h1:x22KAscuvRqlLoK9CsoYsmxoXZMMFVyOl86cAH8qUic= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/chzyer/test v0.0.0-20210722231415-061457976a23/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/cloudwego/base64x v0.1.4 h1:jwCgWpFanWmN8xoIUHa2rtzmkd5J2plF/dnLS6Xd/0Y= github.com/cloudwego/base64x v0.1.4/go.mod h1:0zlkT4Wn5C6NdauXdJRhSKRlJvmclQ1hhJgA0rcu/8w= @@ -91,6 +107,7 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:ma github.com/cpuguy83/go-md2man/v2 v2.0.4 h1:wfIWP927BUkWJb2NmU/kNDYIBTh/ziUX91+lVfRxZq4= github.com/cpuguy83/go-md2man/v2 v2.0.4/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0= @@ -118,6 +135,9 @@ github.com/docker/go-connections v0.5.0 h1:USnMq7hx7gwdVZq1L49hLXaFtUdTADjXGp+uj github.com/docker/go-connections v0.5.0/go.mod h1:ov60Kzw0kKElRwhNs9UlUHAE/F9Fe6GLaXnqyDdmEXc= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dprotaso/go-yit v0.0.0-20191028211022-135eb7262960/go.mod h1:9HQzr9D/0PGwMEbC3d5AB7oi67+h4TsQqItC1GVYG58= +github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936 h1:PRxIJD8XjimM5aTknUK9w6DHLDox2r2M3DI4i2pnd3w= +github.com/dprotaso/go-yit v0.0.0-20220510233725-9ba8df137936/go.mod h1:ttYvX5qlB+mlV1okblJqcSMtR4c52UKxDiX9GRBS8+Q= github.com/drone/envsubst v1.0.3 h1:PCIBwNDYjs50AsLZPYdfhSATKaRg/FJmDc2D6+C2x8g= github.com/drone/envsubst v1.0.3/go.mod h1:N2jZmlMufstn1KEqvbHjw40h1KyTmnVzHcSc9bFiJ2g= github.com/dunglas/httpsfv v1.0.2 h1:iERDp/YAfnojSDJ7PW3dj1AReJz4MrwbECSSE59JWL0= @@ -138,6 +158,8 @@ github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2 github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf h1:NrF81UtW8gG2LBGkXFQFqlfNnvMt9WdB46sfdJY4oqc= github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf/go.mod h1:VzmDKDJVZI3aJmnRI9VjAn9nJ8qPPsN1fqzr9dqInIo= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/8M= @@ -167,14 +189,28 @@ github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-openapi/analysis v0.23.0 h1:aGday7OWupfMs+LbmLZG4k0MYXIANxcuBTYUC03zFCU= +github.com/go-openapi/analysis v0.23.0/go.mod h1:9mz9ZWaSlV8TvjQHLl2mUW2PbZtemkE8yA5v22ohupo= +github.com/go-openapi/errors v0.22.0 h1:c4xY/OLxUBSTiepAg3j/MHuAv5mJhnf53LLMWFB+u/w= +github.com/go-openapi/errors v0.22.0/go.mod h1:J3DmZScxCDufmIMsdOuDHxJbdOGC0xtUynjIx092vXE= +github.com/go-openapi/inflect v0.21.0 h1:FoBjBTQEcbg2cJUWX6uwL9OyIW8eqc9k4KhN4lfbeYk= +github.com/go-openapi/inflect v0.21.0/go.mod h1:INezMuUu7SJQc2AyR3WO0DqqYUJSj8Kb4hBd7WtjlAw= github.com/go-openapi/jsonpointer v0.21.0 h1:YgdVicSA9vH5RiHs9TZW5oyafXZFc6+2Vc1rr/O9oNQ= github.com/go-openapi/jsonpointer v0.21.0/go.mod h1:IUyH9l/+uyhIYQ/PXVA41Rexl+kOkAPDdXEYns6fzUY= github.com/go-openapi/jsonreference v0.21.0 h1:Rs+Y7hSXT83Jacb7kFyjn4ijOuVGSvOdF2+tg1TRrwQ= github.com/go-openapi/jsonreference v0.21.0/go.mod h1:LmZmgsrTkVg9LG4EaHeY8cBDslNPMo06cago5JNLkm4= +github.com/go-openapi/loads v0.22.0 h1:ECPGd4jX1U6NApCGG1We+uEozOAvXvJSF4nnwHZ8Aco= +github.com/go-openapi/loads v0.22.0/go.mod h1:yLsaTCS92mnSAZX5WWoxszLj0u+Ojl+Zs5Stn1oF+rs= +github.com/go-openapi/runtime v0.28.0 h1:gpPPmWSNGo214l6n8hzdXYhPuJcGtziTOgUpvsFWGIQ= +github.com/go-openapi/runtime v0.28.0/go.mod h1:QN7OzcS+XuYmkQLw05akXk0jRH/eZ3kb18+1KwW9gyc= github.com/go-openapi/spec v0.21.0 h1:LTVzPc3p/RzRnkQqLRndbAzjY0d0BCL72A6j3CdL9ZY= github.com/go-openapi/spec v0.21.0/go.mod h1:78u6VdPw81XU44qEWGhtr982gJ5BWg2c0I5XwVMotYk= +github.com/go-openapi/strfmt v0.23.0 h1:nlUS6BCqcnAk0pyhi9Y+kdDVZdZMHfEKQiS4HaMgO/c= +github.com/go-openapi/strfmt v0.23.0/go.mod h1:NrtIpfKtWIygRkKVsxh7XQMDQW5HKQl6S5ik2elW+K4= github.com/go-openapi/swag v0.23.0 h1:vsEVJDUo2hPJ2tu0/Xc+4noaxyEffXNIs3cOULZ+GrE= github.com/go-openapi/swag v0.23.0/go.mod h1:esZ8ITTYEsH1V2trKHjAN8Ai7xHb8RV+YSZ577vPjgQ= +github.com/go-openapi/validate v0.24.0 h1:LdfDKwNbpB6Vn40xhTdNZAnfLECL81w+VX3BumrGD58= +github.com/go-openapi/validate v0.24.0/go.mod h1:iyeX1sEufmv3nPbBdX3ieNviWnOZaJ1+zquzJEf2BAQ= github.com/go-playground/assert/v2 v2.2.0 h1:JvknZsQTYeFEAhQwI4qEt9cyV5ONwRHC+lYKSsYSR8s= github.com/go-playground/assert/v2 v2.2.0/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/oXslEjJA= @@ -187,6 +223,8 @@ github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9 github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-swagger/go-swagger v0.31.0 h1:H8eOYQnY2u7vNKWDNykv2xJP3pBhRG/R+SOCAmKrLlc= +github.com/go-swagger/go-swagger v0.31.0/go.mod h1:WSigRRWEig8zV6t6Sm8Y+EmUjlzA/HoaZJ5edupq7po= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= @@ -217,6 +255,8 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= @@ -242,6 +282,7 @@ github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17 github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20221118152302-e6195bd50e26/go.mod h1:dDKJzRmX4S37WGHujM7tX//fmj1uioxKzKxz3lo4HJo= github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA= github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144= @@ -250,9 +291,12 @@ github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaU github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= github.com/google/tink/go v1.7.0 h1:6Eox8zONGebBFcCBqkVmt60LaWZa6xg1cl/DwAh/J1w= github.com/google/tink/go v1.7.0/go.mod h1:GAUOd+QE3pgj9q8VKIGTCP33c/B7eb4NhxLcgTJZStM= +github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 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/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/gorilla/securecookie v1.1.2 h1:YCIWL56dvtr73r6715mJs5ZvhtnY73hBvEF8kXD8ePA= github.com/gorilla/securecookie v1.1.2/go.mod h1:NfCASbcHqRSY+3a8tlWJwsQap2VX5pwzwo4h3eOamfo= github.com/grpc-ecosystem/grpc-gateway/v2 v2.20.0 h1:bkypFPDjIYGfCYD5mRBvpqxfYX1YCS1PXdKYWi8FsN0= @@ -267,10 +311,17 @@ github.com/hashicorp/go-retryablehttp v0.7.7 h1:C8hUCYzor8PIfXHa4UrZkU4VvK8o9ISH github.com/hashicorp/go-retryablehttp v0.7.7/go.mod h1:pkQpWZeYWskR+D1tR2O5OcBFOxfA7DoAO6xtkuQnHTk= github.com/hashicorp/go-version v1.7.0 h1:5tqGy27NaOTB8yJKUZELlFAS/LTKJkrmONwQKeRZfjY= github.com/hashicorp/go-version v1.7.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/xstrings v1.3.3/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/huandu/xstrings v1.4.0 h1:D17IlohoQq4UcpqD7fDk80P7l+lwAmlFaBHgOipl2FU= +github.com/huandu/xstrings v1.4.0/go.mod h1:y5/lhBue+AyNmUVz9RLU9xbLR0o4KIIExikq4ovT0aE= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/ianlancetaylor/demangle v0.0.0-20220319035150-800ac71e25c2/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= +github.com/imdario/mergo v0.3.11/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/imdario/mergo v0.3.16 h1:wwQJbIsHYGMUyLSPrEq1CT16AhnhNJQ51+4fdHUnCl4= github.com/imdario/mergo v0.3.16/go.mod h1:WBLT9ZmE3lPoWsEzCh9LPo3TiwVN+ZKEjmz+hD27ysY= github.com/invopop/yaml v0.3.1 h1:f0+ZpmhfBSS4MhG+4HYseMdJhoeeopbSKbq5Rpeelso= @@ -316,6 +367,8 @@ github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dv github.com/jackc/puddle v1.3.0/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jellydator/ttlcache/v3 v3.3.0 h1:BdoC9cE81qXfrxeb9eoJi9dWrdhSuwXMAnHTbnBm4Wc= github.com/jellydator/ttlcache/v3 v3.3.0/go.mod h1:bj2/e0l4jRnQdrnSTaGTsh4GSXvMjQcy41i7th0GVGw= +github.com/jessevdk/go-flags v1.5.0 h1:1jKYvbxEjfUl0fmqTCOfonvskHHXMjBySTLW4y9LFvc= +github.com/jessevdk/go-flags v1.5.0/go.mod h1:Fw0T6WPc1dYxT4mKEZRfG5kJhaTDP9pj1c2EWnYs/m4= github.com/jhump/protoreflect v1.15.1 h1:HUMERORf3I3ZdX05WaQ6MIpd/NJ434hTp5YiKgfCL6c= github.com/jhump/protoreflect v1.15.1/go.mod h1:jD/2GMKKE6OqX8qTjhADU1e6DShO+gavG9e0Q693nKo= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= @@ -325,6 +378,7 @@ github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8Hm github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= @@ -376,6 +430,8 @@ github.com/libdns/libdns v0.2.2 h1:O6ws7bAfRPaBsgAYt8MDe2HcNBGC29hkZ9MX2eUSX3s= github.com/libdns/libdns v0.2.2/go.mod h1:4Bj9+5CQiNMVGf87wjX4CY3HQJypUHRuLvlsfsZqLWQ= github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY= github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= @@ -404,10 +460,16 @@ github.com/mholt/acmez/v2 v2.0.3 h1:CgDBlEwg3QBp6s45tPQmFIBrkRIkBT4rW4orMM6p4sw= github.com/mholt/acmez/v2 v2.0.3/go.mod h1:pQ1ysaDeGrIMvJ9dfJMk5kJNkn7L2sb3UhyrX6Q91cw= github.com/miekg/dns v1.1.62 h1:cN8OuEF1/x5Rq6Np+h1epln8OiyPWV+lROx9LxcGgIQ= github.com/miekg/dns v1.1.62/go.mod h1:mvDlcItzm+br7MToIKqkglaGhlFMHJ9DTNNWONWXbNQ= +github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= +github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw= +github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s= github.com/mitchellh/hashstructure/v2 v2.0.2 h1:vGKWl0YJqUNxE8d+h8f6NJLcCJrgbhC4NcD46KavDd4= github.com/mitchellh/hashstructure/v2 v2.0.2/go.mod h1:MG3aRVU/N29oo/V/IhBX8GR/zz4kQkprJgF2EVszyDE= github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/reflectwalk v1.0.0/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= +github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zxSIeXaQ= +github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/moby/docker-image-spec v1.3.1 h1:jMKff3w6PgbfSa69GfNg+zN/XLhfXJGnEx3Nl2EsFP0= github.com/moby/docker-image-spec v1.3.1/go.mod h1:eKmb5VW8vQEh/BAr2yvVNvuiJuY6UIocYsFu/DxxRpo= github.com/moby/moby v27.3.1+incompatible h1:KQbXBjo7PavKpzIl7UkHT31y9lw/e71Uvrqhr4X+zMA= @@ -437,32 +499,46 @@ github.com/neticdk/go-bitbucket v1.0.0/go.mod h1:IrHeWO1CrNi0DlOvfhAA9bGRSeNSUB6 github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oapi-codegen/oapi-codegen/v2 v2.4.1 h1:ykgG34472DWey7TSjd8vIfNykXgjOgYJZoQbKfEeY/Q= +github.com/oapi-codegen/oapi-codegen/v2 v2.4.1/go.mod h1:N5+lY1tiTDV3V1BeHtOxeWXHoPVeApvsvjJqegfoaz8= +github.com/oapi-codegen/runtime v1.1.1 h1:EXLHh0DXIJnWhdRPN2w4MXAzFyE4CskzhNLUmtpMYro= +github.com/oapi-codegen/runtime v1.1.1/go.mod h1:SK9X900oXmPWilYR5/WKPzt3Kqxn/uS/+lbpREv+eCg= github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= +github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/oklog/ulid/v2 v2.1.0 h1:+9lhoxAP56we25tyYETBBY1YLA2SaoLvUFgrP2miPJU= github.com/oklog/ulid/v2 v2.1.0/go.mod h1:rcEKHmBBKfef9DhnvX7y1HZBYxjXb0cP5ExxNsTT1QQ= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.10.2/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc= github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= github.com/onsi/ginkgo/v2 v2.20.2 h1:7NVCeyIWROIAheY21RLS+3j2bb52W0W82tkberYytp4= github.com/onsi/ginkgo/v2 v2.20.2/go.mod h1:K9gyxPIlb+aIvnZ8bd9Ak+YP18w3APlR+5coaZoE2ag= github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= github.com/onsi/gomega v1.34.2 h1:pNCwDkzrsv7MS9kpaQvVb1aVLahQXyJ/Tv5oAZMI3i8= github.com/onsi/gomega v1.34.2/go.mod h1:v1xfxRgk0KIsG+QOdm7p8UosrOzPYRo60fd3B/1Dukc= github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= github.com/opencontainers/image-spec v1.0.2 h1:9yCKha/T5XdGtO0q9Q9a6T5NUCsTn/DrBg0D7ufOcFM= github.com/opencontainers/image-spec v1.0.2/go.mod h1:BtxoFyWECRxE4U/7sNtV5W15zMzWCbyJoFRP3s7yZA0= +github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= +github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pborman/getopt v0.0.0-20170112200414-7148bc3a4c30/go.mod h1:85jBQOZwpVEaDAr341tbn15RS4fCAsIst0qp7i8ex1o= github.com/pelletier/go-toml/v2 v2.2.3 h1:YmeHyLY8mFWbdkNWwpr+qIL2bEqT0o95WSdkNHvL12M= github.com/pelletier/go-toml/v2 v2.2.3/go.mod h1:MfCQTFTvCcUyyvvwm1+G6H/jORL20Xlb6rzQu9GuUkc= github.com/perimeterx/marshmallow v1.1.5 h1:a2LALqQ1BlHM8PZblsDdidgv1mWi1DgC2UmX50IvK2s= github.com/perimeterx/marshmallow v1.1.5/go.mod h1:dsXbUu8CRzfYP5a87xpp0xq9S3u0Vchtcl8we9tYaXw= github.com/pkg/browser v0.0.0-20180916011732-0a3d74bf9ce4/go.mod h1:4OwLy04Bl9Ef3GJJCoec+30X3LQs/0/m4HFRt/2LUSA= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -483,6 +559,7 @@ github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJ github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.13.1 h1:KvO1DLK/DRN07sQ1LQKScxyZJuNnedQ5/wKSR38lUII= github.com/rogpeppe/go-internal v1.13.1/go.mod h1:uMEvuHeurkdAXX61udpOXGD/AzZDWNMNyH2VO9fmH0o= github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= @@ -494,21 +571,39 @@ github.com/rs/zerolog v1.33.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWR github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= +github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8= github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I= github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shopspring/decimal v1.3.1 h1:2Usl1nmF/WZucqkFZhnfFYxxxu8LG21F6nPQBE5gKV8= github.com/shopspring/decimal v1.3.1/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= +github.com/speakeasy-api/openapi-overlay v0.9.0 h1:Wrz6NO02cNlLzx1fB093lBlYxSI54VRhy1aSutx0PQg= +github.com/speakeasy-api/openapi-overlay v0.9.0/go.mod h1:f5FloQrHA7MsxYg9djzMD5h6dxrHjVVByWKh7an8TRc= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= +github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/spkg/bom v0.0.0-20160624110644-59b7046e48ad/go.mod h1:qLr4V1qq6nMqFKkMo8ZTx3f+BZEkzsRUY10Xsm2mwU0= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= @@ -529,6 +624,8 @@ github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= github.com/swaggo/files v1.0.1 h1:J1bVJ4XHZNq0I46UU90611i9/YzdrF7x92oX1ig5IdE= github.com/swaggo/files v1.0.1/go.mod h1:0qXmMNH6sXNf+73t65aKeB+ApmgxdnkQzVTAj2uaMUg= github.com/swaggo/gin-swagger v1.6.0 h1:y8sxvQ3E20/RCyrXeFfg60r6H0Z+SwpTjMYsMm+zy8M= @@ -537,6 +634,8 @@ github.com/swaggo/swag v1.16.4 h1:clWJtd9LStiG3VeijiCfOVODP6VpHtKdQy9ELFG3s1A= github.com/swaggo/swag v1.16.4/go.mod h1:VBsHJRsDvfYvqoiMKnsdwhNV9LEMHgEDZcyVYX0sxPg= github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE= github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ= +github.com/toqueteos/webbrowser v1.2.0 h1:tVP/gpK69Fx+qMJKsLE7TD8LuGWPnEV71wBN9rrstGQ= +github.com/toqueteos/webbrowser v1.2.0/go.mod h1:XWoZq4cyp9WeUeak7w7LXRUQf1F1ATJMir8RTqb4ayM= github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI= github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08= github.com/ugorji/go/codec v1.2.12 h1:9LC83zGrHhuUA9l16C9AHXAqEV/2wBQ4nkvumAE65EE= @@ -547,6 +646,8 @@ github.com/urfave/cli/v2 v2.3.0 h1:qph92Y649prgesehzOrQjdWyxFOp/QVM+6imKHad91M= github.com/urfave/cli/v2 v2.3.0/go.mod h1:LJmUH05zAU44vOAcrfzZQKsZbVcdbOG8rtL3/XcUArI= github.com/urfave/cli/v3 v3.0.0-alpha9.10 h1:whPwidq9cUh18NBqzSR8N3tts8NiQDsTmt9s7AyX85c= github.com/urfave/cli/v3 v3.0.0-alpha9.10/go.mod h1:FnIeEMYu+ko8zP1F9Ypr3xkZMIDqW3DR92yUtY39q1Y= +github.com/vmware-labs/yaml-jsonpath v0.3.2 h1:/5QKeCBGdsInyDCyVNLbXyilb61MXGi9NP674f9Hobk= +github.com/vmware-labs/yaml-jsonpath v0.3.2/go.mod h1:U6whw1z03QyqgWdgXxvVnQ90zN1BWz5V+51Ewf8k+rQ= github.com/x448/float16 v0.8.4 h1:qLwI1I70+NjRFUR3zs1JPUCgaCXSh3SW62uAKT1mSBM= github.com/x448/float16 v0.8.4/go.mod h1:14CWIYCyZA/cWjXOioeEpHeN/83MdbZDRQHoFcYsOfg= github.com/xanzy/go-gitlab v0.114.0 h1:0wQr/KBckwrZPfEMjRqpUz0HmsKKON9UhCYv9KDy19M= @@ -573,6 +674,8 @@ github.com/zeebo/pcg v1.0.1 h1:lyqfGeWiv4ahac6ttHs+I5hwtH/+1mrhlCtVNQM2kHo= github.com/zeebo/pcg v1.0.1/go.mod h1:09F0S9iiKrwn9rlI5yjLkmrug154/YRW6KnnXVDM/l4= github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= github.com/ziutek/mymysql v1.5.4/go.mod h1:LMSpPZ6DbqWFxNCHW77HeMg9I646SAhApZ/wKdgO/C0= +go.mongodb.org/mongo-driver v1.14.0 h1:P98w8egYRjYe3XDjxhYJagTokP/H6HzlsnojRgZRd80= +go.mongodb.org/mongo-driver v1.14.0/go.mod h1:Vzb0Mk/pa7e6cWw85R4F/endUC3u0U9jGcNU603k65c= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0 h1:TT4fX+nBOA/+LUkobKGW1ydGcn+G3vRw9+g5HwCphpk= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.54.0/go.mod h1:L7UH0GbB0p47T4Rri3uHjbpCFYrVrwc1I25QhNPiGK8= go.opentelemetry.io/otel v1.29.0 h1:PdomN/Al4q/lN6iBJEN3AwPvUiHPMlt93c8bqTG5Llw= @@ -622,9 +725,12 @@ golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5y golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= +golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= golang.org/x/crypto v0.6.0/go.mod h1:OFC/31mSvZgRz0V1QTNCzfAI1aIRzbiufJtkMIlEp58= golang.org/x/crypto v0.29.0 h1:L5SG1JTTXupVV3n6sUqMTeWbjAyfPwoda2DLX8J8FrQ= golang.org/x/crypto v0.29.0/go.mod h1:+F4F4N5hv6v38hfeYwTdx20oUvLLc+QfrE9Ax9HtgRg= +golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 h1:2dVuKD2vS7b0QIHQbpyTISPd0LeHDbnYEryqj5Q1ug8= +golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56/go.mod h1:M4RDyNAINzryxdtnbRXRL/OHtkFuWGRjvuhBJpk2IlY= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= @@ -642,9 +748,12 @@ golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLL golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo= @@ -670,6 +779,7 @@ golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -677,18 +787,21 @@ golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -697,6 +810,7 @@ golang.org/x/sys v0.27.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.26.0 h1:WEQa6V3Gja/BhNxg540hBip/kkaYtRg3cxg4oXSw4AU= golang.org/x/term v0.26.0/go.mod h1:Si5m1o57C5nBNQo5z1iq+XDijt21BDBDp2bK0QI8e3E= @@ -706,6 +820,7 @@ golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.20.0 h1:gK/Kv2otX8gz+wn7Rmb3vT96ZwuoxnQlY+HlJVj7Qug= golang.org/x/text v0.20.0/go.mod h1:D4IsuqiFMhST5bX19pQ9ikHC2GsaKyk/oF+pn3ducp4= @@ -734,6 +849,7 @@ golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8T golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/genproto v0.0.0-20231106174013-bbf56f31fb17 h1:wpZ8pe2x1Q3f2KyT5f8oP/fa9rHAKgFPr/HZdNuS+PQ= google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1 h1:hjSy6tcFQZ171igDaN5QHOw2n6vx40juYbC/x67CEhc= google.golang.org/genproto/googleapis/api v0.0.0-20240903143218-8af14fe29dc1/go.mod h1:qpvKtACPCQhAdu3PyQgV4l3LMXZEtft7y8QcarRsp9I= google.golang.org/genproto/googleapis/rpc v0.0.0-20240903143218-8af14fe29dc1 h1:pPJltXNxVzT4pK9yD8vR9X75DaWYYmLGMsEvBfFQZzQ= @@ -746,10 +862,13 @@ google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQ google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.35.2 h1:8Ar7bF+apOIoThw1EdZl0p1oWvMqTHmpA2fRTyZO8io= google.golang.org/protobuf v1.35.2/go.mod h1:9fA7Ob0pmnwhb644+1+CVWFRbNajQ6iRojtC/QF5bRE= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= @@ -757,6 +876,8 @@ gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMy gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc= gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= @@ -767,6 +888,7 @@ gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20191026110619-0b21df46bc1d/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/tools/tools.go b/tools/tools.go index 80d4e2cd83..e5ec0802ac 100644 --- a/tools/tools.go +++ b/tools/tools.go @@ -19,5 +19,7 @@ package main import ( _ "github.com/getkin/kin-openapi/cmd/validate" + _ "github.com/go-swagger/go-swagger/cmd/swagger" + _ "github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen" _ "github.com/swaggo/swag/cmd/swag" ) diff --git a/woodpecker-go/LICENSE b/woodpecker-go/LICENSE deleted file mode 100644 index 85a3fa9a1f..0000000000 --- a/woodpecker-go/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2021 Woodpecker Authors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/woodpecker-go/client.go b/woodpecker-go/client.go new file mode 100644 index 0000000000..bd6992c48d --- /dev/null +++ b/woodpecker-go/client.go @@ -0,0 +1,65 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package woodpeckergo + +import ( + "fmt" + "net/http" + "net/url" + + httptransport "github.com/go-openapi/runtime/client" + + apiClient "go.woodpecker-ci.org/woodpecker/v2/woodpecker-go/client" +) + +//go:generate go run github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen --config=config.yaml ../docs/openapi.json + +type Client struct { + *apiClient.ClientWithResponses + uri string + transport *httptransport.Runtime +} + +// New returns a client at the specified url. +func New(uri string) (*Client, error) { + return NewWithClient(uri, http.DefaultClient) +} + +// NewWithClient returns a client at the specified url. +func NewWithClient(_uri string, httpClient *http.Client) (*Client, error) { + if _uri == "" { + return nil, fmt.Errorf("empty URI not allowed") + } + + uri, err := url.Parse(_uri) + if err != nil { + return nil, err + } + + // Use the full host with scheme for the client + server := fmt.Sprintf("%s://%s", uri.Scheme, uri.Host) + transport := httptransport.NewWithClient(server, uri.Path, []string{"http", "https"}, httpClient) + + client, err := apiClient.NewClientWithResponses(server, apiClient.WithHTTPClient(httpClient)) + if err != nil { + return nil, err + } + + return &Client{ + uri: _uri, + transport: transport, + ClientWithResponses: client, + }, nil +} diff --git a/woodpecker-go/client/client.gen.go b/woodpecker-go/client/client.gen.go new file mode 100644 index 0000000000..97085384ab --- /dev/null +++ b/woodpecker-go/client/client.gen.go @@ -0,0 +1,16119 @@ +// Package client provides primitives to interact with the openapi HTTP API. +// +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.4.1 DO NOT EDIT. +package client + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "strings" + + "github.com/oapi-codegen/runtime" +) + +// Defines values for LogEntryType. +const ( + LogEntryExitCode LogEntryType = 2 + LogEntryMetadata LogEntryType = 3 + LogEntryProgress LogEntryType = 4 + LogEntryStderr LogEntryType = 1 + LogEntryStdout LogEntryType = 0 +) + +// Defines values for RepoVisibility. +const ( + VisibilityInternal RepoVisibility = "internal" + VisibilityPrivate RepoVisibility = "private" + VisibilityPublic RepoVisibility = "public" +) + +// Defines values for SCMKind. +const ( + RepoFossil SCMKind = "fossil" + RepoGit SCMKind = "git" + RepoHg SCMKind = "hg" + RepoPerforce SCMKind = "perforce" +) + +// Defines values for StatusValue. +const ( + StatusBlocked StatusValue = "blocked" + StatusCreated StatusValue = "created" + StatusDeclined StatusValue = "declined" + StatusError StatusValue = "error" + StatusFailure StatusValue = "failure" + StatusKilled StatusValue = "killed" + StatusPending StatusValue = "pending" + StatusRunning StatusValue = "running" + StatusSkipped StatusValue = "skipped" + StatusSuccess StatusValue = "success" +) + +// Defines values for StepType. +const ( + StepTypeCache StepType = "cache" + StepTypeClone StepType = "clone" + StepTypeCommands StepType = "commands" + StepTypePlugin StepType = "plugin" + StepTypeService StepType = "service" +) + +// Defines values for WebhookEvent. +const ( + EventCron WebhookEvent = "cron" + EventDeploy WebhookEvent = "deployment" + EventManual WebhookEvent = "manual" + EventPull WebhookEvent = "pull_request" + EventPullClosed WebhookEvent = "pull_request_closed" + EventPush WebhookEvent = "push" + EventRelease WebhookEvent = "release" + EventTag WebhookEvent = "tag" +) + +// Defines values for ModelApprovalMode. +const ( + RequireApprovalAllEvents ModelApprovalMode = "all_events" + RequireApprovalForks ModelApprovalMode = "forks" + RequireApprovalNone ModelApprovalMode = "none" + RequireApprovalPullRequests ModelApprovalMode = "pull_requests" +) + +// Defines values for ModelForgeType. +const ( + ForgeTypeAddon ModelForgeType = "addon" + ForgeTypeBitbucket ModelForgeType = "bitbucket" + ForgeTypeBitbucketDatacenter ModelForgeType = "bitbucket-dc" + ForgeTypeForgejo ModelForgeType = "forgejo" + ForgeTypeGitea ModelForgeType = "gitea" + ForgeTypeGithub ModelForgeType = "github" + ForgeTypeGitlab ModelForgeType = "gitlab" +) + +// Defines values for TypesPipelineErrorType. +const ( + PipelineErrorTypeBadHabit TypesPipelineErrorType = "bad_habit" + PipelineErrorTypeCompiler TypesPipelineErrorType = "compiler" + PipelineErrorTypeDeprecation TypesPipelineErrorType = "deprecation" + PipelineErrorTypeGeneric TypesPipelineErrorType = "generic" + PipelineErrorTypeLinter TypesPipelineErrorType = "linter" +) + +// Agent defines model for Agent. +type Agent struct { + Backend *string `json:"backend,omitempty"` + Capacity *int `json:"capacity,omitempty"` + Created *int `json:"created,omitempty"` + CustomLabels *map[string]string `json:"custom_labels,omitempty"` + Id *int `json:"id,omitempty"` + LastContact *int `json:"last_contact,omitempty"` + + // LastWork last time the agent did something, this value is used to determine if the agent is still doing work used by the autoscaler + LastWork *int `json:"last_work,omitempty"` + Name *string `json:"name,omitempty"` + NoSchedule *bool `json:"no_schedule,omitempty"` + + // OrgId OrgID is counted as unset if set to -1, this is done to ensure a new(Agent) still enforce the OrgID check by default + OrgId *int `json:"org_id,omitempty"` + OwnerId *int `json:"owner_id,omitempty"` + Platform *string `json:"platform,omitempty"` + Token *string `json:"token,omitempty"` + Updated *int `json:"updated,omitempty"` + Version *string `json:"version,omitempty"` +} + +// Config defines model for Config. +type Config struct { + Data *[]int `json:"data,omitempty"` + Hash *string `json:"hash,omitempty"` + Name *string `json:"name,omitempty"` +} + +// Cron defines model for Cron. +type Cron struct { + Branch *string `json:"branch,omitempty"` + Created *int `json:"created,omitempty"` + CreatorId *int `json:"creator_id,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NextExec *int `json:"next_exec,omitempty"` + RepoId *int `json:"repo_id,omitempty"` + + // Schedule @weekly, 3min, ... + Schedule *string `json:"schedule,omitempty"` +} + +// Feed defines model for Feed. +type Feed struct { + Author *string `json:"author,omitempty"` + AuthorAvatar *string `json:"author_avatar,omitempty"` + AuthorEmail *string `json:"author_email,omitempty"` + Branch *string `json:"branch,omitempty"` + Commit *string `json:"commit,omitempty"` + Created *int `json:"created,omitempty"` + Event *string `json:"event,omitempty"` + Finished *int `json:"finished,omitempty"` + Id *int `json:"id,omitempty"` + Message *string `json:"message,omitempty"` + Number *int `json:"number,omitempty"` + Ref *string `json:"ref,omitempty"` + Refspec *string `json:"refspec,omitempty"` + RepoId *int `json:"repo_id,omitempty"` + Started *int `json:"started,omitempty"` + Status *string `json:"status,omitempty"` + Title *string `json:"title,omitempty"` +} + +// Forge defines model for Forge. +type Forge struct { + AdditionalOptions *map[string]interface{} `json:"additional_options,omitempty"` + Client *string `json:"client,omitempty"` + Id *int `json:"id,omitempty"` + + // OauthHost public url for oauth if different from url + OauthHost *string `json:"oauth_host,omitempty"` + SkipVerify *bool `json:"skip_verify,omitempty"` + Type *ModelForgeType `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} + +// LogEntry defines model for LogEntry. +type LogEntry struct { + Data *[]int `json:"data,omitempty"` + Id *int `json:"id,omitempty"` + Line *int `json:"line,omitempty"` + StepId *int `json:"step_id,omitempty"` + Time *int `json:"time,omitempty"` + Type *LogEntryType `json:"type,omitempty"` +} + +// LogEntryType defines model for LogEntryType. +type LogEntryType int + +// Org defines model for Org. +type Org struct { + ForgeId *int `json:"forge_id,omitempty"` + Id *int `json:"id,omitempty"` + IsUser *bool `json:"is_user,omitempty"` + Name *string `json:"name,omitempty"` +} + +// OrgPerm defines model for OrgPerm. +type OrgPerm struct { + Admin *bool `json:"admin,omitempty"` + Member *bool `json:"member,omitempty"` +} + +// Perm defines model for Perm. +type Perm struct { + Admin *bool `json:"admin,omitempty"` + Created *int `json:"created,omitempty"` + Pull *bool `json:"pull,omitempty"` + Push *bool `json:"push,omitempty"` + Synced *int `json:"synced,omitempty"` + Updated *int `json:"updated,omitempty"` +} + +// Pipeline defines model for Pipeline. +type Pipeline struct { + Author *string `json:"author,omitempty"` + AuthorAvatar *string `json:"author_avatar,omitempty"` + AuthorEmail *string `json:"author_email,omitempty"` + Branch *string `json:"branch,omitempty"` + ChangedFiles *[]string `json:"changed_files,omitempty"` + Commit *string `json:"commit,omitempty"` + Created *int `json:"created,omitempty"` + DeployTask *string `json:"deploy_task,omitempty"` + DeployTo *string `json:"deploy_to,omitempty"` + Errors *[]TypesPipelineError `json:"errors,omitempty"` + Event *WebhookEvent `json:"event,omitempty"` + Finished *int `json:"finished,omitempty"` + ForgeUrl *string `json:"forge_url,omitempty"` + FromFork *bool `json:"from_fork,omitempty"` + Id *int `json:"id,omitempty"` + IsPrerelease *bool `json:"is_prerelease,omitempty"` + Message *string `json:"message,omitempty"` + Number *int `json:"number,omitempty"` + Parent *int `json:"parent,omitempty"` + PrLabels *[]string `json:"pr_labels,omitempty"` + Ref *string `json:"ref,omitempty"` + Refspec *string `json:"refspec,omitempty"` + Reviewed *int `json:"reviewed,omitempty"` + ReviewedBy *string `json:"reviewed_by,omitempty"` + + // Sender uses reported user for webhooks and name of cron for cron pipelines + Sender *string `json:"sender,omitempty"` + Started *int `json:"started,omitempty"` + Status *StatusValue `json:"status,omitempty"` + Timestamp *int `json:"timestamp,omitempty"` + Title *string `json:"title,omitempty"` + Updated *int `json:"updated,omitempty"` + Variables *map[string]string `json:"variables,omitempty"` + Workflows *[]ModelWorkflow `json:"workflows,omitempty"` +} + +// PipelineOptions defines model for PipelineOptions. +type PipelineOptions struct { + Branch *string `json:"branch,omitempty"` + Variables *map[string]string `json:"variables,omitempty"` +} + +// PullRequest defines model for PullRequest. +type PullRequest struct { + Index *string `json:"index,omitempty"` + Title *string `json:"title,omitempty"` +} + +// Registry defines model for Registry. +type Registry struct { + Address *string `json:"address,omitempty"` + Id *int `json:"id,omitempty"` + OrgId *int `json:"org_id,omitempty"` + Password *string `json:"password,omitempty"` + Readonly *bool `json:"readonly,omitempty"` + RepoId *int `json:"repo_id,omitempty"` + Username *string `json:"username,omitempty"` +} + +// Repo defines model for Repo. +type Repo struct { + Active *bool `json:"active,omitempty"` + AllowDeploy *bool `json:"allow_deploy,omitempty"` + AllowPr *bool `json:"allow_pr,omitempty"` + AvatarUrl *string `json:"avatar_url,omitempty"` + CancelPreviousPipelineEvents *[]WebhookEvent `json:"cancel_previous_pipeline_events,omitempty"` + CloneUrl *string `json:"clone_url,omitempty"` + CloneUrlSsh *string `json:"clone_url_ssh,omitempty"` + ConfigFile *string `json:"config_file,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + ForgeId *int `json:"forge_id,omitempty"` + + // ForgeRemoteId ForgeRemoteID is the unique identifier for the repository on the forge. + ForgeRemoteId *string `json:"forge_remote_id,omitempty"` + ForgeUrl *string `json:"forge_url,omitempty"` + FullName *string `json:"full_name,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NetrcTrusted *[]string `json:"netrc_trusted,omitempty"` + OrgId *int `json:"org_id,omitempty"` + Owner *string `json:"owner,omitempty"` + PrEnabled *bool `json:"pr_enabled,omitempty"` + Private *bool `json:"private,omitempty"` + RequireApproval *ModelApprovalMode `json:"require_approval,omitempty"` + Scm *SCMKind `json:"scm,omitempty"` + Timeout *int `json:"timeout,omitempty"` + Trusted *ModelTrustedConfiguration `json:"trusted,omitempty"` + Visibility *RepoVisibility `json:"visibility,omitempty"` +} + +// RepoPatch defines model for RepoPatch. +type RepoPatch struct { + AllowDeploy *bool `json:"allow_deploy,omitempty"` + AllowPr *bool `json:"allow_pr,omitempty"` + CancelPreviousPipelineEvents *[]WebhookEvent `json:"cancel_previous_pipeline_events,omitempty"` + ConfigFile *string `json:"config_file,omitempty"` + + // Gated TODO: deprecated in favor of RequireApproval => Remove in next major release + Gated *bool `json:"gated,omitempty"` + NetrcTrusted *[]string `json:"netrc_trusted,omitempty"` + RequireApproval *string `json:"require_approval,omitempty"` + Timeout *int `json:"timeout,omitempty"` + Trusted *ModelTrustedConfigurationPatch `json:"trusted,omitempty"` + Visibility *string `json:"visibility,omitempty"` +} + +// RepoVisibility defines model for RepoVisibility. +type RepoVisibility string + +// SCMKind defines model for SCMKind. +type SCMKind string + +// Secret defines model for Secret. +type Secret struct { + Events *[]WebhookEvent `json:"events,omitempty"` + Id *int `json:"id,omitempty"` + Images *[]string `json:"images,omitempty"` + Name *string `json:"name,omitempty"` + OrgId *int `json:"org_id,omitempty"` + RepoId *int `json:"repo_id,omitempty"` + Value *string `json:"value,omitempty"` +} + +// StatusValue defines model for StatusValue. +type StatusValue string + +// Step defines model for Step. +type Step struct { + Error *string `json:"error,omitempty"` + ExitCode *int `json:"exit_code,omitempty"` + Finished *int `json:"finished,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Pid *int `json:"pid,omitempty"` + PipelineId *int `json:"pipeline_id,omitempty"` + Ppid *int `json:"ppid,omitempty"` + Started *int `json:"started,omitempty"` + State *StatusValue `json:"state,omitempty"` + Type *StepType `json:"type,omitempty"` + Uuid *string `json:"uuid,omitempty"` +} + +// StepType defines model for StepType. +type StepType string + +// Task defines model for Task. +type Task struct { + AgentId *int `json:"agent_id,omitempty"` + DepStatus *map[string]StatusValue `json:"dep_status,omitempty"` + Dependencies *[]string `json:"dependencies,omitempty"` + Id *string `json:"id,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + RunOn *[]string `json:"run_on,omitempty"` +} + +// User defines model for User. +type User struct { + // Admin Admin indicates the user is a system administrator. + // + // NOTE: If the username is part of the WOODPECKER_ADMIN + // environment variable, this value will be set to true on login. + Admin *bool `json:"admin,omitempty"` + + // AvatarUrl the avatar url for this user. + AvatarUrl *string `json:"avatar_url,omitempty"` + + // Email Email is the email address for this user. + // + // required: true + Email *string `json:"email,omitempty"` + ForgeId *int `json:"forge_id,omitempty"` + + // Id the id for this user. + // + // required: true + Id *int `json:"id,omitempty"` + + // Login Login is the username for this user. + // + // required: true + Login *string `json:"login,omitempty"` + + // OrgId OrgID is the of the user as model.Org. + OrgId *int `json:"org_id,omitempty"` +} + +// WebhookEvent defines model for WebhookEvent. +type WebhookEvent string + +// MetadataAuthor defines model for metadata.Author. +type MetadataAuthor struct { + Avatar *string `json:"avatar,omitempty"` + Email *string `json:"email,omitempty"` + Name *string `json:"name,omitempty"` +} + +// MetadataCommit defines model for metadata.Commit. +type MetadataCommit struct { + Author *MetadataAuthor `json:"author,omitempty"` + Branch *string `json:"branch,omitempty"` + ChangedFiles *[]string `json:"changed_files,omitempty"` + IsPrerelease *bool `json:"is_prerelease,omitempty"` + Labels *[]string `json:"labels,omitempty"` + Message *string `json:"message,omitempty"` + Ref *string `json:"ref,omitempty"` + Refspec *string `json:"refspec,omitempty"` + Sha *string `json:"sha,omitempty"` +} + +// MetadataForge defines model for metadata.Forge. +type MetadataForge struct { + Type *string `json:"type,omitempty"` + Url *string `json:"url,omitempty"` +} + +// MetadataMetadata defines model for metadata.Metadata. +type MetadataMetadata struct { + Curr *MetadataPipeline `json:"curr,omitempty"` + Forge *MetadataForge `json:"forge,omitempty"` + Id *string `json:"id,omitempty"` + Prev *MetadataPipeline `json:"prev,omitempty"` + Repo *MetadataRepo `json:"repo,omitempty"` + Step *MetadataStep `json:"step,omitempty"` + Sys *MetadataSystem `json:"sys,omitempty"` + Workflow *MetadataWorkflow `json:"workflow,omitempty"` +} + +// MetadataPipeline defines model for metadata.Pipeline. +type MetadataPipeline struct { + Commit *MetadataCommit `json:"commit,omitempty"` + Created *int `json:"created,omitempty"` + Cron *string `json:"cron,omitempty"` + Event *string `json:"event,omitempty"` + Finished *int `json:"finished,omitempty"` + ForgeUrl *string `json:"forge_url,omitempty"` + Number *int `json:"number,omitempty"` + Parent *int `json:"parent,omitempty"` + Started *int `json:"started,omitempty"` + Status *string `json:"status,omitempty"` + Target *string `json:"target,omitempty"` + Task *string `json:"task,omitempty"` +} + +// MetadataRepo defines model for metadata.Repo. +type MetadataRepo struct { + CloneUrl *string `json:"clone_url,omitempty"` + CloneUrlSsh *string `json:"clone_url_ssh,omitempty"` + DefaultBranch *string `json:"default_branch,omitempty"` + ForgeUrl *string `json:"forge_url,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Owner *string `json:"owner,omitempty"` + Private *bool `json:"private,omitempty"` + RemoteId *string `json:"remote_id,omitempty"` + Scm *string `json:"scm,omitempty"` + Trusted *MetadataTrustedConfiguration `json:"trusted,omitempty"` +} + +// MetadataStep defines model for metadata.Step. +type MetadataStep struct { + Name *string `json:"name,omitempty"` + Number *int `json:"number,omitempty"` +} + +// MetadataSystem defines model for metadata.System. +type MetadataSystem struct { + Arch *string `json:"arch,omitempty"` + Host *string `json:"host,omitempty"` + Name *string `json:"name,omitempty"` + Url *string `json:"url,omitempty"` + Version *string `json:"version,omitempty"` +} + +// MetadataTrustedConfiguration defines model for metadata.TrustedConfiguration. +type MetadataTrustedConfiguration struct { + Network *bool `json:"network,omitempty"` + Security *bool `json:"security,omitempty"` + Volumes *bool `json:"volumes,omitempty"` +} + +// MetadataWorkflow defines model for metadata.Workflow. +type MetadataWorkflow struct { + Matrix *map[string]string `json:"matrix,omitempty"` + Name *string `json:"name,omitempty"` + Number *int `json:"number,omitempty"` +} + +// ModelApprovalMode defines model for model.ApprovalMode. +type ModelApprovalMode string + +// ModelForgeType defines model for model.ForgeType. +type ModelForgeType string + +// ModelTrustedConfiguration defines model for model.TrustedConfiguration. +type ModelTrustedConfiguration struct { + Network *bool `json:"network,omitempty"` + Security *bool `json:"security,omitempty"` + Volumes *bool `json:"volumes,omitempty"` +} + +// ModelTrustedConfigurationPatch defines model for model.TrustedConfigurationPatch. +type ModelTrustedConfigurationPatch struct { + Network *bool `json:"network,omitempty"` + Security *bool `json:"security,omitempty"` + Volumes *bool `json:"volumes,omitempty"` +} + +// ModelWorkflow defines model for model.Workflow. +type ModelWorkflow struct { + AgentId *int `json:"agent_id,omitempty"` + Children *[]Step `json:"children,omitempty"` + Environ *map[string]string `json:"environ,omitempty"` + Error *string `json:"error,omitempty"` + Finished *int `json:"finished,omitempty"` + Id *int `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Pid *int `json:"pid,omitempty"` + PipelineId *int `json:"pipeline_id,omitempty"` + Platform *string `json:"platform,omitempty"` + Started *int `json:"started,omitempty"` + State *StatusValue `json:"state,omitempty"` +} + +// TypesPipelineError defines model for types.PipelineError. +type TypesPipelineError struct { + Data *interface{} `json:"data,omitempty"` + IsWarning *bool `json:"is_warning,omitempty"` + Message *string `json:"message,omitempty"` + Type *TypesPipelineErrorType `json:"type,omitempty"` +} + +// TypesPipelineErrorType defines model for types.PipelineErrorType. +type TypesPipelineErrorType string + +// GetAgentsParams defines parameters for GetAgents. +type GetAgentsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostAgentsParams defines parameters for PostAgents. +type PostAgentsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteAgentsAgentIdParams defines parameters for DeleteAgentsAgentId. +type DeleteAgentsAgentIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetAgentsAgentIdParams defines parameters for GetAgentsAgentId. +type GetAgentsAgentIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchAgentsAgentIdParams defines parameters for PatchAgentsAgentId. +type PatchAgentsAgentIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetAgentsAgentIdTasksParams defines parameters for GetAgentsAgentIdTasks. +type GetAgentsAgentIdTasksParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofParams defines parameters for GetDebugPprof. +type GetDebugPprofParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofBlockParams defines parameters for GetDebugPprofBlock. +type GetDebugPprofBlockParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofCmdlineParams defines parameters for GetDebugPprofCmdline. +type GetDebugPprofCmdlineParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofGoroutineParams defines parameters for GetDebugPprofGoroutine. +type GetDebugPprofGoroutineParams struct { + // Debug Use debug=2 as a query parameter to export in the same format as an un-recovered panic + Debug *int `form:"debug,omitempty" json:"debug,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofHeapParams defines parameters for GetDebugPprofHeap. +type GetDebugPprofHeapParams struct { + // Gc You can specify gc=heap to run GC before taking the heap sample + Gc *string `form:"gc,omitempty" json:"gc,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofProfileParams defines parameters for GetDebugPprofProfile. +type GetDebugPprofProfileParams struct { + // Seconds You can specify the duration in the seconds GET parameter. + Seconds int `form:"seconds" json:"seconds"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofSymbolParams defines parameters for GetDebugPprofSymbol. +type GetDebugPprofSymbolParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostDebugPprofSymbolParams defines parameters for PostDebugPprofSymbol. +type PostDebugPprofSymbolParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofThreadcreateParams defines parameters for GetDebugPprofThreadcreate. +type GetDebugPprofThreadcreateParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetDebugPprofTraceParams defines parameters for GetDebugPprofTrace. +type GetDebugPprofTraceParams struct { + // Seconds You can specify the duration in the seconds GET parameter. + Seconds int `form:"seconds" json:"seconds"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetForgesParams defines parameters for GetForges. +type GetForgesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization *string `json:"Authorization,omitempty"` +} + +// PostForgesParams defines parameters for PostForges. +type PostForgesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteForgesForgeIdParams defines parameters for DeleteForgesForgeId. +type DeleteForgesForgeIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetForgesForgeIdParams defines parameters for GetForgesForgeId. +type GetForgesForgeIdParams struct { + // Authorization Insert your personal access token + Authorization *string `json:"Authorization,omitempty"` +} + +// PatchForgesForgeIdParams defines parameters for PatchForgesForgeId. +type PatchForgesForgeIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostLogLevelParams defines parameters for PostLogLevel. +type PostLogLevelParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgLookupOrgFullNameParams defines parameters for GetOrgLookupOrgFullName. +type GetOrgLookupOrgFullNameParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsParams defines parameters for GetOrgs. +type GetOrgsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteOrgsIdParams defines parameters for DeleteOrgsId. +type DeleteOrgsIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdParams defines parameters for GetOrgsOrgId. +type GetOrgsOrgIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdAgentsParams defines parameters for GetOrgsOrgIdAgents. +type GetOrgsOrgIdAgentsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostOrgsOrgIdAgentsParams defines parameters for PostOrgsOrgIdAgents. +type PostOrgsOrgIdAgentsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteOrgsOrgIdAgentsAgentIdParams defines parameters for DeleteOrgsOrgIdAgentsAgentId. +type DeleteOrgsOrgIdAgentsAgentIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchOrgsOrgIdAgentsAgentIdParams defines parameters for PatchOrgsOrgIdAgentsAgentId. +type PatchOrgsOrgIdAgentsAgentIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdPermissionsParams defines parameters for GetOrgsOrgIdPermissions. +type GetOrgsOrgIdPermissionsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdRegistriesParams defines parameters for GetOrgsOrgIdRegistries. +type GetOrgsOrgIdRegistriesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostOrgsOrgIdRegistriesParams defines parameters for PostOrgsOrgIdRegistries. +type PostOrgsOrgIdRegistriesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteOrgsOrgIdRegistriesRegistryParams defines parameters for DeleteOrgsOrgIdRegistriesRegistry. +type DeleteOrgsOrgIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdRegistriesRegistryParams defines parameters for GetOrgsOrgIdRegistriesRegistry. +type GetOrgsOrgIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchOrgsOrgIdRegistriesRegistryParams defines parameters for PatchOrgsOrgIdRegistriesRegistry. +type PatchOrgsOrgIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdSecretsParams defines parameters for GetOrgsOrgIdSecrets. +type GetOrgsOrgIdSecretsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostOrgsOrgIdSecretsParams defines parameters for PostOrgsOrgIdSecrets. +type PostOrgsOrgIdSecretsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteOrgsOrgIdSecretsSecretParams defines parameters for DeleteOrgsOrgIdSecretsSecret. +type DeleteOrgsOrgIdSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetOrgsOrgIdSecretsSecretParams defines parameters for GetOrgsOrgIdSecretsSecret. +type GetOrgsOrgIdSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchOrgsOrgIdSecretsSecretParams defines parameters for PatchOrgsOrgIdSecretsSecret. +type PatchOrgsOrgIdSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetPipelinesParams defines parameters for GetPipelines. +type GetPipelinesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetQueueInfoParams defines parameters for GetQueueInfo. +type GetQueueInfoParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetQueueNorunningpipelinesParams defines parameters for GetQueueNorunningpipelines. +type GetQueueNorunningpipelinesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostQueuePauseParams defines parameters for PostQueuePause. +type PostQueuePauseParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostQueueResumeParams defines parameters for PostQueueResume. +type PostQueueResumeParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetRegistriesParams defines parameters for GetRegistries. +type GetRegistriesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostRegistriesParams defines parameters for PostRegistries. +type PostRegistriesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteRegistriesRegistryParams defines parameters for DeleteRegistriesRegistry. +type DeleteRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetRegistriesRegistryParams defines parameters for GetRegistriesRegistry. +type GetRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchRegistriesRegistryParams defines parameters for PatchRegistriesRegistry. +type PatchRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposParams defines parameters for GetRepos. +type GetReposParams struct { + // Active only list active repos + Active *bool `form:"active,omitempty" json:"active,omitempty"` + + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposParams defines parameters for PostRepos. +type PostReposParams struct { + // ForgeRemoteId the id of a repository at the forge + ForgeRemoteId string `form:"forge_remote_id" json:"forge_remote_id"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposLookupRepoFullNameParams defines parameters for GetReposLookupRepoFullName. +type GetReposLookupRepoFullNameParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepairParams defines parameters for PostReposRepair. +type PostReposRepairParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdParams defines parameters for DeleteReposRepoId. +type DeleteReposRepoIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdParams defines parameters for GetReposRepoId. +type GetReposRepoIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchReposRepoIdParams defines parameters for PatchReposRepoId. +type PatchReposRepoIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdBranchesParams defines parameters for GetReposRepoIdBranches. +type GetReposRepoIdBranchesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdChownParams defines parameters for PostReposRepoIdChown. +type PostReposRepoIdChownParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdCronParams defines parameters for GetReposRepoIdCron. +type GetReposRepoIdCronParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdCronParams defines parameters for PostReposRepoIdCron. +type PostReposRepoIdCronParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdCronCronParams defines parameters for DeleteReposRepoIdCronCron. +type DeleteReposRepoIdCronCronParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdCronCronParams defines parameters for GetReposRepoIdCronCron. +type GetReposRepoIdCronCronParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchReposRepoIdCronCronParams defines parameters for PatchReposRepoIdCronCron. +type PatchReposRepoIdCronCronParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdCronCronParams defines parameters for PostReposRepoIdCronCron. +type PostReposRepoIdCronCronParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdLogsNumberParams defines parameters for DeleteReposRepoIdLogsNumber. +type DeleteReposRepoIdLogsNumberParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdLogsNumberStepIDParams defines parameters for GetReposRepoIdLogsNumberStepID. +type GetReposRepoIdLogsNumberStepIDParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdLogsNumberStepIdParams defines parameters for DeleteReposRepoIdLogsNumberStepId. +type DeleteReposRepoIdLogsNumberStepIdParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdMoveParams defines parameters for PostReposRepoIdMove. +type PostReposRepoIdMoveParams struct { + // To the username to move the repository to + To string `form:"to" json:"to"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPermissionsParams defines parameters for GetReposRepoIdPermissions. +type GetReposRepoIdPermissionsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPipelinesParams defines parameters for GetReposRepoIdPipelines. +type GetReposRepoIdPipelinesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Before only return pipelines before this RFC3339 date + Before *string `form:"before,omitempty" json:"before,omitempty"` + + // After only return pipelines after this RFC3339 date + After *string `form:"after,omitempty" json:"after,omitempty"` + + // Branch filter pipelines by branch + Branch *string `form:"branch,omitempty" json:"branch,omitempty"` + + // Event filter pipelines by webhook events (comma separated) + Event *string `form:"event,omitempty" json:"event,omitempty"` + + // Ref filter pipelines by strings contained in ref + Ref *string `form:"ref,omitempty" json:"ref,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdPipelinesParams defines parameters for PostReposRepoIdPipelines. +type PostReposRepoIdPipelinesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdPipelinesNumberParams defines parameters for DeleteReposRepoIdPipelinesNumber. +type DeleteReposRepoIdPipelinesNumberParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPipelinesNumberParams defines parameters for GetReposRepoIdPipelinesNumber. +type GetReposRepoIdPipelinesNumberParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdPipelinesNumberParams defines parameters for PostReposRepoIdPipelinesNumber. +type PostReposRepoIdPipelinesNumberParams struct { + // Event override the event type + Event *string `form:"event,omitempty" json:"event,omitempty"` + + // DeployTo override the target deploy value + DeployTo *string `form:"deploy_to,omitempty" json:"deploy_to,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdPipelinesNumberApproveParams defines parameters for PostReposRepoIdPipelinesNumberApprove. +type PostReposRepoIdPipelinesNumberApproveParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdPipelinesNumberCancelParams defines parameters for PostReposRepoIdPipelinesNumberCancel. +type PostReposRepoIdPipelinesNumberCancelParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPipelinesNumberConfigParams defines parameters for GetReposRepoIdPipelinesNumberConfig. +type GetReposRepoIdPipelinesNumberConfigParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdPipelinesNumberDeclineParams defines parameters for PostReposRepoIdPipelinesNumberDecline. +type PostReposRepoIdPipelinesNumberDeclineParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPipelinesNumberMetadataParams defines parameters for GetReposRepoIdPipelinesNumberMetadata. +type GetReposRepoIdPipelinesNumberMetadataParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdPullRequestsParams defines parameters for GetReposRepoIdPullRequests. +type GetReposRepoIdPullRequestsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdRegistriesParams defines parameters for GetReposRepoIdRegistries. +type GetReposRepoIdRegistriesParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdRegistriesParams defines parameters for PostReposRepoIdRegistries. +type PostReposRepoIdRegistriesParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdRegistriesRegistryParams defines parameters for DeleteReposRepoIdRegistriesRegistry. +type DeleteReposRepoIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdRegistriesRegistryParams defines parameters for GetReposRepoIdRegistriesRegistry. +type GetReposRepoIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchReposRepoIdRegistriesRegistryParams defines parameters for PatchReposRepoIdRegistriesRegistry. +type PatchReposRepoIdRegistriesRegistryParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdRepairParams defines parameters for PostReposRepoIdRepair. +type PostReposRepoIdRepairParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdSecretsParams defines parameters for GetReposRepoIdSecrets. +type GetReposRepoIdSecretsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostReposRepoIdSecretsParams defines parameters for PostReposRepoIdSecrets. +type PostReposRepoIdSecretsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteReposRepoIdSecretsSecretNameParams defines parameters for DeleteReposRepoIdSecretsSecretName. +type DeleteReposRepoIdSecretsSecretNameParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetReposRepoIdSecretsSecretNameParams defines parameters for GetReposRepoIdSecretsSecretName. +type GetReposRepoIdSecretsSecretNameParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchReposRepoIdSecretsSecretNameParams defines parameters for PatchReposRepoIdSecretsSecretName. +type PatchReposRepoIdSecretsSecretNameParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetSecretsParams defines parameters for GetSecrets. +type GetSecretsParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostSecretsParams defines parameters for PostSecrets. +type PostSecretsParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteSecretsSecretParams defines parameters for DeleteSecretsSecret. +type DeleteSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetSecretsSecretParams defines parameters for GetSecretsSecret. +type GetSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchSecretsSecretParams defines parameters for PatchSecretsSecret. +type PatchSecretsSecretParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetSignaturePublicKeyParams defines parameters for GetSignaturePublicKey. +type GetSignaturePublicKeyParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetUserParams defines parameters for GetUser. +type GetUserParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetUserFeedParams defines parameters for GetUserFeed. +type GetUserFeedParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetUserReposParams defines parameters for GetUserRepos. +type GetUserReposParams struct { + // All query all repos, including inactive ones + All *bool `form:"all,omitempty" json:"all,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteUserTokenParams defines parameters for DeleteUserToken. +type DeleteUserTokenParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostUserTokenParams defines parameters for PostUserToken. +type PostUserTokenParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetUsersParams defines parameters for GetUsers. +type GetUsersParams struct { + // Page for response pagination, page offset number + Page *int `form:"page,omitempty" json:"page,omitempty"` + + // PerPage for response pagination, max items per page + PerPage *int `form:"perPage,omitempty" json:"perPage,omitempty"` + + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PostUsersParams defines parameters for PostUsers. +type PostUsersParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// DeleteUsersLoginParams defines parameters for DeleteUsersLogin. +type DeleteUsersLoginParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// GetUsersLoginParams defines parameters for GetUsersLogin. +type GetUsersLoginParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchUsersLoginParams defines parameters for PatchUsersLogin. +type PatchUsersLoginParams struct { + // Authorization Insert your personal access token + Authorization string `json:"Authorization"` +} + +// PatchUsersLoginJSONRequestBody defines body for PatchUsersLogin for application/json ContentType. +type PatchUsersLoginJSONRequestBody = User + +// RequestEditorFn is the function signature for the RequestEditor callback function +type RequestEditorFn func(ctx context.Context, req *http.Request) error + +// Doer performs HTTP requests. +// +// The standard http.Client implements this interface. +type HttpRequestDoer interface { + Do(req *http.Request) (*http.Response, error) +} + +// Client which conforms to the OpenAPI3 specification for this service. +type Client struct { + // The endpoint of the server conforming to this interface, with scheme, + // https://api.deepmap.com for example. This can contain a path relative + // to the server, such as https://api.deepmap.com/dev-test, and all the + // paths in the swagger spec will be appended to the server. + Server string + + // Doer for performing requests, typically a *http.Client with any + // customized settings, such as certificate chains. + Client HttpRequestDoer + + // A list of callbacks for modifying requests which are generated before sending over + // the network. + RequestEditors []RequestEditorFn +} + +// ClientOption allows setting custom parameters during construction +type ClientOption func(*Client) error + +// Creates a new Client, with reasonable defaults +func NewClient(server string, opts ...ClientOption) (*Client, error) { + // create a client with sane default values + client := Client{ + Server: server, + } + // mutate client and add all optional params + for _, o := range opts { + if err := o(&client); err != nil { + return nil, err + } + } + // ensure the server URL always has a trailing slash + if !strings.HasSuffix(client.Server, "/") { + client.Server += "/" + } + // create httpClient, if not already present + if client.Client == nil { + client.Client = &http.Client{} + } + return &client, nil +} + +// WithHTTPClient allows overriding the default Doer, which is +// automatically created using http.Client. This is useful for tests. +func WithHTTPClient(doer HttpRequestDoer) ClientOption { + return func(c *Client) error { + c.Client = doer + return nil + } +} + +// WithRequestEditorFn allows setting up a callback function, which will be +// called right before sending the request. This can be used to mutate the request. +func WithRequestEditorFn(fn RequestEditorFn) ClientOption { + return func(c *Client) error { + c.RequestEditors = append(c.RequestEditors, fn) + return nil + } +} + +// The interface specification for the client above. +type ClientInterface interface { + // GetAgents request + GetAgents(ctx context.Context, params *GetAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostAgentsWithBody request with any body + PostAgentsWithBody(ctx context.Context, params *PostAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAgentsAgentId request + DeleteAgentsAgentId(ctx context.Context, agentId int, params *DeleteAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentsAgentId request + GetAgentsAgentId(ctx context.Context, agentId int, params *GetAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchAgentsAgentIdWithBody request with any body + PatchAgentsAgentIdWithBody(ctx context.Context, agentId int, params *PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAgentsAgentIdTasks request + GetAgentsAgentIdTasks(ctx context.Context, agentId int, params *GetAgentsAgentIdTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBadgesRepoIdCcXml request + GetBadgesRepoIdCcXml(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBadgesRepoIdStatusSvg request + GetBadgesRepoIdStatusSvg(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprof request + GetDebugPprof(ctx context.Context, params *GetDebugPprofParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofBlock request + GetDebugPprofBlock(ctx context.Context, params *GetDebugPprofBlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofCmdline request + GetDebugPprofCmdline(ctx context.Context, params *GetDebugPprofCmdlineParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofGoroutine request + GetDebugPprofGoroutine(ctx context.Context, params *GetDebugPprofGoroutineParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofHeap request + GetDebugPprofHeap(ctx context.Context, params *GetDebugPprofHeapParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofProfile request + GetDebugPprofProfile(ctx context.Context, params *GetDebugPprofProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofSymbol request + GetDebugPprofSymbol(ctx context.Context, params *GetDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostDebugPprofSymbol request + PostDebugPprofSymbol(ctx context.Context, params *PostDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofThreadcreate request + GetDebugPprofThreadcreate(ctx context.Context, params *GetDebugPprofThreadcreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDebugPprofTrace request + GetDebugPprofTrace(ctx context.Context, params *GetDebugPprofTraceParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetForges request + GetForges(ctx context.Context, params *GetForgesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostForgesWithBody request with any body + PostForgesWithBody(ctx context.Context, params *PostForgesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteForgesForgeId request + DeleteForgesForgeId(ctx context.Context, forgeId int, params *DeleteForgesForgeIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetForgesForgeId request + GetForgesForgeId(ctx context.Context, forgeId int, params *GetForgesForgeIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchForgesForgeIdWithBody request with any body + PatchForgesForgeIdWithBody(ctx context.Context, forgeId int, params *PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetHealthz request + GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostHookWithBody request with any body + PostHookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetLogLevel request + GetLogLevel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostLogLevelWithBody request with any body + PostLogLevelWithBody(ctx context.Context, params *PostLogLevelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgLookupOrgFullName request + GetOrgLookupOrgFullName(ctx context.Context, orgFullName string, params *GetOrgLookupOrgFullNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgs request + GetOrgs(ctx context.Context, params *GetOrgsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOrgsId request + DeleteOrgsId(ctx context.Context, id string, params *DeleteOrgsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgId request + GetOrgsOrgId(ctx context.Context, orgId string, params *GetOrgsOrgIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdAgents request + GetOrgsOrgIdAgents(ctx context.Context, orgId int, params *GetOrgsOrgIdAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostOrgsOrgIdAgentsWithBody request with any body + PostOrgsOrgIdAgentsWithBody(ctx context.Context, orgId int, params *PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOrgsOrgIdAgentsAgentId request + DeleteOrgsOrgIdAgentsAgentId(ctx context.Context, orgId int, agentId int, params *DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchOrgsOrgIdAgentsAgentIdWithBody request with any body + PatchOrgsOrgIdAgentsAgentIdWithBody(ctx context.Context, orgId int, agentId int, params *PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdPermissions request + GetOrgsOrgIdPermissions(ctx context.Context, orgId string, params *GetOrgsOrgIdPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdRegistries request + GetOrgsOrgIdRegistries(ctx context.Context, orgId string, params *GetOrgsOrgIdRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostOrgsOrgIdRegistriesWithBody request with any body + PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOrgsOrgIdRegistriesRegistry request + DeleteOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdRegistriesRegistry request + GetOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchOrgsOrgIdRegistriesRegistryWithBody request with any body + PatchOrgsOrgIdRegistriesRegistryWithBody(ctx context.Context, orgId string, registry string, params *PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdSecrets request + GetOrgsOrgIdSecrets(ctx context.Context, orgId string, params *GetOrgsOrgIdSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostOrgsOrgIdSecretsWithBody request with any body + PostOrgsOrgIdSecretsWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteOrgsOrgIdSecretsSecret request + DeleteOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetOrgsOrgIdSecretsSecret request + GetOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *GetOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchOrgsOrgIdSecretsSecretWithBody request with any body + PatchOrgsOrgIdSecretsSecretWithBody(ctx context.Context, orgId string, secret string, params *PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPipelines request + GetPipelines(ctx context.Context, params *GetPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetQueueInfo request + GetQueueInfo(ctx context.Context, params *GetQueueInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetQueueNorunningpipelines request + GetQueueNorunningpipelines(ctx context.Context, params *GetQueueNorunningpipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostQueuePause request + PostQueuePause(ctx context.Context, params *PostQueuePauseParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostQueueResume request + PostQueueResume(ctx context.Context, params *PostQueueResumeParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRegistries request + GetRegistries(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostRegistriesWithBody request with any body + PostRegistriesWithBody(ctx context.Context, params *PostRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteRegistriesRegistry request + DeleteRegistriesRegistry(ctx context.Context, registry string, params *DeleteRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRegistriesRegistry request + GetRegistriesRegistry(ctx context.Context, registry string, params *GetRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchRegistriesRegistryWithBody request with any body + PatchRegistriesRegistryWithBody(ctx context.Context, registry string, params *PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRepos request + GetRepos(ctx context.Context, params *GetReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostRepos request + PostRepos(ctx context.Context, params *PostReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposLookupRepoFullName request + GetReposLookupRepoFullName(ctx context.Context, repoFullName string, params *GetReposLookupRepoFullNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepair request + PostReposRepair(ctx context.Context, params *PostReposRepairParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoId request + DeleteReposRepoId(ctx context.Context, repoId int, params *DeleteReposRepoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoId request + GetReposRepoId(ctx context.Context, repoId int, params *GetReposRepoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReposRepoIdWithBody request with any body + PatchReposRepoIdWithBody(ctx context.Context, repoId int, params *PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdBranches request + GetReposRepoIdBranches(ctx context.Context, repoId int, params *GetReposRepoIdBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdChown request + PostReposRepoIdChown(ctx context.Context, repoId int, params *PostReposRepoIdChownParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdCron request + GetReposRepoIdCron(ctx context.Context, repoId int, params *GetReposRepoIdCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdCronWithBody request with any body + PostReposRepoIdCronWithBody(ctx context.Context, repoId int, params *PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdCronCron request + DeleteReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *DeleteReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdCronCron request + GetReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *GetReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReposRepoIdCronCronWithBody request with any body + PatchReposRepoIdCronCronWithBody(ctx context.Context, repoId int, cron string, params *PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdCronCron request + PostReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *PostReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdLogsNumber request + DeleteReposRepoIdLogsNumber(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdLogsNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdLogsNumberStepID request + GetReposRepoIdLogsNumberStepID(ctx context.Context, repoId int, number int, stepID int, params *GetReposRepoIdLogsNumberStepIDParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdLogsNumberStepId request + DeleteReposRepoIdLogsNumberStepId(ctx context.Context, repoId int, number int, stepId int, params *DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdMove request + PostReposRepoIdMove(ctx context.Context, repoId int, params *PostReposRepoIdMoveParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPermissions request + GetReposRepoIdPermissions(ctx context.Context, repoId int, params *GetReposRepoIdPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPipelines request + GetReposRepoIdPipelines(ctx context.Context, repoId int, params *GetReposRepoIdPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdPipelinesWithBody request with any body + PostReposRepoIdPipelinesWithBody(ctx context.Context, repoId int, params *PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdPipelinesNumber request + DeleteReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPipelinesNumber request + GetReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdPipelinesNumber request + PostReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdPipelinesNumberApprove request + PostReposRepoIdPipelinesNumberApprove(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdPipelinesNumberCancel request + PostReposRepoIdPipelinesNumberCancel(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPipelinesNumberConfig request + GetReposRepoIdPipelinesNumberConfig(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdPipelinesNumberDecline request + PostReposRepoIdPipelinesNumberDecline(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPipelinesNumberMetadata request + GetReposRepoIdPipelinesNumberMetadata(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdPullRequests request + GetReposRepoIdPullRequests(ctx context.Context, repoId int, params *GetReposRepoIdPullRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdRegistries request + GetReposRepoIdRegistries(ctx context.Context, repoId int, params *GetReposRepoIdRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdRegistriesWithBody request with any body + PostReposRepoIdRegistriesWithBody(ctx context.Context, repoId int, params *PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdRegistriesRegistry request + DeleteReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdRegistriesRegistry request + GetReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *GetReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReposRepoIdRegistriesRegistryWithBody request with any body + PatchReposRepoIdRegistriesRegistryWithBody(ctx context.Context, repoId int, registry string, params *PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdRepair request + PostReposRepoIdRepair(ctx context.Context, repoId int, params *PostReposRepoIdRepairParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdSecrets request + GetReposRepoIdSecrets(ctx context.Context, repoId int, params *GetReposRepoIdSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostReposRepoIdSecretsWithBody request with any body + PostReposRepoIdSecretsWithBody(ctx context.Context, repoId int, params *PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteReposRepoIdSecretsSecretName request + DeleteReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetReposRepoIdSecretsSecretName request + GetReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *GetReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchReposRepoIdSecretsSecretNameWithBody request with any body + PatchReposRepoIdSecretsSecretNameWithBody(ctx context.Context, repoId int, secretName string, params *PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSecrets request + GetSecrets(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostSecretsWithBody request with any body + PostSecretsWithBody(ctx context.Context, params *PostSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSecretsSecret request + DeleteSecretsSecret(ctx context.Context, secret string, params *DeleteSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSecretsSecret request + GetSecretsSecret(ctx context.Context, secret string, params *GetSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchSecretsSecretWithBody request with any body + PatchSecretsSecretWithBody(ctx context.Context, secret string, params *PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSignaturePublicKey request + GetSignaturePublicKey(ctx context.Context, params *GetSignaturePublicKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetStreamEvents request + GetStreamEvents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetStreamLogsRepoIdPipelineStepID request + GetStreamLogsRepoIdPipelineStepID(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUser request + GetUser(ctx context.Context, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserFeed request + GetUserFeed(ctx context.Context, params *GetUserFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUserRepos request + GetUserRepos(ctx context.Context, params *GetUserReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUserToken request + DeleteUserToken(ctx context.Context, params *DeleteUserTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostUserToken request + PostUserToken(ctx context.Context, params *PostUserTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsers request + GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PostUsersWithBody request with any body + PostUsersWithBody(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUsersLogin request + DeleteUsersLogin(ctx context.Context, login string, params *DeleteUsersLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUsersLogin request + GetUsersLogin(ctx context.Context, login string, params *GetUsersLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // PatchUsersLoginWithBody request with any body + PatchUsersLoginWithBody(ctx context.Context, login string, params *PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + PatchUsersLogin(ctx context.Context, login string, params *PatchUsersLoginParams, body PatchUsersLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetVersion request + GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) +} + +func (c *Client) GetAgents(ctx context.Context, params *GetAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentsRequest(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) +} + +func (c *Client) PostAgentsWithBody(ctx context.Context, params *PostAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostAgentsRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAgentsAgentId(ctx context.Context, agentId int, params *DeleteAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAgentsAgentIdRequest(c.Server, agentId, 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) +} + +func (c *Client) GetAgentsAgentId(ctx context.Context, agentId int, params *GetAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentsAgentIdRequest(c.Server, agentId, 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) +} + +func (c *Client) PatchAgentsAgentIdWithBody(ctx context.Context, agentId int, params *PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchAgentsAgentIdRequestWithBody(c.Server, agentId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAgentsAgentIdTasks(ctx context.Context, agentId int, params *GetAgentsAgentIdTasksParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAgentsAgentIdTasksRequest(c.Server, agentId, 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) +} + +func (c *Client) GetBadgesRepoIdCcXml(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBadgesRepoIdCcXmlRequest(c.Server, repoId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetBadgesRepoIdStatusSvg(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBadgesRepoIdStatusSvgRequest(c.Server, repoId) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDebugPprof(ctx context.Context, params *GetDebugPprofParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofRequest(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) +} + +func (c *Client) GetDebugPprofBlock(ctx context.Context, params *GetDebugPprofBlockParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofBlockRequest(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) +} + +func (c *Client) GetDebugPprofCmdline(ctx context.Context, params *GetDebugPprofCmdlineParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofCmdlineRequest(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) +} + +func (c *Client) GetDebugPprofGoroutine(ctx context.Context, params *GetDebugPprofGoroutineParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofGoroutineRequest(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) +} + +func (c *Client) GetDebugPprofHeap(ctx context.Context, params *GetDebugPprofHeapParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofHeapRequest(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) +} + +func (c *Client) GetDebugPprofProfile(ctx context.Context, params *GetDebugPprofProfileParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofProfileRequest(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) +} + +func (c *Client) GetDebugPprofSymbol(ctx context.Context, params *GetDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofSymbolRequest(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) +} + +func (c *Client) PostDebugPprofSymbol(ctx context.Context, params *PostDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostDebugPprofSymbolRequest(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) +} + +func (c *Client) GetDebugPprofThreadcreate(ctx context.Context, params *GetDebugPprofThreadcreateParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofThreadcreateRequest(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) +} + +func (c *Client) GetDebugPprofTrace(ctx context.Context, params *GetDebugPprofTraceParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDebugPprofTraceRequest(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) +} + +func (c *Client) GetForges(ctx context.Context, params *GetForgesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetForgesRequest(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) +} + +func (c *Client) PostForgesWithBody(ctx context.Context, params *PostForgesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostForgesRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteForgesForgeId(ctx context.Context, forgeId int, params *DeleteForgesForgeIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteForgesForgeIdRequest(c.Server, forgeId, 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) +} + +func (c *Client) GetForgesForgeId(ctx context.Context, forgeId int, params *GetForgesForgeIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetForgesForgeIdRequest(c.Server, forgeId, 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) +} + +func (c *Client) PatchForgesForgeIdWithBody(ctx context.Context, forgeId int, params *PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchForgesForgeIdRequestWithBody(c.Server, forgeId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetHealthz(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetHealthzRequest(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) +} + +func (c *Client) PostHookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostHookRequestWithBody(c.Server, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetLogLevel(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetLogLevelRequest(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) +} + +func (c *Client) PostLogLevelWithBody(ctx context.Context, params *PostLogLevelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostLogLevelRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrgLookupOrgFullName(ctx context.Context, orgFullName string, params *GetOrgLookupOrgFullNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgLookupOrgFullNameRequest(c.Server, orgFullName, 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) +} + +func (c *Client) GetOrgs(ctx context.Context, params *GetOrgsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsRequest(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) +} + +func (c *Client) DeleteOrgsId(ctx context.Context, id string, params *DeleteOrgsIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsIdRequest(c.Server, id, 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) +} + +func (c *Client) GetOrgsOrgId(ctx context.Context, orgId string, params *GetOrgsOrgIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRequest(c.Server, orgId, 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) +} + +func (c *Client) GetOrgsOrgIdAgents(ctx context.Context, orgId int, params *GetOrgsOrgIdAgentsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdAgentsRequest(c.Server, orgId, 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) +} + +func (c *Client) PostOrgsOrgIdAgentsWithBody(ctx context.Context, orgId int, params *PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdAgentsRequestWithBody(c.Server, orgId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteOrgsOrgIdAgentsAgentId(ctx context.Context, orgId int, agentId int, params *DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdAgentsAgentIdRequest(c.Server, orgId, agentId, 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) +} + +func (c *Client) PatchOrgsOrgIdAgentsAgentIdWithBody(ctx context.Context, orgId int, agentId int, params *PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdAgentsAgentIdRequestWithBody(c.Server, orgId, agentId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrgsOrgIdPermissions(ctx context.Context, orgId string, params *GetOrgsOrgIdPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdPermissionsRequest(c.Server, orgId, 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) +} + +func (c *Client) GetOrgsOrgIdRegistries(ctx context.Context, orgId string, params *GetOrgsOrgIdRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRegistriesRequest(c.Server, orgId, 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) +} + +func (c *Client) PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdRegistriesRequestWithBody(c.Server, orgId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdRegistriesRegistryRequest(c.Server, orgId, registry, 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) +} + +func (c *Client) GetOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdRegistriesRegistryRequest(c.Server, orgId, registry, 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) +} + +func (c *Client) PatchOrgsOrgIdRegistriesRegistryWithBody(ctx context.Context, orgId string, registry string, params *PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdRegistriesRegistryRequestWithBody(c.Server, orgId, registry, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetOrgsOrgIdSecrets(ctx context.Context, orgId string, params *GetOrgsOrgIdSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdSecretsRequest(c.Server, orgId, 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) +} + +func (c *Client) PostOrgsOrgIdSecretsWithBody(ctx context.Context, orgId string, params *PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostOrgsOrgIdSecretsRequestWithBody(c.Server, orgId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteOrgsOrgIdSecretsSecretRequest(c.Server, orgId, secret, 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) +} + +func (c *Client) GetOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *GetOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetOrgsOrgIdSecretsSecretRequest(c.Server, orgId, secret, 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) +} + +func (c *Client) PatchOrgsOrgIdSecretsSecretWithBody(ctx context.Context, orgId string, secret string, params *PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchOrgsOrgIdSecretsSecretRequestWithBody(c.Server, orgId, secret, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetPipelines(ctx context.Context, params *GetPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPipelinesRequest(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) +} + +func (c *Client) GetQueueInfo(ctx context.Context, params *GetQueueInfoParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetQueueInfoRequest(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) +} + +func (c *Client) GetQueueNorunningpipelines(ctx context.Context, params *GetQueueNorunningpipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetQueueNorunningpipelinesRequest(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) +} + +func (c *Client) PostQueuePause(ctx context.Context, params *PostQueuePauseParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostQueuePauseRequest(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) +} + +func (c *Client) PostQueueResume(ctx context.Context, params *PostQueueResumeParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostQueueResumeRequest(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) +} + +func (c *Client) GetRegistries(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRegistriesRequest(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) +} + +func (c *Client) PostRegistriesWithBody(ctx context.Context, params *PostRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostRegistriesRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteRegistriesRegistry(ctx context.Context, registry string, params *DeleteRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteRegistriesRegistryRequest(c.Server, registry, 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) +} + +func (c *Client) GetRegistriesRegistry(ctx context.Context, registry string, params *GetRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRegistriesRegistryRequest(c.Server, registry, 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) +} + +func (c *Client) PatchRegistriesRegistryWithBody(ctx context.Context, registry string, params *PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchRegistriesRegistryRequestWithBody(c.Server, registry, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetRepos(ctx context.Context, params *GetReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRequest(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) +} + +func (c *Client) PostRepos(ctx context.Context, params *PostReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRequest(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) +} + +func (c *Client) GetReposLookupRepoFullName(ctx context.Context, repoFullName string, params *GetReposLookupRepoFullNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposLookupRepoFullNameRequest(c.Server, repoFullName, 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) +} + +func (c *Client) PostReposRepair(ctx context.Context, params *PostReposRepairParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepairRequest(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) +} + +func (c *Client) DeleteReposRepoId(ctx context.Context, repoId int, params *DeleteReposRepoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoId(ctx context.Context, repoId int, params *GetReposRepoIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdRequest(c.Server, repoId, 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) +} + +func (c *Client) PatchReposRepoIdWithBody(ctx context.Context, repoId int, params *PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReposRepoIdRequestWithBody(c.Server, repoId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetReposRepoIdBranches(ctx context.Context, repoId int, params *GetReposRepoIdBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdBranchesRequest(c.Server, repoId, 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) +} + +func (c *Client) PostReposRepoIdChown(ctx context.Context, repoId int, params *PostReposRepoIdChownParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdChownRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoIdCron(ctx context.Context, repoId int, params *GetReposRepoIdCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdCronRequest(c.Server, repoId, 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) +} + +func (c *Client) PostReposRepoIdCronWithBody(ctx context.Context, repoId int, params *PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdCronRequestWithBody(c.Server, repoId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *DeleteReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdCronCronRequest(c.Server, repoId, cron, 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) +} + +func (c *Client) GetReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *GetReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdCronCronRequest(c.Server, repoId, cron, 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) +} + +func (c *Client) PatchReposRepoIdCronCronWithBody(ctx context.Context, repoId int, cron string, params *PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReposRepoIdCronCronRequestWithBody(c.Server, repoId, cron, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *PostReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdCronCronRequest(c.Server, repoId, cron, 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) +} + +func (c *Client) DeleteReposRepoIdLogsNumber(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdLogsNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdLogsNumberRequest(c.Server, repoId, number, 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) +} + +func (c *Client) GetReposRepoIdLogsNumberStepID(ctx context.Context, repoId int, number int, stepID int, params *GetReposRepoIdLogsNumberStepIDParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdLogsNumberStepIDRequest(c.Server, repoId, number, stepID, 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) +} + +func (c *Client) DeleteReposRepoIdLogsNumberStepId(ctx context.Context, repoId int, number int, stepId int, params *DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdLogsNumberStepIdRequest(c.Server, repoId, number, stepId, 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) +} + +func (c *Client) PostReposRepoIdMove(ctx context.Context, repoId int, params *PostReposRepoIdMoveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdMoveRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoIdPermissions(ctx context.Context, repoId int, params *GetReposRepoIdPermissionsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPermissionsRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoIdPipelines(ctx context.Context, repoId int, params *GetReposRepoIdPipelinesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPipelinesRequest(c.Server, repoId, 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) +} + +func (c *Client) PostReposRepoIdPipelinesWithBody(ctx context.Context, repoId int, params *PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdPipelinesRequestWithBody(c.Server, repoId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdPipelinesNumberRequest(c.Server, repoId, number, 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) +} + +func (c *Client) GetReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPipelinesNumberRequest(c.Server, repoId, number, 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) +} + +func (c *Client) PostReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdPipelinesNumberRequest(c.Server, repoId, number, 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) +} + +func (c *Client) PostReposRepoIdPipelinesNumberApprove(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdPipelinesNumberApproveRequest(c.Server, repoId, number, 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) +} + +func (c *Client) PostReposRepoIdPipelinesNumberCancel(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdPipelinesNumberCancelRequest(c.Server, repoId, number, 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) +} + +func (c *Client) GetReposRepoIdPipelinesNumberConfig(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPipelinesNumberConfigRequest(c.Server, repoId, number, 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) +} + +func (c *Client) PostReposRepoIdPipelinesNumberDecline(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdPipelinesNumberDeclineRequest(c.Server, repoId, number, 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) +} + +func (c *Client) GetReposRepoIdPipelinesNumberMetadata(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPipelinesNumberMetadataRequest(c.Server, repoId, number, 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) +} + +func (c *Client) GetReposRepoIdPullRequests(ctx context.Context, repoId int, params *GetReposRepoIdPullRequestsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdPullRequestsRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoIdRegistries(ctx context.Context, repoId int, params *GetReposRepoIdRegistriesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdRegistriesRequest(c.Server, repoId, 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) +} + +func (c *Client) PostReposRepoIdRegistriesWithBody(ctx context.Context, repoId int, params *PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdRegistriesRequestWithBody(c.Server, repoId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdRegistriesRegistryRequest(c.Server, repoId, registry, 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) +} + +func (c *Client) GetReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *GetReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdRegistriesRegistryRequest(c.Server, repoId, registry, 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) +} + +func (c *Client) PatchReposRepoIdRegistriesRegistryWithBody(ctx context.Context, repoId int, registry string, params *PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReposRepoIdRegistriesRegistryRequestWithBody(c.Server, repoId, registry, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PostReposRepoIdRepair(ctx context.Context, repoId int, params *PostReposRepoIdRepairParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdRepairRequest(c.Server, repoId, 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) +} + +func (c *Client) GetReposRepoIdSecrets(ctx context.Context, repoId int, params *GetReposRepoIdSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdSecretsRequest(c.Server, repoId, 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) +} + +func (c *Client) PostReposRepoIdSecretsWithBody(ctx context.Context, repoId int, params *PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostReposRepoIdSecretsRequestWithBody(c.Server, repoId, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteReposRepoIdSecretsSecretNameRequest(c.Server, repoId, secretName, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *GetReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetReposRepoIdSecretsSecretNameRequest(c.Server, repoId, secretName, params) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchReposRepoIdSecretsSecretNameWithBody(ctx context.Context, repoId int, secretName string, params *PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchReposRepoIdSecretsSecretNameRequestWithBody(c.Server, repoId, secretName, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSecrets(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSecretsRequest(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) +} + +func (c *Client) PostSecretsWithBody(ctx context.Context, params *PostSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostSecretsRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteSecretsSecret(ctx context.Context, secret string, params *DeleteSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSecretsSecretRequest(c.Server, secret, 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) +} + +func (c *Client) GetSecretsSecret(ctx context.Context, secret string, params *GetSecretsSecretParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSecretsSecretRequest(c.Server, secret, 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) +} + +func (c *Client) PatchSecretsSecretWithBody(ctx context.Context, secret string, params *PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchSecretsSecretRequestWithBody(c.Server, secret, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetSignaturePublicKey(ctx context.Context, params *GetSignaturePublicKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSignaturePublicKeyRequest(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) +} + +func (c *Client) GetStreamEvents(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetStreamEventsRequest(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) +} + +func (c *Client) GetStreamLogsRepoIdPipelineStepID(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetStreamLogsRepoIdPipelineStepIDRequest(c.Server, repoId, pipeline, stepID) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetUser(ctx context.Context, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRequest(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) +} + +func (c *Client) GetUserFeed(ctx context.Context, params *GetUserFeedParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserFeedRequest(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) +} + +func (c *Client) GetUserRepos(ctx context.Context, params *GetUserReposParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserReposRequest(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) +} + +func (c *Client) DeleteUserToken(ctx context.Context, params *DeleteUserTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserTokenRequest(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) +} + +func (c *Client) PostUserToken(ctx context.Context, params *PostUserTokenParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostUserTokenRequest(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) +} + +func (c *Client) GetUsers(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersRequest(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) +} + +func (c *Client) PostUsersWithBody(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPostUsersRequestWithBody(c.Server, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteUsersLogin(ctx context.Context, login string, params *DeleteUsersLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUsersLoginRequest(c.Server, login, 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) +} + +func (c *Client) GetUsersLogin(ctx context.Context, login string, params *GetUsersLoginParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUsersLoginRequest(c.Server, login, 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) +} + +func (c *Client) PatchUsersLoginWithBody(ctx context.Context, login string, params *PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchUsersLoginRequestWithBody(c.Server, login, params, contentType, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) PatchUsersLogin(ctx context.Context, login string, params *PatchUsersLoginParams, body PatchUsersLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewPatchUsersLoginRequest(c.Server, login, params, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetVersionRequest(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) +} + +// NewGetAgentsRequest generates requests for GetAgents +func NewGetAgentsRequest(server string, params *GetAgentsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostAgentsRequestWithBody generates requests for PostAgents with any type of body +func NewPostAgentsRequestWithBody(server string, params *PostAgentsParams, 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("/agents") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteAgentsAgentIdRequest generates requests for DeleteAgentsAgentId +func NewDeleteAgentsAgentIdRequest(server string, agentId int, params *DeleteAgentsAgentIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetAgentsAgentIdRequest generates requests for GetAgentsAgentId +func NewGetAgentsAgentIdRequest(server string, agentId int, params *GetAgentsAgentIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchAgentsAgentIdRequestWithBody generates requests for PatchAgentsAgentId with any type of body +func NewPatchAgentsAgentIdRequestWithBody(server string, agentId int, params *PatchAgentsAgentIdParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/agents/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetAgentsAgentIdTasksRequest generates requests for GetAgentsAgentIdTasks +func NewGetAgentsAgentIdTasksRequest(server string, agentId int, params *GetAgentsAgentIdTasksParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/agents/%s/tasks", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetBadgesRepoIdCcXmlRequest generates requests for GetBadgesRepoIdCcXml +func NewGetBadgesRepoIdCcXmlRequest(server string, repoId int) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/badges/%s/cc.xml", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetBadgesRepoIdStatusSvgRequest generates requests for GetBadgesRepoIdStatusSvg +func NewGetBadgesRepoIdStatusSvgRequest(server string, repoId int) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/badges/%s/status.svg", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetDebugPprofRequest generates requests for GetDebugPprof +func NewGetDebugPprofRequest(server string, params *GetDebugPprofParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofBlockRequest generates requests for GetDebugPprofBlock +func NewGetDebugPprofBlockRequest(server string, params *GetDebugPprofBlockParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/block") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofCmdlineRequest generates requests for GetDebugPprofCmdline +func NewGetDebugPprofCmdlineRequest(server string, params *GetDebugPprofCmdlineParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/cmdline") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofGoroutineRequest generates requests for GetDebugPprofGoroutine +func NewGetDebugPprofGoroutineRequest(server string, params *GetDebugPprofGoroutineParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/goroutine") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Debug != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "debug", runtime.ParamLocationQuery, *params.Debug); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofHeapRequest generates requests for GetDebugPprofHeap +func NewGetDebugPprofHeapRequest(server string, params *GetDebugPprofHeapParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/heap") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Gc != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "gc", runtime.ParamLocationQuery, *params.Gc); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofProfileRequest generates requests for GetDebugPprofProfile +func NewGetDebugPprofProfileRequest(server string, params *GetDebugPprofProfileParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/profile") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seconds", runtime.ParamLocationQuery, params.Seconds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofSymbolRequest generates requests for GetDebugPprofSymbol +func NewGetDebugPprofSymbolRequest(server string, params *GetDebugPprofSymbolParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/symbol") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostDebugPprofSymbolRequest generates requests for PostDebugPprofSymbol +func NewPostDebugPprofSymbolRequest(server string, params *PostDebugPprofSymbolParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/symbol") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofThreadcreateRequest generates requests for GetDebugPprofThreadcreate +func NewGetDebugPprofThreadcreateRequest(server string, params *GetDebugPprofThreadcreateParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/threadcreate") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetDebugPprofTraceRequest generates requests for GetDebugPprofTrace +func NewGetDebugPprofTraceRequest(server string, params *GetDebugPprofTraceParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/debug/pprof/trace") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "seconds", runtime.ParamLocationQuery, params.Seconds); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetForgesRequest generates requests for GetForges +func NewGetForgesRequest(server string, params *GetForgesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/forges") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.Authorization != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, *params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + } + + } + + return req, nil +} + +// NewPostForgesRequestWithBody generates requests for PostForges with any type of body +func NewPostForgesRequestWithBody(server string, params *PostForgesParams, 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("/forges") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteForgesForgeIdRequest generates requests for DeleteForgesForgeId +func NewDeleteForgesForgeIdRequest(server string, forgeId int, params *DeleteForgesForgeIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "forgeId", runtime.ParamLocationPath, forgeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/forges/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetForgesForgeIdRequest generates requests for GetForgesForgeId +func NewGetForgesForgeIdRequest(server string, forgeId int, params *GetForgesForgeIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "forgeId", runtime.ParamLocationPath, forgeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/forges/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + if params.Authorization != nil { + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, *params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + } + + } + + return req, nil +} + +// NewPatchForgesForgeIdRequestWithBody generates requests for PatchForgesForgeId with any type of body +func NewPatchForgesForgeIdRequestWithBody(server string, forgeId int, params *PatchForgesForgeIdParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "forgeId", runtime.ParamLocationPath, forgeId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/forges/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetHealthzRequest generates requests for GetHealthz +func NewGetHealthzRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/healthz") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostHookRequestWithBody generates requests for PostHook with any type of body +func NewPostHookRequestWithBody(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("/hook") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetLogLevelRequest generates requests for GetLogLevel +func NewGetLogLevelRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/log-level") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewPostLogLevelRequestWithBody generates requests for PostLogLevel with any type of body +func NewPostLogLevelRequestWithBody(server string, params *PostLogLevelParams, 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("/log-level") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgLookupOrgFullNameRequest generates requests for GetOrgLookupOrgFullName +func NewGetOrgLookupOrgFullNameRequest(server string, orgFullName string, params *GetOrgLookupOrgFullNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_full_name", runtime.ParamLocationPath, orgFullName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/org/lookup/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsRequest generates requests for GetOrgs +func NewGetOrgsRequest(server string, params *GetOrgsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteOrgsIdRequest generates requests for DeleteOrgsId +func NewDeleteOrgsIdRequest(server string, id string, params *DeleteOrgsIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "id", runtime.ParamLocationPath, id) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdRequest generates requests for GetOrgsOrgId +func NewGetOrgsOrgIdRequest(server string, orgId string, params *GetOrgsOrgIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdAgentsRequest generates requests for GetOrgsOrgIdAgents +func NewGetOrgsOrgIdAgentsRequest(server string, orgId int, params *GetOrgsOrgIdAgentsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/agents", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostOrgsOrgIdAgentsRequestWithBody generates requests for PostOrgsOrgIdAgents with any type of body +func NewPostOrgsOrgIdAgentsRequestWithBody(server string, orgId int, params *PostOrgsOrgIdAgentsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/agents", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteOrgsOrgIdAgentsAgentIdRequest generates requests for DeleteOrgsOrgIdAgentsAgentId +func NewDeleteOrgsOrgIdAgentsAgentIdRequest(server string, orgId int, agentId int, params *DeleteOrgsOrgIdAgentsAgentIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/agents/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchOrgsOrgIdAgentsAgentIdRequestWithBody generates requests for PatchOrgsOrgIdAgentsAgentId with any type of body +func NewPatchOrgsOrgIdAgentsAgentIdRequestWithBody(server string, orgId int, agentId int, params *PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "agent_id", runtime.ParamLocationPath, agentId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/agents/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdPermissionsRequest generates requests for GetOrgsOrgIdPermissions +func NewGetOrgsOrgIdPermissionsRequest(server string, orgId string, params *GetOrgsOrgIdPermissionsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdRegistriesRequest generates requests for GetOrgsOrgIdRegistries +func NewGetOrgsOrgIdRegistriesRequest(server string, orgId string, params *GetOrgsOrgIdRegistriesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostOrgsOrgIdRegistriesRequestWithBody generates requests for PostOrgsOrgIdRegistries with any type of body +func NewPostOrgsOrgIdRegistriesRequestWithBody(server string, orgId string, params *PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/registries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteOrgsOrgIdRegistriesRegistryRequest generates requests for DeleteOrgsOrgIdRegistriesRegistry +func NewDeleteOrgsOrgIdRegistriesRegistryRequest(server string, orgId string, registry string, params *DeleteOrgsOrgIdRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdRegistriesRegistryRequest generates requests for GetOrgsOrgIdRegistriesRegistry +func NewGetOrgsOrgIdRegistriesRegistryRequest(server string, orgId string, registry string, params *GetOrgsOrgIdRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchOrgsOrgIdRegistriesRegistryRequestWithBody generates requests for PatchOrgsOrgIdRegistriesRegistry with any type of body +func NewPatchOrgsOrgIdRegistriesRegistryRequestWithBody(server string, orgId string, registry string, params *PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdSecretsRequest generates requests for GetOrgsOrgIdSecrets +func NewGetOrgsOrgIdSecretsRequest(server string, orgId string, params *GetOrgsOrgIdSecretsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostOrgsOrgIdSecretsRequestWithBody generates requests for PostOrgsOrgIdSecrets with any type of body +func NewPostOrgsOrgIdSecretsRequestWithBody(server string, orgId string, params *PostOrgsOrgIdSecretsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/secrets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteOrgsOrgIdSecretsSecretRequest generates requests for DeleteOrgsOrgIdSecretsSecret +func NewDeleteOrgsOrgIdSecretsSecretRequest(server string, orgId string, secret string, params *DeleteOrgsOrgIdSecretsSecretParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetOrgsOrgIdSecretsSecretRequest generates requests for GetOrgsOrgIdSecretsSecret +func NewGetOrgsOrgIdSecretsSecretRequest(server string, orgId string, secret string, params *GetOrgsOrgIdSecretsSecretParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchOrgsOrgIdSecretsSecretRequestWithBody generates requests for PatchOrgsOrgIdSecretsSecret with any type of body +func NewPatchOrgsOrgIdSecretsSecretRequestWithBody(server string, orgId string, secret string, params *PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "org_id", runtime.ParamLocationPath, orgId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/orgs/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetPipelinesRequest generates requests for GetPipelines +func NewGetPipelinesRequest(server string, params *GetPipelinesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/pipelines") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetQueueInfoRequest generates requests for GetQueueInfo +func NewGetQueueInfoRequest(server string, params *GetQueueInfoParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/queue/info") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetQueueNorunningpipelinesRequest generates requests for GetQueueNorunningpipelines +func NewGetQueueNorunningpipelinesRequest(server string, params *GetQueueNorunningpipelinesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/queue/norunningpipelines") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostQueuePauseRequest generates requests for PostQueuePause +func NewPostQueuePauseRequest(server string, params *PostQueuePauseParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/queue/pause") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostQueueResumeRequest generates requests for PostQueueResume +func NewPostQueueResumeRequest(server string, params *PostQueueResumeParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/queue/resume") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetRegistriesRequest generates requests for GetRegistries +func NewGetRegistriesRequest(server string, params *GetRegistriesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/registries") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostRegistriesRequestWithBody generates requests for PostRegistries with any type of body +func NewPostRegistriesRequestWithBody(server string, params *PostRegistriesParams, 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("/registries") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteRegistriesRegistryRequest generates requests for DeleteRegistriesRegistry +func NewDeleteRegistriesRegistryRequest(server string, registry string, params *DeleteRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/registries/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetRegistriesRegistryRequest generates requests for GetRegistriesRegistry +func NewGetRegistriesRegistryRequest(server string, registry string, params *GetRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/registries/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchRegistriesRegistryRequestWithBody generates requests for PatchRegistriesRegistry with any type of body +func NewPatchRegistriesRegistryRequestWithBody(server string, registry string, params *PatchRegistriesRegistryParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/registries/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRequest generates requests for GetRepos +func NewGetReposRequest(server string, params *GetReposParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Active != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "active", runtime.ParamLocationQuery, *params.Active); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRequest generates requests for PostRepos +func NewPostReposRequest(server string, params *PostReposParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "forge_remote_id", runtime.ParamLocationQuery, params.ForgeRemoteId); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposLookupRepoFullNameRequest generates requests for GetReposLookupRepoFullName +func NewGetReposLookupRepoFullNameRequest(server string, repoFullName string, params *GetReposLookupRepoFullNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_full_name", runtime.ParamLocationPath, repoFullName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/lookup/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepairRequest generates requests for PostReposRepair +func NewPostReposRepairRequest(server string, params *PostReposRepairParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/repair") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdRequest generates requests for DeleteReposRepoId +func NewDeleteReposRepoIdRequest(server string, repoId int, params *DeleteReposRepoIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdRequest generates requests for GetReposRepoId +func NewGetReposRepoIdRequest(server string, repoId int, params *GetReposRepoIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchReposRepoIdRequestWithBody generates requests for PatchReposRepoId with any type of body +func NewPatchReposRepoIdRequestWithBody(server string, repoId int, params *PatchReposRepoIdParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdBranchesRequest generates requests for GetReposRepoIdBranches +func NewGetReposRepoIdBranchesRequest(server string, repoId int, params *GetReposRepoIdBranchesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/branches", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdChownRequest generates requests for PostReposRepoIdChown +func NewPostReposRepoIdChownRequest(server string, repoId int, params *PostReposRepoIdChownParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/chown", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdCronRequest generates requests for GetReposRepoIdCron +func NewGetReposRepoIdCronRequest(server string, repoId int, params *GetReposRepoIdCronParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdCronRequestWithBody generates requests for PostReposRepoIdCron with any type of body +func NewPostReposRepoIdCronRequestWithBody(server string, repoId int, params *PostReposRepoIdCronParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdCronCronRequest generates requests for DeleteReposRepoIdCronCron +func NewDeleteReposRepoIdCronCronRequest(server string, repoId int, cron string, params *DeleteReposRepoIdCronCronParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "cron", runtime.ParamLocationPath, cron) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdCronCronRequest generates requests for GetReposRepoIdCronCron +func NewGetReposRepoIdCronCronRequest(server string, repoId int, cron string, params *GetReposRepoIdCronCronParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "cron", runtime.ParamLocationPath, cron) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchReposRepoIdCronCronRequestWithBody generates requests for PatchReposRepoIdCronCron with any type of body +func NewPatchReposRepoIdCronCronRequestWithBody(server string, repoId int, cron string, params *PatchReposRepoIdCronCronParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "cron", runtime.ParamLocationPath, cron) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdCronCronRequest generates requests for PostReposRepoIdCronCron +func NewPostReposRepoIdCronCronRequest(server string, repoId int, cron string, params *PostReposRepoIdCronCronParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "cron", runtime.ParamLocationPath, cron) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/cron/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdLogsNumberRequest generates requests for DeleteReposRepoIdLogsNumber +func NewDeleteReposRepoIdLogsNumberRequest(server string, repoId int, number int, params *DeleteReposRepoIdLogsNumberParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/logs/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdLogsNumberStepIDRequest generates requests for GetReposRepoIdLogsNumberStepID +func NewGetReposRepoIdLogsNumberStepIDRequest(server string, repoId int, number int, stepID int, params *GetReposRepoIdLogsNumberStepIDParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/logs/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdLogsNumberStepIdRequest generates requests for DeleteReposRepoIdLogsNumberStepId +func NewDeleteReposRepoIdLogsNumberStepIdRequest(server string, repoId int, number int, stepId int, params *DeleteReposRepoIdLogsNumberStepIdParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepId", runtime.ParamLocationPath, stepId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/logs/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdMoveRequest generates requests for PostReposRepoIdMove +func NewPostReposRepoIdMoveRequest(server string, repoId int, params *PostReposRepoIdMoveParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/move", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "to", runtime.ParamLocationQuery, params.To); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPermissionsRequest generates requests for GetReposRepoIdPermissions +func NewGetReposRepoIdPermissionsRequest(server string, repoId int, params *GetReposRepoIdPermissionsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/permissions", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPipelinesRequest generates requests for GetReposRepoIdPipelines +func NewGetReposRepoIdPipelinesRequest(server string, repoId int, params *GetReposRepoIdPipelinesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Before != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "before", runtime.ParamLocationQuery, *params.Before); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.After != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "after", runtime.ParamLocationQuery, *params.After); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Branch != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "branch", runtime.ParamLocationQuery, *params.Branch); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Event != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "event", runtime.ParamLocationQuery, *params.Event); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.Ref != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "ref", runtime.ParamLocationQuery, *params.Ref); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdPipelinesRequestWithBody generates requests for PostReposRepoIdPipelines with any type of body +func NewPostReposRepoIdPipelinesRequestWithBody(server string, repoId int, params *PostReposRepoIdPipelinesParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdPipelinesNumberRequest generates requests for DeleteReposRepoIdPipelinesNumber +func NewDeleteReposRepoIdPipelinesNumberRequest(server string, repoId int, number int, params *DeleteReposRepoIdPipelinesNumberParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPipelinesNumberRequest generates requests for GetReposRepoIdPipelinesNumber +func NewGetReposRepoIdPipelinesNumberRequest(server string, repoId int, number int, params *GetReposRepoIdPipelinesNumberParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdPipelinesNumberRequest generates requests for PostReposRepoIdPipelinesNumber +func NewPostReposRepoIdPipelinesNumberRequest(server string, repoId int, number int, params *PostReposRepoIdPipelinesNumberParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Event != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "event", runtime.ParamLocationQuery, *params.Event); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.DeployTo != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "deploy_to", runtime.ParamLocationQuery, *params.DeployTo); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdPipelinesNumberApproveRequest generates requests for PostReposRepoIdPipelinesNumberApprove +func NewPostReposRepoIdPipelinesNumberApproveRequest(server string, repoId int, number int, params *PostReposRepoIdPipelinesNumberApproveParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s/approve", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdPipelinesNumberCancelRequest generates requests for PostReposRepoIdPipelinesNumberCancel +func NewPostReposRepoIdPipelinesNumberCancelRequest(server string, repoId int, number int, params *PostReposRepoIdPipelinesNumberCancelParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s/cancel", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPipelinesNumberConfigRequest generates requests for GetReposRepoIdPipelinesNumberConfig +func NewGetReposRepoIdPipelinesNumberConfigRequest(server string, repoId int, number int, params *GetReposRepoIdPipelinesNumberConfigParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s/config", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdPipelinesNumberDeclineRequest generates requests for PostReposRepoIdPipelinesNumberDecline +func NewPostReposRepoIdPipelinesNumberDeclineRequest(server string, repoId int, number int, params *PostReposRepoIdPipelinesNumberDeclineParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s/decline", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPipelinesNumberMetadataRequest generates requests for GetReposRepoIdPipelinesNumberMetadata +func NewGetReposRepoIdPipelinesNumberMetadataRequest(server string, repoId int, number int, params *GetReposRepoIdPipelinesNumberMetadataParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "number", runtime.ParamLocationPath, number) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pipelines/%s/metadata", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdPullRequestsRequest generates requests for GetReposRepoIdPullRequests +func NewGetReposRepoIdPullRequestsRequest(server string, repoId int, params *GetReposRepoIdPullRequestsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/pull_requests", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdRegistriesRequest generates requests for GetReposRepoIdRegistries +func NewGetReposRepoIdRegistriesRequest(server string, repoId int, params *GetReposRepoIdRegistriesParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/registries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdRegistriesRequestWithBody generates requests for PostReposRepoIdRegistries with any type of body +func NewPostReposRepoIdRegistriesRequestWithBody(server string, repoId int, params *PostReposRepoIdRegistriesParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/registries", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdRegistriesRegistryRequest generates requests for DeleteReposRepoIdRegistriesRegistry +func NewDeleteReposRepoIdRegistriesRegistryRequest(server string, repoId int, registry string, params *DeleteReposRepoIdRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdRegistriesRegistryRequest generates requests for GetReposRepoIdRegistriesRegistry +func NewGetReposRepoIdRegistriesRegistryRequest(server string, repoId int, registry string, params *GetReposRepoIdRegistriesRegistryParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchReposRepoIdRegistriesRegistryRequestWithBody generates requests for PatchReposRepoIdRegistriesRegistry with any type of body +func NewPatchReposRepoIdRegistriesRegistryRequestWithBody(server string, repoId int, registry string, params *PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "registry", runtime.ParamLocationPath, registry) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/registries/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdRepairRequest generates requests for PostReposRepoIdRepair +func NewPostReposRepoIdRepairRequest(server string, repoId int, params *PostReposRepoIdRepairParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/repair", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdSecretsRequest generates requests for GetReposRepoIdSecrets +func NewGetReposRepoIdSecretsRequest(server string, repoId int, params *GetReposRepoIdSecretsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/secrets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostReposRepoIdSecretsRequestWithBody generates requests for PostReposRepoIdSecrets with any type of body +func NewPostReposRepoIdSecretsRequestWithBody(server string, repoId int, params *PostReposRepoIdSecretsParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/secrets", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteReposRepoIdSecretsSecretNameRequest generates requests for DeleteReposRepoIdSecretsSecretName +func NewDeleteReposRepoIdSecretsSecretNameRequest(server string, repoId int, secretName string, params *DeleteReposRepoIdSecretsSecretNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetReposRepoIdSecretsSecretNameRequest generates requests for GetReposRepoIdSecretsSecretName +func NewGetReposRepoIdSecretsSecretNameRequest(server string, repoId int, secretName string, params *GetReposRepoIdSecretsSecretNameParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchReposRepoIdSecretsSecretNameRequestWithBody generates requests for PatchReposRepoIdSecretsSecretName with any type of body +func NewPatchReposRepoIdSecretsSecretNameRequestWithBody(server string, repoId int, secretName string, params *PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "secretName", runtime.ParamLocationPath, secretName) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/repos/%s/secrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetSecretsRequest generates requests for GetSecrets +func NewGetSecretsRequest(server string, params *GetSecretsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secrets") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostSecretsRequestWithBody generates requests for PostSecrets with any type of body +func NewPostSecretsRequestWithBody(server string, params *PostSecretsParams, 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("/secrets") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteSecretsSecretRequest generates requests for DeleteSecretsSecret +func NewDeleteSecretsSecretRequest(server string, secret string, params *DeleteSecretsSecretParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secrets/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetSecretsSecretRequest generates requests for GetSecretsSecret +func NewGetSecretsSecretRequest(server string, secret string, params *GetSecretsSecretParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secrets/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchSecretsSecretRequestWithBody generates requests for PatchSecretsSecret with any type of body +func NewPatchSecretsSecretRequestWithBody(server string, secret string, params *PatchSecretsSecretParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "secret", runtime.ParamLocationPath, secret) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/secrets/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetSignaturePublicKeyRequest generates requests for GetSignaturePublicKey +func NewGetSignaturePublicKeyRequest(server string, params *GetSignaturePublicKeyParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/signature/public-key") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetStreamEventsRequest generates requests for GetStreamEvents +func NewGetStreamEventsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/stream/events") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetStreamLogsRepoIdPipelineStepIDRequest generates requests for GetStreamLogsRepoIdPipelineStepID +func NewGetStreamLogsRepoIdPipelineStepIDRequest(server string, repoId int, pipeline int, stepID int) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "repo_id", runtime.ParamLocationPath, repoId) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithLocation("simple", false, "pipeline", runtime.ParamLocationPath, pipeline) + if err != nil { + return nil, err + } + + var pathParam2 string + + pathParam2, err = runtime.StyleParamWithLocation("simple", false, "stepID", runtime.ParamLocationPath, stepID) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/stream/logs/%s/%s/%s", pathParam0, pathParam1, pathParam2) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewGetUserRequest generates requests for GetUser +func NewGetUserRequest(server string, params *GetUserParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/user") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetUserFeedRequest generates requests for GetUserFeed +func NewGetUserFeedRequest(server string, params *GetUserFeedParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/user/feed") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetUserReposRequest generates requests for GetUserRepos +func NewGetUserReposRequest(server string, params *GetUserReposParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/user/repos") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.All != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "all", runtime.ParamLocationQuery, *params.All); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteUserTokenRequest generates requests for DeleteUserToken +func NewDeleteUserTokenRequest(server string, params *DeleteUserTokenParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/user/token") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostUserTokenRequest generates requests for PostUserToken +func NewPostUserTokenRequest(server string, params *PostUserTokenParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/user/token") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetUsersRequest generates requests for GetUsers +func NewGetUsersRequest(server string, params *GetUsersParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Page != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + if params.PerPage != nil { + + if queryFrag, err := runtime.StyleParamWithLocation("form", true, "perPage", runtime.ParamLocationQuery, *params.PerPage); err != nil { + return nil, err + } else if parsed, err := url.ParseQuery(queryFrag); err != nil { + return nil, err + } else { + for k, v := range parsed { + for _, v2 := range v { + queryValues.Add(k, v2) + } + } + } + + } + + queryURL.RawQuery = queryValues.Encode() + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPostUsersRequestWithBody generates requests for PostUsers with any type of body +func NewPostUsersRequestWithBody(server string, params *PostUsersParams, 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("/users") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("POST", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewDeleteUsersLoginRequest generates requests for DeleteUsersLogin +func NewDeleteUsersLoginRequest(server string, login string, params *DeleteUsersLoginParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("DELETE", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetUsersLoginRequest generates requests for GetUsersLogin +func NewGetUsersLoginRequest(server string, login string, params *GetUsersLoginParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewPatchUsersLoginRequest calls the generic PatchUsersLogin builder with application/json body +func NewPatchUsersLoginRequest(server string, login string, params *PatchUsersLoginParams, body PatchUsersLoginJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewPatchUsersLoginRequestWithBody(server, login, params, "application/json", bodyReader) +} + +// NewPatchUsersLoginRequestWithBody generates requests for PatchUsersLogin with any type of body +func NewPatchUsersLoginRequestWithBody(server string, login string, params *PatchUsersLoginParams, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithLocation("simple", false, "login", runtime.ParamLocationPath, login) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PATCH", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + if params != nil { + + var headerParam0 string + + headerParam0, err = runtime.StyleParamWithLocation("simple", false, "Authorization", runtime.ParamLocationHeader, params.Authorization) + if err != nil { + return nil, err + } + + req.Header.Set("Authorization", headerParam0) + + } + + return req, nil +} + +// NewGetVersionRequest generates requests for GetVersion +func NewGetVersionRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/version") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +func (c *Client) applyEditors(ctx context.Context, req *http.Request, additionalEditors []RequestEditorFn) error { + for _, r := range c.RequestEditors { + if err := r(ctx, req); err != nil { + return err + } + } + for _, r := range additionalEditors { + if err := r(ctx, req); err != nil { + return err + } + } + return nil +} + +// ClientWithResponses builds on ClientInterface to offer response payloads +type ClientWithResponses struct { + ClientInterface +} + +// NewClientWithResponses creates a new ClientWithResponses, which wraps +// Client with return type handling +func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error) { + client, err := NewClient(server, opts...) + if err != nil { + return nil, err + } + return &ClientWithResponses{client}, nil +} + +// WithBaseURL overrides the baseURL. +func WithBaseURL(baseURL string) ClientOption { + return func(c *Client) error { + newBaseURL, err := url.Parse(baseURL) + if err != nil { + return err + } + c.Server = newBaseURL.String() + return nil + } +} + +// ClientWithResponsesInterface is the interface specification for the client with responses above. +type ClientWithResponsesInterface interface { + // GetAgentsWithResponse request + GetAgentsWithResponse(ctx context.Context, params *GetAgentsParams, reqEditors ...RequestEditorFn) (*GetAgentsResponse, error) + + // PostAgentsWithBodyWithResponse request with any body + PostAgentsWithBodyWithResponse(ctx context.Context, params *PostAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentsResponse, error) + + // DeleteAgentsAgentIdWithResponse request + DeleteAgentsAgentIdWithResponse(ctx context.Context, agentId int, params *DeleteAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*DeleteAgentsAgentIdResponse, error) + + // GetAgentsAgentIdWithResponse request + GetAgentsAgentIdWithResponse(ctx context.Context, agentId int, params *GetAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*GetAgentsAgentIdResponse, error) + + // PatchAgentsAgentIdWithBodyWithResponse request with any body + PatchAgentsAgentIdWithBodyWithResponse(ctx context.Context, agentId int, params *PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchAgentsAgentIdResponse, error) + + // GetAgentsAgentIdTasksWithResponse request + GetAgentsAgentIdTasksWithResponse(ctx context.Context, agentId int, params *GetAgentsAgentIdTasksParams, reqEditors ...RequestEditorFn) (*GetAgentsAgentIdTasksResponse, error) + + // GetBadgesRepoIdCcXmlWithResponse request + GetBadgesRepoIdCcXmlWithResponse(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*GetBadgesRepoIdCcXmlResponse, error) + + // GetBadgesRepoIdStatusSvgWithResponse request + GetBadgesRepoIdStatusSvgWithResponse(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*GetBadgesRepoIdStatusSvgResponse, error) + + // GetDebugPprofWithResponse request + GetDebugPprofWithResponse(ctx context.Context, params *GetDebugPprofParams, reqEditors ...RequestEditorFn) (*GetDebugPprofResponse, error) + + // GetDebugPprofBlockWithResponse request + GetDebugPprofBlockWithResponse(ctx context.Context, params *GetDebugPprofBlockParams, reqEditors ...RequestEditorFn) (*GetDebugPprofBlockResponse, error) + + // GetDebugPprofCmdlineWithResponse request + GetDebugPprofCmdlineWithResponse(ctx context.Context, params *GetDebugPprofCmdlineParams, reqEditors ...RequestEditorFn) (*GetDebugPprofCmdlineResponse, error) + + // GetDebugPprofGoroutineWithResponse request + GetDebugPprofGoroutineWithResponse(ctx context.Context, params *GetDebugPprofGoroutineParams, reqEditors ...RequestEditorFn) (*GetDebugPprofGoroutineResponse, error) + + // GetDebugPprofHeapWithResponse request + GetDebugPprofHeapWithResponse(ctx context.Context, params *GetDebugPprofHeapParams, reqEditors ...RequestEditorFn) (*GetDebugPprofHeapResponse, error) + + // GetDebugPprofProfileWithResponse request + GetDebugPprofProfileWithResponse(ctx context.Context, params *GetDebugPprofProfileParams, reqEditors ...RequestEditorFn) (*GetDebugPprofProfileResponse, error) + + // GetDebugPprofSymbolWithResponse request + GetDebugPprofSymbolWithResponse(ctx context.Context, params *GetDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*GetDebugPprofSymbolResponse, error) + + // PostDebugPprofSymbolWithResponse request + PostDebugPprofSymbolWithResponse(ctx context.Context, params *PostDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*PostDebugPprofSymbolResponse, error) + + // GetDebugPprofThreadcreateWithResponse request + GetDebugPprofThreadcreateWithResponse(ctx context.Context, params *GetDebugPprofThreadcreateParams, reqEditors ...RequestEditorFn) (*GetDebugPprofThreadcreateResponse, error) + + // GetDebugPprofTraceWithResponse request + GetDebugPprofTraceWithResponse(ctx context.Context, params *GetDebugPprofTraceParams, reqEditors ...RequestEditorFn) (*GetDebugPprofTraceResponse, error) + + // GetForgesWithResponse request + GetForgesWithResponse(ctx context.Context, params *GetForgesParams, reqEditors ...RequestEditorFn) (*GetForgesResponse, error) + + // PostForgesWithBodyWithResponse request with any body + PostForgesWithBodyWithResponse(ctx context.Context, params *PostForgesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostForgesResponse, error) + + // DeleteForgesForgeIdWithResponse request + DeleteForgesForgeIdWithResponse(ctx context.Context, forgeId int, params *DeleteForgesForgeIdParams, reqEditors ...RequestEditorFn) (*DeleteForgesForgeIdResponse, error) + + // GetForgesForgeIdWithResponse request + GetForgesForgeIdWithResponse(ctx context.Context, forgeId int, params *GetForgesForgeIdParams, reqEditors ...RequestEditorFn) (*GetForgesForgeIdResponse, error) + + // PatchForgesForgeIdWithBodyWithResponse request with any body + PatchForgesForgeIdWithBodyWithResponse(ctx context.Context, forgeId int, params *PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchForgesForgeIdResponse, error) + + // GetHealthzWithResponse request + GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error) + + // PostHookWithBodyWithResponse request with any body + PostHookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHookResponse, error) + + // GetLogLevelWithResponse request + GetLogLevelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogLevelResponse, error) + + // PostLogLevelWithBodyWithResponse request with any body + PostLogLevelWithBodyWithResponse(ctx context.Context, params *PostLogLevelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLogLevelResponse, error) + + // GetOrgLookupOrgFullNameWithResponse request + GetOrgLookupOrgFullNameWithResponse(ctx context.Context, orgFullName string, params *GetOrgLookupOrgFullNameParams, reqEditors ...RequestEditorFn) (*GetOrgLookupOrgFullNameResponse, error) + + // GetOrgsWithResponse request + GetOrgsWithResponse(ctx context.Context, params *GetOrgsParams, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) + + // DeleteOrgsIdWithResponse request + DeleteOrgsIdWithResponse(ctx context.Context, id string, params *DeleteOrgsIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsIdResponse, error) + + // GetOrgsOrgIdWithResponse request + GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) + + // GetOrgsOrgIdAgentsWithResponse request + GetOrgsOrgIdAgentsWithResponse(ctx context.Context, orgId int, params *GetOrgsOrgIdAgentsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAgentsResponse, error) + + // PostOrgsOrgIdAgentsWithBodyWithResponse request with any body + PostOrgsOrgIdAgentsWithBodyWithResponse(ctx context.Context, orgId int, params *PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAgentsResponse, error) + + // DeleteOrgsOrgIdAgentsAgentIdWithResponse request + DeleteOrgsOrgIdAgentsAgentIdWithResponse(ctx context.Context, orgId int, agentId int, params *DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAgentsAgentIdResponse, error) + + // PatchOrgsOrgIdAgentsAgentIdWithBodyWithResponse request with any body + PatchOrgsOrgIdAgentsAgentIdWithBodyWithResponse(ctx context.Context, orgId int, agentId int, params *PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAgentsAgentIdResponse, error) + + // GetOrgsOrgIdPermissionsWithResponse request + GetOrgsOrgIdPermissionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdPermissionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdPermissionsResponse, error) + + // GetOrgsOrgIdRegistriesWithResponse request + GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdRegistriesParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) + + // PostOrgsOrgIdRegistriesWithBodyWithResponse request with any body + PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) + + // DeleteOrgsOrgIdRegistriesRegistryWithResponse request + DeleteOrgsOrgIdRegistriesRegistryWithResponse(ctx context.Context, orgId string, registry string, params *DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegistryResponse, error) + + // GetOrgsOrgIdRegistriesRegistryWithResponse request + GetOrgsOrgIdRegistriesRegistryWithResponse(ctx context.Context, orgId string, registry string, params *GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegistryResponse, error) + + // PatchOrgsOrgIdRegistriesRegistryWithBodyWithResponse request with any body + PatchOrgsOrgIdRegistriesRegistryWithBodyWithResponse(ctx context.Context, orgId string, registry string, params *PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegistryResponse, error) + + // GetOrgsOrgIdSecretsWithResponse request + GetOrgsOrgIdSecretsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdSecretsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretsResponse, error) + + // PostOrgsOrgIdSecretsWithBodyWithResponse request with any body + PostOrgsOrgIdSecretsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretsResponse, error) + + // DeleteOrgsOrgIdSecretsSecretWithResponse request + DeleteOrgsOrgIdSecretsSecretWithResponse(ctx context.Context, orgId string, secret string, params *DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretsSecretResponse, error) + + // GetOrgsOrgIdSecretsSecretWithResponse request + GetOrgsOrgIdSecretsSecretWithResponse(ctx context.Context, orgId string, secret string, params *GetOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretsSecretResponse, error) + + // PatchOrgsOrgIdSecretsSecretWithBodyWithResponse request with any body + PatchOrgsOrgIdSecretsSecretWithBodyWithResponse(ctx context.Context, orgId string, secret string, params *PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretsSecretResponse, error) + + // GetPipelinesWithResponse request + GetPipelinesWithResponse(ctx context.Context, params *GetPipelinesParams, reqEditors ...RequestEditorFn) (*GetPipelinesResponse, error) + + // GetQueueInfoWithResponse request + GetQueueInfoWithResponse(ctx context.Context, params *GetQueueInfoParams, reqEditors ...RequestEditorFn) (*GetQueueInfoResponse, error) + + // GetQueueNorunningpipelinesWithResponse request + GetQueueNorunningpipelinesWithResponse(ctx context.Context, params *GetQueueNorunningpipelinesParams, reqEditors ...RequestEditorFn) (*GetQueueNorunningpipelinesResponse, error) + + // PostQueuePauseWithResponse request + PostQueuePauseWithResponse(ctx context.Context, params *PostQueuePauseParams, reqEditors ...RequestEditorFn) (*PostQueuePauseResponse, error) + + // PostQueueResumeWithResponse request + PostQueueResumeWithResponse(ctx context.Context, params *PostQueueResumeParams, reqEditors ...RequestEditorFn) (*PostQueueResumeResponse, error) + + // GetRegistriesWithResponse request + GetRegistriesWithResponse(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*GetRegistriesResponse, error) + + // PostRegistriesWithBodyWithResponse request with any body + PostRegistriesWithBodyWithResponse(ctx context.Context, params *PostRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRegistriesResponse, error) + + // DeleteRegistriesRegistryWithResponse request + DeleteRegistriesRegistryWithResponse(ctx context.Context, registry string, params *DeleteRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteRegistriesRegistryResponse, error) + + // GetRegistriesRegistryWithResponse request + GetRegistriesRegistryWithResponse(ctx context.Context, registry string, params *GetRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetRegistriesRegistryResponse, error) + + // PatchRegistriesRegistryWithBodyWithResponse request with any body + PatchRegistriesRegistryWithBodyWithResponse(ctx context.Context, registry string, params *PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchRegistriesRegistryResponse, error) + + // GetReposWithResponse request + GetReposWithResponse(ctx context.Context, params *GetReposParams, reqEditors ...RequestEditorFn) (*GetReposResponse, error) + + // PostReposWithResponse request + PostReposWithResponse(ctx context.Context, params *PostReposParams, reqEditors ...RequestEditorFn) (*PostReposResponse, error) + + // GetReposLookupRepoFullNameWithResponse request + GetReposLookupRepoFullNameWithResponse(ctx context.Context, repoFullName string, params *GetReposLookupRepoFullNameParams, reqEditors ...RequestEditorFn) (*GetReposLookupRepoFullNameResponse, error) + + // PostReposRepairWithResponse request + PostReposRepairWithResponse(ctx context.Context, params *PostReposRepairParams, reqEditors ...RequestEditorFn) (*PostReposRepairResponse, error) + + // DeleteReposRepoIdWithResponse request + DeleteReposRepoIdWithResponse(ctx context.Context, repoId int, params *DeleteReposRepoIdParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdResponse, error) + + // GetReposRepoIdWithResponse request + GetReposRepoIdWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdResponse, error) + + // PatchReposRepoIdWithBodyWithResponse request with any body + PatchReposRepoIdWithBodyWithResponse(ctx context.Context, repoId int, params *PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdResponse, error) + + // GetReposRepoIdBranchesWithResponse request + GetReposRepoIdBranchesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdBranchesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdBranchesResponse, error) + + // PostReposRepoIdChownWithResponse request + PostReposRepoIdChownWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdChownParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdChownResponse, error) + + // GetReposRepoIdCronWithResponse request + GetReposRepoIdCronWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdCronParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdCronResponse, error) + + // PostReposRepoIdCronWithBodyWithResponse request with any body + PostReposRepoIdCronWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdCronResponse, error) + + // DeleteReposRepoIdCronCronWithResponse request + DeleteReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *DeleteReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdCronCronResponse, error) + + // GetReposRepoIdCronCronWithResponse request + GetReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *GetReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdCronCronResponse, error) + + // PatchReposRepoIdCronCronWithBodyWithResponse request with any body + PatchReposRepoIdCronCronWithBodyWithResponse(ctx context.Context, repoId int, cron string, params *PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdCronCronResponse, error) + + // PostReposRepoIdCronCronWithResponse request + PostReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *PostReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdCronCronResponse, error) + + // DeleteReposRepoIdLogsNumberWithResponse request + DeleteReposRepoIdLogsNumberWithResponse(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdLogsNumberParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdLogsNumberResponse, error) + + // GetReposRepoIdLogsNumberStepIDWithResponse request + GetReposRepoIdLogsNumberStepIDWithResponse(ctx context.Context, repoId int, number int, stepID int, params *GetReposRepoIdLogsNumberStepIDParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdLogsNumberStepIDResponse, error) + + // DeleteReposRepoIdLogsNumberStepIdWithResponse request + DeleteReposRepoIdLogsNumberStepIdWithResponse(ctx context.Context, repoId int, number int, stepId int, params *DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdLogsNumberStepIdResponse, error) + + // PostReposRepoIdMoveWithResponse request + PostReposRepoIdMoveWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdMoveParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdMoveResponse, error) + + // GetReposRepoIdPermissionsWithResponse request + GetReposRepoIdPermissionsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPermissionsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPermissionsResponse, error) + + // GetReposRepoIdPipelinesWithResponse request + GetReposRepoIdPipelinesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPipelinesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesResponse, error) + + // PostReposRepoIdPipelinesWithBodyWithResponse request with any body + PostReposRepoIdPipelinesWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesResponse, error) + + // DeleteReposRepoIdPipelinesNumberWithResponse request + DeleteReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdPipelinesNumberResponse, error) + + // GetReposRepoIdPipelinesNumberWithResponse request + GetReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberResponse, error) + + // PostReposRepoIdPipelinesNumberWithResponse request + PostReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberResponse, error) + + // PostReposRepoIdPipelinesNumberApproveWithResponse request + PostReposRepoIdPipelinesNumberApproveWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberApproveResponse, error) + + // PostReposRepoIdPipelinesNumberCancelWithResponse request + PostReposRepoIdPipelinesNumberCancelWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberCancelResponse, error) + + // GetReposRepoIdPipelinesNumberConfigWithResponse request + GetReposRepoIdPipelinesNumberConfigWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberConfigResponse, error) + + // PostReposRepoIdPipelinesNumberDeclineWithResponse request + PostReposRepoIdPipelinesNumberDeclineWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberDeclineResponse, error) + + // GetReposRepoIdPipelinesNumberMetadataWithResponse request + GetReposRepoIdPipelinesNumberMetadataWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberMetadataResponse, error) + + // GetReposRepoIdPullRequestsWithResponse request + GetReposRepoIdPullRequestsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPullRequestsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPullRequestsResponse, error) + + // GetReposRepoIdRegistriesWithResponse request + GetReposRepoIdRegistriesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdRegistriesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdRegistriesResponse, error) + + // PostReposRepoIdRegistriesWithBodyWithResponse request with any body + PostReposRepoIdRegistriesWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdRegistriesResponse, error) + + // DeleteReposRepoIdRegistriesRegistryWithResponse request + DeleteReposRepoIdRegistriesRegistryWithResponse(ctx context.Context, repoId int, registry string, params *DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdRegistriesRegistryResponse, error) + + // GetReposRepoIdRegistriesRegistryWithResponse request + GetReposRepoIdRegistriesRegistryWithResponse(ctx context.Context, repoId int, registry string, params *GetReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdRegistriesRegistryResponse, error) + + // PatchReposRepoIdRegistriesRegistryWithBodyWithResponse request with any body + PatchReposRepoIdRegistriesRegistryWithBodyWithResponse(ctx context.Context, repoId int, registry string, params *PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdRegistriesRegistryResponse, error) + + // PostReposRepoIdRepairWithResponse request + PostReposRepoIdRepairWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdRepairParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdRepairResponse, error) + + // GetReposRepoIdSecretsWithResponse request + GetReposRepoIdSecretsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdSecretsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdSecretsResponse, error) + + // PostReposRepoIdSecretsWithBodyWithResponse request with any body + PostReposRepoIdSecretsWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdSecretsResponse, error) + + // DeleteReposRepoIdSecretsSecretNameWithResponse request + DeleteReposRepoIdSecretsSecretNameWithResponse(ctx context.Context, repoId int, secretName string, params *DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdSecretsSecretNameResponse, error) + + // GetReposRepoIdSecretsSecretNameWithResponse request + GetReposRepoIdSecretsSecretNameWithResponse(ctx context.Context, repoId int, secretName string, params *GetReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdSecretsSecretNameResponse, error) + + // PatchReposRepoIdSecretsSecretNameWithBodyWithResponse request with any body + PatchReposRepoIdSecretsSecretNameWithBodyWithResponse(ctx context.Context, repoId int, secretName string, params *PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdSecretsSecretNameResponse, error) + + // GetSecretsWithResponse request + GetSecretsWithResponse(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error) + + // PostSecretsWithBodyWithResponse request with any body + PostSecretsWithBodyWithResponse(ctx context.Context, params *PostSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecretsResponse, error) + + // DeleteSecretsSecretWithResponse request + DeleteSecretsSecretWithResponse(ctx context.Context, secret string, params *DeleteSecretsSecretParams, reqEditors ...RequestEditorFn) (*DeleteSecretsSecretResponse, error) + + // GetSecretsSecretWithResponse request + GetSecretsSecretWithResponse(ctx context.Context, secret string, params *GetSecretsSecretParams, reqEditors ...RequestEditorFn) (*GetSecretsSecretResponse, error) + + // PatchSecretsSecretWithBodyWithResponse request with any body + PatchSecretsSecretWithBodyWithResponse(ctx context.Context, secret string, params *PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchSecretsSecretResponse, error) + + // GetSignaturePublicKeyWithResponse request + GetSignaturePublicKeyWithResponse(ctx context.Context, params *GetSignaturePublicKeyParams, reqEditors ...RequestEditorFn) (*GetSignaturePublicKeyResponse, error) + + // GetStreamEventsWithResponse request + GetStreamEventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStreamEventsResponse, error) + + // GetStreamLogsRepoIdPipelineStepIDWithResponse request + GetStreamLogsRepoIdPipelineStepIDWithResponse(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...RequestEditorFn) (*GetStreamLogsRepoIdPipelineStepIDResponse, error) + + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + + // GetUserFeedWithResponse request + GetUserFeedWithResponse(ctx context.Context, params *GetUserFeedParams, reqEditors ...RequestEditorFn) (*GetUserFeedResponse, error) + + // GetUserReposWithResponse request + GetUserReposWithResponse(ctx context.Context, params *GetUserReposParams, reqEditors ...RequestEditorFn) (*GetUserReposResponse, error) + + // DeleteUserTokenWithResponse request + DeleteUserTokenWithResponse(ctx context.Context, params *DeleteUserTokenParams, reqEditors ...RequestEditorFn) (*DeleteUserTokenResponse, error) + + // PostUserTokenWithResponse request + PostUserTokenWithResponse(ctx context.Context, params *PostUserTokenParams, reqEditors ...RequestEditorFn) (*PostUserTokenResponse, error) + + // GetUsersWithResponse request + GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) + + // PostUsersWithBodyWithResponse request with any body + PostUsersWithBodyWithResponse(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersResponse, error) + + // DeleteUsersLoginWithResponse request + DeleteUsersLoginWithResponse(ctx context.Context, login string, params *DeleteUsersLoginParams, reqEditors ...RequestEditorFn) (*DeleteUsersLoginResponse, error) + + // GetUsersLoginWithResponse request + GetUsersLoginWithResponse(ctx context.Context, login string, params *GetUsersLoginParams, reqEditors ...RequestEditorFn) (*GetUsersLoginResponse, error) + + // PatchUsersLoginWithBodyWithResponse request with any body + PatchUsersLoginWithBodyWithResponse(ctx context.Context, login string, params *PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersLoginResponse, error) + + PatchUsersLoginWithResponse(ctx context.Context, login string, params *PatchUsersLoginParams, body PatchUsersLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersLoginResponse, error) + + // GetVersionWithResponse request + GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error) +} + +type GetAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Agent +} + +// Status returns HTTPResponse.Status +func (r GetAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Agent +} + +// Status returns HTTPResponse.Status +func (r PostAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAgentsAgentIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteAgentsAgentIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAgentsAgentIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentsAgentIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Agent +} + +// Status returns HTTPResponse.Status +func (r GetAgentsAgentIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentsAgentIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchAgentsAgentIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Agent +} + +// Status returns HTTPResponse.Status +func (r PatchAgentsAgentIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchAgentsAgentIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAgentsAgentIdTasksResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Task +} + +// Status returns HTTPResponse.Status +func (r GetAgentsAgentIdTasksResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAgentsAgentIdTasksResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBadgesRepoIdCcXmlResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetBadgesRepoIdCcXmlResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBadgesRepoIdCcXmlResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBadgesRepoIdStatusSvgResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetBadgesRepoIdStatusSvgResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBadgesRepoIdStatusSvgResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofBlockResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofBlockResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofBlockResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofCmdlineResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofCmdlineResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofCmdlineResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofGoroutineResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofGoroutineResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofGoroutineResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofHeapResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofHeapResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofHeapResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofProfileResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofProfileResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofProfileResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofSymbolResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofSymbolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofSymbolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostDebugPprofSymbolResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostDebugPprofSymbolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostDebugPprofSymbolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofThreadcreateResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofThreadcreateResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofThreadcreateResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDebugPprofTraceResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetDebugPprofTraceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDebugPprofTraceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetForgesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Forge +} + +// Status returns HTTPResponse.Status +func (r GetForgesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetForgesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostForgesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Forge +} + +// Status returns HTTPResponse.Status +func (r PostForgesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostForgesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteForgesForgeIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteForgesForgeIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteForgesForgeIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetForgesForgeIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Forge +} + +// Status returns HTTPResponse.Status +func (r GetForgesForgeIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetForgesForgeIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchForgesForgeIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Forge +} + +// Status returns HTTPResponse.Status +func (r PatchForgesForgeIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchForgesForgeIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetHealthzResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetHealthzResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetHealthzResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostHookResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostHookResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostHookResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetLogLevelResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + LogLevel *string `json:"log-level,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetLogLevelResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetLogLevelResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostLogLevelResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + LogLevel *string `json:"log-level,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r PostLogLevelResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostLogLevelResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgLookupOrgFullNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Org +} + +// Status returns HTTPResponse.Status +func (r GetOrgLookupOrgFullNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgLookupOrgFullNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Org +} + +// Status returns HTTPResponse.Status +func (r GetOrgsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Org +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Agent +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Agent +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdAgentsAgentIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdAgentsAgentIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdAgentsAgentIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchOrgsOrgIdAgentsAgentIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Agent +} + +// Status returns HTTPResponse.Status +func (r PatchOrgsOrgIdAgentsAgentIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchOrgsOrgIdAgentsAgentIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdPermissionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]OrgPerm +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdPermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdPermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Registry +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchOrgsOrgIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PatchOrgsOrgIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchOrgsOrgIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Secret +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostOrgsOrgIdSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PostOrgsOrgIdSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostOrgsOrgIdSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteOrgsOrgIdSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteOrgsOrgIdSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteOrgsOrgIdSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetOrgsOrgIdSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r GetOrgsOrgIdSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetOrgsOrgIdSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchOrgsOrgIdSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PatchOrgsOrgIdSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchOrgsOrgIdSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPipelinesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Feed +} + +// Status returns HTTPResponse.Status +func (r GetPipelinesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPipelinesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetQueueInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]string +} + +// Status returns HTTPResponse.Status +func (r GetQueueInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetQueueInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetQueueNorunningpipelinesResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetQueueNorunningpipelinesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetQueueNorunningpipelinesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostQueuePauseResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostQueuePauseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostQueuePauseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostQueueResumeResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostQueueResumeResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostQueueResumeResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Registry +} + +// Status returns HTTPResponse.Status +func (r GetRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PostRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r GetRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PatchRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Repo +} + +// Status returns HTTPResponse.Status +func (r GetReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r PostReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposLookupRepoFullNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r GetReposLookupRepoFullNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposLookupRepoFullNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepairResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostReposRepairResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepairResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchReposRepoIdResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r PatchReposRepoIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchReposRepoIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdBranchesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdBranchesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdBranchesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdChownResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Repo +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdChownResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdChownResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdCronResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Cron +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdCronResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Cron +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdCronCronResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdCronCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdCronCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdCronCronResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Cron +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdCronCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdCronCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchReposRepoIdCronCronResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Cron +} + +// Status returns HTTPResponse.Status +func (r PatchReposRepoIdCronCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchReposRepoIdCronCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdCronCronResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdCronCronResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdCronCronResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdLogsNumberResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdLogsNumberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdLogsNumberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdLogsNumberStepIDResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]LogEntry +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdLogsNumberStepIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdLogsNumberStepIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdLogsNumberStepIdResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdLogsNumberStepIdResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdLogsNumberStepIdResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdMoveResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdMoveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdMoveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPermissionsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Perm +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPermissionsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPermissionsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPipelinesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Pipeline +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPipelinesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPipelinesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdPipelinesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdPipelinesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdPipelinesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdPipelinesNumberResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdPipelinesNumberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdPipelinesNumberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPipelinesNumberResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPipelinesNumberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPipelinesNumberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdPipelinesNumberResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdPipelinesNumberResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdPipelinesNumberResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdPipelinesNumberApproveResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdPipelinesNumberApproveResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdPipelinesNumberApproveResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdPipelinesNumberCancelResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdPipelinesNumberCancelResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdPipelinesNumberCancelResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPipelinesNumberConfigResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Config +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPipelinesNumberConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPipelinesNumberConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdPipelinesNumberDeclineResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Pipeline +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdPipelinesNumberDeclineResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdPipelinesNumberDeclineResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPipelinesNumberMetadataResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *MetadataMetadata +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPipelinesNumberMetadataResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPipelinesNumberMetadataResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdPullRequestsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]PullRequest +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdPullRequestsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdPullRequestsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Registry +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdRegistriesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdRegistriesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdRegistriesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchReposRepoIdRegistriesRegistryResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Registry +} + +// Status returns HTTPResponse.Status +func (r PatchReposRepoIdRegistriesRegistryResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchReposRepoIdRegistriesRegistryResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdRepairResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdRepairResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdRepairResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Secret +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostReposRepoIdSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PostReposRepoIdSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostReposRepoIdSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteReposRepoIdSecretsSecretNameResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteReposRepoIdSecretsSecretNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteReposRepoIdSecretsSecretNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetReposRepoIdSecretsSecretNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r GetReposRepoIdSecretsSecretNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetReposRepoIdSecretsSecretNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchReposRepoIdSecretsSecretNameResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PatchReposRepoIdSecretsSecretNameResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchReposRepoIdSecretsSecretNameResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Secret +} + +// Status returns HTTPResponse.Status +func (r GetSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PostSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r GetSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchSecretsSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *Secret +} + +// Status returns HTTPResponse.Status +func (r PatchSecretsSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchSecretsSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSignaturePublicKeyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetSignaturePublicKeyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSignaturePublicKeyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetStreamEventsResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetStreamEventsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetStreamEventsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetStreamLogsRepoIdPipelineStepIDResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r GetStreamLogsRepoIdPipelineStepIDResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetStreamLogsRepoIdPipelineStepIDResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User +} + +// Status returns HTTPResponse.Status +func (r GetUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserFeedResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Feed +} + +// Status returns HTTPResponse.Status +func (r GetUserFeedResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserFeedResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]Repo +} + +// Status returns HTTPResponse.Status +func (r GetUserReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUserReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteUserTokenResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteUserTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostUserTokenResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r PostUserTokenResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostUserTokenResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]User +} + +// Status returns HTTPResponse.Status +func (r GetUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PostUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User +} + +// Status returns HTTPResponse.Status +func (r PostUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PostUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteUsersLoginResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteUsersLoginResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUsersLoginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUsersLoginResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User +} + +// Status returns HTTPResponse.Status +func (r GetUsersLoginResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetUsersLoginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type PatchUsersLoginResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *User +} + +// Status returns HTTPResponse.Status +func (r PatchUsersLoginResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r PatchUsersLoginResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Source *string `json:"source,omitempty"` + Version *string `json:"version,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetVersionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// GetAgentsWithResponse request returning *GetAgentsResponse +func (c *ClientWithResponses) GetAgentsWithResponse(ctx context.Context, params *GetAgentsParams, reqEditors ...RequestEditorFn) (*GetAgentsResponse, error) { + rsp, err := c.GetAgents(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentsResponse(rsp) +} + +// PostAgentsWithBodyWithResponse request with arbitrary body returning *PostAgentsResponse +func (c *ClientWithResponses) PostAgentsWithBodyWithResponse(ctx context.Context, params *PostAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostAgentsResponse, error) { + rsp, err := c.PostAgentsWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostAgentsResponse(rsp) +} + +// DeleteAgentsAgentIdWithResponse request returning *DeleteAgentsAgentIdResponse +func (c *ClientWithResponses) DeleteAgentsAgentIdWithResponse(ctx context.Context, agentId int, params *DeleteAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*DeleteAgentsAgentIdResponse, error) { + rsp, err := c.DeleteAgentsAgentId(ctx, agentId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAgentsAgentIdResponse(rsp) +} + +// GetAgentsAgentIdWithResponse request returning *GetAgentsAgentIdResponse +func (c *ClientWithResponses) GetAgentsAgentIdWithResponse(ctx context.Context, agentId int, params *GetAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*GetAgentsAgentIdResponse, error) { + rsp, err := c.GetAgentsAgentId(ctx, agentId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentsAgentIdResponse(rsp) +} + +// PatchAgentsAgentIdWithBodyWithResponse request with arbitrary body returning *PatchAgentsAgentIdResponse +func (c *ClientWithResponses) PatchAgentsAgentIdWithBodyWithResponse(ctx context.Context, agentId int, params *PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchAgentsAgentIdResponse, error) { + rsp, err := c.PatchAgentsAgentIdWithBody(ctx, agentId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchAgentsAgentIdResponse(rsp) +} + +// GetAgentsAgentIdTasksWithResponse request returning *GetAgentsAgentIdTasksResponse +func (c *ClientWithResponses) GetAgentsAgentIdTasksWithResponse(ctx context.Context, agentId int, params *GetAgentsAgentIdTasksParams, reqEditors ...RequestEditorFn) (*GetAgentsAgentIdTasksResponse, error) { + rsp, err := c.GetAgentsAgentIdTasks(ctx, agentId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAgentsAgentIdTasksResponse(rsp) +} + +// GetBadgesRepoIdCcXmlWithResponse request returning *GetBadgesRepoIdCcXmlResponse +func (c *ClientWithResponses) GetBadgesRepoIdCcXmlWithResponse(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*GetBadgesRepoIdCcXmlResponse, error) { + rsp, err := c.GetBadgesRepoIdCcXml(ctx, repoId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBadgesRepoIdCcXmlResponse(rsp) +} + +// GetBadgesRepoIdStatusSvgWithResponse request returning *GetBadgesRepoIdStatusSvgResponse +func (c *ClientWithResponses) GetBadgesRepoIdStatusSvgWithResponse(ctx context.Context, repoId int, reqEditors ...RequestEditorFn) (*GetBadgesRepoIdStatusSvgResponse, error) { + rsp, err := c.GetBadgesRepoIdStatusSvg(ctx, repoId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBadgesRepoIdStatusSvgResponse(rsp) +} + +// GetDebugPprofWithResponse request returning *GetDebugPprofResponse +func (c *ClientWithResponses) GetDebugPprofWithResponse(ctx context.Context, params *GetDebugPprofParams, reqEditors ...RequestEditorFn) (*GetDebugPprofResponse, error) { + rsp, err := c.GetDebugPprof(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofResponse(rsp) +} + +// GetDebugPprofBlockWithResponse request returning *GetDebugPprofBlockResponse +func (c *ClientWithResponses) GetDebugPprofBlockWithResponse(ctx context.Context, params *GetDebugPprofBlockParams, reqEditors ...RequestEditorFn) (*GetDebugPprofBlockResponse, error) { + rsp, err := c.GetDebugPprofBlock(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofBlockResponse(rsp) +} + +// GetDebugPprofCmdlineWithResponse request returning *GetDebugPprofCmdlineResponse +func (c *ClientWithResponses) GetDebugPprofCmdlineWithResponse(ctx context.Context, params *GetDebugPprofCmdlineParams, reqEditors ...RequestEditorFn) (*GetDebugPprofCmdlineResponse, error) { + rsp, err := c.GetDebugPprofCmdline(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofCmdlineResponse(rsp) +} + +// GetDebugPprofGoroutineWithResponse request returning *GetDebugPprofGoroutineResponse +func (c *ClientWithResponses) GetDebugPprofGoroutineWithResponse(ctx context.Context, params *GetDebugPprofGoroutineParams, reqEditors ...RequestEditorFn) (*GetDebugPprofGoroutineResponse, error) { + rsp, err := c.GetDebugPprofGoroutine(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofGoroutineResponse(rsp) +} + +// GetDebugPprofHeapWithResponse request returning *GetDebugPprofHeapResponse +func (c *ClientWithResponses) GetDebugPprofHeapWithResponse(ctx context.Context, params *GetDebugPprofHeapParams, reqEditors ...RequestEditorFn) (*GetDebugPprofHeapResponse, error) { + rsp, err := c.GetDebugPprofHeap(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofHeapResponse(rsp) +} + +// GetDebugPprofProfileWithResponse request returning *GetDebugPprofProfileResponse +func (c *ClientWithResponses) GetDebugPprofProfileWithResponse(ctx context.Context, params *GetDebugPprofProfileParams, reqEditors ...RequestEditorFn) (*GetDebugPprofProfileResponse, error) { + rsp, err := c.GetDebugPprofProfile(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofProfileResponse(rsp) +} + +// GetDebugPprofSymbolWithResponse request returning *GetDebugPprofSymbolResponse +func (c *ClientWithResponses) GetDebugPprofSymbolWithResponse(ctx context.Context, params *GetDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*GetDebugPprofSymbolResponse, error) { + rsp, err := c.GetDebugPprofSymbol(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofSymbolResponse(rsp) +} + +// PostDebugPprofSymbolWithResponse request returning *PostDebugPprofSymbolResponse +func (c *ClientWithResponses) PostDebugPprofSymbolWithResponse(ctx context.Context, params *PostDebugPprofSymbolParams, reqEditors ...RequestEditorFn) (*PostDebugPprofSymbolResponse, error) { + rsp, err := c.PostDebugPprofSymbol(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostDebugPprofSymbolResponse(rsp) +} + +// GetDebugPprofThreadcreateWithResponse request returning *GetDebugPprofThreadcreateResponse +func (c *ClientWithResponses) GetDebugPprofThreadcreateWithResponse(ctx context.Context, params *GetDebugPprofThreadcreateParams, reqEditors ...RequestEditorFn) (*GetDebugPprofThreadcreateResponse, error) { + rsp, err := c.GetDebugPprofThreadcreate(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofThreadcreateResponse(rsp) +} + +// GetDebugPprofTraceWithResponse request returning *GetDebugPprofTraceResponse +func (c *ClientWithResponses) GetDebugPprofTraceWithResponse(ctx context.Context, params *GetDebugPprofTraceParams, reqEditors ...RequestEditorFn) (*GetDebugPprofTraceResponse, error) { + rsp, err := c.GetDebugPprofTrace(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDebugPprofTraceResponse(rsp) +} + +// GetForgesWithResponse request returning *GetForgesResponse +func (c *ClientWithResponses) GetForgesWithResponse(ctx context.Context, params *GetForgesParams, reqEditors ...RequestEditorFn) (*GetForgesResponse, error) { + rsp, err := c.GetForges(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetForgesResponse(rsp) +} + +// PostForgesWithBodyWithResponse request with arbitrary body returning *PostForgesResponse +func (c *ClientWithResponses) PostForgesWithBodyWithResponse(ctx context.Context, params *PostForgesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostForgesResponse, error) { + rsp, err := c.PostForgesWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostForgesResponse(rsp) +} + +// DeleteForgesForgeIdWithResponse request returning *DeleteForgesForgeIdResponse +func (c *ClientWithResponses) DeleteForgesForgeIdWithResponse(ctx context.Context, forgeId int, params *DeleteForgesForgeIdParams, reqEditors ...RequestEditorFn) (*DeleteForgesForgeIdResponse, error) { + rsp, err := c.DeleteForgesForgeId(ctx, forgeId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteForgesForgeIdResponse(rsp) +} + +// GetForgesForgeIdWithResponse request returning *GetForgesForgeIdResponse +func (c *ClientWithResponses) GetForgesForgeIdWithResponse(ctx context.Context, forgeId int, params *GetForgesForgeIdParams, reqEditors ...RequestEditorFn) (*GetForgesForgeIdResponse, error) { + rsp, err := c.GetForgesForgeId(ctx, forgeId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetForgesForgeIdResponse(rsp) +} + +// PatchForgesForgeIdWithBodyWithResponse request with arbitrary body returning *PatchForgesForgeIdResponse +func (c *ClientWithResponses) PatchForgesForgeIdWithBodyWithResponse(ctx context.Context, forgeId int, params *PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchForgesForgeIdResponse, error) { + rsp, err := c.PatchForgesForgeIdWithBody(ctx, forgeId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchForgesForgeIdResponse(rsp) +} + +// GetHealthzWithResponse request returning *GetHealthzResponse +func (c *ClientWithResponses) GetHealthzWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetHealthzResponse, error) { + rsp, err := c.GetHealthz(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetHealthzResponse(rsp) +} + +// PostHookWithBodyWithResponse request with arbitrary body returning *PostHookResponse +func (c *ClientWithResponses) PostHookWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostHookResponse, error) { + rsp, err := c.PostHookWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostHookResponse(rsp) +} + +// GetLogLevelWithResponse request returning *GetLogLevelResponse +func (c *ClientWithResponses) GetLogLevelWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetLogLevelResponse, error) { + rsp, err := c.GetLogLevel(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetLogLevelResponse(rsp) +} + +// PostLogLevelWithBodyWithResponse request with arbitrary body returning *PostLogLevelResponse +func (c *ClientWithResponses) PostLogLevelWithBodyWithResponse(ctx context.Context, params *PostLogLevelParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostLogLevelResponse, error) { + rsp, err := c.PostLogLevelWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostLogLevelResponse(rsp) +} + +// GetOrgLookupOrgFullNameWithResponse request returning *GetOrgLookupOrgFullNameResponse +func (c *ClientWithResponses) GetOrgLookupOrgFullNameWithResponse(ctx context.Context, orgFullName string, params *GetOrgLookupOrgFullNameParams, reqEditors ...RequestEditorFn) (*GetOrgLookupOrgFullNameResponse, error) { + rsp, err := c.GetOrgLookupOrgFullName(ctx, orgFullName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgLookupOrgFullNameResponse(rsp) +} + +// GetOrgsWithResponse request returning *GetOrgsResponse +func (c *ClientWithResponses) GetOrgsWithResponse(ctx context.Context, params *GetOrgsParams, reqEditors ...RequestEditorFn) (*GetOrgsResponse, error) { + rsp, err := c.GetOrgs(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsResponse(rsp) +} + +// DeleteOrgsIdWithResponse request returning *DeleteOrgsIdResponse +func (c *ClientWithResponses) DeleteOrgsIdWithResponse(ctx context.Context, id string, params *DeleteOrgsIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsIdResponse, error) { + rsp, err := c.DeleteOrgsId(ctx, id, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsIdResponse(rsp) +} + +// GetOrgsOrgIdWithResponse request returning *GetOrgsOrgIdResponse +func (c *ClientWithResponses) GetOrgsOrgIdWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdResponse, error) { + rsp, err := c.GetOrgsOrgId(ctx, orgId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdResponse(rsp) +} + +// GetOrgsOrgIdAgentsWithResponse request returning *GetOrgsOrgIdAgentsResponse +func (c *ClientWithResponses) GetOrgsOrgIdAgentsWithResponse(ctx context.Context, orgId int, params *GetOrgsOrgIdAgentsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdAgentsResponse, error) { + rsp, err := c.GetOrgsOrgIdAgents(ctx, orgId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdAgentsResponse(rsp) +} + +// PostOrgsOrgIdAgentsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdAgentsResponse +func (c *ClientWithResponses) PostOrgsOrgIdAgentsWithBodyWithResponse(ctx context.Context, orgId int, params *PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdAgentsResponse, error) { + rsp, err := c.PostOrgsOrgIdAgentsWithBody(ctx, orgId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdAgentsResponse(rsp) +} + +// DeleteOrgsOrgIdAgentsAgentIdWithResponse request returning *DeleteOrgsOrgIdAgentsAgentIdResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdAgentsAgentIdWithResponse(ctx context.Context, orgId int, agentId int, params *DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdAgentsAgentIdResponse, error) { + rsp, err := c.DeleteOrgsOrgIdAgentsAgentId(ctx, orgId, agentId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdAgentsAgentIdResponse(rsp) +} + +// PatchOrgsOrgIdAgentsAgentIdWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdAgentsAgentIdResponse +func (c *ClientWithResponses) PatchOrgsOrgIdAgentsAgentIdWithBodyWithResponse(ctx context.Context, orgId int, agentId int, params *PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdAgentsAgentIdResponse, error) { + rsp, err := c.PatchOrgsOrgIdAgentsAgentIdWithBody(ctx, orgId, agentId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchOrgsOrgIdAgentsAgentIdResponse(rsp) +} + +// GetOrgsOrgIdPermissionsWithResponse request returning *GetOrgsOrgIdPermissionsResponse +func (c *ClientWithResponses) GetOrgsOrgIdPermissionsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdPermissionsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdPermissionsResponse, error) { + rsp, err := c.GetOrgsOrgIdPermissions(ctx, orgId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdPermissionsResponse(rsp) +} + +// GetOrgsOrgIdRegistriesWithResponse request returning *GetOrgsOrgIdRegistriesResponse +func (c *ClientWithResponses) GetOrgsOrgIdRegistriesWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdRegistriesParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesResponse, error) { + rsp, err := c.GetOrgsOrgIdRegistries(ctx, orgId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdRegistriesResponse(rsp) +} + +// PostOrgsOrgIdRegistriesWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdRegistriesResponse +func (c *ClientWithResponses) PostOrgsOrgIdRegistriesWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdRegistriesResponse, error) { + rsp, err := c.PostOrgsOrgIdRegistriesWithBody(ctx, orgId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdRegistriesResponse(rsp) +} + +// DeleteOrgsOrgIdRegistriesRegistryWithResponse request returning *DeleteOrgsOrgIdRegistriesRegistryResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdRegistriesRegistryWithResponse(ctx context.Context, orgId string, registry string, params *DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdRegistriesRegistryResponse, error) { + rsp, err := c.DeleteOrgsOrgIdRegistriesRegistry(ctx, orgId, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdRegistriesRegistryResponse(rsp) +} + +// GetOrgsOrgIdRegistriesRegistryWithResponse request returning *GetOrgsOrgIdRegistriesRegistryResponse +func (c *ClientWithResponses) GetOrgsOrgIdRegistriesRegistryWithResponse(ctx context.Context, orgId string, registry string, params *GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdRegistriesRegistryResponse, error) { + rsp, err := c.GetOrgsOrgIdRegistriesRegistry(ctx, orgId, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdRegistriesRegistryResponse(rsp) +} + +// PatchOrgsOrgIdRegistriesRegistryWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdRegistriesRegistryResponse +func (c *ClientWithResponses) PatchOrgsOrgIdRegistriesRegistryWithBodyWithResponse(ctx context.Context, orgId string, registry string, params *PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdRegistriesRegistryResponse, error) { + rsp, err := c.PatchOrgsOrgIdRegistriesRegistryWithBody(ctx, orgId, registry, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchOrgsOrgIdRegistriesRegistryResponse(rsp) +} + +// GetOrgsOrgIdSecretsWithResponse request returning *GetOrgsOrgIdSecretsResponse +func (c *ClientWithResponses) GetOrgsOrgIdSecretsWithResponse(ctx context.Context, orgId string, params *GetOrgsOrgIdSecretsParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretsResponse, error) { + rsp, err := c.GetOrgsOrgIdSecrets(ctx, orgId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdSecretsResponse(rsp) +} + +// PostOrgsOrgIdSecretsWithBodyWithResponse request with arbitrary body returning *PostOrgsOrgIdSecretsResponse +func (c *ClientWithResponses) PostOrgsOrgIdSecretsWithBodyWithResponse(ctx context.Context, orgId string, params *PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostOrgsOrgIdSecretsResponse, error) { + rsp, err := c.PostOrgsOrgIdSecretsWithBody(ctx, orgId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostOrgsOrgIdSecretsResponse(rsp) +} + +// DeleteOrgsOrgIdSecretsSecretWithResponse request returning *DeleteOrgsOrgIdSecretsSecretResponse +func (c *ClientWithResponses) DeleteOrgsOrgIdSecretsSecretWithResponse(ctx context.Context, orgId string, secret string, params *DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*DeleteOrgsOrgIdSecretsSecretResponse, error) { + rsp, err := c.DeleteOrgsOrgIdSecretsSecret(ctx, orgId, secret, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteOrgsOrgIdSecretsSecretResponse(rsp) +} + +// GetOrgsOrgIdSecretsSecretWithResponse request returning *GetOrgsOrgIdSecretsSecretResponse +func (c *ClientWithResponses) GetOrgsOrgIdSecretsSecretWithResponse(ctx context.Context, orgId string, secret string, params *GetOrgsOrgIdSecretsSecretParams, reqEditors ...RequestEditorFn) (*GetOrgsOrgIdSecretsSecretResponse, error) { + rsp, err := c.GetOrgsOrgIdSecretsSecret(ctx, orgId, secret, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetOrgsOrgIdSecretsSecretResponse(rsp) +} + +// PatchOrgsOrgIdSecretsSecretWithBodyWithResponse request with arbitrary body returning *PatchOrgsOrgIdSecretsSecretResponse +func (c *ClientWithResponses) PatchOrgsOrgIdSecretsSecretWithBodyWithResponse(ctx context.Context, orgId string, secret string, params *PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchOrgsOrgIdSecretsSecretResponse, error) { + rsp, err := c.PatchOrgsOrgIdSecretsSecretWithBody(ctx, orgId, secret, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchOrgsOrgIdSecretsSecretResponse(rsp) +} + +// GetPipelinesWithResponse request returning *GetPipelinesResponse +func (c *ClientWithResponses) GetPipelinesWithResponse(ctx context.Context, params *GetPipelinesParams, reqEditors ...RequestEditorFn) (*GetPipelinesResponse, error) { + rsp, err := c.GetPipelines(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPipelinesResponse(rsp) +} + +// GetQueueInfoWithResponse request returning *GetQueueInfoResponse +func (c *ClientWithResponses) GetQueueInfoWithResponse(ctx context.Context, params *GetQueueInfoParams, reqEditors ...RequestEditorFn) (*GetQueueInfoResponse, error) { + rsp, err := c.GetQueueInfo(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetQueueInfoResponse(rsp) +} + +// GetQueueNorunningpipelinesWithResponse request returning *GetQueueNorunningpipelinesResponse +func (c *ClientWithResponses) GetQueueNorunningpipelinesWithResponse(ctx context.Context, params *GetQueueNorunningpipelinesParams, reqEditors ...RequestEditorFn) (*GetQueueNorunningpipelinesResponse, error) { + rsp, err := c.GetQueueNorunningpipelines(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetQueueNorunningpipelinesResponse(rsp) +} + +// PostQueuePauseWithResponse request returning *PostQueuePauseResponse +func (c *ClientWithResponses) PostQueuePauseWithResponse(ctx context.Context, params *PostQueuePauseParams, reqEditors ...RequestEditorFn) (*PostQueuePauseResponse, error) { + rsp, err := c.PostQueuePause(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostQueuePauseResponse(rsp) +} + +// PostQueueResumeWithResponse request returning *PostQueueResumeResponse +func (c *ClientWithResponses) PostQueueResumeWithResponse(ctx context.Context, params *PostQueueResumeParams, reqEditors ...RequestEditorFn) (*PostQueueResumeResponse, error) { + rsp, err := c.PostQueueResume(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostQueueResumeResponse(rsp) +} + +// GetRegistriesWithResponse request returning *GetRegistriesResponse +func (c *ClientWithResponses) GetRegistriesWithResponse(ctx context.Context, params *GetRegistriesParams, reqEditors ...RequestEditorFn) (*GetRegistriesResponse, error) { + rsp, err := c.GetRegistries(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRegistriesResponse(rsp) +} + +// PostRegistriesWithBodyWithResponse request with arbitrary body returning *PostRegistriesResponse +func (c *ClientWithResponses) PostRegistriesWithBodyWithResponse(ctx context.Context, params *PostRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostRegistriesResponse, error) { + rsp, err := c.PostRegistriesWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostRegistriesResponse(rsp) +} + +// DeleteRegistriesRegistryWithResponse request returning *DeleteRegistriesRegistryResponse +func (c *ClientWithResponses) DeleteRegistriesRegistryWithResponse(ctx context.Context, registry string, params *DeleteRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteRegistriesRegistryResponse, error) { + rsp, err := c.DeleteRegistriesRegistry(ctx, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteRegistriesRegistryResponse(rsp) +} + +// GetRegistriesRegistryWithResponse request returning *GetRegistriesRegistryResponse +func (c *ClientWithResponses) GetRegistriesRegistryWithResponse(ctx context.Context, registry string, params *GetRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetRegistriesRegistryResponse, error) { + rsp, err := c.GetRegistriesRegistry(ctx, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRegistriesRegistryResponse(rsp) +} + +// PatchRegistriesRegistryWithBodyWithResponse request with arbitrary body returning *PatchRegistriesRegistryResponse +func (c *ClientWithResponses) PatchRegistriesRegistryWithBodyWithResponse(ctx context.Context, registry string, params *PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchRegistriesRegistryResponse, error) { + rsp, err := c.PatchRegistriesRegistryWithBody(ctx, registry, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchRegistriesRegistryResponse(rsp) +} + +// GetReposWithResponse request returning *GetReposResponse +func (c *ClientWithResponses) GetReposWithResponse(ctx context.Context, params *GetReposParams, reqEditors ...RequestEditorFn) (*GetReposResponse, error) { + rsp, err := c.GetRepos(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposResponse(rsp) +} + +// PostReposWithResponse request returning *PostReposResponse +func (c *ClientWithResponses) PostReposWithResponse(ctx context.Context, params *PostReposParams, reqEditors ...RequestEditorFn) (*PostReposResponse, error) { + rsp, err := c.PostRepos(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposResponse(rsp) +} + +// GetReposLookupRepoFullNameWithResponse request returning *GetReposLookupRepoFullNameResponse +func (c *ClientWithResponses) GetReposLookupRepoFullNameWithResponse(ctx context.Context, repoFullName string, params *GetReposLookupRepoFullNameParams, reqEditors ...RequestEditorFn) (*GetReposLookupRepoFullNameResponse, error) { + rsp, err := c.GetReposLookupRepoFullName(ctx, repoFullName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposLookupRepoFullNameResponse(rsp) +} + +// PostReposRepairWithResponse request returning *PostReposRepairResponse +func (c *ClientWithResponses) PostReposRepairWithResponse(ctx context.Context, params *PostReposRepairParams, reqEditors ...RequestEditorFn) (*PostReposRepairResponse, error) { + rsp, err := c.PostReposRepair(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepairResponse(rsp) +} + +// DeleteReposRepoIdWithResponse request returning *DeleteReposRepoIdResponse +func (c *ClientWithResponses) DeleteReposRepoIdWithResponse(ctx context.Context, repoId int, params *DeleteReposRepoIdParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdResponse, error) { + rsp, err := c.DeleteReposRepoId(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdResponse(rsp) +} + +// GetReposRepoIdWithResponse request returning *GetReposRepoIdResponse +func (c *ClientWithResponses) GetReposRepoIdWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdResponse, error) { + rsp, err := c.GetReposRepoId(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdResponse(rsp) +} + +// PatchReposRepoIdWithBodyWithResponse request with arbitrary body returning *PatchReposRepoIdResponse +func (c *ClientWithResponses) PatchReposRepoIdWithBodyWithResponse(ctx context.Context, repoId int, params *PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdResponse, error) { + rsp, err := c.PatchReposRepoIdWithBody(ctx, repoId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReposRepoIdResponse(rsp) +} + +// GetReposRepoIdBranchesWithResponse request returning *GetReposRepoIdBranchesResponse +func (c *ClientWithResponses) GetReposRepoIdBranchesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdBranchesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdBranchesResponse, error) { + rsp, err := c.GetReposRepoIdBranches(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdBranchesResponse(rsp) +} + +// PostReposRepoIdChownWithResponse request returning *PostReposRepoIdChownResponse +func (c *ClientWithResponses) PostReposRepoIdChownWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdChownParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdChownResponse, error) { + rsp, err := c.PostReposRepoIdChown(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdChownResponse(rsp) +} + +// GetReposRepoIdCronWithResponse request returning *GetReposRepoIdCronResponse +func (c *ClientWithResponses) GetReposRepoIdCronWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdCronParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdCronResponse, error) { + rsp, err := c.GetReposRepoIdCron(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdCronResponse(rsp) +} + +// PostReposRepoIdCronWithBodyWithResponse request with arbitrary body returning *PostReposRepoIdCronResponse +func (c *ClientWithResponses) PostReposRepoIdCronWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdCronResponse, error) { + rsp, err := c.PostReposRepoIdCronWithBody(ctx, repoId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdCronResponse(rsp) +} + +// DeleteReposRepoIdCronCronWithResponse request returning *DeleteReposRepoIdCronCronResponse +func (c *ClientWithResponses) DeleteReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *DeleteReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdCronCronResponse, error) { + rsp, err := c.DeleteReposRepoIdCronCron(ctx, repoId, cron, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdCronCronResponse(rsp) +} + +// GetReposRepoIdCronCronWithResponse request returning *GetReposRepoIdCronCronResponse +func (c *ClientWithResponses) GetReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *GetReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdCronCronResponse, error) { + rsp, err := c.GetReposRepoIdCronCron(ctx, repoId, cron, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdCronCronResponse(rsp) +} + +// PatchReposRepoIdCronCronWithBodyWithResponse request with arbitrary body returning *PatchReposRepoIdCronCronResponse +func (c *ClientWithResponses) PatchReposRepoIdCronCronWithBodyWithResponse(ctx context.Context, repoId int, cron string, params *PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdCronCronResponse, error) { + rsp, err := c.PatchReposRepoIdCronCronWithBody(ctx, repoId, cron, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReposRepoIdCronCronResponse(rsp) +} + +// PostReposRepoIdCronCronWithResponse request returning *PostReposRepoIdCronCronResponse +func (c *ClientWithResponses) PostReposRepoIdCronCronWithResponse(ctx context.Context, repoId int, cron string, params *PostReposRepoIdCronCronParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdCronCronResponse, error) { + rsp, err := c.PostReposRepoIdCronCron(ctx, repoId, cron, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdCronCronResponse(rsp) +} + +// DeleteReposRepoIdLogsNumberWithResponse request returning *DeleteReposRepoIdLogsNumberResponse +func (c *ClientWithResponses) DeleteReposRepoIdLogsNumberWithResponse(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdLogsNumberParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdLogsNumberResponse, error) { + rsp, err := c.DeleteReposRepoIdLogsNumber(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdLogsNumberResponse(rsp) +} + +// GetReposRepoIdLogsNumberStepIDWithResponse request returning *GetReposRepoIdLogsNumberStepIDResponse +func (c *ClientWithResponses) GetReposRepoIdLogsNumberStepIDWithResponse(ctx context.Context, repoId int, number int, stepID int, params *GetReposRepoIdLogsNumberStepIDParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdLogsNumberStepIDResponse, error) { + rsp, err := c.GetReposRepoIdLogsNumberStepID(ctx, repoId, number, stepID, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdLogsNumberStepIDResponse(rsp) +} + +// DeleteReposRepoIdLogsNumberStepIdWithResponse request returning *DeleteReposRepoIdLogsNumberStepIdResponse +func (c *ClientWithResponses) DeleteReposRepoIdLogsNumberStepIdWithResponse(ctx context.Context, repoId int, number int, stepId int, params *DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdLogsNumberStepIdResponse, error) { + rsp, err := c.DeleteReposRepoIdLogsNumberStepId(ctx, repoId, number, stepId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdLogsNumberStepIdResponse(rsp) +} + +// PostReposRepoIdMoveWithResponse request returning *PostReposRepoIdMoveResponse +func (c *ClientWithResponses) PostReposRepoIdMoveWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdMoveParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdMoveResponse, error) { + rsp, err := c.PostReposRepoIdMove(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdMoveResponse(rsp) +} + +// GetReposRepoIdPermissionsWithResponse request returning *GetReposRepoIdPermissionsResponse +func (c *ClientWithResponses) GetReposRepoIdPermissionsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPermissionsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPermissionsResponse, error) { + rsp, err := c.GetReposRepoIdPermissions(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPermissionsResponse(rsp) +} + +// GetReposRepoIdPipelinesWithResponse request returning *GetReposRepoIdPipelinesResponse +func (c *ClientWithResponses) GetReposRepoIdPipelinesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPipelinesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesResponse, error) { + rsp, err := c.GetReposRepoIdPipelines(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPipelinesResponse(rsp) +} + +// PostReposRepoIdPipelinesWithBodyWithResponse request with arbitrary body returning *PostReposRepoIdPipelinesResponse +func (c *ClientWithResponses) PostReposRepoIdPipelinesWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesResponse, error) { + rsp, err := c.PostReposRepoIdPipelinesWithBody(ctx, repoId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdPipelinesResponse(rsp) +} + +// DeleteReposRepoIdPipelinesNumberWithResponse request returning *DeleteReposRepoIdPipelinesNumberResponse +func (c *ClientWithResponses) DeleteReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *DeleteReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdPipelinesNumberResponse, error) { + rsp, err := c.DeleteReposRepoIdPipelinesNumber(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdPipelinesNumberResponse(rsp) +} + +// GetReposRepoIdPipelinesNumberWithResponse request returning *GetReposRepoIdPipelinesNumberResponse +func (c *ClientWithResponses) GetReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberResponse, error) { + rsp, err := c.GetReposRepoIdPipelinesNumber(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPipelinesNumberResponse(rsp) +} + +// PostReposRepoIdPipelinesNumberWithResponse request returning *PostReposRepoIdPipelinesNumberResponse +func (c *ClientWithResponses) PostReposRepoIdPipelinesNumberWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberResponse, error) { + rsp, err := c.PostReposRepoIdPipelinesNumber(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdPipelinesNumberResponse(rsp) +} + +// PostReposRepoIdPipelinesNumberApproveWithResponse request returning *PostReposRepoIdPipelinesNumberApproveResponse +func (c *ClientWithResponses) PostReposRepoIdPipelinesNumberApproveWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberApproveResponse, error) { + rsp, err := c.PostReposRepoIdPipelinesNumberApprove(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdPipelinesNumberApproveResponse(rsp) +} + +// PostReposRepoIdPipelinesNumberCancelWithResponse request returning *PostReposRepoIdPipelinesNumberCancelResponse +func (c *ClientWithResponses) PostReposRepoIdPipelinesNumberCancelWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberCancelResponse, error) { + rsp, err := c.PostReposRepoIdPipelinesNumberCancel(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdPipelinesNumberCancelResponse(rsp) +} + +// GetReposRepoIdPipelinesNumberConfigWithResponse request returning *GetReposRepoIdPipelinesNumberConfigResponse +func (c *ClientWithResponses) GetReposRepoIdPipelinesNumberConfigWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberConfigResponse, error) { + rsp, err := c.GetReposRepoIdPipelinesNumberConfig(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPipelinesNumberConfigResponse(rsp) +} + +// PostReposRepoIdPipelinesNumberDeclineWithResponse request returning *PostReposRepoIdPipelinesNumberDeclineResponse +func (c *ClientWithResponses) PostReposRepoIdPipelinesNumberDeclineWithResponse(ctx context.Context, repoId int, number int, params *PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdPipelinesNumberDeclineResponse, error) { + rsp, err := c.PostReposRepoIdPipelinesNumberDecline(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdPipelinesNumberDeclineResponse(rsp) +} + +// GetReposRepoIdPipelinesNumberMetadataWithResponse request returning *GetReposRepoIdPipelinesNumberMetadataResponse +func (c *ClientWithResponses) GetReposRepoIdPipelinesNumberMetadataWithResponse(ctx context.Context, repoId int, number int, params *GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPipelinesNumberMetadataResponse, error) { + rsp, err := c.GetReposRepoIdPipelinesNumberMetadata(ctx, repoId, number, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPipelinesNumberMetadataResponse(rsp) +} + +// GetReposRepoIdPullRequestsWithResponse request returning *GetReposRepoIdPullRequestsResponse +func (c *ClientWithResponses) GetReposRepoIdPullRequestsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdPullRequestsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdPullRequestsResponse, error) { + rsp, err := c.GetReposRepoIdPullRequests(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdPullRequestsResponse(rsp) +} + +// GetReposRepoIdRegistriesWithResponse request returning *GetReposRepoIdRegistriesResponse +func (c *ClientWithResponses) GetReposRepoIdRegistriesWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdRegistriesParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdRegistriesResponse, error) { + rsp, err := c.GetReposRepoIdRegistries(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdRegistriesResponse(rsp) +} + +// PostReposRepoIdRegistriesWithBodyWithResponse request with arbitrary body returning *PostReposRepoIdRegistriesResponse +func (c *ClientWithResponses) PostReposRepoIdRegistriesWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdRegistriesResponse, error) { + rsp, err := c.PostReposRepoIdRegistriesWithBody(ctx, repoId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdRegistriesResponse(rsp) +} + +// DeleteReposRepoIdRegistriesRegistryWithResponse request returning *DeleteReposRepoIdRegistriesRegistryResponse +func (c *ClientWithResponses) DeleteReposRepoIdRegistriesRegistryWithResponse(ctx context.Context, repoId int, registry string, params *DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdRegistriesRegistryResponse, error) { + rsp, err := c.DeleteReposRepoIdRegistriesRegistry(ctx, repoId, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdRegistriesRegistryResponse(rsp) +} + +// GetReposRepoIdRegistriesRegistryWithResponse request returning *GetReposRepoIdRegistriesRegistryResponse +func (c *ClientWithResponses) GetReposRepoIdRegistriesRegistryWithResponse(ctx context.Context, repoId int, registry string, params *GetReposRepoIdRegistriesRegistryParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdRegistriesRegistryResponse, error) { + rsp, err := c.GetReposRepoIdRegistriesRegistry(ctx, repoId, registry, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdRegistriesRegistryResponse(rsp) +} + +// PatchReposRepoIdRegistriesRegistryWithBodyWithResponse request with arbitrary body returning *PatchReposRepoIdRegistriesRegistryResponse +func (c *ClientWithResponses) PatchReposRepoIdRegistriesRegistryWithBodyWithResponse(ctx context.Context, repoId int, registry string, params *PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdRegistriesRegistryResponse, error) { + rsp, err := c.PatchReposRepoIdRegistriesRegistryWithBody(ctx, repoId, registry, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReposRepoIdRegistriesRegistryResponse(rsp) +} + +// PostReposRepoIdRepairWithResponse request returning *PostReposRepoIdRepairResponse +func (c *ClientWithResponses) PostReposRepoIdRepairWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdRepairParams, reqEditors ...RequestEditorFn) (*PostReposRepoIdRepairResponse, error) { + rsp, err := c.PostReposRepoIdRepair(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdRepairResponse(rsp) +} + +// GetReposRepoIdSecretsWithResponse request returning *GetReposRepoIdSecretsResponse +func (c *ClientWithResponses) GetReposRepoIdSecretsWithResponse(ctx context.Context, repoId int, params *GetReposRepoIdSecretsParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdSecretsResponse, error) { + rsp, err := c.GetReposRepoIdSecrets(ctx, repoId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdSecretsResponse(rsp) +} + +// PostReposRepoIdSecretsWithBodyWithResponse request with arbitrary body returning *PostReposRepoIdSecretsResponse +func (c *ClientWithResponses) PostReposRepoIdSecretsWithBodyWithResponse(ctx context.Context, repoId int, params *PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostReposRepoIdSecretsResponse, error) { + rsp, err := c.PostReposRepoIdSecretsWithBody(ctx, repoId, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostReposRepoIdSecretsResponse(rsp) +} + +// DeleteReposRepoIdSecretsSecretNameWithResponse request returning *DeleteReposRepoIdSecretsSecretNameResponse +func (c *ClientWithResponses) DeleteReposRepoIdSecretsSecretNameWithResponse(ctx context.Context, repoId int, secretName string, params *DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*DeleteReposRepoIdSecretsSecretNameResponse, error) { + rsp, err := c.DeleteReposRepoIdSecretsSecretName(ctx, repoId, secretName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteReposRepoIdSecretsSecretNameResponse(rsp) +} + +// GetReposRepoIdSecretsSecretNameWithResponse request returning *GetReposRepoIdSecretsSecretNameResponse +func (c *ClientWithResponses) GetReposRepoIdSecretsSecretNameWithResponse(ctx context.Context, repoId int, secretName string, params *GetReposRepoIdSecretsSecretNameParams, reqEditors ...RequestEditorFn) (*GetReposRepoIdSecretsSecretNameResponse, error) { + rsp, err := c.GetReposRepoIdSecretsSecretName(ctx, repoId, secretName, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetReposRepoIdSecretsSecretNameResponse(rsp) +} + +// PatchReposRepoIdSecretsSecretNameWithBodyWithResponse request with arbitrary body returning *PatchReposRepoIdSecretsSecretNameResponse +func (c *ClientWithResponses) PatchReposRepoIdSecretsSecretNameWithBodyWithResponse(ctx context.Context, repoId int, secretName string, params *PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchReposRepoIdSecretsSecretNameResponse, error) { + rsp, err := c.PatchReposRepoIdSecretsSecretNameWithBody(ctx, repoId, secretName, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchReposRepoIdSecretsSecretNameResponse(rsp) +} + +// GetSecretsWithResponse request returning *GetSecretsResponse +func (c *ClientWithResponses) GetSecretsWithResponse(ctx context.Context, params *GetSecretsParams, reqEditors ...RequestEditorFn) (*GetSecretsResponse, error) { + rsp, err := c.GetSecrets(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecretsResponse(rsp) +} + +// PostSecretsWithBodyWithResponse request with arbitrary body returning *PostSecretsResponse +func (c *ClientWithResponses) PostSecretsWithBodyWithResponse(ctx context.Context, params *PostSecretsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostSecretsResponse, error) { + rsp, err := c.PostSecretsWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostSecretsResponse(rsp) +} + +// DeleteSecretsSecretWithResponse request returning *DeleteSecretsSecretResponse +func (c *ClientWithResponses) DeleteSecretsSecretWithResponse(ctx context.Context, secret string, params *DeleteSecretsSecretParams, reqEditors ...RequestEditorFn) (*DeleteSecretsSecretResponse, error) { + rsp, err := c.DeleteSecretsSecret(ctx, secret, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSecretsSecretResponse(rsp) +} + +// GetSecretsSecretWithResponse request returning *GetSecretsSecretResponse +func (c *ClientWithResponses) GetSecretsSecretWithResponse(ctx context.Context, secret string, params *GetSecretsSecretParams, reqEditors ...RequestEditorFn) (*GetSecretsSecretResponse, error) { + rsp, err := c.GetSecretsSecret(ctx, secret, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecretsSecretResponse(rsp) +} + +// PatchSecretsSecretWithBodyWithResponse request with arbitrary body returning *PatchSecretsSecretResponse +func (c *ClientWithResponses) PatchSecretsSecretWithBodyWithResponse(ctx context.Context, secret string, params *PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchSecretsSecretResponse, error) { + rsp, err := c.PatchSecretsSecretWithBody(ctx, secret, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchSecretsSecretResponse(rsp) +} + +// GetSignaturePublicKeyWithResponse request returning *GetSignaturePublicKeyResponse +func (c *ClientWithResponses) GetSignaturePublicKeyWithResponse(ctx context.Context, params *GetSignaturePublicKeyParams, reqEditors ...RequestEditorFn) (*GetSignaturePublicKeyResponse, error) { + rsp, err := c.GetSignaturePublicKey(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSignaturePublicKeyResponse(rsp) +} + +// GetStreamEventsWithResponse request returning *GetStreamEventsResponse +func (c *ClientWithResponses) GetStreamEventsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetStreamEventsResponse, error) { + rsp, err := c.GetStreamEvents(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStreamEventsResponse(rsp) +} + +// GetStreamLogsRepoIdPipelineStepIDWithResponse request returning *GetStreamLogsRepoIdPipelineStepIDResponse +func (c *ClientWithResponses) GetStreamLogsRepoIdPipelineStepIDWithResponse(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...RequestEditorFn) (*GetStreamLogsRepoIdPipelineStepIDResponse, error) { + rsp, err := c.GetStreamLogsRepoIdPipelineStepID(ctx, repoId, pipeline, stepID, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetStreamLogsRepoIdPipelineStepIDResponse(rsp) +} + +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserResponse(rsp) +} + +// GetUserFeedWithResponse request returning *GetUserFeedResponse +func (c *ClientWithResponses) GetUserFeedWithResponse(ctx context.Context, params *GetUserFeedParams, reqEditors ...RequestEditorFn) (*GetUserFeedResponse, error) { + rsp, err := c.GetUserFeed(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserFeedResponse(rsp) +} + +// GetUserReposWithResponse request returning *GetUserReposResponse +func (c *ClientWithResponses) GetUserReposWithResponse(ctx context.Context, params *GetUserReposParams, reqEditors ...RequestEditorFn) (*GetUserReposResponse, error) { + rsp, err := c.GetUserRepos(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserReposResponse(rsp) +} + +// DeleteUserTokenWithResponse request returning *DeleteUserTokenResponse +func (c *ClientWithResponses) DeleteUserTokenWithResponse(ctx context.Context, params *DeleteUserTokenParams, reqEditors ...RequestEditorFn) (*DeleteUserTokenResponse, error) { + rsp, err := c.DeleteUserToken(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUserTokenResponse(rsp) +} + +// PostUserTokenWithResponse request returning *PostUserTokenResponse +func (c *ClientWithResponses) PostUserTokenWithResponse(ctx context.Context, params *PostUserTokenParams, reqEditors ...RequestEditorFn) (*PostUserTokenResponse, error) { + rsp, err := c.PostUserToken(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostUserTokenResponse(rsp) +} + +// GetUsersWithResponse request returning *GetUsersResponse +func (c *ClientWithResponses) GetUsersWithResponse(ctx context.Context, params *GetUsersParams, reqEditors ...RequestEditorFn) (*GetUsersResponse, error) { + rsp, err := c.GetUsers(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersResponse(rsp) +} + +// PostUsersWithBodyWithResponse request with arbitrary body returning *PostUsersResponse +func (c *ClientWithResponses) PostUsersWithBodyWithResponse(ctx context.Context, params *PostUsersParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostUsersResponse, error) { + rsp, err := c.PostUsersWithBody(ctx, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePostUsersResponse(rsp) +} + +// DeleteUsersLoginWithResponse request returning *DeleteUsersLoginResponse +func (c *ClientWithResponses) DeleteUsersLoginWithResponse(ctx context.Context, login string, params *DeleteUsersLoginParams, reqEditors ...RequestEditorFn) (*DeleteUsersLoginResponse, error) { + rsp, err := c.DeleteUsersLogin(ctx, login, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUsersLoginResponse(rsp) +} + +// GetUsersLoginWithResponse request returning *GetUsersLoginResponse +func (c *ClientWithResponses) GetUsersLoginWithResponse(ctx context.Context, login string, params *GetUsersLoginParams, reqEditors ...RequestEditorFn) (*GetUsersLoginResponse, error) { + rsp, err := c.GetUsersLogin(ctx, login, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUsersLoginResponse(rsp) +} + +// PatchUsersLoginWithBodyWithResponse request with arbitrary body returning *PatchUsersLoginResponse +func (c *ClientWithResponses) PatchUsersLoginWithBodyWithResponse(ctx context.Context, login string, params *PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PatchUsersLoginResponse, error) { + rsp, err := c.PatchUsersLoginWithBody(ctx, login, params, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchUsersLoginResponse(rsp) +} + +func (c *ClientWithResponses) PatchUsersLoginWithResponse(ctx context.Context, login string, params *PatchUsersLoginParams, body PatchUsersLoginJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchUsersLoginResponse, error) { + rsp, err := c.PatchUsersLogin(ctx, login, params, body, reqEditors...) + if err != nil { + return nil, err + } + return ParsePatchUsersLoginResponse(rsp) +} + +// GetVersionWithResponse request returning *GetVersionResponse +func (c *ClientWithResponses) GetVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetVersionResponse, error) { + rsp, err := c.GetVersion(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetVersionResponse(rsp) +} + +// ParseGetAgentsResponse parses an HTTP response from a GetAgentsWithResponse call +func ParseGetAgentsResponse(rsp *http.Response) (*GetAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostAgentsResponse parses an HTTP response from a PostAgentsWithResponse call +func ParsePostAgentsResponse(rsp *http.Response) (*PostAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteAgentsAgentIdResponse parses an HTTP response from a DeleteAgentsAgentIdWithResponse call +func ParseDeleteAgentsAgentIdResponse(rsp *http.Response) (*DeleteAgentsAgentIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAgentsAgentIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetAgentsAgentIdResponse parses an HTTP response from a GetAgentsAgentIdWithResponse call +func ParseGetAgentsAgentIdResponse(rsp *http.Response) (*GetAgentsAgentIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentsAgentIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchAgentsAgentIdResponse parses an HTTP response from a PatchAgentsAgentIdWithResponse call +func ParsePatchAgentsAgentIdResponse(rsp *http.Response) (*PatchAgentsAgentIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchAgentsAgentIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAgentsAgentIdTasksResponse parses an HTTP response from a GetAgentsAgentIdTasksWithResponse call +func ParseGetAgentsAgentIdTasksResponse(rsp *http.Response) (*GetAgentsAgentIdTasksResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAgentsAgentIdTasksResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Task + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetBadgesRepoIdCcXmlResponse parses an HTTP response from a GetBadgesRepoIdCcXmlWithResponse call +func ParseGetBadgesRepoIdCcXmlResponse(rsp *http.Response) (*GetBadgesRepoIdCcXmlResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBadgesRepoIdCcXmlResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetBadgesRepoIdStatusSvgResponse parses an HTTP response from a GetBadgesRepoIdStatusSvgWithResponse call +func ParseGetBadgesRepoIdStatusSvgResponse(rsp *http.Response) (*GetBadgesRepoIdStatusSvgResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBadgesRepoIdStatusSvgResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofResponse parses an HTTP response from a GetDebugPprofWithResponse call +func ParseGetDebugPprofResponse(rsp *http.Response) (*GetDebugPprofResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofBlockResponse parses an HTTP response from a GetDebugPprofBlockWithResponse call +func ParseGetDebugPprofBlockResponse(rsp *http.Response) (*GetDebugPprofBlockResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofBlockResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofCmdlineResponse parses an HTTP response from a GetDebugPprofCmdlineWithResponse call +func ParseGetDebugPprofCmdlineResponse(rsp *http.Response) (*GetDebugPprofCmdlineResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofCmdlineResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofGoroutineResponse parses an HTTP response from a GetDebugPprofGoroutineWithResponse call +func ParseGetDebugPprofGoroutineResponse(rsp *http.Response) (*GetDebugPprofGoroutineResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofGoroutineResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofHeapResponse parses an HTTP response from a GetDebugPprofHeapWithResponse call +func ParseGetDebugPprofHeapResponse(rsp *http.Response) (*GetDebugPprofHeapResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofHeapResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofProfileResponse parses an HTTP response from a GetDebugPprofProfileWithResponse call +func ParseGetDebugPprofProfileResponse(rsp *http.Response) (*GetDebugPprofProfileResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofProfileResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofSymbolResponse parses an HTTP response from a GetDebugPprofSymbolWithResponse call +func ParseGetDebugPprofSymbolResponse(rsp *http.Response) (*GetDebugPprofSymbolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofSymbolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostDebugPprofSymbolResponse parses an HTTP response from a PostDebugPprofSymbolWithResponse call +func ParsePostDebugPprofSymbolResponse(rsp *http.Response) (*PostDebugPprofSymbolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostDebugPprofSymbolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofThreadcreateResponse parses an HTTP response from a GetDebugPprofThreadcreateWithResponse call +func ParseGetDebugPprofThreadcreateResponse(rsp *http.Response) (*GetDebugPprofThreadcreateResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofThreadcreateResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetDebugPprofTraceResponse parses an HTTP response from a GetDebugPprofTraceWithResponse call +func ParseGetDebugPprofTraceResponse(rsp *http.Response) (*GetDebugPprofTraceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDebugPprofTraceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetForgesResponse parses an HTTP response from a GetForgesWithResponse call +func ParseGetForgesResponse(rsp *http.Response) (*GetForgesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetForgesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Forge + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostForgesResponse parses an HTTP response from a PostForgesWithResponse call +func ParsePostForgesResponse(rsp *http.Response) (*PostForgesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostForgesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Forge + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteForgesForgeIdResponse parses an HTTP response from a DeleteForgesForgeIdWithResponse call +func ParseDeleteForgesForgeIdResponse(rsp *http.Response) (*DeleteForgesForgeIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteForgesForgeIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetForgesForgeIdResponse parses an HTTP response from a GetForgesForgeIdWithResponse call +func ParseGetForgesForgeIdResponse(rsp *http.Response) (*GetForgesForgeIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetForgesForgeIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Forge + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchForgesForgeIdResponse parses an HTTP response from a PatchForgesForgeIdWithResponse call +func ParsePatchForgesForgeIdResponse(rsp *http.Response) (*PatchForgesForgeIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchForgesForgeIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Forge + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetHealthzResponse parses an HTTP response from a GetHealthzWithResponse call +func ParseGetHealthzResponse(rsp *http.Response) (*GetHealthzResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetHealthzResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostHookResponse parses an HTTP response from a PostHookWithResponse call +func ParsePostHookResponse(rsp *http.Response) (*PostHookResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostHookResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetLogLevelResponse parses an HTTP response from a GetLogLevelWithResponse call +func ParseGetLogLevelResponse(rsp *http.Response) (*GetLogLevelResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetLogLevelResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + LogLevel *string `json:"log-level,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostLogLevelResponse parses an HTTP response from a PostLogLevelWithResponse call +func ParsePostLogLevelResponse(rsp *http.Response) (*PostLogLevelResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostLogLevelResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + LogLevel *string `json:"log-level,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgLookupOrgFullNameResponse parses an HTTP response from a GetOrgLookupOrgFullNameWithResponse call +func ParseGetOrgLookupOrgFullNameResponse(rsp *http.Response) (*GetOrgLookupOrgFullNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgLookupOrgFullNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Org + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgsResponse parses an HTTP response from a GetOrgsWithResponse call +func ParseGetOrgsResponse(rsp *http.Response) (*GetOrgsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Org + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOrgsIdResponse parses an HTTP response from a DeleteOrgsIdWithResponse call +func ParseDeleteOrgsIdResponse(rsp *http.Response) (*DeleteOrgsIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrgsIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrgsOrgIdResponse parses an HTTP response from a GetOrgsOrgIdWithResponse call +func ParseGetOrgsOrgIdResponse(rsp *http.Response) (*GetOrgsOrgIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Org + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgsOrgIdAgentsResponse parses an HTTP response from a GetOrgsOrgIdAgentsWithResponse call +func ParseGetOrgsOrgIdAgentsResponse(rsp *http.Response) (*GetOrgsOrgIdAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostOrgsOrgIdAgentsResponse parses an HTTP response from a PostOrgsOrgIdAgentsWithResponse call +func ParsePostOrgsOrgIdAgentsResponse(rsp *http.Response) (*PostOrgsOrgIdAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostOrgsOrgIdAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOrgsOrgIdAgentsAgentIdResponse parses an HTTP response from a DeleteOrgsOrgIdAgentsAgentIdWithResponse call +func ParseDeleteOrgsOrgIdAgentsAgentIdResponse(rsp *http.Response) (*DeleteOrgsOrgIdAgentsAgentIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrgsOrgIdAgentsAgentIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePatchOrgsOrgIdAgentsAgentIdResponse parses an HTTP response from a PatchOrgsOrgIdAgentsAgentIdWithResponse call +func ParsePatchOrgsOrgIdAgentsAgentIdResponse(rsp *http.Response) (*PatchOrgsOrgIdAgentsAgentIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchOrgsOrgIdAgentsAgentIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Agent + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgsOrgIdPermissionsResponse parses an HTTP response from a GetOrgsOrgIdPermissionsWithResponse call +func ParseGetOrgsOrgIdPermissionsResponse(rsp *http.Response) (*GetOrgsOrgIdPermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdPermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []OrgPerm + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgsOrgIdRegistriesResponse parses an HTTP response from a GetOrgsOrgIdRegistriesWithResponse call +func ParseGetOrgsOrgIdRegistriesResponse(rsp *http.Response) (*GetOrgsOrgIdRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostOrgsOrgIdRegistriesResponse parses an HTTP response from a PostOrgsOrgIdRegistriesWithResponse call +func ParsePostOrgsOrgIdRegistriesResponse(rsp *http.Response) (*PostOrgsOrgIdRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostOrgsOrgIdRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOrgsOrgIdRegistriesRegistryResponse parses an HTTP response from a DeleteOrgsOrgIdRegistriesRegistryWithResponse call +func ParseDeleteOrgsOrgIdRegistriesRegistryResponse(rsp *http.Response) (*DeleteOrgsOrgIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrgsOrgIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrgsOrgIdRegistriesRegistryResponse parses an HTTP response from a GetOrgsOrgIdRegistriesRegistryWithResponse call +func ParseGetOrgsOrgIdRegistriesRegistryResponse(rsp *http.Response) (*GetOrgsOrgIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchOrgsOrgIdRegistriesRegistryResponse parses an HTTP response from a PatchOrgsOrgIdRegistriesRegistryWithResponse call +func ParsePatchOrgsOrgIdRegistriesRegistryResponse(rsp *http.Response) (*PatchOrgsOrgIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchOrgsOrgIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetOrgsOrgIdSecretsResponse parses an HTTP response from a GetOrgsOrgIdSecretsWithResponse call +func ParseGetOrgsOrgIdSecretsResponse(rsp *http.Response) (*GetOrgsOrgIdSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostOrgsOrgIdSecretsResponse parses an HTTP response from a PostOrgsOrgIdSecretsWithResponse call +func ParsePostOrgsOrgIdSecretsResponse(rsp *http.Response) (*PostOrgsOrgIdSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostOrgsOrgIdSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteOrgsOrgIdSecretsSecretResponse parses an HTTP response from a DeleteOrgsOrgIdSecretsSecretWithResponse call +func ParseDeleteOrgsOrgIdSecretsSecretResponse(rsp *http.Response) (*DeleteOrgsOrgIdSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteOrgsOrgIdSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetOrgsOrgIdSecretsSecretResponse parses an HTTP response from a GetOrgsOrgIdSecretsSecretWithResponse call +func ParseGetOrgsOrgIdSecretsSecretResponse(rsp *http.Response) (*GetOrgsOrgIdSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetOrgsOrgIdSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchOrgsOrgIdSecretsSecretResponse parses an HTTP response from a PatchOrgsOrgIdSecretsSecretWithResponse call +func ParsePatchOrgsOrgIdSecretsSecretResponse(rsp *http.Response) (*PatchOrgsOrgIdSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchOrgsOrgIdSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetPipelinesResponse parses an HTTP response from a GetPipelinesWithResponse call +func ParseGetPipelinesResponse(rsp *http.Response) (*GetPipelinesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPipelinesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Feed + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetQueueInfoResponse parses an HTTP response from a GetQueueInfoWithResponse call +func ParseGetQueueInfoResponse(rsp *http.Response) (*GetQueueInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetQueueInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetQueueNorunningpipelinesResponse parses an HTTP response from a GetQueueNorunningpipelinesWithResponse call +func ParseGetQueueNorunningpipelinesResponse(rsp *http.Response) (*GetQueueNorunningpipelinesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetQueueNorunningpipelinesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostQueuePauseResponse parses an HTTP response from a PostQueuePauseWithResponse call +func ParsePostQueuePauseResponse(rsp *http.Response) (*PostQueuePauseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostQueuePauseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostQueueResumeResponse parses an HTTP response from a PostQueueResumeWithResponse call +func ParsePostQueueResumeResponse(rsp *http.Response) (*PostQueueResumeResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostQueueResumeResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetRegistriesResponse parses an HTTP response from a GetRegistriesWithResponse call +func ParseGetRegistriesResponse(rsp *http.Response) (*GetRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostRegistriesResponse parses an HTTP response from a PostRegistriesWithResponse call +func ParsePostRegistriesResponse(rsp *http.Response) (*PostRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteRegistriesRegistryResponse parses an HTTP response from a DeleteRegistriesRegistryWithResponse call +func ParseDeleteRegistriesRegistryResponse(rsp *http.Response) (*DeleteRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetRegistriesRegistryResponse parses an HTTP response from a GetRegistriesRegistryWithResponse call +func ParseGetRegistriesRegistryResponse(rsp *http.Response) (*GetRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchRegistriesRegistryResponse parses an HTTP response from a PatchRegistriesRegistryWithResponse call +func ParsePatchRegistriesRegistryResponse(rsp *http.Response) (*PatchRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposResponse parses an HTTP response from a GetReposWithResponse call +func ParseGetReposResponse(rsp *http.Response) (*GetReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposResponse parses an HTTP response from a PostReposWithResponse call +func ParsePostReposResponse(rsp *http.Response) (*PostReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposLookupRepoFullNameResponse parses an HTTP response from a GetReposLookupRepoFullNameWithResponse call +func ParseGetReposLookupRepoFullNameResponse(rsp *http.Response) (*GetReposLookupRepoFullNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposLookupRepoFullNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepairResponse parses an HTTP response from a PostReposRepairWithResponse call +func ParsePostReposRepairResponse(rsp *http.Response) (*PostReposRepairResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepairResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseDeleteReposRepoIdResponse parses an HTTP response from a DeleteReposRepoIdWithResponse call +func ParseDeleteReposRepoIdResponse(rsp *http.Response) (*DeleteReposRepoIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdResponse parses an HTTP response from a GetReposRepoIdWithResponse call +func ParseGetReposRepoIdResponse(rsp *http.Response) (*GetReposRepoIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchReposRepoIdResponse parses an HTTP response from a PatchReposRepoIdWithResponse call +func ParsePatchReposRepoIdResponse(rsp *http.Response) (*PatchReposRepoIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchReposRepoIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdBranchesResponse parses an HTTP response from a GetReposRepoIdBranchesWithResponse call +func ParseGetReposRepoIdBranchesResponse(rsp *http.Response) (*GetReposRepoIdBranchesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdBranchesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []string + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdChownResponse parses an HTTP response from a PostReposRepoIdChownWithResponse call +func ParsePostReposRepoIdChownResponse(rsp *http.Response) (*PostReposRepoIdChownResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdChownResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdCronResponse parses an HTTP response from a GetReposRepoIdCronWithResponse call +func ParseGetReposRepoIdCronResponse(rsp *http.Response) (*GetReposRepoIdCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Cron + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdCronResponse parses an HTTP response from a PostReposRepoIdCronWithResponse call +func ParsePostReposRepoIdCronResponse(rsp *http.Response) (*PostReposRepoIdCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Cron + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdCronCronResponse parses an HTTP response from a DeleteReposRepoIdCronCronWithResponse call +func ParseDeleteReposRepoIdCronCronResponse(rsp *http.Response) (*DeleteReposRepoIdCronCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdCronCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdCronCronResponse parses an HTTP response from a GetReposRepoIdCronCronWithResponse call +func ParseGetReposRepoIdCronCronResponse(rsp *http.Response) (*GetReposRepoIdCronCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdCronCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Cron + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchReposRepoIdCronCronResponse parses an HTTP response from a PatchReposRepoIdCronCronWithResponse call +func ParsePatchReposRepoIdCronCronResponse(rsp *http.Response) (*PatchReposRepoIdCronCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchReposRepoIdCronCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Cron + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdCronCronResponse parses an HTTP response from a PostReposRepoIdCronCronWithResponse call +func ParsePostReposRepoIdCronCronResponse(rsp *http.Response) (*PostReposRepoIdCronCronResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdCronCronResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdLogsNumberResponse parses an HTTP response from a DeleteReposRepoIdLogsNumberWithResponse call +func ParseDeleteReposRepoIdLogsNumberResponse(rsp *http.Response) (*DeleteReposRepoIdLogsNumberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdLogsNumberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdLogsNumberStepIDResponse parses an HTTP response from a GetReposRepoIdLogsNumberStepIDWithResponse call +func ParseGetReposRepoIdLogsNumberStepIDResponse(rsp *http.Response) (*GetReposRepoIdLogsNumberStepIDResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdLogsNumberStepIDResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []LogEntry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdLogsNumberStepIdResponse parses an HTTP response from a DeleteReposRepoIdLogsNumberStepIdWithResponse call +func ParseDeleteReposRepoIdLogsNumberStepIdResponse(rsp *http.Response) (*DeleteReposRepoIdLogsNumberStepIdResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdLogsNumberStepIdResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostReposRepoIdMoveResponse parses an HTTP response from a PostReposRepoIdMoveWithResponse call +func ParsePostReposRepoIdMoveResponse(rsp *http.Response) (*PostReposRepoIdMoveResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdMoveResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdPermissionsResponse parses an HTTP response from a GetReposRepoIdPermissionsWithResponse call +func ParseGetReposRepoIdPermissionsResponse(rsp *http.Response) (*GetReposRepoIdPermissionsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPermissionsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Perm + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdPipelinesResponse parses an HTTP response from a GetReposRepoIdPipelinesWithResponse call +func ParseGetReposRepoIdPipelinesResponse(rsp *http.Response) (*GetReposRepoIdPipelinesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPipelinesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdPipelinesResponse parses an HTTP response from a PostReposRepoIdPipelinesWithResponse call +func ParsePostReposRepoIdPipelinesResponse(rsp *http.Response) (*PostReposRepoIdPipelinesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdPipelinesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdPipelinesNumberResponse parses an HTTP response from a DeleteReposRepoIdPipelinesNumberWithResponse call +func ParseDeleteReposRepoIdPipelinesNumberResponse(rsp *http.Response) (*DeleteReposRepoIdPipelinesNumberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdPipelinesNumberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdPipelinesNumberResponse parses an HTTP response from a GetReposRepoIdPipelinesNumberWithResponse call +func ParseGetReposRepoIdPipelinesNumberResponse(rsp *http.Response) (*GetReposRepoIdPipelinesNumberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPipelinesNumberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdPipelinesNumberResponse parses an HTTP response from a PostReposRepoIdPipelinesNumberWithResponse call +func ParsePostReposRepoIdPipelinesNumberResponse(rsp *http.Response) (*PostReposRepoIdPipelinesNumberResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdPipelinesNumberResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdPipelinesNumberApproveResponse parses an HTTP response from a PostReposRepoIdPipelinesNumberApproveWithResponse call +func ParsePostReposRepoIdPipelinesNumberApproveResponse(rsp *http.Response) (*PostReposRepoIdPipelinesNumberApproveResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdPipelinesNumberApproveResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdPipelinesNumberCancelResponse parses an HTTP response from a PostReposRepoIdPipelinesNumberCancelWithResponse call +func ParsePostReposRepoIdPipelinesNumberCancelResponse(rsp *http.Response) (*PostReposRepoIdPipelinesNumberCancelResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdPipelinesNumberCancelResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdPipelinesNumberConfigResponse parses an HTTP response from a GetReposRepoIdPipelinesNumberConfigWithResponse call +func ParseGetReposRepoIdPipelinesNumberConfigResponse(rsp *http.Response) (*GetReposRepoIdPipelinesNumberConfigResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPipelinesNumberConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Config + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdPipelinesNumberDeclineResponse parses an HTTP response from a PostReposRepoIdPipelinesNumberDeclineWithResponse call +func ParsePostReposRepoIdPipelinesNumberDeclineResponse(rsp *http.Response) (*PostReposRepoIdPipelinesNumberDeclineResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdPipelinesNumberDeclineResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Pipeline + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdPipelinesNumberMetadataResponse parses an HTTP response from a GetReposRepoIdPipelinesNumberMetadataWithResponse call +func ParseGetReposRepoIdPipelinesNumberMetadataResponse(rsp *http.Response) (*GetReposRepoIdPipelinesNumberMetadataResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPipelinesNumberMetadataResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest MetadataMetadata + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdPullRequestsResponse parses an HTTP response from a GetReposRepoIdPullRequestsWithResponse call +func ParseGetReposRepoIdPullRequestsResponse(rsp *http.Response) (*GetReposRepoIdPullRequestsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdPullRequestsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []PullRequest + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetReposRepoIdRegistriesResponse parses an HTTP response from a GetReposRepoIdRegistriesWithResponse call +func ParseGetReposRepoIdRegistriesResponse(rsp *http.Response) (*GetReposRepoIdRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdRegistriesResponse parses an HTTP response from a PostReposRepoIdRegistriesWithResponse call +func ParsePostReposRepoIdRegistriesResponse(rsp *http.Response) (*PostReposRepoIdRegistriesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdRegistriesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdRegistriesRegistryResponse parses an HTTP response from a DeleteReposRepoIdRegistriesRegistryWithResponse call +func ParseDeleteReposRepoIdRegistriesRegistryResponse(rsp *http.Response) (*DeleteReposRepoIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdRegistriesRegistryResponse parses an HTTP response from a GetReposRepoIdRegistriesRegistryWithResponse call +func ParseGetReposRepoIdRegistriesRegistryResponse(rsp *http.Response) (*GetReposRepoIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchReposRepoIdRegistriesRegistryResponse parses an HTTP response from a PatchReposRepoIdRegistriesRegistryWithResponse call +func ParsePatchReposRepoIdRegistriesRegistryResponse(rsp *http.Response) (*PatchReposRepoIdRegistriesRegistryResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchReposRepoIdRegistriesRegistryResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Registry + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdRepairResponse parses an HTTP response from a PostReposRepoIdRepairWithResponse call +func ParsePostReposRepoIdRepairResponse(rsp *http.Response) (*PostReposRepoIdRepairResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdRepairResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdSecretsResponse parses an HTTP response from a GetReposRepoIdSecretsWithResponse call +func ParseGetReposRepoIdSecretsResponse(rsp *http.Response) (*GetReposRepoIdSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostReposRepoIdSecretsResponse parses an HTTP response from a PostReposRepoIdSecretsWithResponse call +func ParsePostReposRepoIdSecretsResponse(rsp *http.Response) (*PostReposRepoIdSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostReposRepoIdSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteReposRepoIdSecretsSecretNameResponse parses an HTTP response from a DeleteReposRepoIdSecretsSecretNameWithResponse call +func ParseDeleteReposRepoIdSecretsSecretNameResponse(rsp *http.Response) (*DeleteReposRepoIdSecretsSecretNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteReposRepoIdSecretsSecretNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetReposRepoIdSecretsSecretNameResponse parses an HTTP response from a GetReposRepoIdSecretsSecretNameWithResponse call +func ParseGetReposRepoIdSecretsSecretNameResponse(rsp *http.Response) (*GetReposRepoIdSecretsSecretNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetReposRepoIdSecretsSecretNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchReposRepoIdSecretsSecretNameResponse parses an HTTP response from a PatchReposRepoIdSecretsSecretNameWithResponse call +func ParsePatchReposRepoIdSecretsSecretNameResponse(rsp *http.Response) (*PatchReposRepoIdSecretsSecretNameResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchReposRepoIdSecretsSecretNameResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetSecretsResponse parses an HTTP response from a GetSecretsWithResponse call +func ParseGetSecretsResponse(rsp *http.Response) (*GetSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostSecretsResponse parses an HTTP response from a PostSecretsWithResponse call +func ParsePostSecretsResponse(rsp *http.Response) (*PostSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteSecretsSecretResponse parses an HTTP response from a DeleteSecretsSecretWithResponse call +func ParseDeleteSecretsSecretResponse(rsp *http.Response) (*DeleteSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetSecretsSecretResponse parses an HTTP response from a GetSecretsSecretWithResponse call +func ParseGetSecretsSecretResponse(rsp *http.Response) (*GetSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchSecretsSecretResponse parses an HTTP response from a PatchSecretsSecretWithResponse call +func ParsePatchSecretsSecretResponse(rsp *http.Response) (*PatchSecretsSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchSecretsSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest Secret + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetSignaturePublicKeyResponse parses an HTTP response from a GetSignaturePublicKeyWithResponse call +func ParseGetSignaturePublicKeyResponse(rsp *http.Response) (*GetSignaturePublicKeyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSignaturePublicKeyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetStreamEventsResponse parses an HTTP response from a GetStreamEventsWithResponse call +func ParseGetStreamEventsResponse(rsp *http.Response) (*GetStreamEventsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetStreamEventsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetStreamLogsRepoIdPipelineStepIDResponse parses an HTTP response from a GetStreamLogsRepoIdPipelineStepIDWithResponse call +func ParseGetStreamLogsRepoIdPipelineStepIDResponse(rsp *http.Response) (*GetStreamLogsRepoIdPipelineStepIDResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetStreamLogsRepoIdPipelineStepIDResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call +func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserFeedResponse parses an HTTP response from a GetUserFeedWithResponse call +func ParseGetUserFeedResponse(rsp *http.Response) (*GetUserFeedResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserFeedResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Feed + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetUserReposResponse parses an HTTP response from a GetUserReposWithResponse call +func ParseGetUserReposResponse(rsp *http.Response) (*GetUserReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUserReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []Repo + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteUserTokenResponse parses an HTTP response from a DeleteUserTokenWithResponse call +func ParseDeleteUserTokenResponse(rsp *http.Response) (*DeleteUserTokenResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParsePostUserTokenResponse parses an HTTP response from a PostUserTokenWithResponse call +func ParsePostUserTokenResponse(rsp *http.Response) (*PostUserTokenResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostUserTokenResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetUsersResponse parses an HTTP response from a GetUsersWithResponse call +func ParseGetUsersResponse(rsp *http.Response) (*GetUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePostUsersResponse parses an HTTP response from a PostUsersWithResponse call +func ParsePostUsersResponse(rsp *http.Response) (*PostUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PostUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseDeleteUsersLoginResponse parses an HTTP response from a DeleteUsersLoginWithResponse call +func ParseDeleteUsersLoginResponse(rsp *http.Response) (*DeleteUsersLoginResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUsersLoginResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseGetUsersLoginResponse parses an HTTP response from a GetUsersLoginWithResponse call +func ParseGetUsersLoginResponse(rsp *http.Response) (*GetUsersLoginResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetUsersLoginResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParsePatchUsersLoginResponse parses an HTTP response from a PatchUsersLoginWithResponse call +func ParsePatchUsersLoginResponse(rsp *http.Response) (*PatchUsersLoginResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &PatchUsersLoginResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest User + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetVersionResponse parses an HTTP response from a GetVersionWithResponse call +func ParseGetVersionResponse(rsp *http.Response) (*GetVersionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetVersionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Source *string `json:"source,omitempty"` + Version *string `json:"version,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} diff --git a/woodpecker-go/client/mocks/mock_ClientInterface.go b/woodpecker-go/client/mocks/mock_ClientInterface.go new file mode 100644 index 0000000000..a4f0549585 --- /dev/null +++ b/woodpecker-go/client/mocks/mock_ClientInterface.go @@ -0,0 +1,8932 @@ +// Code generated by mockery. DO NOT EDIT. + +//go:build test +// +build test + +package mocks + +import ( + context "context" + + client "go.woodpecker-ci.org/woodpecker/v2/woodpecker-go/client" + + http "net/http" + + io "io" + + mock "github.com/stretchr/testify/mock" +) + +// MockClientInterface is an autogenerated mock type for the ClientInterface type +type MockClientInterface struct { + mock.Mock +} + +type MockClientInterface_Expecter struct { + mock *mock.Mock +} + +func (_m *MockClientInterface) EXPECT() *MockClientInterface_Expecter { + return &MockClientInterface_Expecter{mock: &_m.Mock} +} + +// DeleteAgentsAgentId provides a mock function with given fields: ctx, agentId, params, reqEditors +func (_m *MockClientInterface) DeleteAgentsAgentId(ctx context.Context, agentId int, params *client.DeleteAgentsAgentIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, agentId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteAgentsAgentId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, agentId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteAgentsAgentIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, agentId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.DeleteAgentsAgentIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, agentId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteAgentsAgentId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAgentsAgentId' +type MockClientInterface_DeleteAgentsAgentId_Call struct { + *mock.Call +} + +// DeleteAgentsAgentId is a helper method to define mock.On call +// - ctx context.Context +// - agentId int +// - params *client.DeleteAgentsAgentIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteAgentsAgentId(ctx interface{}, agentId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteAgentsAgentId_Call { + return &MockClientInterface_DeleteAgentsAgentId_Call{Call: _e.mock.On("DeleteAgentsAgentId", + append([]interface{}{ctx, agentId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteAgentsAgentId_Call) Run(run func(ctx context.Context, agentId int, params *client.DeleteAgentsAgentIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteAgentsAgentId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.DeleteAgentsAgentIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteAgentsAgentId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteAgentsAgentId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteAgentsAgentId_Call) RunAndReturn(run func(context.Context, int, *client.DeleteAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteAgentsAgentId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteForgesForgeId provides a mock function with given fields: ctx, forgeId, params, reqEditors +func (_m *MockClientInterface) DeleteForgesForgeId(ctx context.Context, forgeId int, params *client.DeleteForgesForgeIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, forgeId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteForgesForgeId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteForgesForgeIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, forgeId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteForgesForgeIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, forgeId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.DeleteForgesForgeIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, forgeId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteForgesForgeId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteForgesForgeId' +type MockClientInterface_DeleteForgesForgeId_Call struct { + *mock.Call +} + +// DeleteForgesForgeId is a helper method to define mock.On call +// - ctx context.Context +// - forgeId int +// - params *client.DeleteForgesForgeIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteForgesForgeId(ctx interface{}, forgeId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteForgesForgeId_Call { + return &MockClientInterface_DeleteForgesForgeId_Call{Call: _e.mock.On("DeleteForgesForgeId", + append([]interface{}{ctx, forgeId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteForgesForgeId_Call) Run(run func(ctx context.Context, forgeId int, params *client.DeleteForgesForgeIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteForgesForgeId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.DeleteForgesForgeIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteForgesForgeId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteForgesForgeId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteForgesForgeId_Call) RunAndReturn(run func(context.Context, int, *client.DeleteForgesForgeIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteForgesForgeId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteOrgsId provides a mock function with given fields: ctx, id, params, reqEditors +func (_m *MockClientInterface) DeleteOrgsId(ctx context.Context, id string, params *client.DeleteOrgsIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, id, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteOrgsId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteOrgsIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, id, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteOrgsIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, id, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.DeleteOrgsIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, id, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteOrgsId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOrgsId' +type MockClientInterface_DeleteOrgsId_Call struct { + *mock.Call +} + +// DeleteOrgsId is a helper method to define mock.On call +// - ctx context.Context +// - id string +// - params *client.DeleteOrgsIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteOrgsId(ctx interface{}, id interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteOrgsId_Call { + return &MockClientInterface_DeleteOrgsId_Call{Call: _e.mock.On("DeleteOrgsId", + append([]interface{}{ctx, id, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteOrgsId_Call) Run(run func(ctx context.Context, id string, params *client.DeleteOrgsIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteOrgsId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.DeleteOrgsIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteOrgsId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsId_Call) RunAndReturn(run func(context.Context, string, *client.DeleteOrgsIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteOrgsId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteOrgsOrgIdAgentsAgentId provides a mock function with given fields: ctx, orgId, agentId, params, reqEditors +func (_m *MockClientInterface) DeleteOrgsOrgIdAgentsAgentId(ctx context.Context, orgId int, agentId int, params *client.DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, agentId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteOrgsOrgIdAgentsAgentId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteOrgsOrgIdAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, agentId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteOrgsOrgIdAgentsAgentIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, agentId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.DeleteOrgsOrgIdAgentsAgentIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, agentId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOrgsOrgIdAgentsAgentId' +type MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call struct { + *mock.Call +} + +// DeleteOrgsOrgIdAgentsAgentId is a helper method to define mock.On call +// - ctx context.Context +// - orgId int +// - agentId int +// - params *client.DeleteOrgsOrgIdAgentsAgentIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteOrgsOrgIdAgentsAgentId(ctx interface{}, orgId interface{}, agentId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call { + return &MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call{Call: _e.mock.On("DeleteOrgsOrgIdAgentsAgentId", + append([]interface{}{ctx, orgId, agentId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call) Run(run func(ctx context.Context, orgId int, agentId int, params *client.DeleteOrgsOrgIdAgentsAgentIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.DeleteOrgsOrgIdAgentsAgentIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call) RunAndReturn(run func(context.Context, int, int, *client.DeleteOrgsOrgIdAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteOrgsOrgIdAgentsAgentId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteOrgsOrgIdRegistriesRegistry provides a mock function with given fields: ctx, orgId, registry, params, reqEditors +func (_m *MockClientInterface) DeleteOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *client.DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteOrgsOrgIdRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.DeleteOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.DeleteOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.DeleteOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOrgsOrgIdRegistriesRegistry' +type MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call struct { + *mock.Call +} + +// DeleteOrgsOrgIdRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - registry string +// - params *client.DeleteOrgsOrgIdRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteOrgsOrgIdRegistriesRegistry(ctx interface{}, orgId interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call { + return &MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call{Call: _e.mock.On("DeleteOrgsOrgIdRegistriesRegistry", + append([]interface{}{ctx, orgId, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call) Run(run func(ctx context.Context, orgId string, registry string, params *client.DeleteOrgsOrgIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.DeleteOrgsOrgIdRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call) RunAndReturn(run func(context.Context, string, string, *client.DeleteOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// DeleteOrgsOrgIdSecretsSecret provides a mock function with given fields: ctx, orgId, secret, params, reqEditors +func (_m *MockClientInterface) DeleteOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *client.DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, secret, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteOrgsOrgIdSecretsSecret") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.DeleteOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, secret, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.DeleteOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, secret, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.DeleteOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, secret, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteOrgsOrgIdSecretsSecret' +type MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call struct { + *mock.Call +} + +// DeleteOrgsOrgIdSecretsSecret is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - secret string +// - params *client.DeleteOrgsOrgIdSecretsSecretParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteOrgsOrgIdSecretsSecret(ctx interface{}, orgId interface{}, secret interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call { + return &MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call{Call: _e.mock.On("DeleteOrgsOrgIdSecretsSecret", + append([]interface{}{ctx, orgId, secret, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call) Run(run func(ctx context.Context, orgId string, secret string, params *client.DeleteOrgsOrgIdSecretsSecretParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.DeleteOrgsOrgIdSecretsSecretParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call) RunAndReturn(run func(context.Context, string, string, *client.DeleteOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteOrgsOrgIdSecretsSecret_Call { + _c.Call.Return(run) + return _c +} + +// DeleteRegistriesRegistry provides a mock function with given fields: ctx, registry, params, reqEditors +func (_m *MockClientInterface) DeleteRegistriesRegistry(ctx context.Context, registry string, params *client.DeleteRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.DeleteRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRegistriesRegistry' +type MockClientInterface_DeleteRegistriesRegistry_Call struct { + *mock.Call +} + +// DeleteRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - registry string +// - params *client.DeleteRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteRegistriesRegistry(ctx interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteRegistriesRegistry_Call { + return &MockClientInterface_DeleteRegistriesRegistry_Call{Call: _e.mock.On("DeleteRegistriesRegistry", + append([]interface{}{ctx, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteRegistriesRegistry_Call) Run(run func(ctx context.Context, registry string, params *client.DeleteRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.DeleteRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteRegistriesRegistry_Call) RunAndReturn(run func(context.Context, string, *client.DeleteRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoId provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoId(ctx context.Context, repoId int, params *client.DeleteReposRepoIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteReposRepoIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.DeleteReposRepoIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.DeleteReposRepoIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoId' +type MockClientInterface_DeleteReposRepoId_Call struct { + *mock.Call +} + +// DeleteReposRepoId is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.DeleteReposRepoIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoId(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoId_Call { + return &MockClientInterface_DeleteReposRepoId_Call{Call: _e.mock.On("DeleteReposRepoId", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoId_Call) Run(run func(ctx context.Context, repoId int, params *client.DeleteReposRepoIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.DeleteReposRepoIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoId_Call) RunAndReturn(run func(context.Context, int, *client.DeleteReposRepoIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdCronCron provides a mock function with given fields: ctx, repoId, cron, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *client.DeleteReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, cron, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdCronCron") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, cron, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdCronCronParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.DeleteReposRepoIdCronCronParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdCronCron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdCronCron' +type MockClientInterface_DeleteReposRepoIdCronCron_Call struct { + *mock.Call +} + +// DeleteReposRepoIdCronCron is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - cron string +// - params *client.DeleteReposRepoIdCronCronParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdCronCron(ctx interface{}, repoId interface{}, cron interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdCronCron_Call { + return &MockClientInterface_DeleteReposRepoIdCronCron_Call{Call: _e.mock.On("DeleteReposRepoIdCronCron", + append([]interface{}{ctx, repoId, cron, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdCronCron_Call) Run(run func(ctx context.Context, repoId int, cron string, params *client.DeleteReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdCronCron_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.DeleteReposRepoIdCronCronParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdCronCron_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdCronCron_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdCronCron_Call) RunAndReturn(run func(context.Context, int, string, *client.DeleteReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdCronCron_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdLogsNumber provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdLogsNumber(ctx context.Context, repoId int, number int, params *client.DeleteReposRepoIdLogsNumberParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdLogsNumber") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteReposRepoIdLogsNumberParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteReposRepoIdLogsNumberParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.DeleteReposRepoIdLogsNumberParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdLogsNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdLogsNumber' +type MockClientInterface_DeleteReposRepoIdLogsNumber_Call struct { + *mock.Call +} + +// DeleteReposRepoIdLogsNumber is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.DeleteReposRepoIdLogsNumberParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdLogsNumber(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdLogsNumber_Call { + return &MockClientInterface_DeleteReposRepoIdLogsNumber_Call{Call: _e.mock.On("DeleteReposRepoIdLogsNumber", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumber_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.DeleteReposRepoIdLogsNumberParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdLogsNumber_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.DeleteReposRepoIdLogsNumberParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumber_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdLogsNumber_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumber_Call) RunAndReturn(run func(context.Context, int, int, *client.DeleteReposRepoIdLogsNumberParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdLogsNumber_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdLogsNumberStepId provides a mock function with given fields: ctx, repoId, number, stepId, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdLogsNumberStepId(ctx context.Context, repoId int, number int, stepId int, params *client.DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, stepId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdLogsNumberStepId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, *client.DeleteReposRepoIdLogsNumberStepIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, stepId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, *client.DeleteReposRepoIdLogsNumberStepIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, stepId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, int, *client.DeleteReposRepoIdLogsNumberStepIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, stepId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdLogsNumberStepId' +type MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call struct { + *mock.Call +} + +// DeleteReposRepoIdLogsNumberStepId is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - stepId int +// - params *client.DeleteReposRepoIdLogsNumberStepIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdLogsNumberStepId(ctx interface{}, repoId interface{}, number interface{}, stepId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call { + return &MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call{Call: _e.mock.On("DeleteReposRepoIdLogsNumberStepId", + append([]interface{}{ctx, repoId, number, stepId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call) Run(run func(ctx context.Context, repoId int, number int, stepId int, params *client.DeleteReposRepoIdLogsNumberStepIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(int), args[4].(*client.DeleteReposRepoIdLogsNumberStepIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call) RunAndReturn(run func(context.Context, int, int, int, *client.DeleteReposRepoIdLogsNumberStepIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdLogsNumberStepId_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdPipelinesNumber provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *client.DeleteReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdPipelinesNumber") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.DeleteReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.DeleteReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdPipelinesNumber' +type MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call struct { + *mock.Call +} + +// DeleteReposRepoIdPipelinesNumber is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.DeleteReposRepoIdPipelinesNumberParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdPipelinesNumber(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call { + return &MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call{Call: _e.mock.On("DeleteReposRepoIdPipelinesNumber", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.DeleteReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.DeleteReposRepoIdPipelinesNumberParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call) RunAndReturn(run func(context.Context, int, int, *client.DeleteReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdPipelinesNumber_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdRegistriesRegistry provides a mock function with given fields: ctx, repoId, registry, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *client.DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.DeleteReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdRegistriesRegistry' +type MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call struct { + *mock.Call +} + +// DeleteReposRepoIdRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - registry string +// - params *client.DeleteReposRepoIdRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdRegistriesRegistry(ctx interface{}, repoId interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call { + return &MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call{Call: _e.mock.On("DeleteReposRepoIdRegistriesRegistry", + append([]interface{}{ctx, repoId, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call) Run(run func(ctx context.Context, repoId int, registry string, params *client.DeleteReposRepoIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.DeleteReposRepoIdRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call) RunAndReturn(run func(context.Context, int, string, *client.DeleteReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// DeleteReposRepoIdSecretsSecretName provides a mock function with given fields: ctx, repoId, secretName, params, reqEditors +func (_m *MockClientInterface) DeleteReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *client.DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, secretName, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteReposRepoIdSecretsSecretName") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, secretName, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.DeleteReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, secretName, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.DeleteReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, secretName, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteReposRepoIdSecretsSecretName' +type MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call struct { + *mock.Call +} + +// DeleteReposRepoIdSecretsSecretName is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - secretName string +// - params *client.DeleteReposRepoIdSecretsSecretNameParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteReposRepoIdSecretsSecretName(ctx interface{}, repoId interface{}, secretName interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call { + return &MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call{Call: _e.mock.On("DeleteReposRepoIdSecretsSecretName", + append([]interface{}{ctx, repoId, secretName, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call) Run(run func(ctx context.Context, repoId int, secretName string, params *client.DeleteReposRepoIdSecretsSecretNameParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.DeleteReposRepoIdSecretsSecretNameParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call) RunAndReturn(run func(context.Context, int, string, *client.DeleteReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteReposRepoIdSecretsSecretName_Call { + _c.Call.Return(run) + return _c +} + +// DeleteSecretsSecret provides a mock function with given fields: ctx, secret, params, reqEditors +func (_m *MockClientInterface) DeleteSecretsSecret(ctx context.Context, secret string, params *client.DeleteSecretsSecretParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, secret, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteSecretsSecret") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, secret, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteSecretsSecretParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, secret, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.DeleteSecretsSecretParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, secret, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteSecretsSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSecretsSecret' +type MockClientInterface_DeleteSecretsSecret_Call struct { + *mock.Call +} + +// DeleteSecretsSecret is a helper method to define mock.On call +// - ctx context.Context +// - secret string +// - params *client.DeleteSecretsSecretParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteSecretsSecret(ctx interface{}, secret interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteSecretsSecret_Call { + return &MockClientInterface_DeleteSecretsSecret_Call{Call: _e.mock.On("DeleteSecretsSecret", + append([]interface{}{ctx, secret, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteSecretsSecret_Call) Run(run func(ctx context.Context, secret string, params *client.DeleteSecretsSecretParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteSecretsSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.DeleteSecretsSecretParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteSecretsSecret_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteSecretsSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteSecretsSecret_Call) RunAndReturn(run func(context.Context, string, *client.DeleteSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteSecretsSecret_Call { + _c.Call.Return(run) + return _c +} + +// DeleteUserToken provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) DeleteUserToken(ctx context.Context, params *client.DeleteUserTokenParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteUserToken") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.DeleteUserTokenParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.DeleteUserTokenParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.DeleteUserTokenParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteUserToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUserToken' +type MockClientInterface_DeleteUserToken_Call struct { + *mock.Call +} + +// DeleteUserToken is a helper method to define mock.On call +// - ctx context.Context +// - params *client.DeleteUserTokenParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteUserToken(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteUserToken_Call { + return &MockClientInterface_DeleteUserToken_Call{Call: _e.mock.On("DeleteUserToken", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteUserToken_Call) Run(run func(ctx context.Context, params *client.DeleteUserTokenParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteUserToken_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.DeleteUserTokenParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteUserToken_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteUserToken_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteUserToken_Call) RunAndReturn(run func(context.Context, *client.DeleteUserTokenParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteUserToken_Call { + _c.Call.Return(run) + return _c +} + +// DeleteUsersLogin provides a mock function with given fields: ctx, login, params, reqEditors +func (_m *MockClientInterface) DeleteUsersLogin(ctx context.Context, login string, params *client.DeleteUsersLoginParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, login, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for DeleteUsersLogin") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteUsersLoginParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, login, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.DeleteUsersLoginParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, login, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.DeleteUsersLoginParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, login, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_DeleteUsersLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteUsersLogin' +type MockClientInterface_DeleteUsersLogin_Call struct { + *mock.Call +} + +// DeleteUsersLogin is a helper method to define mock.On call +// - ctx context.Context +// - login string +// - params *client.DeleteUsersLoginParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) DeleteUsersLogin(ctx interface{}, login interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_DeleteUsersLogin_Call { + return &MockClientInterface_DeleteUsersLogin_Call{Call: _e.mock.On("DeleteUsersLogin", + append([]interface{}{ctx, login, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_DeleteUsersLogin_Call) Run(run func(ctx context.Context, login string, params *client.DeleteUsersLoginParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_DeleteUsersLogin_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.DeleteUsersLoginParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_DeleteUsersLogin_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_DeleteUsersLogin_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_DeleteUsersLogin_Call) RunAndReturn(run func(context.Context, string, *client.DeleteUsersLoginParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_DeleteUsersLogin_Call { + _c.Call.Return(run) + return _c +} + +// GetAgents provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetAgents(ctx context.Context, params *client.GetAgentsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAgents") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetAgentsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetAgentsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetAgentsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetAgents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAgents' +type MockClientInterface_GetAgents_Call struct { + *mock.Call +} + +// GetAgents is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetAgentsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetAgents(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetAgents_Call { + return &MockClientInterface_GetAgents_Call{Call: _e.mock.On("GetAgents", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetAgents_Call) Run(run func(ctx context.Context, params *client.GetAgentsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetAgents_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetAgentsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetAgents_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetAgents_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetAgents_Call) RunAndReturn(run func(context.Context, *client.GetAgentsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetAgents_Call { + _c.Call.Return(run) + return _c +} + +// GetAgentsAgentId provides a mock function with given fields: ctx, agentId, params, reqEditors +func (_m *MockClientInterface) GetAgentsAgentId(ctx context.Context, agentId int, params *client.GetAgentsAgentIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, agentId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAgentsAgentId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, agentId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetAgentsAgentIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, agentId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetAgentsAgentIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, agentId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetAgentsAgentId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAgentsAgentId' +type MockClientInterface_GetAgentsAgentId_Call struct { + *mock.Call +} + +// GetAgentsAgentId is a helper method to define mock.On call +// - ctx context.Context +// - agentId int +// - params *client.GetAgentsAgentIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetAgentsAgentId(ctx interface{}, agentId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetAgentsAgentId_Call { + return &MockClientInterface_GetAgentsAgentId_Call{Call: _e.mock.On("GetAgentsAgentId", + append([]interface{}{ctx, agentId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetAgentsAgentId_Call) Run(run func(ctx context.Context, agentId int, params *client.GetAgentsAgentIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetAgentsAgentId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetAgentsAgentIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetAgentsAgentId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetAgentsAgentId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetAgentsAgentId_Call) RunAndReturn(run func(context.Context, int, *client.GetAgentsAgentIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetAgentsAgentId_Call { + _c.Call.Return(run) + return _c +} + +// GetAgentsAgentIdTasks provides a mock function with given fields: ctx, agentId, params, reqEditors +func (_m *MockClientInterface) GetAgentsAgentIdTasks(ctx context.Context, agentId int, params *client.GetAgentsAgentIdTasksParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, agentId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetAgentsAgentIdTasks") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetAgentsAgentIdTasksParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, agentId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetAgentsAgentIdTasksParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, agentId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetAgentsAgentIdTasksParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, agentId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetAgentsAgentIdTasks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAgentsAgentIdTasks' +type MockClientInterface_GetAgentsAgentIdTasks_Call struct { + *mock.Call +} + +// GetAgentsAgentIdTasks is a helper method to define mock.On call +// - ctx context.Context +// - agentId int +// - params *client.GetAgentsAgentIdTasksParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetAgentsAgentIdTasks(ctx interface{}, agentId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetAgentsAgentIdTasks_Call { + return &MockClientInterface_GetAgentsAgentIdTasks_Call{Call: _e.mock.On("GetAgentsAgentIdTasks", + append([]interface{}{ctx, agentId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetAgentsAgentIdTasks_Call) Run(run func(ctx context.Context, agentId int, params *client.GetAgentsAgentIdTasksParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetAgentsAgentIdTasks_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetAgentsAgentIdTasksParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetAgentsAgentIdTasks_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetAgentsAgentIdTasks_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetAgentsAgentIdTasks_Call) RunAndReturn(run func(context.Context, int, *client.GetAgentsAgentIdTasksParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetAgentsAgentIdTasks_Call { + _c.Call.Return(run) + return _c +} + +// GetBadgesRepoIdCcXml provides a mock function with given fields: ctx, repoId, reqEditors +func (_m *MockClientInterface) GetBadgesRepoIdCcXml(ctx context.Context, repoId int, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetBadgesRepoIdCcXml") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetBadgesRepoIdCcXml_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBadgesRepoIdCcXml' +type MockClientInterface_GetBadgesRepoIdCcXml_Call struct { + *mock.Call +} + +// GetBadgesRepoIdCcXml is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetBadgesRepoIdCcXml(ctx interface{}, repoId interface{}, reqEditors ...interface{}) *MockClientInterface_GetBadgesRepoIdCcXml_Call { + return &MockClientInterface_GetBadgesRepoIdCcXml_Call{Call: _e.mock.On("GetBadgesRepoIdCcXml", + append([]interface{}{ctx, repoId}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetBadgesRepoIdCcXml_Call) Run(run func(ctx context.Context, repoId int, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetBadgesRepoIdCcXml_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetBadgesRepoIdCcXml_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetBadgesRepoIdCcXml_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetBadgesRepoIdCcXml_Call) RunAndReturn(run func(context.Context, int, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetBadgesRepoIdCcXml_Call { + _c.Call.Return(run) + return _c +} + +// GetBadgesRepoIdStatusSvg provides a mock function with given fields: ctx, repoId, reqEditors +func (_m *MockClientInterface) GetBadgesRepoIdStatusSvg(ctx context.Context, repoId int, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetBadgesRepoIdStatusSvg") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetBadgesRepoIdStatusSvg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBadgesRepoIdStatusSvg' +type MockClientInterface_GetBadgesRepoIdStatusSvg_Call struct { + *mock.Call +} + +// GetBadgesRepoIdStatusSvg is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetBadgesRepoIdStatusSvg(ctx interface{}, repoId interface{}, reqEditors ...interface{}) *MockClientInterface_GetBadgesRepoIdStatusSvg_Call { + return &MockClientInterface_GetBadgesRepoIdStatusSvg_Call{Call: _e.mock.On("GetBadgesRepoIdStatusSvg", + append([]interface{}{ctx, repoId}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetBadgesRepoIdStatusSvg_Call) Run(run func(ctx context.Context, repoId int, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetBadgesRepoIdStatusSvg_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetBadgesRepoIdStatusSvg_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetBadgesRepoIdStatusSvg_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetBadgesRepoIdStatusSvg_Call) RunAndReturn(run func(context.Context, int, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetBadgesRepoIdStatusSvg_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprof provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprof(ctx context.Context, params *client.GetDebugPprofParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprof") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprof' +type MockClientInterface_GetDebugPprof_Call struct { + *mock.Call +} + +// GetDebugPprof is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprof(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprof_Call { + return &MockClientInterface_GetDebugPprof_Call{Call: _e.mock.On("GetDebugPprof", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprof_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprof_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprof_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprof_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprof_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprof_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofBlock provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofBlock(ctx context.Context, params *client.GetDebugPprofBlockParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofBlock") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofBlockParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofBlockParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofBlockParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofBlock' +type MockClientInterface_GetDebugPprofBlock_Call struct { + *mock.Call +} + +// GetDebugPprofBlock is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofBlockParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofBlock(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofBlock_Call { + return &MockClientInterface_GetDebugPprofBlock_Call{Call: _e.mock.On("GetDebugPprofBlock", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofBlock_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofBlockParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofBlock_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofBlockParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofBlock_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofBlock_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofBlock_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofBlockParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofBlock_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofCmdline provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofCmdline(ctx context.Context, params *client.GetDebugPprofCmdlineParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofCmdline") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofCmdlineParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofCmdlineParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofCmdlineParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofCmdline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofCmdline' +type MockClientInterface_GetDebugPprofCmdline_Call struct { + *mock.Call +} + +// GetDebugPprofCmdline is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofCmdlineParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofCmdline(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofCmdline_Call { + return &MockClientInterface_GetDebugPprofCmdline_Call{Call: _e.mock.On("GetDebugPprofCmdline", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofCmdline_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofCmdlineParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofCmdline_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofCmdlineParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofCmdline_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofCmdline_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofCmdline_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofCmdlineParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofCmdline_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofGoroutine provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofGoroutine(ctx context.Context, params *client.GetDebugPprofGoroutineParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofGoroutine") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofGoroutineParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofGoroutineParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofGoroutineParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofGoroutine_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofGoroutine' +type MockClientInterface_GetDebugPprofGoroutine_Call struct { + *mock.Call +} + +// GetDebugPprofGoroutine is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofGoroutineParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofGoroutine(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofGoroutine_Call { + return &MockClientInterface_GetDebugPprofGoroutine_Call{Call: _e.mock.On("GetDebugPprofGoroutine", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofGoroutine_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofGoroutineParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofGoroutine_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofGoroutineParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofGoroutine_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofGoroutine_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofGoroutine_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofGoroutineParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofGoroutine_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofHeap provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofHeap(ctx context.Context, params *client.GetDebugPprofHeapParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofHeap") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofHeapParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofHeapParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofHeapParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofHeap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofHeap' +type MockClientInterface_GetDebugPprofHeap_Call struct { + *mock.Call +} + +// GetDebugPprofHeap is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofHeapParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofHeap(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofHeap_Call { + return &MockClientInterface_GetDebugPprofHeap_Call{Call: _e.mock.On("GetDebugPprofHeap", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofHeap_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofHeapParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofHeap_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofHeapParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofHeap_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofHeap_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofHeap_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofHeapParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofHeap_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofProfile provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofProfile(ctx context.Context, params *client.GetDebugPprofProfileParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofProfile") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofProfileParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofProfileParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofProfileParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofProfile' +type MockClientInterface_GetDebugPprofProfile_Call struct { + *mock.Call +} + +// GetDebugPprofProfile is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofProfileParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofProfile(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofProfile_Call { + return &MockClientInterface_GetDebugPprofProfile_Call{Call: _e.mock.On("GetDebugPprofProfile", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofProfile_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofProfileParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofProfile_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofProfileParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofProfile_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofProfile_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofProfile_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofProfileParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofProfile_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofSymbol provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofSymbol(ctx context.Context, params *client.GetDebugPprofSymbolParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofSymbol") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofSymbolParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofSymbolParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofSymbolParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofSymbol_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofSymbol' +type MockClientInterface_GetDebugPprofSymbol_Call struct { + *mock.Call +} + +// GetDebugPprofSymbol is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofSymbolParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofSymbol(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofSymbol_Call { + return &MockClientInterface_GetDebugPprofSymbol_Call{Call: _e.mock.On("GetDebugPprofSymbol", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofSymbol_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofSymbolParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofSymbol_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofSymbolParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofSymbol_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofSymbol_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofSymbol_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofSymbolParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofSymbol_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofThreadcreate provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofThreadcreate(ctx context.Context, params *client.GetDebugPprofThreadcreateParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofThreadcreate") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofThreadcreateParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofThreadcreateParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofThreadcreateParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofThreadcreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofThreadcreate' +type MockClientInterface_GetDebugPprofThreadcreate_Call struct { + *mock.Call +} + +// GetDebugPprofThreadcreate is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofThreadcreateParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofThreadcreate(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofThreadcreate_Call { + return &MockClientInterface_GetDebugPprofThreadcreate_Call{Call: _e.mock.On("GetDebugPprofThreadcreate", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofThreadcreate_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofThreadcreateParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofThreadcreate_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofThreadcreateParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofThreadcreate_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofThreadcreate_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofThreadcreate_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofThreadcreateParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofThreadcreate_Call { + _c.Call.Return(run) + return _c +} + +// GetDebugPprofTrace provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetDebugPprofTrace(ctx context.Context, params *client.GetDebugPprofTraceParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetDebugPprofTrace") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofTraceParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetDebugPprofTraceParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetDebugPprofTraceParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetDebugPprofTrace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDebugPprofTrace' +type MockClientInterface_GetDebugPprofTrace_Call struct { + *mock.Call +} + +// GetDebugPprofTrace is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetDebugPprofTraceParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetDebugPprofTrace(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetDebugPprofTrace_Call { + return &MockClientInterface_GetDebugPprofTrace_Call{Call: _e.mock.On("GetDebugPprofTrace", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetDebugPprofTrace_Call) Run(run func(ctx context.Context, params *client.GetDebugPprofTraceParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetDebugPprofTrace_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetDebugPprofTraceParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofTrace_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetDebugPprofTrace_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetDebugPprofTrace_Call) RunAndReturn(run func(context.Context, *client.GetDebugPprofTraceParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetDebugPprofTrace_Call { + _c.Call.Return(run) + return _c +} + +// GetForges provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetForges(ctx context.Context, params *client.GetForgesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetForges") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetForgesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetForgesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetForgesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetForges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForges' +type MockClientInterface_GetForges_Call struct { + *mock.Call +} + +// GetForges is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetForgesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetForges(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetForges_Call { + return &MockClientInterface_GetForges_Call{Call: _e.mock.On("GetForges", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetForges_Call) Run(run func(ctx context.Context, params *client.GetForgesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetForges_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetForgesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetForges_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetForges_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetForges_Call) RunAndReturn(run func(context.Context, *client.GetForgesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetForges_Call { + _c.Call.Return(run) + return _c +} + +// GetForgesForgeId provides a mock function with given fields: ctx, forgeId, params, reqEditors +func (_m *MockClientInterface) GetForgesForgeId(ctx context.Context, forgeId int, params *client.GetForgesForgeIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, forgeId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetForgesForgeId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetForgesForgeIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, forgeId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetForgesForgeIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, forgeId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetForgesForgeIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, forgeId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetForgesForgeId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetForgesForgeId' +type MockClientInterface_GetForgesForgeId_Call struct { + *mock.Call +} + +// GetForgesForgeId is a helper method to define mock.On call +// - ctx context.Context +// - forgeId int +// - params *client.GetForgesForgeIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetForgesForgeId(ctx interface{}, forgeId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetForgesForgeId_Call { + return &MockClientInterface_GetForgesForgeId_Call{Call: _e.mock.On("GetForgesForgeId", + append([]interface{}{ctx, forgeId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetForgesForgeId_Call) Run(run func(ctx context.Context, forgeId int, params *client.GetForgesForgeIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetForgesForgeId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetForgesForgeIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetForgesForgeId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetForgesForgeId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetForgesForgeId_Call) RunAndReturn(run func(context.Context, int, *client.GetForgesForgeIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetForgesForgeId_Call { + _c.Call.Return(run) + return _c +} + +// GetHealthz provides a mock function with given fields: ctx, reqEditors +func (_m *MockClientInterface) GetHealthz(ctx context.Context, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetHealthz") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetHealthz_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHealthz' +type MockClientInterface_GetHealthz_Call struct { + *mock.Call +} + +// GetHealthz is a helper method to define mock.On call +// - ctx context.Context +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetHealthz(ctx interface{}, reqEditors ...interface{}) *MockClientInterface_GetHealthz_Call { + return &MockClientInterface_GetHealthz_Call{Call: _e.mock.On("GetHealthz", + append([]interface{}{ctx}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetHealthz_Call) Run(run func(ctx context.Context, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetHealthz_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetHealthz_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetHealthz_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetHealthz_Call) RunAndReturn(run func(context.Context, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetHealthz_Call { + _c.Call.Return(run) + return _c +} + +// GetLogLevel provides a mock function with given fields: ctx, reqEditors +func (_m *MockClientInterface) GetLogLevel(ctx context.Context, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetLogLevel") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetLogLevel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogLevel' +type MockClientInterface_GetLogLevel_Call struct { + *mock.Call +} + +// GetLogLevel is a helper method to define mock.On call +// - ctx context.Context +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetLogLevel(ctx interface{}, reqEditors ...interface{}) *MockClientInterface_GetLogLevel_Call { + return &MockClientInterface_GetLogLevel_Call{Call: _e.mock.On("GetLogLevel", + append([]interface{}{ctx}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetLogLevel_Call) Run(run func(ctx context.Context, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetLogLevel_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetLogLevel_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetLogLevel_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetLogLevel_Call) RunAndReturn(run func(context.Context, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetLogLevel_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgLookupOrgFullName provides a mock function with given fields: ctx, orgFullName, params, reqEditors +func (_m *MockClientInterface) GetOrgLookupOrgFullName(ctx context.Context, orgFullName string, params *client.GetOrgLookupOrgFullNameParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgFullName, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgLookupOrgFullName") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgLookupOrgFullNameParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgFullName, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgLookupOrgFullNameParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgFullName, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetOrgLookupOrgFullNameParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgFullName, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgLookupOrgFullName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgLookupOrgFullName' +type MockClientInterface_GetOrgLookupOrgFullName_Call struct { + *mock.Call +} + +// GetOrgLookupOrgFullName is a helper method to define mock.On call +// - ctx context.Context +// - orgFullName string +// - params *client.GetOrgLookupOrgFullNameParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgLookupOrgFullName(ctx interface{}, orgFullName interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgLookupOrgFullName_Call { + return &MockClientInterface_GetOrgLookupOrgFullName_Call{Call: _e.mock.On("GetOrgLookupOrgFullName", + append([]interface{}{ctx, orgFullName, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgLookupOrgFullName_Call) Run(run func(ctx context.Context, orgFullName string, params *client.GetOrgLookupOrgFullNameParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgLookupOrgFullName_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetOrgLookupOrgFullNameParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgLookupOrgFullName_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgLookupOrgFullName_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgLookupOrgFullName_Call) RunAndReturn(run func(context.Context, string, *client.GetOrgLookupOrgFullNameParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgLookupOrgFullName_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgs provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetOrgs(ctx context.Context, params *client.GetOrgsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgs") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetOrgsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetOrgsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetOrgsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgs' +type MockClientInterface_GetOrgs_Call struct { + *mock.Call +} + +// GetOrgs is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetOrgsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgs(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgs_Call { + return &MockClientInterface_GetOrgs_Call{Call: _e.mock.On("GetOrgs", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgs_Call) Run(run func(ctx context.Context, params *client.GetOrgsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgs_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetOrgsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgs_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgs_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgs_Call) RunAndReturn(run func(context.Context, *client.GetOrgsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgs_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgId provides a mock function with given fields: ctx, orgId, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgId(ctx context.Context, orgId string, params *client.GetOrgsOrgIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetOrgsOrgIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgId' +type MockClientInterface_GetOrgsOrgId_Call struct { + *mock.Call +} + +// GetOrgsOrgId is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.GetOrgsOrgIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgId(ctx interface{}, orgId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgId_Call { + return &MockClientInterface_GetOrgsOrgId_Call{Call: _e.mock.On("GetOrgsOrgId", + append([]interface{}{ctx, orgId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgId_Call) Run(run func(ctx context.Context, orgId string, params *client.GetOrgsOrgIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetOrgsOrgIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgId_Call) RunAndReturn(run func(context.Context, string, *client.GetOrgsOrgIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgId_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdAgents provides a mock function with given fields: ctx, orgId, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdAgents(ctx context.Context, orgId int, params *client.GetOrgsOrgIdAgentsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdAgents") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetOrgsOrgIdAgentsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetOrgsOrgIdAgentsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetOrgsOrgIdAgentsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdAgents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdAgents' +type MockClientInterface_GetOrgsOrgIdAgents_Call struct { + *mock.Call +} + +// GetOrgsOrgIdAgents is a helper method to define mock.On call +// - ctx context.Context +// - orgId int +// - params *client.GetOrgsOrgIdAgentsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdAgents(ctx interface{}, orgId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdAgents_Call { + return &MockClientInterface_GetOrgsOrgIdAgents_Call{Call: _e.mock.On("GetOrgsOrgIdAgents", + append([]interface{}{ctx, orgId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdAgents_Call) Run(run func(ctx context.Context, orgId int, params *client.GetOrgsOrgIdAgentsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdAgents_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetOrgsOrgIdAgentsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdAgents_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdAgents_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdAgents_Call) RunAndReturn(run func(context.Context, int, *client.GetOrgsOrgIdAgentsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdAgents_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdPermissions provides a mock function with given fields: ctx, orgId, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdPermissions(ctx context.Context, orgId string, params *client.GetOrgsOrgIdPermissionsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdPermissions") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdPermissionsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdPermissionsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetOrgsOrgIdPermissionsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdPermissions' +type MockClientInterface_GetOrgsOrgIdPermissions_Call struct { + *mock.Call +} + +// GetOrgsOrgIdPermissions is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.GetOrgsOrgIdPermissionsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdPermissions(ctx interface{}, orgId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdPermissions_Call { + return &MockClientInterface_GetOrgsOrgIdPermissions_Call{Call: _e.mock.On("GetOrgsOrgIdPermissions", + append([]interface{}{ctx, orgId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdPermissions_Call) Run(run func(ctx context.Context, orgId string, params *client.GetOrgsOrgIdPermissionsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdPermissions_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetOrgsOrgIdPermissionsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdPermissions_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdPermissions_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdPermissions_Call) RunAndReturn(run func(context.Context, string, *client.GetOrgsOrgIdPermissionsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdPermissions_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdRegistries provides a mock function with given fields: ctx, orgId, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdRegistries(ctx context.Context, orgId string, params *client.GetOrgsOrgIdRegistriesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdRegistries") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdRegistriesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetOrgsOrgIdRegistriesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdRegistries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdRegistries' +type MockClientInterface_GetOrgsOrgIdRegistries_Call struct { + *mock.Call +} + +// GetOrgsOrgIdRegistries is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.GetOrgsOrgIdRegistriesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdRegistries(ctx interface{}, orgId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdRegistries_Call { + return &MockClientInterface_GetOrgsOrgIdRegistries_Call{Call: _e.mock.On("GetOrgsOrgIdRegistries", + append([]interface{}{ctx, orgId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistries_Call) Run(run func(ctx context.Context, orgId string, params *client.GetOrgsOrgIdRegistriesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdRegistries_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetOrgsOrgIdRegistriesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistries_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdRegistries_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistries_Call) RunAndReturn(run func(context.Context, string, *client.GetOrgsOrgIdRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdRegistries_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdRegistriesRegistry provides a mock function with given fields: ctx, orgId, registry, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdRegistriesRegistry(ctx context.Context, orgId string, registry string, params *client.GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.GetOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.GetOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.GetOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdRegistriesRegistry' +type MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call struct { + *mock.Call +} + +// GetOrgsOrgIdRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - registry string +// - params *client.GetOrgsOrgIdRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdRegistriesRegistry(ctx interface{}, orgId interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call { + return &MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call{Call: _e.mock.On("GetOrgsOrgIdRegistriesRegistry", + append([]interface{}{ctx, orgId, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call) Run(run func(ctx context.Context, orgId string, registry string, params *client.GetOrgsOrgIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.GetOrgsOrgIdRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call) RunAndReturn(run func(context.Context, string, string, *client.GetOrgsOrgIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdSecrets provides a mock function with given fields: ctx, orgId, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdSecrets(ctx context.Context, orgId string, params *client.GetOrgsOrgIdSecretsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdSecrets") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdSecretsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetOrgsOrgIdSecretsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetOrgsOrgIdSecretsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdSecrets' +type MockClientInterface_GetOrgsOrgIdSecrets_Call struct { + *mock.Call +} + +// GetOrgsOrgIdSecrets is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.GetOrgsOrgIdSecretsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdSecrets(ctx interface{}, orgId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdSecrets_Call { + return &MockClientInterface_GetOrgsOrgIdSecrets_Call{Call: _e.mock.On("GetOrgsOrgIdSecrets", + append([]interface{}{ctx, orgId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecrets_Call) Run(run func(ctx context.Context, orgId string, params *client.GetOrgsOrgIdSecretsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdSecrets_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetOrgsOrgIdSecretsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecrets_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdSecrets_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecrets_Call) RunAndReturn(run func(context.Context, string, *client.GetOrgsOrgIdSecretsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdSecrets_Call { + _c.Call.Return(run) + return _c +} + +// GetOrgsOrgIdSecretsSecret provides a mock function with given fields: ctx, orgId, secret, params, reqEditors +func (_m *MockClientInterface) GetOrgsOrgIdSecretsSecret(ctx context.Context, orgId string, secret string, params *client.GetOrgsOrgIdSecretsSecretParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, secret, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetOrgsOrgIdSecretsSecret") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.GetOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, secret, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.GetOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, secret, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.GetOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, secret, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetOrgsOrgIdSecretsSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrgsOrgIdSecretsSecret' +type MockClientInterface_GetOrgsOrgIdSecretsSecret_Call struct { + *mock.Call +} + +// GetOrgsOrgIdSecretsSecret is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - secret string +// - params *client.GetOrgsOrgIdSecretsSecretParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetOrgsOrgIdSecretsSecret(ctx interface{}, orgId interface{}, secret interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call { + return &MockClientInterface_GetOrgsOrgIdSecretsSecret_Call{Call: _e.mock.On("GetOrgsOrgIdSecretsSecret", + append([]interface{}{ctx, orgId, secret, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call) Run(run func(ctx context.Context, orgId string, secret string, params *client.GetOrgsOrgIdSecretsSecretParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.GetOrgsOrgIdSecretsSecretParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call) RunAndReturn(run func(context.Context, string, string, *client.GetOrgsOrgIdSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetOrgsOrgIdSecretsSecret_Call { + _c.Call.Return(run) + return _c +} + +// GetPipelines provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetPipelines(ctx context.Context, params *client.GetPipelinesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetPipelines") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetPipelinesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetPipelinesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetPipelinesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetPipelines_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPipelines' +type MockClientInterface_GetPipelines_Call struct { + *mock.Call +} + +// GetPipelines is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetPipelinesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetPipelines(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetPipelines_Call { + return &MockClientInterface_GetPipelines_Call{Call: _e.mock.On("GetPipelines", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetPipelines_Call) Run(run func(ctx context.Context, params *client.GetPipelinesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetPipelines_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetPipelinesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetPipelines_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetPipelines_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetPipelines_Call) RunAndReturn(run func(context.Context, *client.GetPipelinesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetPipelines_Call { + _c.Call.Return(run) + return _c +} + +// GetQueueInfo provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetQueueInfo(ctx context.Context, params *client.GetQueueInfoParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetQueueInfo") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetQueueInfoParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetQueueInfoParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetQueueInfoParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetQueueInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQueueInfo' +type MockClientInterface_GetQueueInfo_Call struct { + *mock.Call +} + +// GetQueueInfo is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetQueueInfoParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetQueueInfo(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetQueueInfo_Call { + return &MockClientInterface_GetQueueInfo_Call{Call: _e.mock.On("GetQueueInfo", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetQueueInfo_Call) Run(run func(ctx context.Context, params *client.GetQueueInfoParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetQueueInfo_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetQueueInfoParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetQueueInfo_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetQueueInfo_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetQueueInfo_Call) RunAndReturn(run func(context.Context, *client.GetQueueInfoParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetQueueInfo_Call { + _c.Call.Return(run) + return _c +} + +// GetQueueNorunningpipelines provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetQueueNorunningpipelines(ctx context.Context, params *client.GetQueueNorunningpipelinesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetQueueNorunningpipelines") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetQueueNorunningpipelinesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetQueueNorunningpipelinesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetQueueNorunningpipelinesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetQueueNorunningpipelines_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetQueueNorunningpipelines' +type MockClientInterface_GetQueueNorunningpipelines_Call struct { + *mock.Call +} + +// GetQueueNorunningpipelines is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetQueueNorunningpipelinesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetQueueNorunningpipelines(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetQueueNorunningpipelines_Call { + return &MockClientInterface_GetQueueNorunningpipelines_Call{Call: _e.mock.On("GetQueueNorunningpipelines", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetQueueNorunningpipelines_Call) Run(run func(ctx context.Context, params *client.GetQueueNorunningpipelinesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetQueueNorunningpipelines_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetQueueNorunningpipelinesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetQueueNorunningpipelines_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetQueueNorunningpipelines_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetQueueNorunningpipelines_Call) RunAndReturn(run func(context.Context, *client.GetQueueNorunningpipelinesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetQueueNorunningpipelines_Call { + _c.Call.Return(run) + return _c +} + +// GetRegistries provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetRegistries(ctx context.Context, params *client.GetRegistriesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetRegistries") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetRegistriesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetRegistriesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetRegistries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegistries' +type MockClientInterface_GetRegistries_Call struct { + *mock.Call +} + +// GetRegistries is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetRegistriesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetRegistries(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetRegistries_Call { + return &MockClientInterface_GetRegistries_Call{Call: _e.mock.On("GetRegistries", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetRegistries_Call) Run(run func(ctx context.Context, params *client.GetRegistriesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetRegistries_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetRegistriesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetRegistries_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetRegistries_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetRegistries_Call) RunAndReturn(run func(context.Context, *client.GetRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetRegistries_Call { + _c.Call.Return(run) + return _c +} + +// GetRegistriesRegistry provides a mock function with given fields: ctx, registry, params, reqEditors +func (_m *MockClientInterface) GetRegistriesRegistry(ctx context.Context, registry string, params *client.GetRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRegistriesRegistry' +type MockClientInterface_GetRegistriesRegistry_Call struct { + *mock.Call +} + +// GetRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - registry string +// - params *client.GetRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetRegistriesRegistry(ctx interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetRegistriesRegistry_Call { + return &MockClientInterface_GetRegistriesRegistry_Call{Call: _e.mock.On("GetRegistriesRegistry", + append([]interface{}{ctx, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetRegistriesRegistry_Call) Run(run func(ctx context.Context, registry string, params *client.GetRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetRegistriesRegistry_Call) RunAndReturn(run func(context.Context, string, *client.GetRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// GetRepos provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetRepos(ctx context.Context, params *client.GetReposParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetRepos") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetReposParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetReposParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetReposParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRepos' +type MockClientInterface_GetRepos_Call struct { + *mock.Call +} + +// GetRepos is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetReposParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetRepos(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetRepos_Call { + return &MockClientInterface_GetRepos_Call{Call: _e.mock.On("GetRepos", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetRepos_Call) Run(run func(ctx context.Context, params *client.GetReposParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetRepos_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetReposParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetRepos_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetRepos_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetRepos_Call) RunAndReturn(run func(context.Context, *client.GetReposParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetRepos_Call { + _c.Call.Return(run) + return _c +} + +// GetReposLookupRepoFullName provides a mock function with given fields: ctx, repoFullName, params, reqEditors +func (_m *MockClientInterface) GetReposLookupRepoFullName(ctx context.Context, repoFullName string, params *client.GetReposLookupRepoFullNameParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoFullName, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposLookupRepoFullName") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetReposLookupRepoFullNameParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoFullName, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetReposLookupRepoFullNameParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoFullName, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetReposLookupRepoFullNameParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoFullName, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposLookupRepoFullName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposLookupRepoFullName' +type MockClientInterface_GetReposLookupRepoFullName_Call struct { + *mock.Call +} + +// GetReposLookupRepoFullName is a helper method to define mock.On call +// - ctx context.Context +// - repoFullName string +// - params *client.GetReposLookupRepoFullNameParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposLookupRepoFullName(ctx interface{}, repoFullName interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposLookupRepoFullName_Call { + return &MockClientInterface_GetReposLookupRepoFullName_Call{Call: _e.mock.On("GetReposLookupRepoFullName", + append([]interface{}{ctx, repoFullName, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposLookupRepoFullName_Call) Run(run func(ctx context.Context, repoFullName string, params *client.GetReposLookupRepoFullNameParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposLookupRepoFullName_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetReposLookupRepoFullNameParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposLookupRepoFullName_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposLookupRepoFullName_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposLookupRepoFullName_Call) RunAndReturn(run func(context.Context, string, *client.GetReposLookupRepoFullNameParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposLookupRepoFullName_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoId provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoId(ctx context.Context, repoId int, params *client.GetReposRepoIdParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoId") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoId' +type MockClientInterface_GetReposRepoId_Call struct { + *mock.Call +} + +// GetReposRepoId is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoId(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoId_Call { + return &MockClientInterface_GetReposRepoId_Call{Call: _e.mock.On("GetReposRepoId", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoId_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoId_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoId_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoId_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoId_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoId_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdBranches provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdBranches(ctx context.Context, repoId int, params *client.GetReposRepoIdBranchesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdBranches") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdBranchesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdBranchesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdBranchesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdBranches_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdBranches' +type MockClientInterface_GetReposRepoIdBranches_Call struct { + *mock.Call +} + +// GetReposRepoIdBranches is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdBranchesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdBranches(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdBranches_Call { + return &MockClientInterface_GetReposRepoIdBranches_Call{Call: _e.mock.On("GetReposRepoIdBranches", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdBranches_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdBranchesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdBranches_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdBranchesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdBranches_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdBranches_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdBranches_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdBranchesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdBranches_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdCron provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdCron(ctx context.Context, repoId int, params *client.GetReposRepoIdCronParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdCron") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdCronParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdCronParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdCronParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdCron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdCron' +type MockClientInterface_GetReposRepoIdCron_Call struct { + *mock.Call +} + +// GetReposRepoIdCron is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdCronParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdCron(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdCron_Call { + return &MockClientInterface_GetReposRepoIdCron_Call{Call: _e.mock.On("GetReposRepoIdCron", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdCron_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdCronParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdCron_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdCronParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdCron_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdCron_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdCron_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdCronParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdCron_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdCronCron provides a mock function with given fields: ctx, repoId, cron, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *client.GetReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, cron, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdCronCron") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, cron, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdCronCronParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.GetReposRepoIdCronCronParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdCronCron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdCronCron' +type MockClientInterface_GetReposRepoIdCronCron_Call struct { + *mock.Call +} + +// GetReposRepoIdCronCron is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - cron string +// - params *client.GetReposRepoIdCronCronParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdCronCron(ctx interface{}, repoId interface{}, cron interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdCronCron_Call { + return &MockClientInterface_GetReposRepoIdCronCron_Call{Call: _e.mock.On("GetReposRepoIdCronCron", + append([]interface{}{ctx, repoId, cron, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdCronCron_Call) Run(run func(ctx context.Context, repoId int, cron string, params *client.GetReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdCronCron_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.GetReposRepoIdCronCronParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdCronCron_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdCronCron_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdCronCron_Call) RunAndReturn(run func(context.Context, int, string, *client.GetReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdCronCron_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdLogsNumberStepID provides a mock function with given fields: ctx, repoId, number, stepID, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdLogsNumberStepID(ctx context.Context, repoId int, number int, stepID int, params *client.GetReposRepoIdLogsNumberStepIDParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, stepID, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdLogsNumberStepID") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, *client.GetReposRepoIdLogsNumberStepIDParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, stepID, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, *client.GetReposRepoIdLogsNumberStepIDParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, stepID, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, int, *client.GetReposRepoIdLogsNumberStepIDParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, stepID, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdLogsNumberStepID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdLogsNumberStepID' +type MockClientInterface_GetReposRepoIdLogsNumberStepID_Call struct { + *mock.Call +} + +// GetReposRepoIdLogsNumberStepID is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - stepID int +// - params *client.GetReposRepoIdLogsNumberStepIDParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdLogsNumberStepID(ctx interface{}, repoId interface{}, number interface{}, stepID interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call { + return &MockClientInterface_GetReposRepoIdLogsNumberStepID_Call{Call: _e.mock.On("GetReposRepoIdLogsNumberStepID", + append([]interface{}{ctx, repoId, number, stepID, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call) Run(run func(ctx context.Context, repoId int, number int, stepID int, params *client.GetReposRepoIdLogsNumberStepIDParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(int), args[4].(*client.GetReposRepoIdLogsNumberStepIDParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call) RunAndReturn(run func(context.Context, int, int, int, *client.GetReposRepoIdLogsNumberStepIDParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdLogsNumberStepID_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPermissions provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPermissions(ctx context.Context, repoId int, params *client.GetReposRepoIdPermissionsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPermissions") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPermissionsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPermissionsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdPermissionsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPermissions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPermissions' +type MockClientInterface_GetReposRepoIdPermissions_Call struct { + *mock.Call +} + +// GetReposRepoIdPermissions is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdPermissionsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPermissions(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPermissions_Call { + return &MockClientInterface_GetReposRepoIdPermissions_Call{Call: _e.mock.On("GetReposRepoIdPermissions", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPermissions_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdPermissionsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPermissions_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdPermissionsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPermissions_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPermissions_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPermissions_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdPermissionsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPermissions_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPipelines provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPipelines(ctx context.Context, repoId int, params *client.GetReposRepoIdPipelinesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPipelines") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPipelinesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPipelinesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdPipelinesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPipelines_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPipelines' +type MockClientInterface_GetReposRepoIdPipelines_Call struct { + *mock.Call +} + +// GetReposRepoIdPipelines is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdPipelinesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPipelines(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPipelines_Call { + return &MockClientInterface_GetReposRepoIdPipelines_Call{Call: _e.mock.On("GetReposRepoIdPipelines", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPipelines_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdPipelinesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPipelines_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdPipelinesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelines_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPipelines_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelines_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdPipelinesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPipelines_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPipelinesNumber provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPipelinesNumber") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPipelinesNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPipelinesNumber' +type MockClientInterface_GetReposRepoIdPipelinesNumber_Call struct { + *mock.Call +} + +// GetReposRepoIdPipelinesNumber is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.GetReposRepoIdPipelinesNumberParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPipelinesNumber(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPipelinesNumber_Call { + return &MockClientInterface_GetReposRepoIdPipelinesNumber_Call{Call: _e.mock.On("GetReposRepoIdPipelinesNumber", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumber_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPipelinesNumber_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.GetReposRepoIdPipelinesNumberParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumber_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPipelinesNumber_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumber_Call) RunAndReturn(run func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPipelinesNumber_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPipelinesNumberConfig provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPipelinesNumberConfig(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPipelinesNumberConfig") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberConfigParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberConfigParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberConfigParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPipelinesNumberConfig' +type MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call struct { + *mock.Call +} + +// GetReposRepoIdPipelinesNumberConfig is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.GetReposRepoIdPipelinesNumberConfigParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPipelinesNumberConfig(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call { + return &MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call{Call: _e.mock.On("GetReposRepoIdPipelinesNumberConfig", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberConfigParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.GetReposRepoIdPipelinesNumberConfigParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call) RunAndReturn(run func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberConfigParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPipelinesNumberConfig_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPipelinesNumberMetadata provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPipelinesNumberMetadata(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPipelinesNumberMetadata") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberMetadataParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberMetadataParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberMetadataParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPipelinesNumberMetadata' +type MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call struct { + *mock.Call +} + +// GetReposRepoIdPipelinesNumberMetadata is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.GetReposRepoIdPipelinesNumberMetadataParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPipelinesNumberMetadata(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call { + return &MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call{Call: _e.mock.On("GetReposRepoIdPipelinesNumberMetadata", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.GetReposRepoIdPipelinesNumberMetadataParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.GetReposRepoIdPipelinesNumberMetadataParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call) RunAndReturn(run func(context.Context, int, int, *client.GetReposRepoIdPipelinesNumberMetadataParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPipelinesNumberMetadata_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdPullRequests provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdPullRequests(ctx context.Context, repoId int, params *client.GetReposRepoIdPullRequestsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdPullRequests") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPullRequestsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdPullRequestsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdPullRequestsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdPullRequests_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdPullRequests' +type MockClientInterface_GetReposRepoIdPullRequests_Call struct { + *mock.Call +} + +// GetReposRepoIdPullRequests is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdPullRequestsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdPullRequests(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdPullRequests_Call { + return &MockClientInterface_GetReposRepoIdPullRequests_Call{Call: _e.mock.On("GetReposRepoIdPullRequests", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdPullRequests_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdPullRequestsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdPullRequests_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdPullRequestsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPullRequests_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdPullRequests_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdPullRequests_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdPullRequestsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdPullRequests_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdRegistries provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdRegistries(ctx context.Context, repoId int, params *client.GetReposRepoIdRegistriesParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdRegistries") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdRegistriesParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdRegistriesParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdRegistries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdRegistries' +type MockClientInterface_GetReposRepoIdRegistries_Call struct { + *mock.Call +} + +// GetReposRepoIdRegistries is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdRegistriesParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdRegistries(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdRegistries_Call { + return &MockClientInterface_GetReposRepoIdRegistries_Call{Call: _e.mock.On("GetReposRepoIdRegistries", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdRegistries_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdRegistriesParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdRegistries_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdRegistriesParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdRegistries_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdRegistries_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdRegistries_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdRegistriesParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdRegistries_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdRegistriesRegistry provides a mock function with given fields: ctx, repoId, registry, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdRegistriesRegistry(ctx context.Context, repoId int, registry string, params *client.GetReposRepoIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, registry, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdRegistriesRegistry") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, registry, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, registry, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.GetReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, registry, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdRegistriesRegistry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdRegistriesRegistry' +type MockClientInterface_GetReposRepoIdRegistriesRegistry_Call struct { + *mock.Call +} + +// GetReposRepoIdRegistriesRegistry is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - registry string +// - params *client.GetReposRepoIdRegistriesRegistryParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdRegistriesRegistry(ctx interface{}, repoId interface{}, registry interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call { + return &MockClientInterface_GetReposRepoIdRegistriesRegistry_Call{Call: _e.mock.On("GetReposRepoIdRegistriesRegistry", + append([]interface{}{ctx, repoId, registry, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call) Run(run func(ctx context.Context, repoId int, registry string, params *client.GetReposRepoIdRegistriesRegistryParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.GetReposRepoIdRegistriesRegistryParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call) RunAndReturn(run func(context.Context, int, string, *client.GetReposRepoIdRegistriesRegistryParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdRegistriesRegistry_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdSecrets provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdSecrets(ctx context.Context, repoId int, params *client.GetReposRepoIdSecretsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdSecrets") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdSecretsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.GetReposRepoIdSecretsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.GetReposRepoIdSecretsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdSecrets' +type MockClientInterface_GetReposRepoIdSecrets_Call struct { + *mock.Call +} + +// GetReposRepoIdSecrets is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.GetReposRepoIdSecretsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdSecrets(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdSecrets_Call { + return &MockClientInterface_GetReposRepoIdSecrets_Call{Call: _e.mock.On("GetReposRepoIdSecrets", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdSecrets_Call) Run(run func(ctx context.Context, repoId int, params *client.GetReposRepoIdSecretsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdSecrets_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.GetReposRepoIdSecretsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdSecrets_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdSecrets_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdSecrets_Call) RunAndReturn(run func(context.Context, int, *client.GetReposRepoIdSecretsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdSecrets_Call { + _c.Call.Return(run) + return _c +} + +// GetReposRepoIdSecretsSecretName provides a mock function with given fields: ctx, repoId, secretName, params, reqEditors +func (_m *MockClientInterface) GetReposRepoIdSecretsSecretName(ctx context.Context, repoId int, secretName string, params *client.GetReposRepoIdSecretsSecretNameParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, secretName, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetReposRepoIdSecretsSecretName") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, secretName, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.GetReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, secretName, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.GetReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, secretName, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetReposRepoIdSecretsSecretName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReposRepoIdSecretsSecretName' +type MockClientInterface_GetReposRepoIdSecretsSecretName_Call struct { + *mock.Call +} + +// GetReposRepoIdSecretsSecretName is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - secretName string +// - params *client.GetReposRepoIdSecretsSecretNameParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetReposRepoIdSecretsSecretName(ctx interface{}, repoId interface{}, secretName interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetReposRepoIdSecretsSecretName_Call { + return &MockClientInterface_GetReposRepoIdSecretsSecretName_Call{Call: _e.mock.On("GetReposRepoIdSecretsSecretName", + append([]interface{}{ctx, repoId, secretName, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetReposRepoIdSecretsSecretName_Call) Run(run func(ctx context.Context, repoId int, secretName string, params *client.GetReposRepoIdSecretsSecretNameParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetReposRepoIdSecretsSecretName_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.GetReposRepoIdSecretsSecretNameParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdSecretsSecretName_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetReposRepoIdSecretsSecretName_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetReposRepoIdSecretsSecretName_Call) RunAndReturn(run func(context.Context, int, string, *client.GetReposRepoIdSecretsSecretNameParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetReposRepoIdSecretsSecretName_Call { + _c.Call.Return(run) + return _c +} + +// GetSecrets provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetSecrets(ctx context.Context, params *client.GetSecretsParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetSecrets") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetSecretsParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetSecretsParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetSecretsParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetSecrets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecrets' +type MockClientInterface_GetSecrets_Call struct { + *mock.Call +} + +// GetSecrets is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetSecretsParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetSecrets(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetSecrets_Call { + return &MockClientInterface_GetSecrets_Call{Call: _e.mock.On("GetSecrets", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetSecrets_Call) Run(run func(ctx context.Context, params *client.GetSecretsParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetSecrets_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetSecretsParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetSecrets_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetSecrets_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetSecrets_Call) RunAndReturn(run func(context.Context, *client.GetSecretsParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetSecrets_Call { + _c.Call.Return(run) + return _c +} + +// GetSecretsSecret provides a mock function with given fields: ctx, secret, params, reqEditors +func (_m *MockClientInterface) GetSecretsSecret(ctx context.Context, secret string, params *client.GetSecretsSecretParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, secret, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetSecretsSecret") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, secret, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetSecretsSecretParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, secret, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetSecretsSecretParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, secret, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetSecretsSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSecretsSecret' +type MockClientInterface_GetSecretsSecret_Call struct { + *mock.Call +} + +// GetSecretsSecret is a helper method to define mock.On call +// - ctx context.Context +// - secret string +// - params *client.GetSecretsSecretParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetSecretsSecret(ctx interface{}, secret interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetSecretsSecret_Call { + return &MockClientInterface_GetSecretsSecret_Call{Call: _e.mock.On("GetSecretsSecret", + append([]interface{}{ctx, secret, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetSecretsSecret_Call) Run(run func(ctx context.Context, secret string, params *client.GetSecretsSecretParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetSecretsSecret_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetSecretsSecretParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetSecretsSecret_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetSecretsSecret_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetSecretsSecret_Call) RunAndReturn(run func(context.Context, string, *client.GetSecretsSecretParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetSecretsSecret_Call { + _c.Call.Return(run) + return _c +} + +// GetSignaturePublicKey provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetSignaturePublicKey(ctx context.Context, params *client.GetSignaturePublicKeyParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetSignaturePublicKey") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetSignaturePublicKeyParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetSignaturePublicKeyParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetSignaturePublicKeyParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetSignaturePublicKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSignaturePublicKey' +type MockClientInterface_GetSignaturePublicKey_Call struct { + *mock.Call +} + +// GetSignaturePublicKey is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetSignaturePublicKeyParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetSignaturePublicKey(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetSignaturePublicKey_Call { + return &MockClientInterface_GetSignaturePublicKey_Call{Call: _e.mock.On("GetSignaturePublicKey", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetSignaturePublicKey_Call) Run(run func(ctx context.Context, params *client.GetSignaturePublicKeyParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetSignaturePublicKey_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetSignaturePublicKeyParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetSignaturePublicKey_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetSignaturePublicKey_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetSignaturePublicKey_Call) RunAndReturn(run func(context.Context, *client.GetSignaturePublicKeyParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetSignaturePublicKey_Call { + _c.Call.Return(run) + return _c +} + +// GetStreamEvents provides a mock function with given fields: ctx, reqEditors +func (_m *MockClientInterface) GetStreamEvents(ctx context.Context, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetStreamEvents") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetStreamEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStreamEvents' +type MockClientInterface_GetStreamEvents_Call struct { + *mock.Call +} + +// GetStreamEvents is a helper method to define mock.On call +// - ctx context.Context +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetStreamEvents(ctx interface{}, reqEditors ...interface{}) *MockClientInterface_GetStreamEvents_Call { + return &MockClientInterface_GetStreamEvents_Call{Call: _e.mock.On("GetStreamEvents", + append([]interface{}{ctx}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetStreamEvents_Call) Run(run func(ctx context.Context, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetStreamEvents_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetStreamEvents_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetStreamEvents_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetStreamEvents_Call) RunAndReturn(run func(context.Context, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetStreamEvents_Call { + _c.Call.Return(run) + return _c +} + +// GetStreamLogsRepoIdPipelineStepID provides a mock function with given fields: ctx, repoId, pipeline, stepID, reqEditors +func (_m *MockClientInterface) GetStreamLogsRepoIdPipelineStepID(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, pipeline, stepID) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetStreamLogsRepoIdPipelineStepID") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, pipeline, stepID, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, int, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, pipeline, stepID, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, int, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, pipeline, stepID, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStreamLogsRepoIdPipelineStepID' +type MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call struct { + *mock.Call +} + +// GetStreamLogsRepoIdPipelineStepID is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - pipeline int +// - stepID int +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetStreamLogsRepoIdPipelineStepID(ctx interface{}, repoId interface{}, pipeline interface{}, stepID interface{}, reqEditors ...interface{}) *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call { + return &MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call{Call: _e.mock.On("GetStreamLogsRepoIdPipelineStepID", + append([]interface{}{ctx, repoId, pipeline, stepID}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call) Run(run func(ctx context.Context, repoId int, pipeline int, stepID int, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(int), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call) RunAndReturn(run func(context.Context, int, int, int, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetStreamLogsRepoIdPipelineStepID_Call { + _c.Call.Return(run) + return _c +} + +// GetUser provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetUser(ctx context.Context, params *client.GetUserParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetUser") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetUserParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser' +type MockClientInterface_GetUser_Call struct { + *mock.Call +} + +// GetUser is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetUserParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetUser(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetUser_Call { + return &MockClientInterface_GetUser_Call{Call: _e.mock.On("GetUser", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetUser_Call) Run(run func(ctx context.Context, params *client.GetUserParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetUser_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetUserParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetUser_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetUser_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetUser_Call) RunAndReturn(run func(context.Context, *client.GetUserParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetUser_Call { + _c.Call.Return(run) + return _c +} + +// GetUserFeed provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetUserFeed(ctx context.Context, params *client.GetUserFeedParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetUserFeed") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserFeedParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserFeedParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetUserFeedParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetUserFeed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserFeed' +type MockClientInterface_GetUserFeed_Call struct { + *mock.Call +} + +// GetUserFeed is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetUserFeedParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetUserFeed(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetUserFeed_Call { + return &MockClientInterface_GetUserFeed_Call{Call: _e.mock.On("GetUserFeed", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetUserFeed_Call) Run(run func(ctx context.Context, params *client.GetUserFeedParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetUserFeed_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetUserFeedParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetUserFeed_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetUserFeed_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetUserFeed_Call) RunAndReturn(run func(context.Context, *client.GetUserFeedParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetUserFeed_Call { + _c.Call.Return(run) + return _c +} + +// GetUserRepos provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetUserRepos(ctx context.Context, params *client.GetUserReposParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetUserRepos") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserReposParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUserReposParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetUserReposParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetUserRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserRepos' +type MockClientInterface_GetUserRepos_Call struct { + *mock.Call +} + +// GetUserRepos is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetUserReposParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetUserRepos(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetUserRepos_Call { + return &MockClientInterface_GetUserRepos_Call{Call: _e.mock.On("GetUserRepos", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetUserRepos_Call) Run(run func(ctx context.Context, params *client.GetUserReposParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetUserRepos_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetUserReposParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetUserRepos_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetUserRepos_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetUserRepos_Call) RunAndReturn(run func(context.Context, *client.GetUserReposParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetUserRepos_Call { + _c.Call.Return(run) + return _c +} + +// GetUsers provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) GetUsers(ctx context.Context, params *client.GetUsersParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetUsers") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUsersParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.GetUsersParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.GetUsersParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsers' +type MockClientInterface_GetUsers_Call struct { + *mock.Call +} + +// GetUsers is a helper method to define mock.On call +// - ctx context.Context +// - params *client.GetUsersParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetUsers(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetUsers_Call { + return &MockClientInterface_GetUsers_Call{Call: _e.mock.On("GetUsers", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetUsers_Call) Run(run func(ctx context.Context, params *client.GetUsersParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetUsers_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.GetUsersParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetUsers_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetUsers_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetUsers_Call) RunAndReturn(run func(context.Context, *client.GetUsersParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetUsers_Call { + _c.Call.Return(run) + return _c +} + +// GetUsersLogin provides a mock function with given fields: ctx, login, params, reqEditors +func (_m *MockClientInterface) GetUsersLogin(ctx context.Context, login string, params *client.GetUsersLoginParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, login, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetUsersLogin") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetUsersLoginParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, login, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.GetUsersLoginParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, login, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.GetUsersLoginParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, login, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetUsersLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUsersLogin' +type MockClientInterface_GetUsersLogin_Call struct { + *mock.Call +} + +// GetUsersLogin is a helper method to define mock.On call +// - ctx context.Context +// - login string +// - params *client.GetUsersLoginParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetUsersLogin(ctx interface{}, login interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_GetUsersLogin_Call { + return &MockClientInterface_GetUsersLogin_Call{Call: _e.mock.On("GetUsersLogin", + append([]interface{}{ctx, login, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetUsersLogin_Call) Run(run func(ctx context.Context, login string, params *client.GetUsersLoginParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetUsersLogin_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.GetUsersLoginParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetUsersLogin_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetUsersLogin_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetUsersLogin_Call) RunAndReturn(run func(context.Context, string, *client.GetUsersLoginParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetUsersLogin_Call { + _c.Call.Return(run) + return _c +} + +// GetVersion provides a mock function with given fields: ctx, reqEditors +func (_m *MockClientInterface) GetVersion(ctx context.Context, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for GetVersion") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_GetVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersion' +type MockClientInterface_GetVersion_Call struct { + *mock.Call +} + +// GetVersion is a helper method to define mock.On call +// - ctx context.Context +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) GetVersion(ctx interface{}, reqEditors ...interface{}) *MockClientInterface_GetVersion_Call { + return &MockClientInterface_GetVersion_Call{Call: _e.mock.On("GetVersion", + append([]interface{}{ctx}, reqEditors...)...)} +} + +func (_c *MockClientInterface_GetVersion_Call) Run(run func(ctx context.Context, reqEditors ...client.RequestEditorFn)) *MockClientInterface_GetVersion_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-1) + for i, a := range args[1:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_GetVersion_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_GetVersion_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_GetVersion_Call) RunAndReturn(run func(context.Context, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_GetVersion_Call { + _c.Call.Return(run) + return _c +} + +// PatchAgentsAgentIdWithBody provides a mock function with given fields: ctx, agentId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchAgentsAgentIdWithBody(ctx context.Context, agentId int, params *client.PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, agentId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchAgentsAgentIdWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, agentId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, agentId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PatchAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, agentId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchAgentsAgentIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchAgentsAgentIdWithBody' +type MockClientInterface_PatchAgentsAgentIdWithBody_Call struct { + *mock.Call +} + +// PatchAgentsAgentIdWithBody is a helper method to define mock.On call +// - ctx context.Context +// - agentId int +// - params *client.PatchAgentsAgentIdParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchAgentsAgentIdWithBody(ctx interface{}, agentId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchAgentsAgentIdWithBody_Call { + return &MockClientInterface_PatchAgentsAgentIdWithBody_Call{Call: _e.mock.On("PatchAgentsAgentIdWithBody", + append([]interface{}{ctx, agentId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchAgentsAgentIdWithBody_Call) Run(run func(ctx context.Context, agentId int, params *client.PatchAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchAgentsAgentIdWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PatchAgentsAgentIdParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchAgentsAgentIdWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchAgentsAgentIdWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchAgentsAgentIdWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PatchAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchAgentsAgentIdWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchForgesForgeIdWithBody provides a mock function with given fields: ctx, forgeId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchForgesForgeIdWithBody(ctx context.Context, forgeId int, params *client.PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, forgeId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchForgesForgeIdWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchForgesForgeIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, forgeId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchForgesForgeIdParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, forgeId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PatchForgesForgeIdParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, forgeId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchForgesForgeIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchForgesForgeIdWithBody' +type MockClientInterface_PatchForgesForgeIdWithBody_Call struct { + *mock.Call +} + +// PatchForgesForgeIdWithBody is a helper method to define mock.On call +// - ctx context.Context +// - forgeId int +// - params *client.PatchForgesForgeIdParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchForgesForgeIdWithBody(ctx interface{}, forgeId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchForgesForgeIdWithBody_Call { + return &MockClientInterface_PatchForgesForgeIdWithBody_Call{Call: _e.mock.On("PatchForgesForgeIdWithBody", + append([]interface{}{ctx, forgeId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchForgesForgeIdWithBody_Call) Run(run func(ctx context.Context, forgeId int, params *client.PatchForgesForgeIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchForgesForgeIdWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PatchForgesForgeIdParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchForgesForgeIdWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchForgesForgeIdWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchForgesForgeIdWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PatchForgesForgeIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchForgesForgeIdWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchOrgsOrgIdAgentsAgentIdWithBody provides a mock function with given fields: ctx, orgId, agentId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchOrgsOrgIdAgentsAgentIdWithBody(ctx context.Context, orgId int, agentId int, params *client.PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, agentId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchOrgsOrgIdAgentsAgentIdWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PatchOrgsOrgIdAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, agentId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PatchOrgsOrgIdAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, agentId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.PatchOrgsOrgIdAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, agentId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchOrgsOrgIdAgentsAgentIdWithBody' +type MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call struct { + *mock.Call +} + +// PatchOrgsOrgIdAgentsAgentIdWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId int +// - agentId int +// - params *client.PatchOrgsOrgIdAgentsAgentIdParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchOrgsOrgIdAgentsAgentIdWithBody(ctx interface{}, orgId interface{}, agentId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call { + return &MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call{Call: _e.mock.On("PatchOrgsOrgIdAgentsAgentIdWithBody", + append([]interface{}{ctx, orgId, agentId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call) Run(run func(ctx context.Context, orgId int, agentId int, params *client.PatchOrgsOrgIdAgentsAgentIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.PatchOrgsOrgIdAgentsAgentIdParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call) RunAndReturn(run func(context.Context, int, int, *client.PatchOrgsOrgIdAgentsAgentIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchOrgsOrgIdAgentsAgentIdWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchOrgsOrgIdRegistriesRegistryWithBody provides a mock function with given fields: ctx, orgId, registry, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchOrgsOrgIdRegistriesRegistryWithBody(ctx context.Context, orgId string, registry string, params *client.PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, registry, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchOrgsOrgIdRegistriesRegistryWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.PatchOrgsOrgIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, registry, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.PatchOrgsOrgIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, registry, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.PatchOrgsOrgIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, registry, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchOrgsOrgIdRegistriesRegistryWithBody' +type MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call struct { + *mock.Call +} + +// PatchOrgsOrgIdRegistriesRegistryWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - registry string +// - params *client.PatchOrgsOrgIdRegistriesRegistryParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchOrgsOrgIdRegistriesRegistryWithBody(ctx interface{}, orgId interface{}, registry interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call { + return &MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call{Call: _e.mock.On("PatchOrgsOrgIdRegistriesRegistryWithBody", + append([]interface{}{ctx, orgId, registry, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call) Run(run func(ctx context.Context, orgId string, registry string, params *client.PatchOrgsOrgIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.PatchOrgsOrgIdRegistriesRegistryParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call) RunAndReturn(run func(context.Context, string, string, *client.PatchOrgsOrgIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchOrgsOrgIdRegistriesRegistryWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchOrgsOrgIdSecretsSecretWithBody provides a mock function with given fields: ctx, orgId, secret, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchOrgsOrgIdSecretsSecretWithBody(ctx context.Context, orgId string, secret string, params *client.PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, secret, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchOrgsOrgIdSecretsSecretWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.PatchOrgsOrgIdSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, secret, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, string, *client.PatchOrgsOrgIdSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, secret, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, string, *client.PatchOrgsOrgIdSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, secret, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchOrgsOrgIdSecretsSecretWithBody' +type MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call struct { + *mock.Call +} + +// PatchOrgsOrgIdSecretsSecretWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - secret string +// - params *client.PatchOrgsOrgIdSecretsSecretParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchOrgsOrgIdSecretsSecretWithBody(ctx interface{}, orgId interface{}, secret interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call { + return &MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call{Call: _e.mock.On("PatchOrgsOrgIdSecretsSecretWithBody", + append([]interface{}{ctx, orgId, secret, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call) Run(run func(ctx context.Context, orgId string, secret string, params *client.PatchOrgsOrgIdSecretsSecretParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(string), args[3].(*client.PatchOrgsOrgIdSecretsSecretParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call) RunAndReturn(run func(context.Context, string, string, *client.PatchOrgsOrgIdSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchOrgsOrgIdSecretsSecretWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchRegistriesRegistryWithBody provides a mock function with given fields: ctx, registry, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchRegistriesRegistryWithBody(ctx context.Context, registry string, params *client.PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, registry, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchRegistriesRegistryWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, registry, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, registry, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PatchRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, registry, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchRegistriesRegistryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchRegistriesRegistryWithBody' +type MockClientInterface_PatchRegistriesRegistryWithBody_Call struct { + *mock.Call +} + +// PatchRegistriesRegistryWithBody is a helper method to define mock.On call +// - ctx context.Context +// - registry string +// - params *client.PatchRegistriesRegistryParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchRegistriesRegistryWithBody(ctx interface{}, registry interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchRegistriesRegistryWithBody_Call { + return &MockClientInterface_PatchRegistriesRegistryWithBody_Call{Call: _e.mock.On("PatchRegistriesRegistryWithBody", + append([]interface{}{ctx, registry, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchRegistriesRegistryWithBody_Call) Run(run func(ctx context.Context, registry string, params *client.PatchRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchRegistriesRegistryWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PatchRegistriesRegistryParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchRegistriesRegistryWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchRegistriesRegistryWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchRegistriesRegistryWithBody_Call) RunAndReturn(run func(context.Context, string, *client.PatchRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchRegistriesRegistryWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchReposRepoIdCronCronWithBody provides a mock function with given fields: ctx, repoId, cron, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchReposRepoIdCronCronWithBody(ctx context.Context, repoId int, cron string, params *client.PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, cron, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchReposRepoIdCronCronWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdCronCronParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, cron, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdCronCronParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, cron, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.PatchReposRepoIdCronCronParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, cron, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchReposRepoIdCronCronWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchReposRepoIdCronCronWithBody' +type MockClientInterface_PatchReposRepoIdCronCronWithBody_Call struct { + *mock.Call +} + +// PatchReposRepoIdCronCronWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - cron string +// - params *client.PatchReposRepoIdCronCronParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchReposRepoIdCronCronWithBody(ctx interface{}, repoId interface{}, cron interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call { + return &MockClientInterface_PatchReposRepoIdCronCronWithBody_Call{Call: _e.mock.On("PatchReposRepoIdCronCronWithBody", + append([]interface{}{ctx, repoId, cron, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call) Run(run func(ctx context.Context, repoId int, cron string, params *client.PatchReposRepoIdCronCronParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.PatchReposRepoIdCronCronParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call) RunAndReturn(run func(context.Context, int, string, *client.PatchReposRepoIdCronCronParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchReposRepoIdCronCronWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchReposRepoIdRegistriesRegistryWithBody provides a mock function with given fields: ctx, repoId, registry, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchReposRepoIdRegistriesRegistryWithBody(ctx context.Context, repoId int, registry string, params *client.PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, registry, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchReposRepoIdRegistriesRegistryWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, registry, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, registry, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.PatchReposRepoIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, registry, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchReposRepoIdRegistriesRegistryWithBody' +type MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call struct { + *mock.Call +} + +// PatchReposRepoIdRegistriesRegistryWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - registry string +// - params *client.PatchReposRepoIdRegistriesRegistryParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchReposRepoIdRegistriesRegistryWithBody(ctx interface{}, repoId interface{}, registry interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call { + return &MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call{Call: _e.mock.On("PatchReposRepoIdRegistriesRegistryWithBody", + append([]interface{}{ctx, repoId, registry, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call) Run(run func(ctx context.Context, repoId int, registry string, params *client.PatchReposRepoIdRegistriesRegistryParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.PatchReposRepoIdRegistriesRegistryParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call) RunAndReturn(run func(context.Context, int, string, *client.PatchReposRepoIdRegistriesRegistryParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchReposRepoIdRegistriesRegistryWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchReposRepoIdSecretsSecretNameWithBody provides a mock function with given fields: ctx, repoId, secretName, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchReposRepoIdSecretsSecretNameWithBody(ctx context.Context, repoId int, secretName string, params *client.PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, secretName, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchReposRepoIdSecretsSecretNameWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdSecretsSecretNameParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, secretName, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PatchReposRepoIdSecretsSecretNameParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, secretName, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.PatchReposRepoIdSecretsSecretNameParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, secretName, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchReposRepoIdSecretsSecretNameWithBody' +type MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call struct { + *mock.Call +} + +// PatchReposRepoIdSecretsSecretNameWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - secretName string +// - params *client.PatchReposRepoIdSecretsSecretNameParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchReposRepoIdSecretsSecretNameWithBody(ctx interface{}, repoId interface{}, secretName interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call { + return &MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call{Call: _e.mock.On("PatchReposRepoIdSecretsSecretNameWithBody", + append([]interface{}{ctx, repoId, secretName, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call) Run(run func(ctx context.Context, repoId int, secretName string, params *client.PatchReposRepoIdSecretsSecretNameParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-6) + for i, a := range args[6:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.PatchReposRepoIdSecretsSecretNameParams), args[4].(string), args[5].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call) RunAndReturn(run func(context.Context, int, string, *client.PatchReposRepoIdSecretsSecretNameParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchReposRepoIdSecretsSecretNameWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchReposRepoIdWithBody provides a mock function with given fields: ctx, repoId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchReposRepoIdWithBody(ctx context.Context, repoId int, params *client.PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchReposRepoIdWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchReposRepoIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PatchReposRepoIdParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PatchReposRepoIdParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchReposRepoIdWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchReposRepoIdWithBody' +type MockClientInterface_PatchReposRepoIdWithBody_Call struct { + *mock.Call +} + +// PatchReposRepoIdWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PatchReposRepoIdParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchReposRepoIdWithBody(ctx interface{}, repoId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchReposRepoIdWithBody_Call { + return &MockClientInterface_PatchReposRepoIdWithBody_Call{Call: _e.mock.On("PatchReposRepoIdWithBody", + append([]interface{}{ctx, repoId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchReposRepoIdWithBody_Call) Run(run func(ctx context.Context, repoId int, params *client.PatchReposRepoIdParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchReposRepoIdWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PatchReposRepoIdParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchReposRepoIdWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchReposRepoIdWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PatchReposRepoIdParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchReposRepoIdWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchSecretsSecretWithBody provides a mock function with given fields: ctx, secret, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchSecretsSecretWithBody(ctx context.Context, secret string, params *client.PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, secret, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchSecretsSecretWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, secret, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, secret, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PatchSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, secret, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchSecretsSecretWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchSecretsSecretWithBody' +type MockClientInterface_PatchSecretsSecretWithBody_Call struct { + *mock.Call +} + +// PatchSecretsSecretWithBody is a helper method to define mock.On call +// - ctx context.Context +// - secret string +// - params *client.PatchSecretsSecretParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchSecretsSecretWithBody(ctx interface{}, secret interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchSecretsSecretWithBody_Call { + return &MockClientInterface_PatchSecretsSecretWithBody_Call{Call: _e.mock.On("PatchSecretsSecretWithBody", + append([]interface{}{ctx, secret, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchSecretsSecretWithBody_Call) Run(run func(ctx context.Context, secret string, params *client.PatchSecretsSecretParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchSecretsSecretWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PatchSecretsSecretParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchSecretsSecretWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchSecretsSecretWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchSecretsSecretWithBody_Call) RunAndReturn(run func(context.Context, string, *client.PatchSecretsSecretParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchSecretsSecretWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PatchUsersLogin provides a mock function with given fields: ctx, login, params, body, reqEditors +func (_m *MockClientInterface) PatchUsersLogin(ctx context.Context, login string, params *client.PatchUsersLoginParams, body client.PatchUsersLoginJSONRequestBody, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, login, params, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchUsersLogin") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchUsersLoginParams, client.PatchUsersLoginJSONRequestBody, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, login, params, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchUsersLoginParams, client.PatchUsersLoginJSONRequestBody, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, login, params, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PatchUsersLoginParams, client.PatchUsersLoginJSONRequestBody, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, login, params, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchUsersLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchUsersLogin' +type MockClientInterface_PatchUsersLogin_Call struct { + *mock.Call +} + +// PatchUsersLogin is a helper method to define mock.On call +// - ctx context.Context +// - login string +// - params *client.PatchUsersLoginParams +// - body client.PatchUsersLoginJSONRequestBody +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchUsersLogin(ctx interface{}, login interface{}, params interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchUsersLogin_Call { + return &MockClientInterface_PatchUsersLogin_Call{Call: _e.mock.On("PatchUsersLogin", + append([]interface{}{ctx, login, params, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchUsersLogin_Call) Run(run func(ctx context.Context, login string, params *client.PatchUsersLoginParams, body client.PatchUsersLoginJSONRequestBody, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchUsersLogin_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PatchUsersLoginParams), args[3].(client.PatchUsersLoginJSONRequestBody), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchUsersLogin_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchUsersLogin_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchUsersLogin_Call) RunAndReturn(run func(context.Context, string, *client.PatchUsersLoginParams, client.PatchUsersLoginJSONRequestBody, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchUsersLogin_Call { + _c.Call.Return(run) + return _c +} + +// PatchUsersLoginWithBody provides a mock function with given fields: ctx, login, params, contentType, body, reqEditors +func (_m *MockClientInterface) PatchUsersLoginWithBody(ctx context.Context, login string, params *client.PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, login, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PatchUsersLoginWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchUsersLoginParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, login, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PatchUsersLoginParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, login, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PatchUsersLoginParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, login, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PatchUsersLoginWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PatchUsersLoginWithBody' +type MockClientInterface_PatchUsersLoginWithBody_Call struct { + *mock.Call +} + +// PatchUsersLoginWithBody is a helper method to define mock.On call +// - ctx context.Context +// - login string +// - params *client.PatchUsersLoginParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PatchUsersLoginWithBody(ctx interface{}, login interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PatchUsersLoginWithBody_Call { + return &MockClientInterface_PatchUsersLoginWithBody_Call{Call: _e.mock.On("PatchUsersLoginWithBody", + append([]interface{}{ctx, login, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PatchUsersLoginWithBody_Call) Run(run func(ctx context.Context, login string, params *client.PatchUsersLoginParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PatchUsersLoginWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PatchUsersLoginParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PatchUsersLoginWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PatchUsersLoginWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PatchUsersLoginWithBody_Call) RunAndReturn(run func(context.Context, string, *client.PatchUsersLoginParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PatchUsersLoginWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostAgentsWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostAgentsWithBody(ctx context.Context, params *client.PostAgentsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostAgentsWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostAgentsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostAgentsParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostAgentsParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostAgentsWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostAgentsWithBody' +type MockClientInterface_PostAgentsWithBody_Call struct { + *mock.Call +} + +// PostAgentsWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostAgentsParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostAgentsWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostAgentsWithBody_Call { + return &MockClientInterface_PostAgentsWithBody_Call{Call: _e.mock.On("PostAgentsWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostAgentsWithBody_Call) Run(run func(ctx context.Context, params *client.PostAgentsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostAgentsWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostAgentsParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostAgentsWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostAgentsWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostAgentsWithBody_Call) RunAndReturn(run func(context.Context, *client.PostAgentsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostAgentsWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostDebugPprofSymbol provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostDebugPprofSymbol(ctx context.Context, params *client.PostDebugPprofSymbolParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostDebugPprofSymbol") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostDebugPprofSymbolParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostDebugPprofSymbolParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostDebugPprofSymbolParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostDebugPprofSymbol_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostDebugPprofSymbol' +type MockClientInterface_PostDebugPprofSymbol_Call struct { + *mock.Call +} + +// PostDebugPprofSymbol is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostDebugPprofSymbolParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostDebugPprofSymbol(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostDebugPprofSymbol_Call { + return &MockClientInterface_PostDebugPprofSymbol_Call{Call: _e.mock.On("PostDebugPprofSymbol", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostDebugPprofSymbol_Call) Run(run func(ctx context.Context, params *client.PostDebugPprofSymbolParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostDebugPprofSymbol_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostDebugPprofSymbolParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostDebugPprofSymbol_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostDebugPprofSymbol_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostDebugPprofSymbol_Call) RunAndReturn(run func(context.Context, *client.PostDebugPprofSymbolParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostDebugPprofSymbol_Call { + _c.Call.Return(run) + return _c +} + +// PostForgesWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostForgesWithBody(ctx context.Context, params *client.PostForgesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostForgesWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostForgesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostForgesParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostForgesParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostForgesWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostForgesWithBody' +type MockClientInterface_PostForgesWithBody_Call struct { + *mock.Call +} + +// PostForgesWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostForgesParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostForgesWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostForgesWithBody_Call { + return &MockClientInterface_PostForgesWithBody_Call{Call: _e.mock.On("PostForgesWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostForgesWithBody_Call) Run(run func(ctx context.Context, params *client.PostForgesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostForgesWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostForgesParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostForgesWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostForgesWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostForgesWithBody_Call) RunAndReturn(run func(context.Context, *client.PostForgesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostForgesWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostHookWithBody provides a mock function with given fields: ctx, contentType, body, reqEditors +func (_m *MockClientInterface) PostHookWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostHookWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostHookWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostHookWithBody' +type MockClientInterface_PostHookWithBody_Call struct { + *mock.Call +} + +// PostHookWithBody is a helper method to define mock.On call +// - ctx context.Context +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostHookWithBody(ctx interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostHookWithBody_Call { + return &MockClientInterface_PostHookWithBody_Call{Call: _e.mock.On("PostHookWithBody", + append([]interface{}{ctx, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostHookWithBody_Call) Run(run func(ctx context.Context, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostHookWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostHookWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostHookWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostHookWithBody_Call) RunAndReturn(run func(context.Context, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostHookWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostLogLevelWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostLogLevelWithBody(ctx context.Context, params *client.PostLogLevelParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostLogLevelWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostLogLevelParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostLogLevelParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostLogLevelParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostLogLevelWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostLogLevelWithBody' +type MockClientInterface_PostLogLevelWithBody_Call struct { + *mock.Call +} + +// PostLogLevelWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostLogLevelParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostLogLevelWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostLogLevelWithBody_Call { + return &MockClientInterface_PostLogLevelWithBody_Call{Call: _e.mock.On("PostLogLevelWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostLogLevelWithBody_Call) Run(run func(ctx context.Context, params *client.PostLogLevelParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostLogLevelWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostLogLevelParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostLogLevelWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostLogLevelWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostLogLevelWithBody_Call) RunAndReturn(run func(context.Context, *client.PostLogLevelParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostLogLevelWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostOrgsOrgIdAgentsWithBody provides a mock function with given fields: ctx, orgId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostOrgsOrgIdAgentsWithBody(ctx context.Context, orgId int, params *client.PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostOrgsOrgIdAgentsWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostOrgsOrgIdAgentsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostOrgsOrgIdAgentsParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostOrgsOrgIdAgentsParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostOrgsOrgIdAgentsWithBody' +type MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call struct { + *mock.Call +} + +// PostOrgsOrgIdAgentsWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId int +// - params *client.PostOrgsOrgIdAgentsParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostOrgsOrgIdAgentsWithBody(ctx interface{}, orgId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call { + return &MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call{Call: _e.mock.On("PostOrgsOrgIdAgentsWithBody", + append([]interface{}{ctx, orgId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call) Run(run func(ctx context.Context, orgId int, params *client.PostOrgsOrgIdAgentsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostOrgsOrgIdAgentsParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PostOrgsOrgIdAgentsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostOrgsOrgIdAgentsWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostOrgsOrgIdRegistriesWithBody provides a mock function with given fields: ctx, orgId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostOrgsOrgIdRegistriesWithBody(ctx context.Context, orgId string, params *client.PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostOrgsOrgIdRegistriesWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PostOrgsOrgIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PostOrgsOrgIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PostOrgsOrgIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostOrgsOrgIdRegistriesWithBody' +type MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call struct { + *mock.Call +} + +// PostOrgsOrgIdRegistriesWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.PostOrgsOrgIdRegistriesParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostOrgsOrgIdRegistriesWithBody(ctx interface{}, orgId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call { + return &MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call{Call: _e.mock.On("PostOrgsOrgIdRegistriesWithBody", + append([]interface{}{ctx, orgId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call) Run(run func(ctx context.Context, orgId string, params *client.PostOrgsOrgIdRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PostOrgsOrgIdRegistriesParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call) RunAndReturn(run func(context.Context, string, *client.PostOrgsOrgIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostOrgsOrgIdRegistriesWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostOrgsOrgIdSecretsWithBody provides a mock function with given fields: ctx, orgId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostOrgsOrgIdSecretsWithBody(ctx context.Context, orgId string, params *client.PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, orgId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostOrgsOrgIdSecretsWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PostOrgsOrgIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, orgId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, string, *client.PostOrgsOrgIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, string, *client.PostOrgsOrgIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, orgId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostOrgsOrgIdSecretsWithBody' +type MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call struct { + *mock.Call +} + +// PostOrgsOrgIdSecretsWithBody is a helper method to define mock.On call +// - ctx context.Context +// - orgId string +// - params *client.PostOrgsOrgIdSecretsParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostOrgsOrgIdSecretsWithBody(ctx interface{}, orgId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call { + return &MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call{Call: _e.mock.On("PostOrgsOrgIdSecretsWithBody", + append([]interface{}{ctx, orgId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call) Run(run func(ctx context.Context, orgId string, params *client.PostOrgsOrgIdSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(string), args[2].(*client.PostOrgsOrgIdSecretsParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call) RunAndReturn(run func(context.Context, string, *client.PostOrgsOrgIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostOrgsOrgIdSecretsWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostQueuePause provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostQueuePause(ctx context.Context, params *client.PostQueuePauseParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostQueuePause") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostQueuePauseParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostQueuePauseParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostQueuePauseParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostQueuePause_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostQueuePause' +type MockClientInterface_PostQueuePause_Call struct { + *mock.Call +} + +// PostQueuePause is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostQueuePauseParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostQueuePause(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostQueuePause_Call { + return &MockClientInterface_PostQueuePause_Call{Call: _e.mock.On("PostQueuePause", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostQueuePause_Call) Run(run func(ctx context.Context, params *client.PostQueuePauseParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostQueuePause_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostQueuePauseParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostQueuePause_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostQueuePause_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostQueuePause_Call) RunAndReturn(run func(context.Context, *client.PostQueuePauseParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostQueuePause_Call { + _c.Call.Return(run) + return _c +} + +// PostQueueResume provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostQueueResume(ctx context.Context, params *client.PostQueueResumeParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostQueueResume") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostQueueResumeParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostQueueResumeParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostQueueResumeParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostQueueResume_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostQueueResume' +type MockClientInterface_PostQueueResume_Call struct { + *mock.Call +} + +// PostQueueResume is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostQueueResumeParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostQueueResume(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostQueueResume_Call { + return &MockClientInterface_PostQueueResume_Call{Call: _e.mock.On("PostQueueResume", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostQueueResume_Call) Run(run func(ctx context.Context, params *client.PostQueueResumeParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostQueueResume_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostQueueResumeParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostQueueResume_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostQueueResume_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostQueueResume_Call) RunAndReturn(run func(context.Context, *client.PostQueueResumeParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostQueueResume_Call { + _c.Call.Return(run) + return _c +} + +// PostRegistriesWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostRegistriesWithBody(ctx context.Context, params *client.PostRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostRegistriesWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostRegistriesParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostRegistriesParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostRegistriesWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostRegistriesWithBody' +type MockClientInterface_PostRegistriesWithBody_Call struct { + *mock.Call +} + +// PostRegistriesWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostRegistriesParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostRegistriesWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostRegistriesWithBody_Call { + return &MockClientInterface_PostRegistriesWithBody_Call{Call: _e.mock.On("PostRegistriesWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostRegistriesWithBody_Call) Run(run func(ctx context.Context, params *client.PostRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostRegistriesWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostRegistriesParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostRegistriesWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostRegistriesWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostRegistriesWithBody_Call) RunAndReturn(run func(context.Context, *client.PostRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostRegistriesWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostRepos provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostRepos(ctx context.Context, params *client.PostReposParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostRepos") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostReposParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostReposParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostReposParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostRepos_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostRepos' +type MockClientInterface_PostRepos_Call struct { + *mock.Call +} + +// PostRepos is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostReposParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostRepos(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostRepos_Call { + return &MockClientInterface_PostRepos_Call{Call: _e.mock.On("PostRepos", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostRepos_Call) Run(run func(ctx context.Context, params *client.PostReposParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostRepos_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostReposParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostRepos_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostRepos_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostRepos_Call) RunAndReturn(run func(context.Context, *client.PostReposParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostRepos_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepair provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostReposRepair(ctx context.Context, params *client.PostReposRepairParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepair") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostReposRepairParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostReposRepairParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostReposRepairParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepair' +type MockClientInterface_PostReposRepair_Call struct { + *mock.Call +} + +// PostReposRepair is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostReposRepairParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepair(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepair_Call { + return &MockClientInterface_PostReposRepair_Call{Call: _e.mock.On("PostReposRepair", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepair_Call) Run(run func(ctx context.Context, params *client.PostReposRepairParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepair_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostReposRepairParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepair_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepair_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepair_Call) RunAndReturn(run func(context.Context, *client.PostReposRepairParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepair_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdChown provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdChown(ctx context.Context, repoId int, params *client.PostReposRepoIdChownParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdChown") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdChownParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdChownParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdChownParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdChown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdChown' +type MockClientInterface_PostReposRepoIdChown_Call struct { + *mock.Call +} + +// PostReposRepoIdChown is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdChownParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdChown(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdChown_Call { + return &MockClientInterface_PostReposRepoIdChown_Call{Call: _e.mock.On("PostReposRepoIdChown", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdChown_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdChownParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdChown_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdChownParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdChown_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdChown_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdChown_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdChownParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdChown_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdCronCron provides a mock function with given fields: ctx, repoId, cron, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdCronCron(ctx context.Context, repoId int, cron string, params *client.PostReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, cron, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdCronCron") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PostReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, cron, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, string, *client.PostReposRepoIdCronCronParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, string, *client.PostReposRepoIdCronCronParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, cron, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdCronCron_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdCronCron' +type MockClientInterface_PostReposRepoIdCronCron_Call struct { + *mock.Call +} + +// PostReposRepoIdCronCron is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - cron string +// - params *client.PostReposRepoIdCronCronParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdCronCron(ctx interface{}, repoId interface{}, cron interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdCronCron_Call { + return &MockClientInterface_PostReposRepoIdCronCron_Call{Call: _e.mock.On("PostReposRepoIdCronCron", + append([]interface{}{ctx, repoId, cron, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdCronCron_Call) Run(run func(ctx context.Context, repoId int, cron string, params *client.PostReposRepoIdCronCronParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdCronCron_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(string), args[3].(*client.PostReposRepoIdCronCronParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdCronCron_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdCronCron_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdCronCron_Call) RunAndReturn(run func(context.Context, int, string, *client.PostReposRepoIdCronCronParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdCronCron_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdCronWithBody provides a mock function with given fields: ctx, repoId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostReposRepoIdCronWithBody(ctx context.Context, repoId int, params *client.PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdCronWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdCronParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdCronParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdCronParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdCronWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdCronWithBody' +type MockClientInterface_PostReposRepoIdCronWithBody_Call struct { + *mock.Call +} + +// PostReposRepoIdCronWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdCronParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdCronWithBody(ctx interface{}, repoId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdCronWithBody_Call { + return &MockClientInterface_PostReposRepoIdCronWithBody_Call{Call: _e.mock.On("PostReposRepoIdCronWithBody", + append([]interface{}{ctx, repoId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdCronWithBody_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdCronParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdCronWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdCronParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdCronWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdCronWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdCronWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdCronParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdCronWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdMove provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdMove(ctx context.Context, repoId int, params *client.PostReposRepoIdMoveParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdMove") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdMoveParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdMoveParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdMoveParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdMove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdMove' +type MockClientInterface_PostReposRepoIdMove_Call struct { + *mock.Call +} + +// PostReposRepoIdMove is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdMoveParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdMove(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdMove_Call { + return &MockClientInterface_PostReposRepoIdMove_Call{Call: _e.mock.On("PostReposRepoIdMove", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdMove_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdMoveParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdMove_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdMoveParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdMove_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdMove_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdMove_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdMoveParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdMove_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdPipelinesNumber provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdPipelinesNumber(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdPipelinesNumber") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdPipelinesNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdPipelinesNumber' +type MockClientInterface_PostReposRepoIdPipelinesNumber_Call struct { + *mock.Call +} + +// PostReposRepoIdPipelinesNumber is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.PostReposRepoIdPipelinesNumberParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdPipelinesNumber(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdPipelinesNumber_Call { + return &MockClientInterface_PostReposRepoIdPipelinesNumber_Call{Call: _e.mock.On("PostReposRepoIdPipelinesNumber", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumber_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdPipelinesNumber_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.PostReposRepoIdPipelinesNumberParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumber_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdPipelinesNumber_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumber_Call) RunAndReturn(run func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdPipelinesNumber_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdPipelinesNumberApprove provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdPipelinesNumberApprove(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdPipelinesNumberApprove") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberApproveParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberApproveParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberApproveParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdPipelinesNumberApprove' +type MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call struct { + *mock.Call +} + +// PostReposRepoIdPipelinesNumberApprove is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.PostReposRepoIdPipelinesNumberApproveParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdPipelinesNumberApprove(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call { + return &MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call{Call: _e.mock.On("PostReposRepoIdPipelinesNumberApprove", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberApproveParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.PostReposRepoIdPipelinesNumberApproveParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call) RunAndReturn(run func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberApproveParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdPipelinesNumberApprove_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdPipelinesNumberCancel provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdPipelinesNumberCancel(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdPipelinesNumberCancel") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberCancelParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberCancelParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberCancelParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdPipelinesNumberCancel' +type MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call struct { + *mock.Call +} + +// PostReposRepoIdPipelinesNumberCancel is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.PostReposRepoIdPipelinesNumberCancelParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdPipelinesNumberCancel(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call { + return &MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call{Call: _e.mock.On("PostReposRepoIdPipelinesNumberCancel", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberCancelParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.PostReposRepoIdPipelinesNumberCancelParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call) RunAndReturn(run func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberCancelParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdPipelinesNumberCancel_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdPipelinesNumberDecline provides a mock function with given fields: ctx, repoId, number, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdPipelinesNumberDecline(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, number, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdPipelinesNumberDecline") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberDeclineParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, number, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberDeclineParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, number, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberDeclineParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, number, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdPipelinesNumberDecline' +type MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call struct { + *mock.Call +} + +// PostReposRepoIdPipelinesNumberDecline is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - number int +// - params *client.PostReposRepoIdPipelinesNumberDeclineParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdPipelinesNumberDecline(ctx interface{}, repoId interface{}, number interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call { + return &MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call{Call: _e.mock.On("PostReposRepoIdPipelinesNumberDecline", + append([]interface{}{ctx, repoId, number, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call) Run(run func(ctx context.Context, repoId int, number int, params *client.PostReposRepoIdPipelinesNumberDeclineParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(int), args[3].(*client.PostReposRepoIdPipelinesNumberDeclineParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call) RunAndReturn(run func(context.Context, int, int, *client.PostReposRepoIdPipelinesNumberDeclineParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdPipelinesNumberDecline_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdPipelinesWithBody provides a mock function with given fields: ctx, repoId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostReposRepoIdPipelinesWithBody(ctx context.Context, repoId int, params *client.PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdPipelinesWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdPipelinesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdPipelinesParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdPipelinesParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdPipelinesWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdPipelinesWithBody' +type MockClientInterface_PostReposRepoIdPipelinesWithBody_Call struct { + *mock.Call +} + +// PostReposRepoIdPipelinesWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdPipelinesParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdPipelinesWithBody(ctx interface{}, repoId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call { + return &MockClientInterface_PostReposRepoIdPipelinesWithBody_Call{Call: _e.mock.On("PostReposRepoIdPipelinesWithBody", + append([]interface{}{ctx, repoId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdPipelinesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdPipelinesParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdPipelinesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdPipelinesWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdRegistriesWithBody provides a mock function with given fields: ctx, repoId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostReposRepoIdRegistriesWithBody(ctx context.Context, repoId int, params *client.PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdRegistriesWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdRegistriesWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdRegistriesWithBody' +type MockClientInterface_PostReposRepoIdRegistriesWithBody_Call struct { + *mock.Call +} + +// PostReposRepoIdRegistriesWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdRegistriesParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdRegistriesWithBody(ctx interface{}, repoId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call { + return &MockClientInterface_PostReposRepoIdRegistriesWithBody_Call{Call: _e.mock.On("PostReposRepoIdRegistriesWithBody", + append([]interface{}{ctx, repoId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdRegistriesParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdRegistriesParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdRegistriesParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdRegistriesWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdRepair provides a mock function with given fields: ctx, repoId, params, reqEditors +func (_m *MockClientInterface) PostReposRepoIdRepair(ctx context.Context, repoId int, params *client.PostReposRepoIdRepairParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdRepair") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdRepairParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdRepairParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdRepairParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdRepair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdRepair' +type MockClientInterface_PostReposRepoIdRepair_Call struct { + *mock.Call +} + +// PostReposRepoIdRepair is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdRepairParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdRepair(ctx interface{}, repoId interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdRepair_Call { + return &MockClientInterface_PostReposRepoIdRepair_Call{Call: _e.mock.On("PostReposRepoIdRepair", + append([]interface{}{ctx, repoId, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdRepair_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdRepairParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdRepair_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-3) + for i, a := range args[3:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdRepairParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdRepair_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdRepair_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdRepair_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdRepairParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdRepair_Call { + _c.Call.Return(run) + return _c +} + +// PostReposRepoIdSecretsWithBody provides a mock function with given fields: ctx, repoId, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostReposRepoIdSecretsWithBody(ctx context.Context, repoId int, params *client.PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, repoId, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostReposRepoIdSecretsWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, repoId, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, int, *client.PostReposRepoIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, int, *client.PostReposRepoIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, repoId, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostReposRepoIdSecretsWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostReposRepoIdSecretsWithBody' +type MockClientInterface_PostReposRepoIdSecretsWithBody_Call struct { + *mock.Call +} + +// PostReposRepoIdSecretsWithBody is a helper method to define mock.On call +// - ctx context.Context +// - repoId int +// - params *client.PostReposRepoIdSecretsParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostReposRepoIdSecretsWithBody(ctx interface{}, repoId interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostReposRepoIdSecretsWithBody_Call { + return &MockClientInterface_PostReposRepoIdSecretsWithBody_Call{Call: _e.mock.On("PostReposRepoIdSecretsWithBody", + append([]interface{}{ctx, repoId, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostReposRepoIdSecretsWithBody_Call) Run(run func(ctx context.Context, repoId int, params *client.PostReposRepoIdSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostReposRepoIdSecretsWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-5) + for i, a := range args[5:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(int), args[2].(*client.PostReposRepoIdSecretsParams), args[3].(string), args[4].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdSecretsWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostReposRepoIdSecretsWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostReposRepoIdSecretsWithBody_Call) RunAndReturn(run func(context.Context, int, *client.PostReposRepoIdSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostReposRepoIdSecretsWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostSecretsWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostSecretsWithBody(ctx context.Context, params *client.PostSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostSecretsWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostSecretsParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostSecretsParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostSecretsWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostSecretsWithBody' +type MockClientInterface_PostSecretsWithBody_Call struct { + *mock.Call +} + +// PostSecretsWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostSecretsParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostSecretsWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostSecretsWithBody_Call { + return &MockClientInterface_PostSecretsWithBody_Call{Call: _e.mock.On("PostSecretsWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostSecretsWithBody_Call) Run(run func(ctx context.Context, params *client.PostSecretsParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostSecretsWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostSecretsParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostSecretsWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostSecretsWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostSecretsWithBody_Call) RunAndReturn(run func(context.Context, *client.PostSecretsParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostSecretsWithBody_Call { + _c.Call.Return(run) + return _c +} + +// PostUserToken provides a mock function with given fields: ctx, params, reqEditors +func (_m *MockClientInterface) PostUserToken(ctx context.Context, params *client.PostUserTokenParams, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostUserToken") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostUserTokenParams, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostUserTokenParams, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostUserTokenParams, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostUserToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostUserToken' +type MockClientInterface_PostUserToken_Call struct { + *mock.Call +} + +// PostUserToken is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostUserTokenParams +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostUserToken(ctx interface{}, params interface{}, reqEditors ...interface{}) *MockClientInterface_PostUserToken_Call { + return &MockClientInterface_PostUserToken_Call{Call: _e.mock.On("PostUserToken", + append([]interface{}{ctx, params}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostUserToken_Call) Run(run func(ctx context.Context, params *client.PostUserTokenParams, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostUserToken_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-2) + for i, a := range args[2:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostUserTokenParams), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostUserToken_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostUserToken_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostUserToken_Call) RunAndReturn(run func(context.Context, *client.PostUserTokenParams, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostUserToken_Call { + _c.Call.Return(run) + return _c +} + +// PostUsersWithBody provides a mock function with given fields: ctx, params, contentType, body, reqEditors +func (_m *MockClientInterface) PostUsersWithBody(ctx context.Context, params *client.PostUsersParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn) (*http.Response, error) { + _va := make([]interface{}, len(reqEditors)) + for _i := range reqEditors { + _va[_i] = reqEditors[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, params, contentType, body) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + if len(ret) == 0 { + panic("no return value specified for PostUsersWithBody") + } + + var r0 *http.Response + var r1 error + if rf, ok := ret.Get(0).(func(context.Context, *client.PostUsersParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)); ok { + return rf(ctx, params, contentType, body, reqEditors...) + } + if rf, ok := ret.Get(0).(func(context.Context, *client.PostUsersParams, string, io.Reader, ...client.RequestEditorFn) *http.Response); ok { + r0 = rf(ctx, params, contentType, body, reqEditors...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*http.Response) + } + } + + if rf, ok := ret.Get(1).(func(context.Context, *client.PostUsersParams, string, io.Reader, ...client.RequestEditorFn) error); ok { + r1 = rf(ctx, params, contentType, body, reqEditors...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +// MockClientInterface_PostUsersWithBody_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PostUsersWithBody' +type MockClientInterface_PostUsersWithBody_Call struct { + *mock.Call +} + +// PostUsersWithBody is a helper method to define mock.On call +// - ctx context.Context +// - params *client.PostUsersParams +// - contentType string +// - body io.Reader +// - reqEditors ...client.RequestEditorFn +func (_e *MockClientInterface_Expecter) PostUsersWithBody(ctx interface{}, params interface{}, contentType interface{}, body interface{}, reqEditors ...interface{}) *MockClientInterface_PostUsersWithBody_Call { + return &MockClientInterface_PostUsersWithBody_Call{Call: _e.mock.On("PostUsersWithBody", + append([]interface{}{ctx, params, contentType, body}, reqEditors...)...)} +} + +func (_c *MockClientInterface_PostUsersWithBody_Call) Run(run func(ctx context.Context, params *client.PostUsersParams, contentType string, body io.Reader, reqEditors ...client.RequestEditorFn)) *MockClientInterface_PostUsersWithBody_Call { + _c.Call.Run(func(args mock.Arguments) { + variadicArgs := make([]client.RequestEditorFn, len(args)-4) + for i, a := range args[4:] { + if a != nil { + variadicArgs[i] = a.(client.RequestEditorFn) + } + } + run(args[0].(context.Context), args[1].(*client.PostUsersParams), args[2].(string), args[3].(io.Reader), variadicArgs...) + }) + return _c +} + +func (_c *MockClientInterface_PostUsersWithBody_Call) Return(_a0 *http.Response, _a1 error) *MockClientInterface_PostUsersWithBody_Call { + _c.Call.Return(_a0, _a1) + return _c +} + +func (_c *MockClientInterface_PostUsersWithBody_Call) RunAndReturn(run func(context.Context, *client.PostUsersParams, string, io.Reader, ...client.RequestEditorFn) (*http.Response, error)) *MockClientInterface_PostUsersWithBody_Call { + _c.Call.Return(run) + return _c +} + +// NewMockClientInterface creates a new instance of MockClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. +// The first argument is typically a *testing.T value. +func NewMockClientInterface(t interface { + mock.TestingT + Cleanup(func()) +}) *MockClientInterface { + mock := &MockClientInterface{} + mock.Mock.Test(t) + + t.Cleanup(func() { mock.AssertExpectations(t) }) + + return mock +} diff --git a/woodpecker-go/client_test.go b/woodpecker-go/client_test.go new file mode 100644 index 0000000000..d68363999e --- /dev/null +++ b/woodpecker-go/client_test.go @@ -0,0 +1,120 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package woodpeckergo + +import ( + "context" + "net/http" + "net/http/httptest" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "go.woodpecker-ci.org/woodpecker/v2/woodpecker-go/client" +) + +func TestNew(t *testing.T) { + tests := []struct { + name string + uri string + client *http.Client + wantErr bool + }{ + { + name: "Valid URI", + uri: "http://example.com", + client: http.DefaultClient, + wantErr: false, + }, + { + name: "Invalid URI", + uri: "://invalid-uri", + client: http.DefaultClient, + wantErr: true, + }, + { + name: "Empty URI", + uri: "", + client: http.DefaultClient, + wantErr: true, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + client, err := NewWithClient(tt.uri, tt.client) + if tt.wantErr { + assert.Error(t, err) + assert.Nil(t, client) + return + } + + assert.NoError(t, err) + assert.NotNil(t, client) + }) + } +} + +func TestClient_canCall(t *testing.T) { + ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if r.URL.Path == "/api/version" { + w.WriteHeader(http.StatusOK) + _, _ = w.Write([]byte(`{"version":"test"}`)) + } + })) + defer ts.Close() + + serverURL := ts.URL + + tests := []struct { + name string + test func(t *testing.T, serverURL string) (*http.Response, error) + }{ + { + name: "with raw http.Response", + test: func(_ *testing.T, serverURL string) (*http.Response, error) { + hc := http.Client{} + c, err := NewWithClient(serverURL, &hc) + if err != nil { + return nil, err + } + return c.GetVersion(context.Background()) + }, + }, + { + name: "with parsed response body", + test: func(_ *testing.T, serverURL string) (*http.Response, error) { + hc := http.Client{} + c, err := client.NewClientWithResponses(serverURL, client.WithHTTPClient(&hc)) + if err != nil { + return nil, err + } + resp, err := c.GetVersionWithResponse(context.Background()) + return resp.HTTPResponse, err + }, + }, + } + + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + resp, err := tt.test(t, serverURL) + require.NoError(t, err) + require.NotNil(t, resp) + assert.Equal(t, http.StatusOK, resp.StatusCode) + resp.Body.Close() + }) + } +} diff --git a/woodpecker-go/config.yaml b/woodpecker-go/config.yaml new file mode 100644 index 0000000000..d34aa1fbdc --- /dev/null +++ b/woodpecker-go/config.yaml @@ -0,0 +1,8 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/deepmap/oapi-codegen/HEAD/configuration-schema.json +--- +package: client +output: client/client.gen.go +generate: + models: true + client: true + strict-server: true diff --git a/woodpecker-go/woodpecker/client.go b/woodpecker-go/woodpecker/client.go index 3a26f5dc2d..d15bbf7884 100644 --- a/woodpecker-go/woodpecker/client.go +++ b/woodpecker-go/woodpecker/client.go @@ -40,11 +40,15 @@ type client struct { } // New returns a client at the specified url. +// +// Deprecated: use woodpecker-go.New instead. func New(uri string) Client { return &client{http.DefaultClient, strings.TrimSuffix(uri, "/")} } // NewClient returns a client at the specified url. +// +// Deprecated: use woodpecker-go.NewWithClient instead. func NewClient(uri string, cli *http.Client) Client { return &client{cli, strings.TrimSuffix(uri, "/")} } diff --git a/woodpecker-go/woodpecker/interface.go b/woodpecker-go/woodpecker/interface.go index 4f29717fdc..2bec0a907d 100644 --- a/woodpecker-go/woodpecker/interface.go +++ b/woodpecker-go/woodpecker/interface.go @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Deprecated: use woodpecker-go instead. package woodpecker import ( @@ -21,6 +22,8 @@ import ( //go:generate mockery --name Client --output mocks --case underscore --note "+build test" // Client is used to communicate with a Woodpecker server. +// +// Deprecated: use woodpecker-go.Client instead. type Client interface { // SetClient sets the http.Client. SetClient(*http.Client)