diff --git a/.golangci.yml b/.golangci.yml index 665d9de..a0178ee 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,7 +12,6 @@ version: "2" # - golines # issues: # exclude-files: - run: timeout: 5m concurrency: 4 @@ -136,6 +135,9 @@ linters: - wsl # - zerologlint exclusions: + generated: strict + paths: + - internal/client/client.go presets: - common-false-positives - legacy diff --git a/cmd/root.go b/cmd/root.go index 4485826..ff6f5fc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,7 +20,7 @@ const ( confDir = ".aplcli" idpDir = ".aplcli/platforms" valuesDir = ".aplcli/platforms/values" - version = "0.1.4" + version = "0.2.0" ) type ProjectPaths struct { @@ -212,7 +212,7 @@ func projPath() ProjectPaths { // loadProjConfig parses the array of platform definitions in config.yaml to // load the definition matching the value provided by the required --name flag. -// This ensures loadig of the correct definition on each invokation. +// This ensures loading of the correct definition on each invocation. func loadProjConfig() error { cfg, ok := viper.AllSettings()["platform"].([]any) if len(cfg) == 0 { diff --git a/docs/solutions/03-add-cli-command.md b/docs/solutions/03-add-cli-command.md index 20ee303..c77b895 100644 --- a/docs/solutions/03-add-cli-command.md +++ b/docs/solutions/03-add-cli-command.md @@ -15,14 +15,14 @@ import ( "strconv" "strings" - oapi "github.com/akamai-developers/aplcli/client" + oapi "github.com/akamai-developers/aplcli/internal/client" "github.com/oapi-codegen/oapi-codegen/v2/pkg/securityprovider" "github.com/spf13/cobra" + "github.com/spf13/viper" ) var ( apiURL string - teamName string addTeam bool rmTeam bool listTeams bool @@ -36,14 +36,14 @@ var teamCmd = &cobra.Command{ PreRun: func(cmd *cobra.Command, args []string) { apiURL = "https://api." + platform.Domain - // make --add and --remove mutually exlusive + // make --add and --remove mutually exclusive errMsg := "parse flag values: " if addTeam && rmTeam { cmd.Help() logger.Error(errMsg + "--add and --remove are mutually exclusive") } - // require --team-id togehter with other flags except for --list + // require --team-id together with other flags except for --list if !listTeams && teamId == "" { cmd.Help() logger.Error(errMsg + "--team-id [string] is required") @@ -88,12 +88,14 @@ var teamCmd = &cobra.Command{ func init() { rootCmd.AddCommand(teamCmd) - teamCmd.Flags().StringVarP(&teamName, "name", "n", "", "APL instance name (required)") + teamCmd.Flags().StringVarP(&platform.Name, "name", "n", "", "APL instance name (required)") teamCmd.MarkFlagRequired("name") // makes the --name flag required teamCmd.Flags().BoolVarP(&addTeam, "add", "a", false, "Create a new team") teamCmd.Flags().BoolVarP(&rmTeam, "remove", "r", false, "Remove an existing team") teamCmd.Flags().StringVarP(&teamId, "team-id", "", "", "Team name (required with --add/--remove)") teamCmd.Flags().BoolVarP(&listTeams, "list", "l", false, "List all teams in APL instance") + + _ = viper.BindPFlags(teamCmd.LocalFlags()) } // aplClient is a wrapper func around the oapi-codegen generated diff --git a/go.mod b/go.mod index e41de33..91172c7 100644 --- a/go.mod +++ b/go.mod @@ -49,6 +49,7 @@ require ( github.com/agext/levenshtein v1.2.3 // indirect github.com/anchore/go-lzo v0.1.0 // indirect github.com/andybalholm/cascadia v1.3.3 // indirect + github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/appscode/go-querystring v0.0.0-20170504095604-0126cfb3f1dc // indirect @@ -192,6 +193,7 @@ require ( github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect github.com/ncw/swift/v2 v2.0.5 // indirect github.com/nxadm/tail v1.4.11 // indirect + github.com/oapi-codegen/runtime v1.3.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/opentracing/basictracer-go v1.1.0 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect @@ -234,7 +236,6 @@ require ( github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect github.com/smarty/assertions v1.16.0 // indirect github.com/sony/gobreaker v1.0.0 // indirect - github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spacemonkeygo/monkit/v3 v3.0.25-0.20251022131615-eb24eb109368 // indirect github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect diff --git a/go.sum b/go.sum index 28e50f3..c05e6f6 100644 --- a/go.sum +++ b/go.sum @@ -68,6 +68,7 @@ github.com/AzureAD/microsoft-authentication-library-for-go v1.6.0/go.mod h1:HKpQ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/toml v1.3.2 h1:o7IhLm0Msx3BaB+n3Ag7L8EVlByGnpq14C4YWiu/gL8= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Files-com/files-sdk-go/v3 v3.2.264 h1:lMHTplAYI9FtmCo/QOcpRxmPA5REVAct1r2riQmDQKw= github.com/Files-com/files-sdk-go/v3 v3.2.264/go.mod h1:wGqkOzRu/ClJibvDgcfuJNAqI2nLhe8g91tPlDKRCdE= @@ -98,6 +99,7 @@ github.com/ProtonMail/gopenpgp/v2 v2.9.0 h1:ruLzBmwe4dR1hdnrsEJ/S7psSBmV15gFttFU github.com/ProtonMail/gopenpgp/v2 v2.9.0/go.mod h1:IldDyh9Hv1ZCCYatTuuEt1XZJ0OPjxLpTarDfglih7s= github.com/PuerkitoBio/goquery v1.10.3 h1:pFYcNSqHxBD06Fpj/KsbStFRsgRATgnf3LeXiUkhzPo= github.com/PuerkitoBio/goquery v1.10.3/go.mod h1:tMUX0zDMHXYlAQk6p35XxQMqMweEKB7iK7iLNd4RH4Y= +github.com/RaveNoX/go-jsoncommentstrip v1.0.0/go.mod h1:78ihd09MekBnJnxpICcwzCMzGrKSKYe4AqU6PDYYpjk= github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0 h1:iLDOF0rdGTrol/q8OfPIIs5kLD8XvA2q75o6Uq/tgak= github.com/a1ex3/zstd-seekable-format-go/pkg v0.10.0/go.mod h1:DrEWcQJjz7t5iF2duaiyhg4jyoF0kxOD6LtECNGkZ/Q= github.com/aalpar/deheap v0.0.0-20210914013432-0cc84d79dec3 h1:hhdWprfSpFbN7lz3W1gM40vOgvSh1WCSMxYD6gGB4Hs= @@ -114,6 +116,8 @@ github.com/andybalholm/cascadia v1.3.3 h1:AG2YHrzJIm4BZ19iwJ/DAua6Btl3IwJX+VI4kk github.com/andybalholm/cascadia v1.3.3/go.mod h1:xNd9bqTn98Ln4DwST8/nG+H0yuB8Hmgu1YHNnWw0GeA= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be h1:9AeTilPcZAjCFIImctFaOjnTIavg87rW78vTPkQqLI8= github.com/anmitsu/go-shlex v0.0.0-20200514113438-38f4b401e2be/go.mod h1:ySMOLuWl6zY27l47sB3qLNK6tF2fkHG55UZxx8oIVo4= +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/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw= github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo= github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY= @@ -170,6 +174,7 @@ 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/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= +github.com/bmatcuk/doublestar v1.1.1/go.mod h1:UD6OnuiIn0yFxxA2le/rnRU1G4RaI4UvFv1sNto9p6w= github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= github.com/boombuler/barcode v1.1.0 h1:ChaYjBR63fr4LFyGn8E8nt7dBSt3MiU3zMOZqFvVkHo= github.com/boombuler/barcode v1.1.0/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8= @@ -290,6 +295,7 @@ github.com/gin-contrib/sse v1.0.0 h1:y3bT1mUWUxDpW4JLQg/HnTqV4rozuW4tC9eFKTxYI9E github.com/gin-contrib/sse v1.0.0/go.mod h1:zNuFdwarAygJBht0NTKiSi3jRf6RbqeILZ9Sp6Slhe0= github.com/gin-gonic/gin v1.10.0 h1:nTuyha1TYqgedzytsKYqna+DfLos46nTv2ygFy86HFU= github.com/gin-gonic/gin v1.10.0/go.mod h1:4PMNQiOhvDRa013RKVbsiNwoyezlm2rm0uX/T7kzp5Y= +github.com/gin-gonic/gin v1.10.1 h1:T0ujvqyCSqRopADpgPgiTT63DUQVSfojyME59Ei63pQ= github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c= github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU= github.com/go-chi/chi/v5 v5.2.3 h1:WQIt9uxdsAbgIYgid+BpYc+liqQZGMHRaUwp0JUcvdE= @@ -333,8 +339,6 @@ github.com/go-resty/resty/v2 v2.17.1 h1:x3aMpHK1YM9e4va/TMDRlusDDoZiQ+ViDu/WpA6x github.com/go-resty/resty/v2 v2.17.1/go.mod h1:kCKZ3wWmwJaNc7S29BRtUhJwy7iqmn+2mLtQrOyQlVA= github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= -github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs= -github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/go-viper/mapstructure/v2 v2.5.0 h1:vM5IJoUAy3d7zRSVtIwQgBj7BiWtMPfmPEgAXnvj1Ro= github.com/go-viper/mapstructure/v2 v2.5.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM= github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4= @@ -480,6 +484,7 @@ github.com/jtolds/gls v4.20.0+incompatible h1:xdiiI2gbIgH/gLH7ADydsJ1uDOEzR8yvV7 github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7 h1:JcltaO1HXM5S2KYOYcKgAV7slU0xPy1OcvrVgn98sRQ= github.com/jtolio/noiseconn v0.0.0-20231127013910-f6d9ecbf1de7/go.mod h1:MEkhEPFwP3yudWO0lj6vfYpLIB+3eIcuIW+e0AZzUQk= +github.com/juju/gnuflag v0.0.0-20171113085948-2ce1bb71843d/go.mod h1:2PavIy+JPciBPrBUjwbNvtwB6RQlve+hkpll6QSNmOE= github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004 h1:G+9t9cEtnC9jFiTxyptEKuNIAbiN5ZCQzX2a74lj3xg= github.com/jzelinskie/whirlpool v0.0.0-20201016144138-0675e54bb004/go.mod h1:KmHnJWQrgEvbuy0vcvj00gtMqbvNn1L+3YUZLK/B92c= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4= @@ -563,6 +568,8 @@ github.com/ncw/swift/v2 v2.0.5 h1:9o5Gsd7bInAFEqsGPcaUdsboMbqf8lnNtxqWKFT9iz8= github.com/ncw/swift/v2 v2.0.5/go.mod h1:cbAO76/ZwcFrFlHdXPjaqWZ9R7Hdar7HpjRXBfbjigk= github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY= github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JXXHc= +github.com/oapi-codegen/runtime v1.3.0 h1:vyK1zc0gDWWXgk2xoQa4+X4RNNc5SL2RbTpJS/4vMYA= +github.com/oapi-codegen/runtime v1.3.0/go.mod h1:kOdeacKy7t40Rclb1je37ZLFboFxh+YLy0zaPCMibPY= github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= @@ -651,8 +658,6 @@ github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7 github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI= github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs= -github.com/sagikazarmark/locafero v0.11.0 h1:1iurJgmM9G3PA/I+wWYIOw/5SyBtxapeHDcg+AAIFXc= -github.com/sagikazarmark/locafero v0.11.0/go.mod h1:nVIGvgyzw595SUSUE6tvCp3YYTeHs15MvlmU87WwIik= github.com/sagikazarmark/locafero v0.12.0 h1:/NQhBAkUb4+fH1jivKHWusDYFjMOOKU88eegjfxfHb4= github.com/sagikazarmark/locafero v0.12.0/go.mod h1:sZh36u/YSZ918v0Io+U9ogLYQJ9tLLBmM4eneO6WwsI= github.com/samber/lo v1.52.0 h1:Rvi+3BFHES3A8meP33VPAxiBZX/Aws5RxrschYGjomw= @@ -679,8 +684,6 @@ github.com/snabb/httpreaderat v1.0.1 h1:whlb+vuZmyjqVop8x1EKOg05l2NE4z9lsMMXjmSU github.com/snabb/httpreaderat v1.0.1/go.mod h1:lpbGrKDWF37yvRbtRvQsbesS6Ty5c83t8ztannPoMsA= github.com/sony/gobreaker v1.0.0 h1:feX5fGGXSl3dYd4aHZItw+FpHLvvoaqkawKjVNiFMNQ= github.com/sony/gobreaker v1.0.0/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= -github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 h1:+jumHNA0Wrelhe64i8F6HNlS8pkoyMv5sreGx2Ry5Rw= -github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8/go.mod h1:3n1Cwaq1E1/1lhQhtRK2ts/ZwZEhjcQeJQ1RuC6Q/8U= github.com/spacemonkeygo/monkit/v3 v3.0.25-0.20251022131615-eb24eb109368 h1:GyYC5Ntqk/yy9lEIGE7chdIvt4zP44taycwd9YDSGdc= github.com/spacemonkeygo/monkit/v3 v3.0.25-0.20251022131615-eb24eb109368/go.mod h1:XkZYGzknZwkD0AKUnZaSXhRiVTLCkq7CWVa3IsE72gA= github.com/spf13/afero v1.15.0 h1:b/YBCLWAJdFWJTN9cLhiXXcD7mzKn9Dm86dNnfyQw1I= @@ -694,6 +697,7 @@ github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk= github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= +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.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -810,8 +814,6 @@ golang.org/x/crypto v0.13.0/go.mod h1:y6Z2r+Rw4iayiXXAIxJIDAJ1zMW4yaTpebo8fPOliY golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk= -golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU= -golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0= golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -852,8 +854,6 @@ golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.30.0 h1:fDEXFVZ/fmCKProc/yAXXUijritrDzahmwwefnjoPFk= -golang.org/x/mod v0.30.0/go.mod h1:lAsf5O2EvJeSFMiBxXDki7sCgAxEUcZHXoXMKT4GJKc= golang.org/x/mod v0.33.0 h1:tHFzIWbBifEmbwtGz65eaWyGiGZatSrT9prnU8DbVL8= golang.org/x/mod v0.33.0/go.mod h1:swjeQEj+6r7fODbD2cqrnje9PnziFuw4bmLbBZFrQ5w= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -895,8 +895,6 @@ golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= -golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= -golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= golang.org/x/net v0.50.0 h1:ucWh9eiCGyDR3vtzso0WMQinm2Dnt8cFMuQa9K33J60= golang.org/x/net v0.50.0/go.mod h1:UgoSli3F/pBgdJBHCTc+tp3gmrU4XswgGRgtnwWTfyM= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= @@ -922,8 +920,6 @@ golang.org/x/sync v0.3.0/go.mod h1:FU7BRWz2tNW+3quACPkgCx/L+uEAv1htQ0V83Z9Rj+Y= golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= golang.org/x/sync v0.10.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= -golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4= -golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sync v0.20.0 h1:e0PTpb7pjO8GAtTs2dQ6jYa5BWYlMuX047Dco/pItO4= golang.org/x/sync v0.20.0/go.mod h1:9xrNwdLfx4jkKbNva9FpL6vEN7evnE43NNNJQ2LF3+0= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -979,8 +975,6 @@ golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk= -golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= golang.org/x/sys v0.42.0 h1:omrd2nAlyT5ESRdCLYdm3+fMfNFE/+Rf4bDIQImRJeo= golang.org/x/sys v0.42.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw= golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= @@ -993,8 +987,6 @@ golang.org/x/term v0.12.0/go.mod h1:owVbMEjm3cBLCHdkQu9b1opXd4ETQWc3BhuQGKgXgvU= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/term v0.27.0/go.mod h1:iMsnZpn0cago0GOrHO2+Y7u7JPn5AylBrcoWkElMTSM= -golang.org/x/term v0.38.0 h1:PQ5pkm/rLO6HnxFR7N2lJHOZX6Kez5Y1gDSJla6jo7Q= -golang.org/x/term v0.38.0/go.mod h1:bSEAKrOT1W+VSu9TSCMtoGEOUcKxOKgl3LE5QEF/xVg= golang.org/x/term v0.40.0 h1:36e4zGLqU4yhjlmxEaagx2KuYbJq3EwY8K943ZsHcvg= golang.org/x/term v0.40.0/go.mod h1:w2P8uVp06p2iyKKuvXIm7N/y0UCRt3UfJTfZ7oOpglM= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1011,8 +1003,6 @@ golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU= -golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY= golang.org/x/text v0.35.0 h1:JOVx6vVDFokkpaq1AEptVzLTpDe9KGpj5tR4/X+ybL8= golang.org/x/text v0.35.0/go.mod h1:khi/HExzZJ2pGnjenulevKNX1W67CUy0AsXcNubPGCA= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1068,8 +1058,6 @@ golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.13.0/go.mod h1:HvlwmtVNQAhOuCjW7xxvovg8wbNq7LwfXh/k7wXUl58= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= -golang.org/x/tools v0.39.0 h1:ik4ho21kwuQln40uelmciQPp9SipgNDdrafrYA4TmQQ= -golang.org/x/tools v0.39.0/go.mod h1:JnefbkDPyD8UU2kI5fuf8ZX4/yUeh9W877ZeBONxUqQ= golang.org/x/tools v0.42.0 h1:uNgphsn75Tdz5Ji2q36v/nsFSfR/9BRFvqhGBaJGd5k= golang.org/x/tools v0.42.0/go.mod h1:Ma6lCIwGZvHK6XtgbswSoWroEkhugApmsXyrUmBhfr0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/internal/client/client.go b/internal/client/client.go new file mode 100644 index 0000000..ac0782f --- /dev/null +++ b/internal/client/client.go @@ -0,0 +1,37934 @@ +// Package client provides primitives to interact with the openapi HTTP API. +// +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. +package client + +import ( + "bytes" + "context" + "encoding/json" + "fmt" + "io" + "net/http" + "net/url" + "strings" + "time" + + "gopkg.in/yaml.v2" + + "github.com/oapi-codegen/runtime" +) + +const ( + GroupAuthzScopes = "groupAuthz.Scopes" +) + +// Defines values for CreateAplAgentJSONBodyKind. +const ( + CreateAplAgentJSONBodyKindAkamaiAgent CreateAplAgentJSONBodyKind = "AkamaiAgent" +) + +// Valid indicates whether the value is a known member of the CreateAplAgentJSONBodyKind enum. +func (e CreateAplAgentJSONBodyKind) Valid() bool { + switch e { + case CreateAplAgentJSONBodyKindAkamaiAgent: + return true + default: + return false + } +} + +// Defines values for EditAplAgentJSONBodyKind. +const ( + EditAplAgentJSONBodyKindAkamaiAgent EditAplAgentJSONBodyKind = "AkamaiAgent" +) + +// Valid indicates whether the value is a known member of the EditAplAgentJSONBodyKind enum. +func (e EditAplAgentJSONBodyKind) Valid() bool { + switch e { + case EditAplAgentJSONBodyKindAkamaiAgent: + return true + default: + return false + } +} + +// Defines values for CreateAplKnowledgeBaseJSONBodyKind. +const ( + CreateAplKnowledgeBaseJSONBodyKindAkamaiKnowledgeBase CreateAplKnowledgeBaseJSONBodyKind = "AkamaiKnowledgeBase" +) + +// Valid indicates whether the value is a known member of the CreateAplKnowledgeBaseJSONBodyKind enum. +func (e CreateAplKnowledgeBaseJSONBodyKind) Valid() bool { + switch e { + case CreateAplKnowledgeBaseJSONBodyKindAkamaiKnowledgeBase: + return true + default: + return false + } +} + +// Defines values for EditAplKnowledgeBaseJSONBodyKind. +const ( + EditAplKnowledgeBaseJSONBodyKindAkamaiKnowledgeBase EditAplKnowledgeBaseJSONBodyKind = "AkamaiKnowledgeBase" +) + +// Valid indicates whether the value is a known member of the EditAplKnowledgeBaseJSONBodyKind enum. +func (e EditAplKnowledgeBaseJSONBodyKind) Valid() bool { + switch e { + case EditAplKnowledgeBaseJSONBodyKindAkamaiKnowledgeBase: + return true + default: + return false + } +} + +// Defines values for GetValuesParamsFilesOnly. +const ( + GetValuesParamsFilesOnlyFalse GetValuesParamsFilesOnly = "false" + GetValuesParamsFilesOnlyTrue GetValuesParamsFilesOnly = "true" +) + +// Valid indicates whether the value is a known member of the GetValuesParamsFilesOnly enum. +func (e GetValuesParamsFilesOnly) Valid() bool { + switch e { + case GetValuesParamsFilesOnlyFalse: + return true + case GetValuesParamsFilesOnlyTrue: + return true + default: + return false + } +} + +// Defines values for GetValuesParamsExcludeSecrets. +const ( + GetValuesParamsExcludeSecretsFalse GetValuesParamsExcludeSecrets = "false" + GetValuesParamsExcludeSecretsTrue GetValuesParamsExcludeSecrets = "true" +) + +// Valid indicates whether the value is a known member of the GetValuesParamsExcludeSecrets enum. +func (e GetValuesParamsExcludeSecrets) Valid() bool { + switch e { + case GetValuesParamsExcludeSecretsFalse: + return true + case GetValuesParamsExcludeSecretsTrue: + return true + default: + return false + } +} + +// Defines values for GetValuesParamsWithWorkloadValues. +const ( + False GetValuesParamsWithWorkloadValues = "false" + True GetValuesParamsWithWorkloadValues = "true" +) + +// Valid indicates whether the value is a known member of the GetValuesParamsWithWorkloadValues enum. +func (e GetValuesParamsWithWorkloadValues) Valid() bool { + switch e { + case False: + return true + case True: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyAlertsReceivers. +const ( + EditSettingsJSONBodyAlertsReceiversMsteams EditSettingsJSONBodyAlertsReceivers = "msteams" + EditSettingsJSONBodyAlertsReceiversNone EditSettingsJSONBodyAlertsReceivers = "none" + EditSettingsJSONBodyAlertsReceiversSlack EditSettingsJSONBodyAlertsReceivers = "slack" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyAlertsReceivers enum. +func (e EditSettingsJSONBodyAlertsReceivers) Valid() bool { + switch e { + case EditSettingsJSONBodyAlertsReceiversMsteams: + return true + case EditSettingsJSONBodyAlertsReceiversNone: + return true + case EditSettingsJSONBodyAlertsReceiversSlack: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyClusterProvider. +const ( + EditSettingsJSONBodyClusterProviderCustom EditSettingsJSONBodyClusterProvider = "custom" + EditSettingsJSONBodyClusterProviderLinode EditSettingsJSONBodyClusterProvider = "linode" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyClusterProvider enum. +func (e EditSettingsJSONBodyClusterProvider) Valid() bool { + switch e { + case EditSettingsJSONBodyClusterProviderCustom: + return true + case EditSettingsJSONBodyClusterProviderLinode: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyKmsSops1Provider. +const ( + Age EditSettingsJSONBodyKmsSops1Provider = "age" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyKmsSops1Provider enum. +func (e EditSettingsJSONBodyKmsSops1Provider) Valid() bool { + switch e { + case Age: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyKmsSops2Provider. +const ( + Aws EditSettingsJSONBodyKmsSops2Provider = "aws" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyKmsSops2Provider enum. +func (e EditSettingsJSONBodyKmsSops2Provider) Valid() bool { + switch e { + case Aws: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyKmsSops3Provider. +const ( + Azure EditSettingsJSONBodyKmsSops3Provider = "azure" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyKmsSops3Provider enum. +func (e EditSettingsJSONBodyKmsSops3Provider) Valid() bool { + switch e { + case Azure: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyKmsSops4Provider. +const ( + Google EditSettingsJSONBodyKmsSops4Provider = "google" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyKmsSops4Provider enum. +func (e EditSettingsJSONBodyKmsSops4Provider) Valid() bool { + switch e { + case Google: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyObjProvider0Type. +const ( + EditSettingsJSONBodyObjProvider0TypeDisabled EditSettingsJSONBodyObjProvider0Type = "disabled" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyObjProvider0Type enum. +func (e EditSettingsJSONBodyObjProvider0Type) Valid() bool { + switch e { + case EditSettingsJSONBodyObjProvider0TypeDisabled: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyObjProvider1Type. +const ( + MinioLocal EditSettingsJSONBodyObjProvider1Type = "minioLocal" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyObjProvider1Type enum. +func (e EditSettingsJSONBodyObjProvider1Type) Valid() bool { + switch e { + case MinioLocal: + return true + default: + return false + } +} + +// Defines values for EditSettingsJSONBodyObjProvider2Type. +const ( + EditSettingsJSONBodyObjProvider2TypeLinode EditSettingsJSONBodyObjProvider2Type = "linode" +) + +// Valid indicates whether the value is a known member of the EditSettingsJSONBodyObjProvider2Type enum. +func (e EditSettingsJSONBodyObjProvider2Type) Valid() bool { + switch e { + case EditSettingsJSONBodyObjProvider2TypeLinode: + return true + default: + return false + } +} + +// Defines values for CreateTeamJSONBodyAlertsReceivers. +const ( + CreateTeamJSONBodyAlertsReceiversMsteams CreateTeamJSONBodyAlertsReceivers = "msteams" + CreateTeamJSONBodyAlertsReceiversNone CreateTeamJSONBodyAlertsReceivers = "none" + CreateTeamJSONBodyAlertsReceiversSlack CreateTeamJSONBodyAlertsReceivers = "slack" +) + +// Valid indicates whether the value is a known member of the CreateTeamJSONBodyAlertsReceivers enum. +func (e CreateTeamJSONBodyAlertsReceivers) Valid() bool { + switch e { + case CreateTeamJSONBodyAlertsReceiversMsteams: + return true + case CreateTeamJSONBodyAlertsReceiversNone: + return true + case CreateTeamJSONBodyAlertsReceiversSlack: + return true + default: + return false + } +} + +// Defines values for EditTeamJSONBodyAlertsReceivers. +const ( + EditTeamJSONBodyAlertsReceiversMsteams EditTeamJSONBodyAlertsReceivers = "msteams" + EditTeamJSONBodyAlertsReceiversNone EditTeamJSONBodyAlertsReceivers = "none" + EditTeamJSONBodyAlertsReceiversSlack EditTeamJSONBodyAlertsReceivers = "slack" +) + +// Valid indicates whether the value is a known member of the EditTeamJSONBodyAlertsReceivers enum. +func (e EditTeamJSONBodyAlertsReceivers) Valid() bool { + switch e { + case EditTeamJSONBodyAlertsReceiversMsteams: + return true + case EditTeamJSONBodyAlertsReceiversNone: + return true + case EditTeamJSONBodyAlertsReceiversSlack: + return true + default: + return false + } +} + +// Defines values for CreateBuildJSONBodyMode0Type. +const ( + CreateBuildJSONBodyMode0TypeDocker CreateBuildJSONBodyMode0Type = "docker" +) + +// Valid indicates whether the value is a known member of the CreateBuildJSONBodyMode0Type enum. +func (e CreateBuildJSONBodyMode0Type) Valid() bool { + switch e { + case CreateBuildJSONBodyMode0TypeDocker: + return true + default: + return false + } +} + +// Defines values for CreateBuildJSONBodyMode1Type. +const ( + CreateBuildJSONBodyMode1TypeBuildpacks CreateBuildJSONBodyMode1Type = "buildpacks" +) + +// Valid indicates whether the value is a known member of the CreateBuildJSONBodyMode1Type enum. +func (e CreateBuildJSONBodyMode1Type) Valid() bool { + switch e { + case CreateBuildJSONBodyMode1TypeBuildpacks: + return true + default: + return false + } +} + +// Defines values for EditBuildJSONBodyMode0Type. +const ( + EditBuildJSONBodyMode0TypeDocker EditBuildJSONBodyMode0Type = "docker" +) + +// Valid indicates whether the value is a known member of the EditBuildJSONBodyMode0Type enum. +func (e EditBuildJSONBodyMode0Type) Valid() bool { + switch e { + case EditBuildJSONBodyMode0TypeDocker: + return true + default: + return false + } +} + +// Defines values for EditBuildJSONBodyMode1Type. +const ( + EditBuildJSONBodyMode1TypeBuildpacks EditBuildJSONBodyMode1Type = "buildpacks" +) + +// Valid indicates whether the value is a known member of the EditBuildJSONBodyMode1Type enum. +func (e EditBuildJSONBodyMode1Type) Valid() bool { + switch e { + case EditBuildJSONBodyMode1TypeBuildpacks: + return true + default: + return false + } +} + +// Defines values for CreateCodeRepoJSONBodyGitService. +const ( + CreateCodeRepoJSONBodyGitServiceGitea CreateCodeRepoJSONBodyGitService = "gitea" + CreateCodeRepoJSONBodyGitServiceGithub CreateCodeRepoJSONBodyGitService = "github" + CreateCodeRepoJSONBodyGitServiceGitlab CreateCodeRepoJSONBodyGitService = "gitlab" +) + +// Valid indicates whether the value is a known member of the CreateCodeRepoJSONBodyGitService enum. +func (e CreateCodeRepoJSONBodyGitService) Valid() bool { + switch e { + case CreateCodeRepoJSONBodyGitServiceGitea: + return true + case CreateCodeRepoJSONBodyGitServiceGithub: + return true + case CreateCodeRepoJSONBodyGitServiceGitlab: + return true + default: + return false + } +} + +// Defines values for EditCodeRepoJSONBodyGitService. +const ( + EditCodeRepoJSONBodyGitServiceGitea EditCodeRepoJSONBodyGitService = "gitea" + EditCodeRepoJSONBodyGitServiceGithub EditCodeRepoJSONBodyGitService = "github" + EditCodeRepoJSONBodyGitServiceGitlab EditCodeRepoJSONBodyGitService = "gitlab" +) + +// Valid indicates whether the value is a known member of the EditCodeRepoJSONBodyGitService enum. +func (e EditCodeRepoJSONBodyGitService) Valid() bool { + switch e { + case EditCodeRepoJSONBodyGitServiceGitea: + return true + case EditCodeRepoJSONBodyGitServiceGithub: + return true + case EditCodeRepoJSONBodyGitServiceGitlab: + return true + default: + return false + } +} + +// Defines values for CreateNetpolJSONBodyRuleTypeEgressPortsProtocol. +const ( + CreateNetpolJSONBodyRuleTypeEgressPortsProtocolHTTP CreateNetpolJSONBodyRuleTypeEgressPortsProtocol = "HTTP" + CreateNetpolJSONBodyRuleTypeEgressPortsProtocolHTTPS CreateNetpolJSONBodyRuleTypeEgressPortsProtocol = "HTTPS" + CreateNetpolJSONBodyRuleTypeEgressPortsProtocolTCP CreateNetpolJSONBodyRuleTypeEgressPortsProtocol = "TCP" +) + +// Valid indicates whether the value is a known member of the CreateNetpolJSONBodyRuleTypeEgressPortsProtocol enum. +func (e CreateNetpolJSONBodyRuleTypeEgressPortsProtocol) Valid() bool { + switch e { + case CreateNetpolJSONBodyRuleTypeEgressPortsProtocolHTTP: + return true + case CreateNetpolJSONBodyRuleTypeEgressPortsProtocolHTTPS: + return true + case CreateNetpolJSONBodyRuleTypeEgressPortsProtocolTCP: + return true + default: + return false + } +} + +// Defines values for CreateNetpolJSONBodyRuleTypeIngressMode. +const ( + CreateNetpolJSONBodyRuleTypeIngressModeAllowAll CreateNetpolJSONBodyRuleTypeIngressMode = "AllowAll" + CreateNetpolJSONBodyRuleTypeIngressModeAllowOnly CreateNetpolJSONBodyRuleTypeIngressMode = "AllowOnly" +) + +// Valid indicates whether the value is a known member of the CreateNetpolJSONBodyRuleTypeIngressMode enum. +func (e CreateNetpolJSONBodyRuleTypeIngressMode) Valid() bool { + switch e { + case CreateNetpolJSONBodyRuleTypeIngressModeAllowAll: + return true + case CreateNetpolJSONBodyRuleTypeIngressModeAllowOnly: + return true + default: + return false + } +} + +// Defines values for CreateNetpolJSONBodyRuleTypeType. +const ( + CreateNetpolJSONBodyRuleTypeTypeEgress CreateNetpolJSONBodyRuleTypeType = "egress" + CreateNetpolJSONBodyRuleTypeTypeIngress CreateNetpolJSONBodyRuleTypeType = "ingress" +) + +// Valid indicates whether the value is a known member of the CreateNetpolJSONBodyRuleTypeType enum. +func (e CreateNetpolJSONBodyRuleTypeType) Valid() bool { + switch e { + case CreateNetpolJSONBodyRuleTypeTypeEgress: + return true + case CreateNetpolJSONBodyRuleTypeTypeIngress: + return true + default: + return false + } +} + +// Defines values for EditNetpolJSONBodyRuleTypeEgressPortsProtocol. +const ( + EditNetpolJSONBodyRuleTypeEgressPortsProtocolHTTP EditNetpolJSONBodyRuleTypeEgressPortsProtocol = "HTTP" + EditNetpolJSONBodyRuleTypeEgressPortsProtocolHTTPS EditNetpolJSONBodyRuleTypeEgressPortsProtocol = "HTTPS" + EditNetpolJSONBodyRuleTypeEgressPortsProtocolTCP EditNetpolJSONBodyRuleTypeEgressPortsProtocol = "TCP" +) + +// Valid indicates whether the value is a known member of the EditNetpolJSONBodyRuleTypeEgressPortsProtocol enum. +func (e EditNetpolJSONBodyRuleTypeEgressPortsProtocol) Valid() bool { + switch e { + case EditNetpolJSONBodyRuleTypeEgressPortsProtocolHTTP: + return true + case EditNetpolJSONBodyRuleTypeEgressPortsProtocolHTTPS: + return true + case EditNetpolJSONBodyRuleTypeEgressPortsProtocolTCP: + return true + default: + return false + } +} + +// Defines values for EditNetpolJSONBodyRuleTypeIngressMode. +const ( + EditNetpolJSONBodyRuleTypeIngressModeAllowAll EditNetpolJSONBodyRuleTypeIngressMode = "AllowAll" + EditNetpolJSONBodyRuleTypeIngressModeAllowOnly EditNetpolJSONBodyRuleTypeIngressMode = "AllowOnly" +) + +// Valid indicates whether the value is a known member of the EditNetpolJSONBodyRuleTypeIngressMode enum. +func (e EditNetpolJSONBodyRuleTypeIngressMode) Valid() bool { + switch e { + case EditNetpolJSONBodyRuleTypeIngressModeAllowAll: + return true + case EditNetpolJSONBodyRuleTypeIngressModeAllowOnly: + return true + default: + return false + } +} + +// Defines values for EditNetpolJSONBodyRuleTypeType. +const ( + EditNetpolJSONBodyRuleTypeTypeEgress EditNetpolJSONBodyRuleTypeType = "egress" + EditNetpolJSONBodyRuleTypeTypeIngress EditNetpolJSONBodyRuleTypeType = "ingress" +) + +// Valid indicates whether the value is a known member of the EditNetpolJSONBodyRuleTypeType enum. +func (e EditNetpolJSONBodyRuleTypeType) Valid() bool { + switch e { + case EditNetpolJSONBodyRuleTypeTypeEgress: + return true + case EditNetpolJSONBodyRuleTypeTypeIngress: + return true + default: + return false + } +} + +// Defines values for EditPolicyJSONBodyAction. +const ( + EditPolicyJSONBodyActionAudit EditPolicyJSONBodyAction = "Audit" + EditPolicyJSONBodyActionEnforce EditPolicyJSONBodyAction = "Enforce" +) + +// Valid indicates whether the value is a known member of the EditPolicyJSONBodyAction enum. +func (e EditPolicyJSONBodyAction) Valid() bool { + switch e { + case EditPolicyJSONBodyActionAudit: + return true + case EditPolicyJSONBodyActionEnforce: + return true + default: + return false + } +} + +// Defines values for EditPolicyJSONBodySeverity. +const ( + EditPolicyJSONBodySeverityHigh EditPolicyJSONBodySeverity = "high" + EditPolicyJSONBodySeverityLow EditPolicyJSONBodySeverity = "low" + EditPolicyJSONBodySeverityMedium EditPolicyJSONBodySeverity = "medium" +) + +// Valid indicates whether the value is a known member of the EditPolicyJSONBodySeverity enum. +func (e EditPolicyJSONBodySeverity) Valid() bool { + switch e { + case EditPolicyJSONBodySeverityHigh: + return true + case EditPolicyJSONBodySeverityLow: + return true + case EditPolicyJSONBodySeverityMedium: + return true + default: + return false + } +} + +// Defines values for CreateSealedSecretJSONBodyType. +const ( + CreateSealedSecretJSONBodyTypeKubernetesIobasicAuth CreateSealedSecretJSONBodyType = "kubernetes.io/basic-auth" + CreateSealedSecretJSONBodyTypeKubernetesIodockercfg CreateSealedSecretJSONBodyType = "kubernetes.io/dockercfg" + CreateSealedSecretJSONBodyTypeKubernetesIodockerconfigjson CreateSealedSecretJSONBodyType = "kubernetes.io/dockerconfigjson" + CreateSealedSecretJSONBodyTypeKubernetesIoopaque CreateSealedSecretJSONBodyType = "kubernetes.io/opaque" + CreateSealedSecretJSONBodyTypeKubernetesIosshAuth CreateSealedSecretJSONBodyType = "kubernetes.io/ssh-auth" + CreateSealedSecretJSONBodyTypeKubernetesIotls CreateSealedSecretJSONBodyType = "kubernetes.io/tls" +) + +// Valid indicates whether the value is a known member of the CreateSealedSecretJSONBodyType enum. +func (e CreateSealedSecretJSONBodyType) Valid() bool { + switch e { + case CreateSealedSecretJSONBodyTypeKubernetesIobasicAuth: + return true + case CreateSealedSecretJSONBodyTypeKubernetesIodockercfg: + return true + case CreateSealedSecretJSONBodyTypeKubernetesIodockerconfigjson: + return true + case CreateSealedSecretJSONBodyTypeKubernetesIoopaque: + return true + case CreateSealedSecretJSONBodyTypeKubernetesIosshAuth: + return true + case CreateSealedSecretJSONBodyTypeKubernetesIotls: + return true + default: + return false + } +} + +// Defines values for EditSealedSecretJSONBodyType. +const ( + EditSealedSecretJSONBodyTypeKubernetesIobasicAuth EditSealedSecretJSONBodyType = "kubernetes.io/basic-auth" + EditSealedSecretJSONBodyTypeKubernetesIodockercfg EditSealedSecretJSONBodyType = "kubernetes.io/dockercfg" + EditSealedSecretJSONBodyTypeKubernetesIodockerconfigjson EditSealedSecretJSONBodyType = "kubernetes.io/dockerconfigjson" + EditSealedSecretJSONBodyTypeKubernetesIoopaque EditSealedSecretJSONBodyType = "kubernetes.io/opaque" + EditSealedSecretJSONBodyTypeKubernetesIosshAuth EditSealedSecretJSONBodyType = "kubernetes.io/ssh-auth" + EditSealedSecretJSONBodyTypeKubernetesIotls EditSealedSecretJSONBodyType = "kubernetes.io/tls" +) + +// Valid indicates whether the value is a known member of the EditSealedSecretJSONBodyType enum. +func (e EditSealedSecretJSONBodyType) Valid() bool { + switch e { + case EditSealedSecretJSONBodyTypeKubernetesIobasicAuth: + return true + case EditSealedSecretJSONBodyTypeKubernetesIodockercfg: + return true + case EditSealedSecretJSONBodyTypeKubernetesIodockerconfigjson: + return true + case EditSealedSecretJSONBodyTypeKubernetesIoopaque: + return true + case EditSealedSecretJSONBodyTypeKubernetesIosshAuth: + return true + case EditSealedSecretJSONBodyTypeKubernetesIotls: + return true + default: + return false + } +} + +// Defines values for CreateServiceJSONBodyIngress0Type. +const ( + CreateServiceJSONBodyIngress0TypeCluster CreateServiceJSONBodyIngress0Type = "cluster" +) + +// Valid indicates whether the value is a known member of the CreateServiceJSONBodyIngress0Type enum. +func (e CreateServiceJSONBodyIngress0Type) Valid() bool { + switch e { + case CreateServiceJSONBodyIngress0TypeCluster: + return true + default: + return false + } +} + +// Defines values for CreateServiceJSONBodyIngress1Type. +const ( + CreateServiceJSONBodyIngress1TypePublic CreateServiceJSONBodyIngress1Type = "public" +) + +// Valid indicates whether the value is a known member of the CreateServiceJSONBodyIngress1Type enum. +func (e CreateServiceJSONBodyIngress1Type) Valid() bool { + switch e { + case CreateServiceJSONBodyIngress1TypePublic: + return true + default: + return false + } +} + +// Defines values for EditServiceJSONBodyIngress0Type. +const ( + EditServiceJSONBodyIngress0TypeCluster EditServiceJSONBodyIngress0Type = "cluster" +) + +// Valid indicates whether the value is a known member of the EditServiceJSONBodyIngress0Type enum. +func (e EditServiceJSONBodyIngress0Type) Valid() bool { + switch e { + case EditServiceJSONBodyIngress0TypeCluster: + return true + default: + return false + } +} + +// Defines values for EditServiceJSONBodyIngress1Type. +const ( + EditServiceJSONBodyIngress1TypePublic EditServiceJSONBodyIngress1Type = "public" +) + +// Valid indicates whether the value is a known member of the EditServiceJSONBodyIngress1Type enum. +func (e EditServiceJSONBodyIngress1Type) Valid() bool { + switch e { + case EditServiceJSONBodyIngress1TypePublic: + return true + default: + return false + } +} + +// Defines values for CreateWorkloadJSONBodyChartProvider. +const ( + CreateWorkloadJSONBodyChartProviderGit CreateWorkloadJSONBodyChartProvider = "git" + CreateWorkloadJSONBodyChartProviderHelm CreateWorkloadJSONBodyChartProvider = "helm" +) + +// Valid indicates whether the value is a known member of the CreateWorkloadJSONBodyChartProvider enum. +func (e CreateWorkloadJSONBodyChartProvider) Valid() bool { + switch e { + case CreateWorkloadJSONBodyChartProviderGit: + return true + case CreateWorkloadJSONBodyChartProviderHelm: + return true + default: + return false + } +} + +// Defines values for CreateWorkloadJSONBodyImageUpdateStrategy0Type. +const ( + CreateWorkloadJSONBodyImageUpdateStrategy0TypeDisabled CreateWorkloadJSONBodyImageUpdateStrategy0Type = "disabled" +) + +// Valid indicates whether the value is a known member of the CreateWorkloadJSONBodyImageUpdateStrategy0Type enum. +func (e CreateWorkloadJSONBodyImageUpdateStrategy0Type) Valid() bool { + switch e { + case CreateWorkloadJSONBodyImageUpdateStrategy0TypeDisabled: + return true + default: + return false + } +} + +// Defines values for CreateWorkloadJSONBodyImageUpdateStrategy1Type. +const ( + CreateWorkloadJSONBodyImageUpdateStrategy1TypeDigest CreateWorkloadJSONBodyImageUpdateStrategy1Type = "digest" +) + +// Valid indicates whether the value is a known member of the CreateWorkloadJSONBodyImageUpdateStrategy1Type enum. +func (e CreateWorkloadJSONBodyImageUpdateStrategy1Type) Valid() bool { + switch e { + case CreateWorkloadJSONBodyImageUpdateStrategy1TypeDigest: + return true + default: + return false + } +} + +// Defines values for CreateWorkloadJSONBodyImageUpdateStrategy2Type. +const ( + CreateWorkloadJSONBodyImageUpdateStrategy2TypeSemver CreateWorkloadJSONBodyImageUpdateStrategy2Type = "semver" +) + +// Valid indicates whether the value is a known member of the CreateWorkloadJSONBodyImageUpdateStrategy2Type enum. +func (e CreateWorkloadJSONBodyImageUpdateStrategy2Type) Valid() bool { + switch e { + case CreateWorkloadJSONBodyImageUpdateStrategy2TypeSemver: + return true + default: + return false + } +} + +// Defines values for EditWorkloadJSONBodyChartProvider. +const ( + EditWorkloadJSONBodyChartProviderGit EditWorkloadJSONBodyChartProvider = "git" + EditWorkloadJSONBodyChartProviderHelm EditWorkloadJSONBodyChartProvider = "helm" +) + +// Valid indicates whether the value is a known member of the EditWorkloadJSONBodyChartProvider enum. +func (e EditWorkloadJSONBodyChartProvider) Valid() bool { + switch e { + case EditWorkloadJSONBodyChartProviderGit: + return true + case EditWorkloadJSONBodyChartProviderHelm: + return true + default: + return false + } +} + +// Defines values for EditWorkloadJSONBodyImageUpdateStrategy0Type. +const ( + EditWorkloadJSONBodyImageUpdateStrategy0TypeDisabled EditWorkloadJSONBodyImageUpdateStrategy0Type = "disabled" +) + +// Valid indicates whether the value is a known member of the EditWorkloadJSONBodyImageUpdateStrategy0Type enum. +func (e EditWorkloadJSONBodyImageUpdateStrategy0Type) Valid() bool { + switch e { + case EditWorkloadJSONBodyImageUpdateStrategy0TypeDisabled: + return true + default: + return false + } +} + +// Defines values for EditWorkloadJSONBodyImageUpdateStrategy1Type. +const ( + EditWorkloadJSONBodyImageUpdateStrategy1TypeDigest EditWorkloadJSONBodyImageUpdateStrategy1Type = "digest" +) + +// Valid indicates whether the value is a known member of the EditWorkloadJSONBodyImageUpdateStrategy1Type enum. +func (e EditWorkloadJSONBodyImageUpdateStrategy1Type) Valid() bool { + switch e { + case EditWorkloadJSONBodyImageUpdateStrategy1TypeDigest: + return true + default: + return false + } +} + +// Defines values for EditWorkloadJSONBodyImageUpdateStrategy2Type. +const ( + EditWorkloadJSONBodyImageUpdateStrategy2TypeSemver EditWorkloadJSONBodyImageUpdateStrategy2Type = "semver" +) + +// Valid indicates whether the value is a known member of the EditWorkloadJSONBodyImageUpdateStrategy2Type enum. +func (e EditWorkloadJSONBodyImageUpdateStrategy2Type) Valid() bool { + switch e { + case EditWorkloadJSONBodyImageUpdateStrategy2TypeSemver: + return true + default: + return false + } +} + +// Defines values for CreateAplTeamJSONBodyKind. +const ( + CreateAplTeamJSONBodyKindAplTeamSettingSet CreateAplTeamJSONBodyKind = "AplTeamSettingSet" +) + +// Valid indicates whether the value is a known member of the CreateAplTeamJSONBodyKind enum. +func (e CreateAplTeamJSONBodyKind) Valid() bool { + switch e { + case CreateAplTeamJSONBodyKindAplTeamSettingSet: + return true + default: + return false + } +} + +// Defines values for CreateAplTeamJSONBodySpecAlertsReceivers. +const ( + CreateAplTeamJSONBodySpecAlertsReceiversMsteams CreateAplTeamJSONBodySpecAlertsReceivers = "msteams" + CreateAplTeamJSONBodySpecAlertsReceiversNone CreateAplTeamJSONBodySpecAlertsReceivers = "none" + CreateAplTeamJSONBodySpecAlertsReceiversSlack CreateAplTeamJSONBodySpecAlertsReceivers = "slack" +) + +// Valid indicates whether the value is a known member of the CreateAplTeamJSONBodySpecAlertsReceivers enum. +func (e CreateAplTeamJSONBodySpecAlertsReceivers) Valid() bool { + switch e { + case CreateAplTeamJSONBodySpecAlertsReceiversMsteams: + return true + case CreateAplTeamJSONBodySpecAlertsReceiversNone: + return true + case CreateAplTeamJSONBodySpecAlertsReceiversSlack: + return true + default: + return false + } +} + +// Defines values for EditAplTeamJSONBodyKind. +const ( + EditAplTeamJSONBodyKindAplTeamSettingSet EditAplTeamJSONBodyKind = "AplTeamSettingSet" +) + +// Valid indicates whether the value is a known member of the EditAplTeamJSONBodyKind enum. +func (e EditAplTeamJSONBodyKind) Valid() bool { + switch e { + case EditAplTeamJSONBodyKindAplTeamSettingSet: + return true + default: + return false + } +} + +// Defines values for EditAplTeamJSONBodySpecAlertsReceivers. +const ( + Msteams EditAplTeamJSONBodySpecAlertsReceivers = "msteams" + None EditAplTeamJSONBodySpecAlertsReceivers = "none" + Slack EditAplTeamJSONBodySpecAlertsReceivers = "slack" +) + +// Valid indicates whether the value is a known member of the EditAplTeamJSONBodySpecAlertsReceivers enum. +func (e EditAplTeamJSONBodySpecAlertsReceivers) Valid() bool { + switch e { + case Msteams: + return true + case None: + return true + case Slack: + return true + default: + return false + } +} + +// Defines values for CreateAplBackupJSONBodyKind. +const ( + CreateAplBackupJSONBodyKindAplTeamBackup CreateAplBackupJSONBodyKind = "AplTeamBackup" +) + +// Valid indicates whether the value is a known member of the CreateAplBackupJSONBodyKind enum. +func (e CreateAplBackupJSONBodyKind) Valid() bool { + switch e { + case CreateAplBackupJSONBodyKindAplTeamBackup: + return true + default: + return false + } +} + +// Defines values for EditAplBackupJSONBodyKind. +const ( + EditAplBackupJSONBodyKindAplTeamBackup EditAplBackupJSONBodyKind = "AplTeamBackup" +) + +// Valid indicates whether the value is a known member of the EditAplBackupJSONBodyKind enum. +func (e EditAplBackupJSONBodyKind) Valid() bool { + switch e { + case EditAplBackupJSONBodyKindAplTeamBackup: + return true + default: + return false + } +} + +// Defines values for CreateAplBuildJSONBodyKind. +const ( + CreateAplBuildJSONBodyKindAplTeamBuild CreateAplBuildJSONBodyKind = "AplTeamBuild" +) + +// Valid indicates whether the value is a known member of the CreateAplBuildJSONBodyKind enum. +func (e CreateAplBuildJSONBodyKind) Valid() bool { + switch e { + case CreateAplBuildJSONBodyKindAplTeamBuild: + return true + default: + return false + } +} + +// Defines values for CreateAplBuildJSONBodySpecMode0Type. +const ( + CreateAplBuildJSONBodySpecMode0TypeDocker CreateAplBuildJSONBodySpecMode0Type = "docker" +) + +// Valid indicates whether the value is a known member of the CreateAplBuildJSONBodySpecMode0Type enum. +func (e CreateAplBuildJSONBodySpecMode0Type) Valid() bool { + switch e { + case CreateAplBuildJSONBodySpecMode0TypeDocker: + return true + default: + return false + } +} + +// Defines values for CreateAplBuildJSONBodySpecMode1Type. +const ( + CreateAplBuildJSONBodySpecMode1TypeBuildpacks CreateAplBuildJSONBodySpecMode1Type = "buildpacks" +) + +// Valid indicates whether the value is a known member of the CreateAplBuildJSONBodySpecMode1Type enum. +func (e CreateAplBuildJSONBodySpecMode1Type) Valid() bool { + switch e { + case CreateAplBuildJSONBodySpecMode1TypeBuildpacks: + return true + default: + return false + } +} + +// Defines values for EditAplBuildJSONBodyKind. +const ( + EditAplBuildJSONBodyKindAplTeamBuild EditAplBuildJSONBodyKind = "AplTeamBuild" +) + +// Valid indicates whether the value is a known member of the EditAplBuildJSONBodyKind enum. +func (e EditAplBuildJSONBodyKind) Valid() bool { + switch e { + case EditAplBuildJSONBodyKindAplTeamBuild: + return true + default: + return false + } +} + +// Defines values for EditAplBuildJSONBodySpecMode0Type. +const ( + EditAplBuildJSONBodySpecMode0TypeDocker EditAplBuildJSONBodySpecMode0Type = "docker" +) + +// Valid indicates whether the value is a known member of the EditAplBuildJSONBodySpecMode0Type enum. +func (e EditAplBuildJSONBodySpecMode0Type) Valid() bool { + switch e { + case EditAplBuildJSONBodySpecMode0TypeDocker: + return true + default: + return false + } +} + +// Defines values for EditAplBuildJSONBodySpecMode1Type. +const ( + EditAplBuildJSONBodySpecMode1TypeBuildpacks EditAplBuildJSONBodySpecMode1Type = "buildpacks" +) + +// Valid indicates whether the value is a known member of the EditAplBuildJSONBodySpecMode1Type enum. +func (e EditAplBuildJSONBodySpecMode1Type) Valid() bool { + switch e { + case EditAplBuildJSONBodySpecMode1TypeBuildpacks: + return true + default: + return false + } +} + +// Defines values for CreateAplCodeRepoJSONBodyKind. +const ( + CreateAplCodeRepoJSONBodyKindAplTeamCodeRepo CreateAplCodeRepoJSONBodyKind = "AplTeamCodeRepo" +) + +// Valid indicates whether the value is a known member of the CreateAplCodeRepoJSONBodyKind enum. +func (e CreateAplCodeRepoJSONBodyKind) Valid() bool { + switch e { + case CreateAplCodeRepoJSONBodyKindAplTeamCodeRepo: + return true + default: + return false + } +} + +// Defines values for CreateAplCodeRepoJSONBodySpecGitService. +const ( + CreateAplCodeRepoJSONBodySpecGitServiceGitea CreateAplCodeRepoJSONBodySpecGitService = "gitea" + CreateAplCodeRepoJSONBodySpecGitServiceGithub CreateAplCodeRepoJSONBodySpecGitService = "github" + CreateAplCodeRepoJSONBodySpecGitServiceGitlab CreateAplCodeRepoJSONBodySpecGitService = "gitlab" +) + +// Valid indicates whether the value is a known member of the CreateAplCodeRepoJSONBodySpecGitService enum. +func (e CreateAplCodeRepoJSONBodySpecGitService) Valid() bool { + switch e { + case CreateAplCodeRepoJSONBodySpecGitServiceGitea: + return true + case CreateAplCodeRepoJSONBodySpecGitServiceGithub: + return true + case CreateAplCodeRepoJSONBodySpecGitServiceGitlab: + return true + default: + return false + } +} + +// Defines values for EditAplCodeRepoJSONBodyKind. +const ( + EditAplCodeRepoJSONBodyKindAplTeamCodeRepo EditAplCodeRepoJSONBodyKind = "AplTeamCodeRepo" +) + +// Valid indicates whether the value is a known member of the EditAplCodeRepoJSONBodyKind enum. +func (e EditAplCodeRepoJSONBodyKind) Valid() bool { + switch e { + case EditAplCodeRepoJSONBodyKindAplTeamCodeRepo: + return true + default: + return false + } +} + +// Defines values for EditAplCodeRepoJSONBodySpecGitService. +const ( + EditAplCodeRepoJSONBodySpecGitServiceGitea EditAplCodeRepoJSONBodySpecGitService = "gitea" + EditAplCodeRepoJSONBodySpecGitServiceGithub EditAplCodeRepoJSONBodySpecGitService = "github" + EditAplCodeRepoJSONBodySpecGitServiceGitlab EditAplCodeRepoJSONBodySpecGitService = "gitlab" +) + +// Valid indicates whether the value is a known member of the EditAplCodeRepoJSONBodySpecGitService enum. +func (e EditAplCodeRepoJSONBodySpecGitService) Valid() bool { + switch e { + case EditAplCodeRepoJSONBodySpecGitServiceGitea: + return true + case EditAplCodeRepoJSONBodySpecGitServiceGithub: + return true + case EditAplCodeRepoJSONBodySpecGitServiceGitlab: + return true + default: + return false + } +} + +// Defines values for CreateAplNetpolJSONBodyKind. +const ( + CreateAplNetpolJSONBodyKindAplTeamNetworkControl CreateAplNetpolJSONBodyKind = "AplTeamNetworkControl" +) + +// Valid indicates whether the value is a known member of the CreateAplNetpolJSONBodyKind enum. +func (e CreateAplNetpolJSONBodyKind) Valid() bool { + switch e { + case CreateAplNetpolJSONBodyKindAplTeamNetworkControl: + return true + default: + return false + } +} + +// Defines values for CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol. +const ( + CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTP CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "HTTP" + CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTPS CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "HTTPS" + CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolTCP CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "TCP" +) + +// Valid indicates whether the value is a known member of the CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol enum. +func (e CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol) Valid() bool { + switch e { + case CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTP: + return true + case CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTPS: + return true + case CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolTCP: + return true + default: + return false + } +} + +// Defines values for CreateAplNetpolJSONBodySpecRuleTypeIngressMode. +const ( + CreateAplNetpolJSONBodySpecRuleTypeIngressModeAllowAll CreateAplNetpolJSONBodySpecRuleTypeIngressMode = "AllowAll" + CreateAplNetpolJSONBodySpecRuleTypeIngressModeAllowOnly CreateAplNetpolJSONBodySpecRuleTypeIngressMode = "AllowOnly" +) + +// Valid indicates whether the value is a known member of the CreateAplNetpolJSONBodySpecRuleTypeIngressMode enum. +func (e CreateAplNetpolJSONBodySpecRuleTypeIngressMode) Valid() bool { + switch e { + case CreateAplNetpolJSONBodySpecRuleTypeIngressModeAllowAll: + return true + case CreateAplNetpolJSONBodySpecRuleTypeIngressModeAllowOnly: + return true + default: + return false + } +} + +// Defines values for CreateAplNetpolJSONBodySpecRuleTypeType. +const ( + CreateAplNetpolJSONBodySpecRuleTypeTypeEgress CreateAplNetpolJSONBodySpecRuleTypeType = "egress" + CreateAplNetpolJSONBodySpecRuleTypeTypeIngress CreateAplNetpolJSONBodySpecRuleTypeType = "ingress" +) + +// Valid indicates whether the value is a known member of the CreateAplNetpolJSONBodySpecRuleTypeType enum. +func (e CreateAplNetpolJSONBodySpecRuleTypeType) Valid() bool { + switch e { + case CreateAplNetpolJSONBodySpecRuleTypeTypeEgress: + return true + case CreateAplNetpolJSONBodySpecRuleTypeTypeIngress: + return true + default: + return false + } +} + +// Defines values for EditAplNetpolJSONBodyKind. +const ( + EditAplNetpolJSONBodyKindAplTeamNetworkControl EditAplNetpolJSONBodyKind = "AplTeamNetworkControl" +) + +// Valid indicates whether the value is a known member of the EditAplNetpolJSONBodyKind enum. +func (e EditAplNetpolJSONBodyKind) Valid() bool { + switch e { + case EditAplNetpolJSONBodyKindAplTeamNetworkControl: + return true + default: + return false + } +} + +// Defines values for EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol. +const ( + EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTP EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "HTTP" + EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTPS EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "HTTPS" + EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolTCP EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol = "TCP" +) + +// Valid indicates whether the value is a known member of the EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol enum. +func (e EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol) Valid() bool { + switch e { + case EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTP: + return true + case EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolHTTPS: + return true + case EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocolTCP: + return true + default: + return false + } +} + +// Defines values for EditAplNetpolJSONBodySpecRuleTypeIngressMode. +const ( + EditAplNetpolJSONBodySpecRuleTypeIngressModeAllowAll EditAplNetpolJSONBodySpecRuleTypeIngressMode = "AllowAll" + EditAplNetpolJSONBodySpecRuleTypeIngressModeAllowOnly EditAplNetpolJSONBodySpecRuleTypeIngressMode = "AllowOnly" +) + +// Valid indicates whether the value is a known member of the EditAplNetpolJSONBodySpecRuleTypeIngressMode enum. +func (e EditAplNetpolJSONBodySpecRuleTypeIngressMode) Valid() bool { + switch e { + case EditAplNetpolJSONBodySpecRuleTypeIngressModeAllowAll: + return true + case EditAplNetpolJSONBodySpecRuleTypeIngressModeAllowOnly: + return true + default: + return false + } +} + +// Defines values for EditAplNetpolJSONBodySpecRuleTypeType. +const ( + EditAplNetpolJSONBodySpecRuleTypeTypeEgress EditAplNetpolJSONBodySpecRuleTypeType = "egress" + EditAplNetpolJSONBodySpecRuleTypeTypeIngress EditAplNetpolJSONBodySpecRuleTypeType = "ingress" +) + +// Valid indicates whether the value is a known member of the EditAplNetpolJSONBodySpecRuleTypeType enum. +func (e EditAplNetpolJSONBodySpecRuleTypeType) Valid() bool { + switch e { + case EditAplNetpolJSONBodySpecRuleTypeTypeEgress: + return true + case EditAplNetpolJSONBodySpecRuleTypeTypeIngress: + return true + default: + return false + } +} + +// Defines values for EditAplPolicyJSONBodyKind. +const ( + AplTeamPolicy EditAplPolicyJSONBodyKind = "AplTeamPolicy" +) + +// Valid indicates whether the value is a known member of the EditAplPolicyJSONBodyKind enum. +func (e EditAplPolicyJSONBodyKind) Valid() bool { + switch e { + case AplTeamPolicy: + return true + default: + return false + } +} + +// Defines values for EditAplPolicyJSONBodySpecAction. +const ( + EditAplPolicyJSONBodySpecActionAudit EditAplPolicyJSONBodySpecAction = "Audit" + EditAplPolicyJSONBodySpecActionEnforce EditAplPolicyJSONBodySpecAction = "Enforce" +) + +// Valid indicates whether the value is a known member of the EditAplPolicyJSONBodySpecAction enum. +func (e EditAplPolicyJSONBodySpecAction) Valid() bool { + switch e { + case EditAplPolicyJSONBodySpecActionAudit: + return true + case EditAplPolicyJSONBodySpecActionEnforce: + return true + default: + return false + } +} + +// Defines values for EditAplPolicyJSONBodySpecSeverity. +const ( + EditAplPolicyJSONBodySpecSeverityHigh EditAplPolicyJSONBodySpecSeverity = "high" + EditAplPolicyJSONBodySpecSeverityLow EditAplPolicyJSONBodySpecSeverity = "low" + EditAplPolicyJSONBodySpecSeverityMedium EditAplPolicyJSONBodySpecSeverity = "medium" +) + +// Valid indicates whether the value is a known member of the EditAplPolicyJSONBodySpecSeverity enum. +func (e EditAplPolicyJSONBodySpecSeverity) Valid() bool { + switch e { + case EditAplPolicyJSONBodySpecSeverityHigh: + return true + case EditAplPolicyJSONBodySpecSeverityLow: + return true + case EditAplPolicyJSONBodySpecSeverityMedium: + return true + default: + return false + } +} + +// Defines values for CreateAplSealedSecretJSONBodyKind. +const ( + CreateAplSealedSecretJSONBodyKindAplTeamSecret CreateAplSealedSecretJSONBodyKind = "AplTeamSecret" +) + +// Valid indicates whether the value is a known member of the CreateAplSealedSecretJSONBodyKind enum. +func (e CreateAplSealedSecretJSONBodyKind) Valid() bool { + switch e { + case CreateAplSealedSecretJSONBodyKindAplTeamSecret: + return true + default: + return false + } +} + +// Defines values for CreateAplSealedSecretJSONBodySpecType. +const ( + CreateAplSealedSecretJSONBodySpecTypeKubernetesIobasicAuth CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/basic-auth" + CreateAplSealedSecretJSONBodySpecTypeKubernetesIodockercfg CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/dockercfg" + CreateAplSealedSecretJSONBodySpecTypeKubernetesIodockerconfigjson CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/dockerconfigjson" + CreateAplSealedSecretJSONBodySpecTypeKubernetesIoopaque CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/opaque" + CreateAplSealedSecretJSONBodySpecTypeKubernetesIosshAuth CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/ssh-auth" + CreateAplSealedSecretJSONBodySpecTypeKubernetesIotls CreateAplSealedSecretJSONBodySpecType = "kubernetes.io/tls" +) + +// Valid indicates whether the value is a known member of the CreateAplSealedSecretJSONBodySpecType enum. +func (e CreateAplSealedSecretJSONBodySpecType) Valid() bool { + switch e { + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIobasicAuth: + return true + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIodockercfg: + return true + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIodockerconfigjson: + return true + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIoopaque: + return true + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIosshAuth: + return true + case CreateAplSealedSecretJSONBodySpecTypeKubernetesIotls: + return true + default: + return false + } +} + +// Defines values for EditAplSealedSecretJSONBodyKind. +const ( + EditAplSealedSecretJSONBodyKindAplTeamSecret EditAplSealedSecretJSONBodyKind = "AplTeamSecret" +) + +// Valid indicates whether the value is a known member of the EditAplSealedSecretJSONBodyKind enum. +func (e EditAplSealedSecretJSONBodyKind) Valid() bool { + switch e { + case EditAplSealedSecretJSONBodyKindAplTeamSecret: + return true + default: + return false + } +} + +// Defines values for EditAplSealedSecretJSONBodySpecType. +const ( + EditAplSealedSecretJSONBodySpecTypeKubernetesIobasicAuth EditAplSealedSecretJSONBodySpecType = "kubernetes.io/basic-auth" + EditAplSealedSecretJSONBodySpecTypeKubernetesIodockercfg EditAplSealedSecretJSONBodySpecType = "kubernetes.io/dockercfg" + EditAplSealedSecretJSONBodySpecTypeKubernetesIodockerconfigjson EditAplSealedSecretJSONBodySpecType = "kubernetes.io/dockerconfigjson" + EditAplSealedSecretJSONBodySpecTypeKubernetesIoopaque EditAplSealedSecretJSONBodySpecType = "kubernetes.io/opaque" + EditAplSealedSecretJSONBodySpecTypeKubernetesIosshAuth EditAplSealedSecretJSONBodySpecType = "kubernetes.io/ssh-auth" + EditAplSealedSecretJSONBodySpecTypeKubernetesIotls EditAplSealedSecretJSONBodySpecType = "kubernetes.io/tls" +) + +// Valid indicates whether the value is a known member of the EditAplSealedSecretJSONBodySpecType enum. +func (e EditAplSealedSecretJSONBodySpecType) Valid() bool { + switch e { + case EditAplSealedSecretJSONBodySpecTypeKubernetesIobasicAuth: + return true + case EditAplSealedSecretJSONBodySpecTypeKubernetesIodockercfg: + return true + case EditAplSealedSecretJSONBodySpecTypeKubernetesIodockerconfigjson: + return true + case EditAplSealedSecretJSONBodySpecTypeKubernetesIoopaque: + return true + case EditAplSealedSecretJSONBodySpecTypeKubernetesIosshAuth: + return true + case EditAplSealedSecretJSONBodySpecTypeKubernetesIotls: + return true + default: + return false + } +} + +// Defines values for CreateAplServiceJSONBodyKind. +const ( + CreateAplServiceJSONBodyKindAplTeamService CreateAplServiceJSONBodyKind = "AplTeamService" +) + +// Valid indicates whether the value is a known member of the CreateAplServiceJSONBodyKind enum. +func (e CreateAplServiceJSONBodyKind) Valid() bool { + switch e { + case CreateAplServiceJSONBodyKindAplTeamService: + return true + default: + return false + } +} + +// Defines values for EditAplServiceJSONBodyKind. +const ( + EditAplServiceJSONBodyKindAplTeamService EditAplServiceJSONBodyKind = "AplTeamService" +) + +// Valid indicates whether the value is a known member of the EditAplServiceJSONBodyKind enum. +func (e EditAplServiceJSONBodyKind) Valid() bool { + switch e { + case EditAplServiceJSONBodyKindAplTeamService: + return true + default: + return false + } +} + +// Defines values for CreateAplWorkloadJSONBodyKind. +const ( + CreateAplWorkloadJSONBodyKindAplTeamWorkload CreateAplWorkloadJSONBodyKind = "AplTeamWorkload" +) + +// Valid indicates whether the value is a known member of the CreateAplWorkloadJSONBodyKind enum. +func (e CreateAplWorkloadJSONBodyKind) Valid() bool { + switch e { + case CreateAplWorkloadJSONBodyKindAplTeamWorkload: + return true + default: + return false + } +} + +// Defines values for CreateAplWorkloadJSONBodySpecChartProvider. +const ( + CreateAplWorkloadJSONBodySpecChartProviderGit CreateAplWorkloadJSONBodySpecChartProvider = "git" + CreateAplWorkloadJSONBodySpecChartProviderHelm CreateAplWorkloadJSONBodySpecChartProvider = "helm" +) + +// Valid indicates whether the value is a known member of the CreateAplWorkloadJSONBodySpecChartProvider enum. +func (e CreateAplWorkloadJSONBodySpecChartProvider) Valid() bool { + switch e { + case CreateAplWorkloadJSONBodySpecChartProviderGit: + return true + case CreateAplWorkloadJSONBodySpecChartProviderHelm: + return true + default: + return false + } +} + +// Defines values for CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type. +const ( + CreateAplWorkloadJSONBodySpecImageUpdateStrategy0TypeDisabled CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type = "disabled" +) + +// Valid indicates whether the value is a known member of the CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type enum. +func (e CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type) Valid() bool { + switch e { + case CreateAplWorkloadJSONBodySpecImageUpdateStrategy0TypeDisabled: + return true + default: + return false + } +} + +// Defines values for CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type. +const ( + CreateAplWorkloadJSONBodySpecImageUpdateStrategy1TypeDigest CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type = "digest" +) + +// Valid indicates whether the value is a known member of the CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type enum. +func (e CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type) Valid() bool { + switch e { + case CreateAplWorkloadJSONBodySpecImageUpdateStrategy1TypeDigest: + return true + default: + return false + } +} + +// Defines values for CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type. +const ( + CreateAplWorkloadJSONBodySpecImageUpdateStrategy2TypeSemver CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type = "semver" +) + +// Valid indicates whether the value is a known member of the CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type enum. +func (e CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type) Valid() bool { + switch e { + case CreateAplWorkloadJSONBodySpecImageUpdateStrategy2TypeSemver: + return true + default: + return false + } +} + +// Defines values for EditAplWorkloadJSONBodyKind. +const ( + EditAplWorkloadJSONBodyKindAplTeamWorkload EditAplWorkloadJSONBodyKind = "AplTeamWorkload" +) + +// Valid indicates whether the value is a known member of the EditAplWorkloadJSONBodyKind enum. +func (e EditAplWorkloadJSONBodyKind) Valid() bool { + switch e { + case EditAplWorkloadJSONBodyKindAplTeamWorkload: + return true + default: + return false + } +} + +// Defines values for EditAplWorkloadJSONBodySpecChartProvider. +const ( + EditAplWorkloadJSONBodySpecChartProviderGit EditAplWorkloadJSONBodySpecChartProvider = "git" + EditAplWorkloadJSONBodySpecChartProviderHelm EditAplWorkloadJSONBodySpecChartProvider = "helm" +) + +// Valid indicates whether the value is a known member of the EditAplWorkloadJSONBodySpecChartProvider enum. +func (e EditAplWorkloadJSONBodySpecChartProvider) Valid() bool { + switch e { + case EditAplWorkloadJSONBodySpecChartProviderGit: + return true + case EditAplWorkloadJSONBodySpecChartProviderHelm: + return true + default: + return false + } +} + +// Defines values for EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type. +const ( + Disabled EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type = "disabled" +) + +// Valid indicates whether the value is a known member of the EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type enum. +func (e EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type) Valid() bool { + switch e { + case Disabled: + return true + default: + return false + } +} + +// Defines values for EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type. +const ( + EditAplWorkloadJSONBodySpecImageUpdateStrategy1TypeDigest EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type = "digest" +) + +// Valid indicates whether the value is a known member of the EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type enum. +func (e EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type) Valid() bool { + switch e { + case EditAplWorkloadJSONBodySpecImageUpdateStrategy1TypeDigest: + return true + default: + return false + } +} + +// Defines values for EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type. +const ( + EditAplWorkloadJSONBodySpecImageUpdateStrategy2TypeSemver EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type = "semver" +) + +// Valid indicates whether the value is a known member of the EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type enum. +func (e EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type) Valid() bool { + switch e { + case EditAplWorkloadJSONBodySpecImageUpdateStrategy2TypeSemver: + return true + default: + return false + } +} + +// CreateAplAgentJSONBody defines parameters for CreateAplAgent. +type CreateAplAgentJSONBody struct { + Kind CreateAplAgentJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` +} + +// CreateAplAgentJSONBodyKind defines parameters for CreateAplAgent. +type CreateAplAgentJSONBodyKind string + +// EditAplAgentJSONBody defines parameters for EditAplAgent. +type EditAplAgentJSONBody struct { + Kind EditAplAgentJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` +} + +// EditAplAgentJSONBodyKind defines parameters for EditAplAgent. +type EditAplAgentJSONBodyKind string + +// CreateAplKnowledgeBaseJSONBody defines parameters for CreateAplKnowledgeBase. +type CreateAplKnowledgeBaseJSONBody struct { + Kind CreateAplKnowledgeBaseJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` +} + +// CreateAplKnowledgeBaseJSONBodyKind defines parameters for CreateAplKnowledgeBase. +type CreateAplKnowledgeBaseJSONBodyKind string + +// EditAplKnowledgeBaseJSONBody defines parameters for EditAplKnowledgeBase. +type EditAplKnowledgeBaseJSONBody struct { + Kind EditAplKnowledgeBaseJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` +} + +// EditAplKnowledgeBaseJSONBodyKind defines parameters for EditAplKnowledgeBase. +type EditAplKnowledgeBaseJSONBodyKind string + +// GetAppsParams defines parameters for GetApps. +type GetAppsParams struct { + // Picks Selection of properties to return. + Picks *[]string `form:"picks,omitempty" json:"picks,omitempty"` +} + +// ToggleAppsJSONBody defines parameters for ToggleApps. +type ToggleAppsJSONBody = map[string]interface{} + +// EditAppJSONBody defines parameters for EditApp. +type EditAppJSONBody struct { + Enabled *bool `json:"enabled,omitempty"` + Id string `json:"id"` + + // RawValues May define value overrides for a chart. WARNING: these values currently have no schema and will not be validated. + RawValues *map[string]interface{} `json:"rawValues,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` +} + +// ConnectCloudttyParams defines parameters for ConnectCloudtty. +type ConnectCloudttyParams struct { + // TeamId Id of the team + TeamId *string `form:"teamId,omitempty" json:"teamId,omitempty"` +} + +// CreateWorkloadCatalogJSONBody defines parameters for CreateWorkloadCatalog. +type CreateWorkloadCatalogJSONBody = map[string]interface{} + +// GetDashboardParams defines parameters for GetDashboard. +type GetDashboardParams struct { + // TeamName Name of the team + TeamName *string `form:"teamName,omitempty" json:"teamName,omitempty"` +} + +// GetHelmChartContentParams defines parameters for GetHelmChartContent. +type GetHelmChartContentParams struct { + // Url URL of the helm chart + Url *string `form:"url,omitempty" json:"url,omitempty"` +} + +// GetInternalRepoUrlsParams defines parameters for GetInternalRepoUrls. +type GetInternalRepoUrlsParams struct { + // TeamId ID of the team + TeamId *string `form:"teamId,omitempty" json:"teamId,omitempty"` +} + +// CreateObjWizardJSONBody defines parameters for CreateObjWizard. +type CreateObjWizardJSONBody struct { + // ApiToken The Linode API token for creating object storage access key and buckets. + ApiToken *string `json:"apiToken,omitempty"` + + // ErrorMessage The error message that is returned when the wizard encounters an error. + ErrorMessage *string `json:"errorMessage,omitempty"` + ObjBuckets *[]string `json:"objBuckets,omitempty"` + + // RegionId The region where the object storage buckets will be created. + RegionId *string `json:"regionId,omitempty"` + ShowWizard *bool `json:"showWizard,omitempty"` + + // Status Status of the objectWizard, will be success or an error. + Status *string `json:"status,omitempty"` +} + +// GetValuesParams defines parameters for GetValues. +type GetValuesParams struct { + // FilesOnly IDs of settings to return + FilesOnly *GetValuesParamsFilesOnly `form:"filesOnly,omitempty" json:"filesOnly,omitempty"` + ExcludeSecrets *GetValuesParamsExcludeSecrets `form:"excludeSecrets,omitempty" json:"excludeSecrets,omitempty"` + WithWorkloadValues *GetValuesParamsWithWorkloadValues `form:"withWorkloadValues,omitempty" json:"withWorkloadValues,omitempty"` +} + +// GetValuesParamsFilesOnly defines parameters for GetValues. +type GetValuesParamsFilesOnly string + +// GetValuesParamsExcludeSecrets defines parameters for GetValues. +type GetValuesParamsExcludeSecrets string + +// GetValuesParamsWithWorkloadValues defines parameters for GetValues. +type GetValuesParamsWithWorkloadValues string + +// GetRepoBranchesParams defines parameters for GetRepoBranches. +type GetRepoBranchesParams struct { + // CodeRepoName Name of the code repository + CodeRepoName *string `form:"codeRepoName,omitempty" json:"codeRepoName,omitempty"` + + // TeamId Id of the team + TeamId *string `form:"teamId,omitempty" json:"teamId,omitempty"` +} + +// GetSettingsParams defines parameters for GetSettings. +type GetSettingsParams struct { + // Ids IDs of settings to return + Ids *[]string `form:"ids,omitempty" json:"ids,omitempty"` +} + +// EditSettingsJSONBody defines parameters for EditSettings. +type EditSettingsJSONBody struct { + // Alerts Configure alerting endpoints to receive notifications from Alertmanager. + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditSettingsJSONBodyAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // Cluster The Kubernetes cluster running APL. + Cluster *struct { + // ApiServer URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. + ApiServer *string `json:"apiServer,omitempty"` + + // DefaultStorageClass Default storage class for platform components. Use '' for relying on the cluster's default storage class. + DefaultStorageClass *string `json:"defaultStorageClass,omitempty"` + + // DomainSuffix The domain suffix for the cluster. + DomainSuffix *string `json:"domainSuffix,omitempty"` + K8sContext *string `json:"k8sContext,omitempty"` + Name string `json:"name"` + + // Owner The name of the organization owning the cluster. + Owner *string `json:"owner,omitempty"` + + // Provider The cloud provider of this cluster. + Provider EditSettingsJSONBodyClusterProvider `json:"provider"` + } `json:"cluster,omitempty"` + + // Dns Domain name server settings. + Dns *struct { + // DomainFilters Limit possible target zones by domain suffixes. + DomainFilters *[]string `json:"domainFilters,omitempty"` + + // Provider The DNS provider managing the domains. + Provider *EditSettingsJSONBody_Dns_Provider `json:"provider,omitempty"` + + // ZoneIdFilters Limit possible target zones by zone id. + ZoneIdFilters *[]string `json:"zoneIdFilters,omitempty"` + + // Zones Extra DNS zones the cluster can administer (see DNS). Teams can use this domain for Service exposure. + Zones *[]string `json:"zones,omitempty"` + } `json:"dns,omitempty"` + Ingress *struct { + Classes *[]struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName An arbitrary name that will be used to assign an ingress class to a team service. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"classes,omitempty"` + PlatformClass *struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName The platform ingress class is used for all platform services. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"platformClass,omitempty"` + } `json:"ingress,omitempty"` + + // Kms Manage settings for retrieving encryption/decryption keys. + Kms *struct { + // Sops Select encryption engine for SOPS to encrypt the platform secrets. + Sops *EditSettingsJSONBody_Kms_Sops `json:"sops,omitempty"` + } `json:"kms,omitempty"` + Obj *struct { + // Provider Select the preferred Object Storage provider. + Provider *EditSettingsJSONBody_Obj_Provider `json:"provider,omitempty"` + + // ShowWizard Show the Object Storage wizard. + ShowWizard *bool `json:"showWizard,omitempty"` + } `json:"obj,omitempty"` + Oidc *struct { + AllTeamsAdminGroupID *string `json:"allTeamsAdminGroupID,omitempty"` + ClientID string `json:"clientID"` + ClientSecret string `json:"clientSecret"` + Issuer string `json:"issuer"` + PlatformAdminGroupID *string `json:"platformAdminGroupID,omitempty"` + + // SubClaimMapper Set OIDC claim to be passed by Keycloak as a unique user identifier. It is advised to not change the default. + SubClaimMapper *string `json:"subClaimMapper,omitempty"` + TeamAdminGroupID *string `json:"teamAdminGroupID,omitempty"` + + // UsernameClaimMapper Claim name used by Keycloak to identify incoming users from the identity provider. + UsernameClaimMapper *string `json:"usernameClaimMapper,omitempty"` + } `json:"oidc,omitempty"` + Otomi *struct { + // AdminPassword Master admin password that will be used for all apps that are not configured to use their own password. + AdminPassword *string `json:"adminPassword,omitempty"` + + // AiEnabled Defines if APL enables AI/ML components + AiEnabled *bool `json:"aiEnabled,omitempty"` + + // GlobalPullSecret Will be connected to each "default" service account in all Team namespaces to avoid rate limiting. + GlobalPullSecret *struct { + Email *string `json:"email,omitempty"` + Password *string `json:"password,omitempty"` + Server *string `json:"server,omitempty"` + Username *string `json:"username,omitempty"` + } `json:"globalPullSecret,omitempty"` + + // HasExternalDNS Set this to true when an external DNS zone is available to manage DNS records (Expects required DNS fields to be set). + HasExternalDNS *bool `json:"hasExternalDNS,omitempty"` + + // HasExternalIDP Set this to true when bringing your own external IDP such as Azure Entra ID (Expects required OIDC fields to be set). + HasExternalIDP *bool `json:"hasExternalIDP,omitempty"` + + // IsMultitenant Will separate team metrics and logs. Disabling this effectively gives all users admin role and lets them see everything. + IsMultitenant *bool `json:"isMultitenant,omitempty"` + + // IsPreInstalled Defines if platform is installed through Akamai Connected Cloud. + IsPreInstalled *bool `json:"isPreInstalled,omitempty"` + + // NodeSelector One or more label/value pairs of one or more nodes. This will enforce scheduling of all platform services on these nodes. + NodeSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"nodeSelector,omitempty"` + + // UseORCS Defines if the OCI Registry Cache Service (ORCS) is used to cache images from the public registry. + UseORCS *bool `json:"useORCS,omitempty"` + + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"otomi,omitempty"` + PlatformBackups *struct { + Database *struct { + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + Harbor *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"harbor,omitempty"` + Keycloak *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"keycloak,omitempty"` + } `json:"database,omitempty"` + + // Gitea Enable application-level backup of Gitea repositories. + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + + // PersistentVolumes Add a Linode API token and enable the Velero App to create backups of PVs. + PersistentVolumes *struct { + LinodeApiToken *string `json:"linodeApiToken,omitempty"` + } `json:"persistentVolumes,omitempty"` + } `json:"platformBackups,omitempty"` + Smtp *struct { + AuthIdentity *string `json:"auth_identity,omitempty"` + AuthPassword *string `json:"auth_password,omitempty"` + AuthSecret *string `json:"auth_secret,omitempty"` + AuthUsername *string `json:"auth_username,omitempty"` + + // From The from address. Defaults to alerts@$clusterDomain. + From *string `json:"from,omitempty"` + + // Hello The hostname to identify to the SMTP server. + Hello *string `json:"hello,omitempty"` + + // Smarthost The smtp host:port combination. + Smarthost string `json:"smarthost"` + } `json:"smtp,omitempty"` + Versions *struct { + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"versions,omitempty"` +} + +// EditSettingsJSONBodyAlertsReceivers defines parameters for EditSettings. +type EditSettingsJSONBodyAlertsReceivers string + +// EditSettingsJSONBodyClusterProvider defines parameters for EditSettings. +type EditSettingsJSONBodyClusterProvider string + +// EditSettingsJSONBodyDnsProvider0 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider0 = map[string]interface{} + +// EditSettingsJSONBodyDnsProvider1 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider1 struct { + Akamai *struct { + // AccessToken Akamai Edgegrid API access token + AccessToken string `json:"accessToken"` + + // ClientSecret Akamai Edgegrid API client secret + ClientSecret string `json:"clientSecret"` + + // ClientToken Akamai Edgegrid API client token + ClientToken string `json:"clientToken"` + + // Host Akamai Edgegrid API server + Host string `json:"host"` + } `json:"akamai,omitempty"` +} + +// EditSettingsJSONBodyDnsProvider2 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider2 struct { + Aws struct { + Credentials *struct { + // AccessKey An AWS access key ID. + AccessKey *string `json:"accessKey,omitempty"` + + // SecretKey An AWS secret key. + SecretKey *string `json:"secretKey,omitempty"` + } `json:"credentials,omitempty"` + + // Region An AWS region. + Region string `json:"region"` + + // Role Role may be set explicitly if no metadata can be accessed. + Role *string `json:"role,omitempty"` + } `json:"aws"` +} + +// EditSettingsJSONBodyDnsProvider3 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider3 struct { + Azure struct { + // AadClientId An Azure client id. + AadClientId string `json:"aadClientId"` + + // AadClientSecret Azure Application Client Secret + AadClientSecret string `json:"aadClientSecret"` + + // HostedZoneName Name of the DNS zone that should be used. + HostedZoneName *string `json:"hostedZoneName,omitempty"` + + // ResourceGroup An Azure resource group. + ResourceGroup string `json:"resourceGroup"` + + // SubscriptionId An Azure subscription id. + SubscriptionId string `json:"subscriptionId"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId string `json:"tenantId"` + } `json:"azure"` +} + +// EditSettingsJSONBodyDnsProvider4 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider4 struct { + AzurePrivateDns struct { + // AadClientId An Azure client id. + AadClientId string `json:"aadClientId"` + + // AadClientSecret Azure Application Client Secret + AadClientSecret string `json:"aadClientSecret"` + + // HostedZoneName Name of the DNS zone that should be used. + HostedZoneName *string `json:"hostedZoneName,omitempty"` + + // ResourceGroup An Azure resource group. + ResourceGroup string `json:"resourceGroup"` + + // SubscriptionId An Azure subscription id. + SubscriptionId string `json:"subscriptionId"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId string `json:"tenantId"` + } `json:"azure-private-dns"` +} + +// EditSettingsJSONBodyDnsProvider5 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider5 struct { + Cloudflare struct { + // ApiSecret Required when Email is set. + ApiSecret *string `json:"apiSecret,omitempty"` + ApiToken *string `json:"apiToken,omitempty"` + + // Email Required when ApiSecret is set. + Email *string `json:"email,omitempty"` + Proxied *bool `json:"proxied,omitempty"` + } `json:"cloudflare"` +} + +// EditSettingsJSONBodyDnsProvider6 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider6 struct { + Digitalocean struct { + ApiToken *string `json:"apiToken,omitempty"` + } `json:"digitalocean"` +} + +// EditSettingsJSONBodyDnsProvider7 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider7 struct { + Linode struct { + ApiToken *string `json:"apiToken,omitempty"` + } `json:"linode"` +} + +// EditSettingsJSONBodyDnsProvider8 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider8 struct { + Google struct { + // Project Enter GCP project. + Project string `json:"project"` + + // ServiceAccountKey A service account key in json format for managing a DNS zone. + ServiceAccountKey *string `json:"serviceAccountKey,omitempty"` + } `json:"google"` +} + +// EditSettingsJSONBodyDnsProvider9 defines parameters for EditSettings. +type EditSettingsJSONBodyDnsProvider9 struct { + // Other This option requires configuration for both external-dns as well as cert-manager. No schema validation is available so provide correct data. + Other struct { + // CertManager The dns01 config as provided here: https://cert-manager.io/docs/configuration/acme/dns01/ + CertManager map[string]interface{} `json:"cert-manager"` + + // ExternalDns The provider config + ExternalDns map[string]interface{} `json:"external-dns"` + + // Name Name of the provider. + Name string `json:"name"` + } `json:"other"` +} + +// EditSettingsJSONBody_Dns_Provider defines parameters for EditSettings. +type EditSettingsJSONBody_Dns_Provider struct { + union json.RawMessage +} + +// EditSettingsJSONBodyKmsSops0 defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops0 = map[string]interface{} + +// EditSettingsJSONBodyKmsSops1 defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops1 struct { + Age struct { + // PrivateKey Age private key + PrivateKey string `json:"privateKey"` + + // PublicKey Age public key + PublicKey string `json:"publicKey"` + } `json:"age"` + Provider *EditSettingsJSONBodyKmsSops1Provider `json:"provider,omitempty"` +} + +// EditSettingsJSONBodyKmsSops1Provider defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops1Provider string + +// EditSettingsJSONBodyKmsSops2 defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops2 struct { + Aws struct { + // AccessKey An AWS access key ID. + AccessKey string `json:"accessKey"` + + // Keys Comma separated list of one or two ARNs to keys as defined in AWS KMS. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // Region An AWS region. + Region *string `json:"region,omitempty"` + + // SecretKey An AWS secret key. + SecretKey string `json:"secretKey"` + } `json:"aws"` + Provider *EditSettingsJSONBodyKmsSops2Provider `json:"provider,omitempty"` +} + +// EditSettingsJSONBodyKmsSops2Provider defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops2Provider string + +// EditSettingsJSONBodyKmsSops3 defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops3 struct { + Azure struct { + // ClientId An Azure client id. + ClientId string `json:"clientId"` + + // ClientSecret An Azure client secret. + ClientSecret string `json:"clientSecret"` + + // Keys Comma separated list of one or two paths to keys as defined in Azure Keyvault. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId *string `json:"tenantId,omitempty"` + } `json:"azure"` + Provider *EditSettingsJSONBodyKmsSops3Provider `json:"provider,omitempty"` +} + +// EditSettingsJSONBodyKmsSops3Provider defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops3Provider string + +// EditSettingsJSONBodyKmsSops4 defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops4 struct { + Google struct { + // AccountJson Enter GCP account JSON for authentication. + AccountJson string `json:"accountJson"` + + // Keys Comma separated list of one or two paths to keys as defined in GCP KMS. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // Project Enter GCP project. + Project string `json:"project"` + } `json:"google"` + Provider *EditSettingsJSONBodyKmsSops4Provider `json:"provider,omitempty"` +} + +// EditSettingsJSONBodyKmsSops4Provider defines parameters for EditSettings. +type EditSettingsJSONBodyKmsSops4Provider string + +// EditSettingsJSONBody_Kms_Sops defines parameters for EditSettings. +type EditSettingsJSONBody_Kms_Sops struct { + union json.RawMessage +} + +// EditSettingsJSONBodyObjProvider0 defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider0 struct { + Type *EditSettingsJSONBodyObjProvider0Type `json:"type,omitempty"` +} + +// EditSettingsJSONBodyObjProvider0Type defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider0Type string + +// EditSettingsJSONBodyObjProvider1 defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider1 struct { + Type *EditSettingsJSONBodyObjProvider1Type `json:"type,omitempty"` +} + +// EditSettingsJSONBodyObjProvider1Type defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider1Type string + +// EditSettingsJSONBodyObjProvider2 defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider2 struct { + // Linode Select to use Linode Object Storage. + Linode struct { + // AccessKeyId The ID of the access key. + AccessKeyId string `json:"accessKeyId"` + + // Buckets Add the preferred bucket names for each app. + Buckets *struct { + Cnpg *string `json:"cnpg,omitempty"` + Gitea *string `json:"gitea,omitempty"` + Harbor *string `json:"harbor,omitempty"` + KubeflowPipelines *string `json:"kubeflow-pipelines,omitempty"` + Loki *string `json:"loki,omitempty"` + Tempo *string `json:"tempo,omitempty"` + Thanos *string `json:"thanos,omitempty"` + Velero *string `json:"velero,omitempty"` + } `json:"buckets,omitempty"` + + // Region The name of the Linode region. + Region string `json:"region"` + + // SecretAccessKey The Secret of the access key. + SecretAccessKey string `json:"secretAccessKey"` + } `json:"linode"` + Type EditSettingsJSONBodyObjProvider2Type `json:"type"` +} + +// EditSettingsJSONBodyObjProvider2Type defines parameters for EditSettings. +type EditSettingsJSONBodyObjProvider2Type string + +// EditSettingsJSONBody_Obj_Provider defines parameters for EditSettings. +type EditSettingsJSONBody_Obj_Provider struct { + union json.RawMessage +} + +// CreateTeamJSONBody defines parameters for CreateTeam. +type CreateTeamJSONBody struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateTeamJSONBodyAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` +} + +// CreateTeamJSONBodyAlertsReceivers defines parameters for CreateTeam. +type CreateTeamJSONBodyAlertsReceivers string + +// EditTeamJSONBody defines parameters for EditTeam. +type EditTeamJSONBody struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditTeamJSONBodyAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` +} + +// EditTeamJSONBodyAlertsReceivers defines parameters for EditTeam. +type EditTeamJSONBodyAlertsReceivers string + +// CreateBackupJSONBody defines parameters for CreateBackup. +type CreateBackupJSONBody struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` +} + +// EditBackupJSONBody defines parameters for EditBackup. +type EditBackupJSONBody struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` +} + +// CreateBuildJSONBody defines parameters for CreateBuild. +type CreateBuildJSONBody struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateBuildJSONBody_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` +} + +// CreateBuildJSONBodyMode0 defines parameters for CreateBuild. +type CreateBuildJSONBodyMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type CreateBuildJSONBodyMode0Type `json:"type"` +} + +// CreateBuildJSONBodyMode0Type defines parameters for CreateBuild. +type CreateBuildJSONBodyMode0Type string + +// CreateBuildJSONBodyMode1 defines parameters for CreateBuild. +type CreateBuildJSONBodyMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type CreateBuildJSONBodyMode1Type `json:"type"` +} + +// CreateBuildJSONBodyMode1Type defines parameters for CreateBuild. +type CreateBuildJSONBodyMode1Type string + +// CreateBuildJSONBody_Mode defines parameters for CreateBuild. +type CreateBuildJSONBody_Mode struct { + union json.RawMessage +} + +// EditBuildJSONBody defines parameters for EditBuild. +type EditBuildJSONBody struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditBuildJSONBody_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` +} + +// EditBuildJSONBodyMode0 defines parameters for EditBuild. +type EditBuildJSONBodyMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type EditBuildJSONBodyMode0Type `json:"type"` +} + +// EditBuildJSONBodyMode0Type defines parameters for EditBuild. +type EditBuildJSONBodyMode0Type string + +// EditBuildJSONBodyMode1 defines parameters for EditBuild. +type EditBuildJSONBodyMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type EditBuildJSONBodyMode1Type `json:"type"` +} + +// EditBuildJSONBodyMode1Type defines parameters for EditBuild. +type EditBuildJSONBodyMode1Type string + +// EditBuildJSONBody_Mode defines parameters for EditBuild. +type EditBuildJSONBody_Mode struct { + union json.RawMessage +} + +// CreateCodeRepoJSONBody defines parameters for CreateCodeRepo. +type CreateCodeRepoJSONBody struct { + GitService CreateCodeRepoJSONBodyGitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` +} + +// CreateCodeRepoJSONBodyGitService defines parameters for CreateCodeRepo. +type CreateCodeRepoJSONBodyGitService string + +// EditCodeRepoJSONBody defines parameters for EditCodeRepo. +type EditCodeRepoJSONBody struct { + GitService EditCodeRepoJSONBodyGitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` +} + +// EditCodeRepoJSONBodyGitService defines parameters for EditCodeRepo. +type EditCodeRepoJSONBodyGitService string + +// ListUniquePodNamesByLabelParams defines parameters for ListUniquePodNamesByLabel. +type ListUniquePodNamesByLabelParams struct { + // LabelSelector name of the label to get pods name from + LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"` + + // Namespace namespace of the workload to get Podlabels from + Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"` +} + +// GetK8SWorkloadPodLabelsParams defines parameters for GetK8SWorkloadPodLabels. +type GetK8SWorkloadPodLabelsParams struct { + // WorkloadName name of the workload to get Podlabels from + WorkloadName *string `form:"workloadName,omitempty" json:"workloadName,omitempty"` + + // Namespace namespace of the workload to get Podlabels from + Namespace *string `form:"namespace,omitempty" json:"namespace,omitempty"` +} + +// CreateNetpolJSONBody defines parameters for CreateNetpol. +type CreateNetpolJSONBody struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateNetpolJSONBodyRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateNetpolJSONBodyRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateNetpolJSONBodyRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` +} + +// CreateNetpolJSONBodyRuleTypeEgressPortsProtocol defines parameters for CreateNetpol. +type CreateNetpolJSONBodyRuleTypeEgressPortsProtocol string + +// CreateNetpolJSONBodyRuleTypeIngressMode defines parameters for CreateNetpol. +type CreateNetpolJSONBodyRuleTypeIngressMode string + +// CreateNetpolJSONBodyRuleTypeType defines parameters for CreateNetpol. +type CreateNetpolJSONBodyRuleTypeType string + +// EditNetpolJSONBody defines parameters for EditNetpol. +type EditNetpolJSONBody struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditNetpolJSONBodyRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditNetpolJSONBodyRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditNetpolJSONBodyRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` +} + +// EditNetpolJSONBodyRuleTypeEgressPortsProtocol defines parameters for EditNetpol. +type EditNetpolJSONBodyRuleTypeEgressPortsProtocol string + +// EditNetpolJSONBodyRuleTypeIngressMode defines parameters for EditNetpol. +type EditNetpolJSONBodyRuleTypeIngressMode string + +// EditNetpolJSONBodyRuleTypeType defines parameters for EditNetpol. +type EditNetpolJSONBodyRuleTypeType string + +// EditPolicyJSONBody defines parameters for EditPolicy. +type EditPolicyJSONBody struct { + Action EditPolicyJSONBodyAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditPolicyJSONBodySeverity `json:"severity"` +} + +// EditPolicyJSONBodyAction defines parameters for EditPolicy. +type EditPolicyJSONBodyAction string + +// EditPolicyJSONBodySeverity defines parameters for EditPolicy. +type EditPolicyJSONBodySeverity string + +// CreateSealedSecretJSONBody defines parameters for CreateSealedSecret. +type CreateSealedSecretJSONBody struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateSealedSecretJSONBodyType `json:"type"` +} + +// CreateSealedSecretJSONBodyType defines parameters for CreateSealedSecret. +type CreateSealedSecretJSONBodyType string + +// EditSealedSecretJSONBody defines parameters for EditSealedSecret. +type EditSealedSecretJSONBody struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditSealedSecretJSONBodyType `json:"type"` +} + +// EditSealedSecretJSONBodyType defines parameters for EditSealedSecret. +type EditSealedSecretJSONBodyType string + +// CreateServiceJSONBody defines parameters for CreateService. +type CreateServiceJSONBody struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress CreateServiceJSONBody_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` +} + +// CreateServiceJSONBodyIngress0 defines parameters for CreateService. +type CreateServiceJSONBodyIngress0 struct { + Type *CreateServiceJSONBodyIngress0Type `json:"type,omitempty"` +} + +// CreateServiceJSONBodyIngress0Type defines parameters for CreateService. +type CreateServiceJSONBodyIngress0Type string + +// CreateServiceJSONBodyIngress1 defines parameters for CreateService. +type CreateServiceJSONBodyIngress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *CreateServiceJSONBodyIngress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} + +// CreateServiceJSONBodyIngress1Type defines parameters for CreateService. +type CreateServiceJSONBodyIngress1Type string + +// CreateServiceJSONBody_Ingress defines parameters for CreateService. +type CreateServiceJSONBody_Ingress struct { + union json.RawMessage +} + +// EditServiceJSONBody defines parameters for EditService. +type EditServiceJSONBody struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress EditServiceJSONBody_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` +} + +// EditServiceJSONBodyIngress0 defines parameters for EditService. +type EditServiceJSONBodyIngress0 struct { + Type *EditServiceJSONBodyIngress0Type `json:"type,omitempty"` +} + +// EditServiceJSONBodyIngress0Type defines parameters for EditService. +type EditServiceJSONBodyIngress0Type string + +// EditServiceJSONBodyIngress1 defines parameters for EditService. +type EditServiceJSONBodyIngress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *EditServiceJSONBodyIngress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} + +// EditServiceJSONBodyIngress1Type defines parameters for EditService. +type EditServiceJSONBodyIngress1Type string + +// EditServiceJSONBody_Ingress defines parameters for EditService. +type EditServiceJSONBody_Ingress struct { + union json.RawMessage +} + +// EditTeamUsersJSONBody defines parameters for EditTeamUsers. +type EditTeamUsersJSONBody = []struct { + Id *string `json:"id,omitempty"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` +} + +// CreateWorkloadJSONBody defines parameters for CreateWorkload. +type CreateWorkloadJSONBody struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateWorkloadJSONBodyChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateWorkloadJSONBody_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` +} + +// CreateWorkloadJSONBodyChartProvider defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyChartProvider string + +// CreateWorkloadJSONBodyImageUpdateStrategy0 defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy0 struct { + Type *CreateWorkloadJSONBodyImageUpdateStrategy0Type `json:"type,omitempty"` +} + +// CreateWorkloadJSONBodyImageUpdateStrategy0Type defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy0Type string + +// CreateWorkloadJSONBodyImageUpdateStrategy1 defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *CreateWorkloadJSONBodyImageUpdateStrategy1Type `json:"type,omitempty"` +} + +// CreateWorkloadJSONBodyImageUpdateStrategy1Type defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy1Type string + +// CreateWorkloadJSONBodyImageUpdateStrategy2 defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *CreateWorkloadJSONBodyImageUpdateStrategy2Type `json:"type,omitempty"` +} + +// CreateWorkloadJSONBodyImageUpdateStrategy2Type defines parameters for CreateWorkload. +type CreateWorkloadJSONBodyImageUpdateStrategy2Type string + +// CreateWorkloadJSONBody_ImageUpdateStrategy defines parameters for CreateWorkload. +type CreateWorkloadJSONBody_ImageUpdateStrategy struct { + union json.RawMessage +} + +// EditWorkloadJSONBody defines parameters for EditWorkload. +type EditWorkloadJSONBody struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditWorkloadJSONBodyChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditWorkloadJSONBody_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` +} + +// EditWorkloadJSONBodyChartProvider defines parameters for EditWorkload. +type EditWorkloadJSONBodyChartProvider string + +// EditWorkloadJSONBodyImageUpdateStrategy0 defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy0 struct { + Type *EditWorkloadJSONBodyImageUpdateStrategy0Type `json:"type,omitempty"` +} + +// EditWorkloadJSONBodyImageUpdateStrategy0Type defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy0Type string + +// EditWorkloadJSONBodyImageUpdateStrategy1 defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *EditWorkloadJSONBodyImageUpdateStrategy1Type `json:"type,omitempty"` +} + +// EditWorkloadJSONBodyImageUpdateStrategy1Type defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy1Type string + +// EditWorkloadJSONBodyImageUpdateStrategy2 defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *EditWorkloadJSONBodyImageUpdateStrategy2Type `json:"type,omitempty"` +} + +// EditWorkloadJSONBodyImageUpdateStrategy2Type defines parameters for EditWorkload. +type EditWorkloadJSONBodyImageUpdateStrategy2Type string + +// EditWorkloadJSONBody_ImageUpdateStrategy defines parameters for EditWorkload. +type EditWorkloadJSONBody_ImageUpdateStrategy struct { + union json.RawMessage +} + +// EditWorkloadValuesJSONBody defines parameters for EditWorkloadValues. +type EditWorkloadValuesJSONBody struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TeamId *string `json:"teamId,omitempty"` + Values EditWorkloadValuesJSONBody_Values `json:"values"` +} + +// EditWorkloadValuesJSONBodyValues0 defines parameters for EditWorkloadValues. +type EditWorkloadValuesJSONBodyValues0 = map[string]interface{} + +// EditWorkloadValuesJSONBodyValues1 defines parameters for EditWorkloadValues. +type EditWorkloadValuesJSONBodyValues1 = string + +// EditWorkloadValuesJSONBody_Values defines parameters for EditWorkloadValues. +type EditWorkloadValuesJSONBody_Values struct { + union json.RawMessage +} + +// GetTestRepoConnectParams defines parameters for GetTestRepoConnect. +type GetTestRepoConnectParams struct { + // Url URL of the repository + Url *string `form:"url,omitempty" json:"url,omitempty"` + + // TeamId Id of the team + TeamId *string `form:"teamId,omitempty" json:"teamId,omitempty"` + + // Secret Name of the secret for private repositories + Secret *string `form:"secret,omitempty" json:"secret,omitempty"` +} + +// CreateUserJSONBody defines parameters for CreateUser. +type CreateUserJSONBody struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` +} + +// EditUserJSONBody defines parameters for EditUser. +type EditUserJSONBody struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` +} + +// WorkloadCatalogJSONBody defines parameters for WorkloadCatalog. +type WorkloadCatalogJSONBody = map[string]interface{} + +// ConnectAplCloudttyParams defines parameters for ConnectAplCloudtty. +type ConnectAplCloudttyParams struct { + // TeamId Id of the team + TeamId *string `form:"teamId,omitempty" json:"teamId,omitempty"` +} + +// CreateAplTeamJSONBody defines parameters for CreateAplTeam. +type CreateAplTeamJSONBody struct { + Kind CreateAplTeamJSONBodyKind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateAplTeamJSONBodySpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` +} + +// CreateAplTeamJSONBodyKind defines parameters for CreateAplTeam. +type CreateAplTeamJSONBodyKind string + +// CreateAplTeamJSONBodySpecAlertsReceivers defines parameters for CreateAplTeam. +type CreateAplTeamJSONBodySpecAlertsReceivers string + +// EditAplTeamJSONBody defines parameters for EditAplTeam. +type EditAplTeamJSONBody struct { + Kind EditAplTeamJSONBodyKind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditAplTeamJSONBodySpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` +} + +// EditAplTeamJSONBodyKind defines parameters for EditAplTeam. +type EditAplTeamJSONBodyKind string + +// EditAplTeamJSONBodySpecAlertsReceivers defines parameters for EditAplTeam. +type EditAplTeamJSONBodySpecAlertsReceivers string + +// CreateAplBackupJSONBody defines parameters for CreateAplBackup. +type CreateAplBackupJSONBody struct { + Kind CreateAplBackupJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` +} + +// CreateAplBackupJSONBodyKind defines parameters for CreateAplBackup. +type CreateAplBackupJSONBodyKind string + +// EditAplBackupJSONBody defines parameters for EditAplBackup. +type EditAplBackupJSONBody struct { + Kind EditAplBackupJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` +} + +// EditAplBackupJSONBodyKind defines parameters for EditAplBackup. +type EditAplBackupJSONBodyKind string + +// CreateAplBuildJSONBody defines parameters for CreateAplBuild. +type CreateAplBuildJSONBody struct { + Kind CreateAplBuildJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateAplBuildJSONBody_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` +} + +// CreateAplBuildJSONBodyKind defines parameters for CreateAplBuild. +type CreateAplBuildJSONBodyKind string + +// CreateAplBuildJSONBodySpecMode0 defines parameters for CreateAplBuild. +type CreateAplBuildJSONBodySpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type CreateAplBuildJSONBodySpecMode0Type `json:"type"` +} + +// CreateAplBuildJSONBodySpecMode0Type defines parameters for CreateAplBuild. +type CreateAplBuildJSONBodySpecMode0Type string + +// CreateAplBuildJSONBodySpecMode1 defines parameters for CreateAplBuild. +type CreateAplBuildJSONBodySpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type CreateAplBuildJSONBodySpecMode1Type `json:"type"` +} + +// CreateAplBuildJSONBodySpecMode1Type defines parameters for CreateAplBuild. +type CreateAplBuildJSONBodySpecMode1Type string + +// CreateAplBuildJSONBody_Spec_Mode defines parameters for CreateAplBuild. +type CreateAplBuildJSONBody_Spec_Mode struct { + union json.RawMessage +} + +// EditAplBuildJSONBody defines parameters for EditAplBuild. +type EditAplBuildJSONBody struct { + Kind EditAplBuildJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditAplBuildJSONBody_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` +} + +// EditAplBuildJSONBodyKind defines parameters for EditAplBuild. +type EditAplBuildJSONBodyKind string + +// EditAplBuildJSONBodySpecMode0 defines parameters for EditAplBuild. +type EditAplBuildJSONBodySpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type EditAplBuildJSONBodySpecMode0Type `json:"type"` +} + +// EditAplBuildJSONBodySpecMode0Type defines parameters for EditAplBuild. +type EditAplBuildJSONBodySpecMode0Type string + +// EditAplBuildJSONBodySpecMode1 defines parameters for EditAplBuild. +type EditAplBuildJSONBodySpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type EditAplBuildJSONBodySpecMode1Type `json:"type"` +} + +// EditAplBuildJSONBodySpecMode1Type defines parameters for EditAplBuild. +type EditAplBuildJSONBodySpecMode1Type string + +// EditAplBuildJSONBody_Spec_Mode defines parameters for EditAplBuild. +type EditAplBuildJSONBody_Spec_Mode struct { + union json.RawMessage +} + +// CreateAplCodeRepoJSONBody defines parameters for CreateAplCodeRepo. +type CreateAplCodeRepoJSONBody struct { + Kind CreateAplCodeRepoJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService CreateAplCodeRepoJSONBodySpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` +} + +// CreateAplCodeRepoJSONBodyKind defines parameters for CreateAplCodeRepo. +type CreateAplCodeRepoJSONBodyKind string + +// CreateAplCodeRepoJSONBodySpecGitService defines parameters for CreateAplCodeRepo. +type CreateAplCodeRepoJSONBodySpecGitService string + +// EditAplCodeRepoJSONBody defines parameters for EditAplCodeRepo. +type EditAplCodeRepoJSONBody struct { + Kind EditAplCodeRepoJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService EditAplCodeRepoJSONBodySpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` +} + +// EditAplCodeRepoJSONBodyKind defines parameters for EditAplCodeRepo. +type EditAplCodeRepoJSONBodyKind string + +// EditAplCodeRepoJSONBodySpecGitService defines parameters for EditAplCodeRepo. +type EditAplCodeRepoJSONBodySpecGitService string + +// CreateAplNetpolJSONBody defines parameters for CreateAplNetpol. +type CreateAplNetpolJSONBody struct { + Kind CreateAplNetpolJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateAplNetpolJSONBodySpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateAplNetpolJSONBodySpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` +} + +// CreateAplNetpolJSONBodyKind defines parameters for CreateAplNetpol. +type CreateAplNetpolJSONBodyKind string + +// CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol defines parameters for CreateAplNetpol. +type CreateAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol string + +// CreateAplNetpolJSONBodySpecRuleTypeIngressMode defines parameters for CreateAplNetpol. +type CreateAplNetpolJSONBodySpecRuleTypeIngressMode string + +// CreateAplNetpolJSONBodySpecRuleTypeType defines parameters for CreateAplNetpol. +type CreateAplNetpolJSONBodySpecRuleTypeType string + +// EditAplNetpolJSONBody defines parameters for EditAplNetpol. +type EditAplNetpolJSONBody struct { + Kind EditAplNetpolJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditAplNetpolJSONBodySpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditAplNetpolJSONBodySpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` +} + +// EditAplNetpolJSONBodyKind defines parameters for EditAplNetpol. +type EditAplNetpolJSONBodyKind string + +// EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol defines parameters for EditAplNetpol. +type EditAplNetpolJSONBodySpecRuleTypeEgressPortsProtocol string + +// EditAplNetpolJSONBodySpecRuleTypeIngressMode defines parameters for EditAplNetpol. +type EditAplNetpolJSONBodySpecRuleTypeIngressMode string + +// EditAplNetpolJSONBodySpecRuleTypeType defines parameters for EditAplNetpol. +type EditAplNetpolJSONBodySpecRuleTypeType string + +// EditAplPolicyJSONBody defines parameters for EditAplPolicy. +type EditAplPolicyJSONBody struct { + Kind EditAplPolicyJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action EditAplPolicyJSONBodySpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditAplPolicyJSONBodySpecSeverity `json:"severity"` + } `json:"spec"` +} + +// EditAplPolicyJSONBodyKind defines parameters for EditAplPolicy. +type EditAplPolicyJSONBodyKind string + +// EditAplPolicyJSONBodySpecAction defines parameters for EditAplPolicy. +type EditAplPolicyJSONBodySpecAction string + +// EditAplPolicyJSONBodySpecSeverity defines parameters for EditAplPolicy. +type EditAplPolicyJSONBodySpecSeverity string + +// CreateAplSealedSecretJSONBody defines parameters for CreateAplSealedSecret. +type CreateAplSealedSecretJSONBody struct { + Kind CreateAplSealedSecretJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateAplSealedSecretJSONBodySpecType `json:"type"` + } `json:"spec"` +} + +// CreateAplSealedSecretJSONBodyKind defines parameters for CreateAplSealedSecret. +type CreateAplSealedSecretJSONBodyKind string + +// CreateAplSealedSecretJSONBodySpecType defines parameters for CreateAplSealedSecret. +type CreateAplSealedSecretJSONBodySpecType string + +// EditAplSealedSecretJSONBody defines parameters for EditAplSealedSecret. +type EditAplSealedSecretJSONBody struct { + Kind EditAplSealedSecretJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditAplSealedSecretJSONBodySpecType `json:"type"` + } `json:"spec"` +} + +// EditAplSealedSecretJSONBodyKind defines parameters for EditAplSealedSecret. +type EditAplSealedSecretJSONBodyKind string + +// EditAplSealedSecretJSONBodySpecType defines parameters for EditAplSealedSecret. +type EditAplSealedSecretJSONBodySpecType string + +// CreateAplServiceJSONBody defines parameters for CreateAplService. +type CreateAplServiceJSONBody struct { + Kind CreateAplServiceJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` +} + +// CreateAplServiceJSONBodyKind defines parameters for CreateAplService. +type CreateAplServiceJSONBodyKind string + +// EditAplServiceJSONBody defines parameters for EditAplService. +type EditAplServiceJSONBody struct { + Kind EditAplServiceJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` +} + +// EditAplServiceJSONBodyKind defines parameters for EditAplService. +type EditAplServiceJSONBodyKind string + +// CreateAplWorkloadJSONBody defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBody struct { + Kind CreateAplWorkloadJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateAplWorkloadJSONBodySpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateAplWorkloadJSONBody_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` +} + +// CreateAplWorkloadJSONBodyKind defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodyKind string + +// CreateAplWorkloadJSONBodySpecChartProvider defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecChartProvider string + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy0 defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy0 struct { + Type *CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type `json:"type,omitempty"` +} + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy0Type string + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy1 defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type `json:"type,omitempty"` +} + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy1Type string + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy2 defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type `json:"type,omitempty"` +} + +// CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBodySpecImageUpdateStrategy2Type string + +// CreateAplWorkloadJSONBody_Spec_ImageUpdateStrategy defines parameters for CreateAplWorkload. +type CreateAplWorkloadJSONBody_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} + +// EditAplWorkloadJSONBody defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBody struct { + Kind EditAplWorkloadJSONBodyKind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditAplWorkloadJSONBodySpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditAplWorkloadJSONBody_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` +} + +// EditAplWorkloadJSONBodyKind defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodyKind string + +// EditAplWorkloadJSONBodySpecChartProvider defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecChartProvider string + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy0 defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy0 struct { + Type *EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type `json:"type,omitempty"` +} + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy0Type string + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy1 defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type `json:"type,omitempty"` +} + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy1Type string + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy2 defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type `json:"type,omitempty"` +} + +// EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBodySpecImageUpdateStrategy2Type string + +// EditAplWorkloadJSONBody_Spec_ImageUpdateStrategy defines parameters for EditAplWorkload. +type EditAplWorkloadJSONBody_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} + +// CreateAplAgentJSONRequestBody defines body for CreateAplAgent for application/json ContentType. +type CreateAplAgentJSONRequestBody CreateAplAgentJSONBody + +// EditAplAgentJSONRequestBody defines body for EditAplAgent for application/json ContentType. +type EditAplAgentJSONRequestBody EditAplAgentJSONBody + +// CreateAplKnowledgeBaseJSONRequestBody defines body for CreateAplKnowledgeBase for application/json ContentType. +type CreateAplKnowledgeBaseJSONRequestBody CreateAplKnowledgeBaseJSONBody + +// EditAplKnowledgeBaseJSONRequestBody defines body for EditAplKnowledgeBase for application/json ContentType. +type EditAplKnowledgeBaseJSONRequestBody EditAplKnowledgeBaseJSONBody + +// ToggleAppsJSONRequestBody defines body for ToggleApps for application/json ContentType. +type ToggleAppsJSONRequestBody = ToggleAppsJSONBody + +// EditAppJSONRequestBody defines body for EditApp for application/json ContentType. +type EditAppJSONRequestBody EditAppJSONBody + +// CreateWorkloadCatalogJSONRequestBody defines body for CreateWorkloadCatalog for application/json ContentType. +type CreateWorkloadCatalogJSONRequestBody = CreateWorkloadCatalogJSONBody + +// CreateObjWizardJSONRequestBody defines body for CreateObjWizard for application/json ContentType. +type CreateObjWizardJSONRequestBody CreateObjWizardJSONBody + +// EditSettingsJSONRequestBody defines body for EditSettings for application/json ContentType. +type EditSettingsJSONRequestBody EditSettingsJSONBody + +// CreateTeamJSONRequestBody defines body for CreateTeam for application/json ContentType. +type CreateTeamJSONRequestBody CreateTeamJSONBody + +// EditTeamJSONRequestBody defines body for EditTeam for application/json ContentType. +type EditTeamJSONRequestBody EditTeamJSONBody + +// CreateBackupJSONRequestBody defines body for CreateBackup for application/json ContentType. +type CreateBackupJSONRequestBody CreateBackupJSONBody + +// EditBackupJSONRequestBody defines body for EditBackup for application/json ContentType. +type EditBackupJSONRequestBody EditBackupJSONBody + +// CreateBuildJSONRequestBody defines body for CreateBuild for application/json ContentType. +type CreateBuildJSONRequestBody CreateBuildJSONBody + +// EditBuildJSONRequestBody defines body for EditBuild for application/json ContentType. +type EditBuildJSONRequestBody EditBuildJSONBody + +// CreateCodeRepoJSONRequestBody defines body for CreateCodeRepo for application/json ContentType. +type CreateCodeRepoJSONRequestBody CreateCodeRepoJSONBody + +// EditCodeRepoJSONRequestBody defines body for EditCodeRepo for application/json ContentType. +type EditCodeRepoJSONRequestBody EditCodeRepoJSONBody + +// CreateNetpolJSONRequestBody defines body for CreateNetpol for application/json ContentType. +type CreateNetpolJSONRequestBody CreateNetpolJSONBody + +// EditNetpolJSONRequestBody defines body for EditNetpol for application/json ContentType. +type EditNetpolJSONRequestBody EditNetpolJSONBody + +// EditPolicyJSONRequestBody defines body for EditPolicy for application/json ContentType. +type EditPolicyJSONRequestBody EditPolicyJSONBody + +// CreateSealedSecretJSONRequestBody defines body for CreateSealedSecret for application/json ContentType. +type CreateSealedSecretJSONRequestBody CreateSealedSecretJSONBody + +// EditSealedSecretJSONRequestBody defines body for EditSealedSecret for application/json ContentType. +type EditSealedSecretJSONRequestBody EditSealedSecretJSONBody + +// CreateServiceJSONRequestBody defines body for CreateService for application/json ContentType. +type CreateServiceJSONRequestBody CreateServiceJSONBody + +// EditServiceJSONRequestBody defines body for EditService for application/json ContentType. +type EditServiceJSONRequestBody EditServiceJSONBody + +// EditTeamUsersJSONRequestBody defines body for EditTeamUsers for application/json ContentType. +type EditTeamUsersJSONRequestBody = EditTeamUsersJSONBody + +// CreateWorkloadJSONRequestBody defines body for CreateWorkload for application/json ContentType. +type CreateWorkloadJSONRequestBody CreateWorkloadJSONBody + +// EditWorkloadJSONRequestBody defines body for EditWorkload for application/json ContentType. +type EditWorkloadJSONRequestBody EditWorkloadJSONBody + +// EditWorkloadValuesJSONRequestBody defines body for EditWorkloadValues for application/json ContentType. +type EditWorkloadValuesJSONRequestBody EditWorkloadValuesJSONBody + +// CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType. +type CreateUserJSONRequestBody CreateUserJSONBody + +// EditUserJSONRequestBody defines body for EditUser for application/json ContentType. +type EditUserJSONRequestBody EditUserJSONBody + +// WorkloadCatalogJSONRequestBody defines body for WorkloadCatalog for application/json ContentType. +type WorkloadCatalogJSONRequestBody = WorkloadCatalogJSONBody + +// CreateAplTeamJSONRequestBody defines body for CreateAplTeam for application/json ContentType. +type CreateAplTeamJSONRequestBody CreateAplTeamJSONBody + +// EditAplTeamJSONRequestBody defines body for EditAplTeam for application/json ContentType. +type EditAplTeamJSONRequestBody EditAplTeamJSONBody + +// CreateAplBackupJSONRequestBody defines body for CreateAplBackup for application/json ContentType. +type CreateAplBackupJSONRequestBody CreateAplBackupJSONBody + +// EditAplBackupJSONRequestBody defines body for EditAplBackup for application/json ContentType. +type EditAplBackupJSONRequestBody EditAplBackupJSONBody + +// CreateAplBuildJSONRequestBody defines body for CreateAplBuild for application/json ContentType. +type CreateAplBuildJSONRequestBody CreateAplBuildJSONBody + +// EditAplBuildJSONRequestBody defines body for EditAplBuild for application/json ContentType. +type EditAplBuildJSONRequestBody EditAplBuildJSONBody + +// CreateAplCodeRepoJSONRequestBody defines body for CreateAplCodeRepo for application/json ContentType. +type CreateAplCodeRepoJSONRequestBody CreateAplCodeRepoJSONBody + +// EditAplCodeRepoJSONRequestBody defines body for EditAplCodeRepo for application/json ContentType. +type EditAplCodeRepoJSONRequestBody EditAplCodeRepoJSONBody + +// CreateAplNetpolJSONRequestBody defines body for CreateAplNetpol for application/json ContentType. +type CreateAplNetpolJSONRequestBody CreateAplNetpolJSONBody + +// EditAplNetpolJSONRequestBody defines body for EditAplNetpol for application/json ContentType. +type EditAplNetpolJSONRequestBody EditAplNetpolJSONBody + +// EditAplPolicyJSONRequestBody defines body for EditAplPolicy for application/json ContentType. +type EditAplPolicyJSONRequestBody EditAplPolicyJSONBody + +// CreateAplSealedSecretJSONRequestBody defines body for CreateAplSealedSecret for application/json ContentType. +type CreateAplSealedSecretJSONRequestBody CreateAplSealedSecretJSONBody + +// EditAplSealedSecretJSONRequestBody defines body for EditAplSealedSecret for application/json ContentType. +type EditAplSealedSecretJSONRequestBody EditAplSealedSecretJSONBody + +// CreateAplServiceJSONRequestBody defines body for CreateAplService for application/json ContentType. +type CreateAplServiceJSONRequestBody CreateAplServiceJSONBody + +// EditAplServiceJSONRequestBody defines body for EditAplService for application/json ContentType. +type EditAplServiceJSONRequestBody EditAplServiceJSONBody + +// CreateAplWorkloadJSONRequestBody defines body for CreateAplWorkload for application/json ContentType. +type CreateAplWorkloadJSONRequestBody CreateAplWorkloadJSONBody + +// EditAplWorkloadJSONRequestBody defines body for EditAplWorkload for application/json ContentType. +type EditAplWorkloadJSONRequestBody EditAplWorkloadJSONBody + +// 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 { + // GetAIModels request + GetAIModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplAgents request + GetAplAgents(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplAgentWithBody request with any body + CreateAplAgentWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplAgent(ctx context.Context, teamId string, body CreateAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplAgent request + DeleteAplAgent(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplAgent request + GetAplAgent(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplAgentWithBody request with any body + EditAplAgentWithBody(ctx context.Context, teamId string, agentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplAgent(ctx context.Context, teamId string, agentName string, body EditAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplKnowledgeBases request + GetAplKnowledgeBases(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplKnowledgeBaseWithBody request with any body + CreateAplKnowledgeBaseWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplKnowledgeBase(ctx context.Context, teamId string, body CreateAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplKnowledgeBase request + DeleteAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplKnowledgeBase request + GetAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplKnowledgeBaseWithBody request with any body + EditAplKnowledgeBaseWithBody(ctx context.Context, teamId string, knowledgeBaseName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, body EditAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // V1apiDocs request + V1apiDocs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApps request + GetApps(ctx context.Context, teamId string, params *GetAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ToggleAppsWithBody request with any body + ToggleAppsWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + ToggleApps(ctx context.Context, teamId string, body ToggleAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetApp request + GetApp(ctx context.Context, teamId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAppWithBody request with any body + EditAppWithBody(ctx context.Context, teamId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditApp(ctx context.Context, teamId string, appId string, body EditAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllBackups request + GetAllBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllBuilds request + GetAllBuilds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteCloudtty request + DeleteCloudtty(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ConnectCloudtty request + ConnectCloudtty(ctx context.Context, params *ConnectCloudttyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllCodeRepos request + GetAllCodeRepos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateWorkloadCatalogWithBody request with any body + CreateWorkloadCatalogWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateWorkloadCatalog(ctx context.Context, body CreateWorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetDashboard request + GetDashboard(ctx context.Context, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadDockerConfig request + DownloadDockerConfig(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetHelmChartContent request + GetHelmChartContent(ctx context.Context, params *GetHelmChartContentParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetInternalRepoUrls request + GetInternalRepoUrls(ctx context.Context, params *GetInternalRepoUrlsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetK8sVersion request + GetK8sVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadKubecfg request + DownloadKubecfg(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllNetpols request + GetAllNetpols(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateObjWizardWithBody request with any body + CreateObjWizardWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateObjWizard(ctx context.Context, body CreateObjWizardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetValues request + GetValues(ctx context.Context, params *GetValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllPolicies request + GetAllPolicies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetRepoBranches request + GetRepoBranches(ctx context.Context, params *GetRepoBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllSealedSecrets request + GetAllSealedSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DownloadSealedSecretKeys request + DownloadSealedSecretKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllServices request + GetAllServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSession request + GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSettings request + GetSettings(ctx context.Context, params *GetSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditSettingsWithBody request with any body + EditSettingsWithBody(ctx context.Context, settingId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditSettings(ctx context.Context, settingId string, body EditSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSettingsInfo request + GetSettingsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeams request + GetTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateTeamWithBody request with any body + CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteTeam request + DeleteTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeam request + GetTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditTeamWithBody request with any body + EditTeamWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditTeam(ctx context.Context, teamId string, body EditTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamBackups request + GetTeamBackups(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateBackupWithBody request with any body + CreateBackupWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateBackup(ctx context.Context, teamId string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteBackup request + DeleteBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBackup request + GetBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditBackupWithBody request with any body + EditBackupWithBody(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditBackup(ctx context.Context, teamId string, backupName string, body EditBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamBuilds request + GetTeamBuilds(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateBuildWithBody request with any body + CreateBuildWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateBuild(ctx context.Context, teamId string, body CreateBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteBuild request + DeleteBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetBuild request + GetBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditBuildWithBody request with any body + EditBuildWithBody(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditBuild(ctx context.Context, teamId string, buildName string, body EditBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamCodeRepos request + GetTeamCodeRepos(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateCodeRepoWithBody request with any body + CreateCodeRepoWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateCodeRepo(ctx context.Context, teamId string, body CreateCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteCodeRepo request + DeleteCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetCodeRepo request + GetCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditCodeRepoWithBody request with any body + EditCodeRepoWithBody(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, body EditCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSecretsFromK8s request + GetSecretsFromK8s(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ListUniquePodNamesByLabel request + ListUniquePodNamesByLabel(ctx context.Context, teamId string, params *ListUniquePodNamesByLabelParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetK8SWorkloadPodLabels request + GetK8SWorkloadPodLabels(ctx context.Context, teamId string, params *GetK8SWorkloadPodLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamK8sServices request + GetTeamK8sServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamNetpols request + GetTeamNetpols(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateNetpolWithBody request with any body + CreateNetpolWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateNetpol(ctx context.Context, teamId string, body CreateNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteNetpol request + DeleteNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetNetpol request + GetNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditNetpolWithBody request with any body + EditNetpolWithBody(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditNetpol(ctx context.Context, teamId string, netpolName string, body EditNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamPolicies request + GetTeamPolicies(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetPolicy request + GetPolicy(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditPolicyWithBody request with any body + EditPolicyWithBody(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditPolicy(ctx context.Context, teamId string, policyName string, body EditPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSealedSecrets request + GetSealedSecrets(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateSealedSecretWithBody request with any body + CreateSealedSecretWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateSealedSecret(ctx context.Context, teamId string, body CreateSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteSealedSecret request + DeleteSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetSealedSecret request + GetSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditSealedSecretWithBody request with any body + EditSealedSecretWithBody(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditSealedSecret(ctx context.Context, teamId string, sealedSecretName string, body EditSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamServices request + GetTeamServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateServiceWithBody request with any body + CreateServiceWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateService(ctx context.Context, teamId string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteService request + DeleteService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetService request + GetService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditServiceWithBody request with any body + EditServiceWithBody(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditService(ctx context.Context, teamId string, serviceName string, body EditServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditTeamUsersWithBody request with any body + EditTeamUsersWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditTeamUsers(ctx context.Context, teamId string, body EditTeamUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamWorkloads request + GetTeamWorkloads(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateWorkloadWithBody request with any body + CreateWorkloadWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateWorkload(ctx context.Context, teamId string, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteWorkload request + DeleteWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkload request + GetWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditWorkloadWithBody request with any body + EditWorkloadWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditWorkload(ctx context.Context, teamId string, workloadName string, body EditWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetWorkloadValues request + GetWorkloadValues(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditWorkloadValuesWithBody request with any body + EditWorkloadValuesWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditWorkloadValues(ctx context.Context, teamId string, workloadName string, body EditWorkloadValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTestRepoConnect request + GetTestRepoConnect(ctx context.Context, params *GetTestRepoConnectParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllUsers request + GetAllUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateUserWithBody request with any body + CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteUser request + DeleteUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetUser request + GetUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditUserWithBody request with any body + EditUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditUser(ctx context.Context, userId string, body EditUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // WorkloadCatalogWithBody request with any body + WorkloadCatalogWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + WorkloadCatalog(ctx context.Context, body WorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllWorkloads request + GetAllWorkloads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplBackups request + GetAllAplBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplBuilds request + GetAllAplBuilds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplCloudtty request + DeleteAplCloudtty(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // ConnectAplCloudtty request + ConnectAplCloudtty(ctx context.Context, params *ConnectAplCloudttyParams, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplCodeRepos request + GetAllAplCodeRepos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplNetpols request + GetAllAplNetpols(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplPolicies request + GetAllAplPolicies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplSecrets request + GetAllAplSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplServices request + GetAllAplServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplTeams request + GetAplTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplTeamWithBody request with any body + CreateAplTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplTeam(ctx context.Context, body CreateAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplTeam request + DeleteAplTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplTeam request + GetAplTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplTeamWithBody request with any body + EditAplTeamWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplTeam(ctx context.Context, teamId string, body EditAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplBackups request + GetTeamAplBackups(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplBackupWithBody request with any body + CreateAplBackupWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplBackup(ctx context.Context, teamId string, body CreateAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplBackup request + DeleteAplBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplBackup request + GetAplBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplBackupWithBody request with any body + EditAplBackupWithBody(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplBackup(ctx context.Context, teamId string, backupName string, body EditAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplBuilds request + GetTeamAplBuilds(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplBuildWithBody request with any body + CreateAplBuildWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplBuild(ctx context.Context, teamId string, body CreateAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplBuild request + DeleteAplBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplBuild request + GetAplBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplBuildWithBody request with any body + EditAplBuildWithBody(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplBuild(ctx context.Context, teamId string, buildName string, body EditAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplCodeRepos request + GetTeamAplCodeRepos(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplCodeRepoWithBody request with any body + CreateAplCodeRepoWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplCodeRepo(ctx context.Context, teamId string, body CreateAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplCodeRepo request + DeleteAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplCodeRepo request + GetAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplCodeRepoWithBody request with any body + EditAplCodeRepoWithBody(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, body EditAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplNetpols request + GetTeamAplNetpols(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplNetpolWithBody request with any body + CreateAplNetpolWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplNetpol(ctx context.Context, teamId string, body CreateAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplNetpol request + DeleteAplNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplNetpol request + GetAplNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplNetpolWithBody request with any body + EditAplNetpolWithBody(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplNetpol(ctx context.Context, teamId string, netpolName string, body EditAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplPolicies request + GetTeamAplPolicies(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplPolicy request + GetAplPolicy(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplPolicyWithBody request with any body + EditAplPolicyWithBody(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplPolicy(ctx context.Context, teamId string, policyName string, body EditAplPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplSealedSecrets request + GetAplSealedSecrets(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplSealedSecretWithBody request with any body + CreateAplSealedSecretWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplSealedSecret(ctx context.Context, teamId string, body CreateAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplSealedSecret request + DeleteAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplSealedSecret request + GetAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplSealedSecretWithBody request with any body + EditAplSealedSecretWithBody(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, body EditAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplServices request + GetTeamAplServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplServiceWithBody request with any body + CreateAplServiceWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplService(ctx context.Context, teamId string, body CreateAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplService request + DeleteAplService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplService request + GetAplService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplServiceWithBody request with any body + EditAplServiceWithBody(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplService(ctx context.Context, teamId string, serviceName string, body EditAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetTeamAplWorkloads request + GetTeamAplWorkloads(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // CreateAplWorkloadWithBody request with any body + CreateAplWorkloadWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + CreateAplWorkload(ctx context.Context, teamId string, body CreateAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // DeleteAplWorkload request + DeleteAplWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAplWorkload request + GetAplWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) + + // EditAplWorkloadWithBody request with any body + EditAplWorkloadWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) + + EditAplWorkload(ctx context.Context, teamId string, workloadName string, body EditAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplWorkloadNames request + GetAllAplWorkloadNames(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + + // GetAllAplWorkloads request + GetAllAplWorkloads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) +} + +func (c *Client) GetAIModels(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAIModelsRequest(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) GetAplAgents(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplAgentsRequest(c.Server, teamId) + 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) CreateAplAgentWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplAgentRequestWithBody(c.Server, teamId, 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) CreateAplAgent(ctx context.Context, teamId string, body CreateAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplAgentRequest(c.Server, teamId, 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) DeleteAplAgent(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplAgentRequest(c.Server, teamId, agentName) + 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) GetAplAgent(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplAgentRequest(c.Server, teamId, agentName) + 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) EditAplAgentWithBody(ctx context.Context, teamId string, agentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplAgentRequestWithBody(c.Server, teamId, agentName, 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) EditAplAgent(ctx context.Context, teamId string, agentName string, body EditAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplAgentRequest(c.Server, teamId, agentName, 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) GetAplKnowledgeBases(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplKnowledgeBasesRequest(c.Server, teamId) + 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) CreateAplKnowledgeBaseWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplKnowledgeBaseRequestWithBody(c.Server, teamId, 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) CreateAplKnowledgeBase(ctx context.Context, teamId string, body CreateAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplKnowledgeBaseRequest(c.Server, teamId, 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) DeleteAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplKnowledgeBaseRequest(c.Server, teamId, knowledgeBaseName) + 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) GetAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplKnowledgeBaseRequest(c.Server, teamId, knowledgeBaseName) + 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) EditAplKnowledgeBaseWithBody(ctx context.Context, teamId string, knowledgeBaseName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplKnowledgeBaseRequestWithBody(c.Server, teamId, knowledgeBaseName, 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) EditAplKnowledgeBase(ctx context.Context, teamId string, knowledgeBaseName string, body EditAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplKnowledgeBaseRequest(c.Server, teamId, knowledgeBaseName, 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) V1apiDocs(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewV1apiDocsRequest(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) GetApps(ctx context.Context, teamId string, params *GetAppsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAppsRequest(c.Server, teamId, 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) ToggleAppsWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewToggleAppsRequestWithBody(c.Server, teamId, 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) ToggleApps(ctx context.Context, teamId string, body ToggleAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewToggleAppsRequest(c.Server, teamId, 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) GetApp(ctx context.Context, teamId string, appId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAppRequest(c.Server, teamId, appId) + 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) EditAppWithBody(ctx context.Context, teamId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAppRequestWithBody(c.Server, teamId, appId, 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) EditApp(ctx context.Context, teamId string, appId string, body EditAppJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAppRequest(c.Server, teamId, appId, 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) GetAllBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllBackupsRequest(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) GetAllBuilds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllBuildsRequest(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) DeleteCloudtty(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteCloudttyRequest(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) ConnectCloudtty(ctx context.Context, params *ConnectCloudttyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectCloudttyRequest(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) GetAllCodeRepos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllCodeReposRequest(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) CreateWorkloadCatalogWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadCatalogRequestWithBody(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) CreateWorkloadCatalog(ctx context.Context, body CreateWorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadCatalogRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetDashboard(ctx context.Context, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetDashboardRequest(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) DownloadDockerConfig(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadDockerConfigRequest(c.Server, teamId) + 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) GetHelmChartContent(ctx context.Context, params *GetHelmChartContentParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetHelmChartContentRequest(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) GetInternalRepoUrls(ctx context.Context, params *GetInternalRepoUrlsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetInternalRepoUrlsRequest(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) GetK8sVersion(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetK8sVersionRequest(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) DownloadKubecfg(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadKubecfgRequest(c.Server, teamId) + 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) GetAllNetpols(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllNetpolsRequest(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) CreateObjWizardWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateObjWizardRequestWithBody(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) CreateObjWizard(ctx context.Context, body CreateObjWizardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateObjWizardRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetValues(ctx context.Context, params *GetValuesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetValuesRequest(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) GetAllPolicies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllPoliciesRequest(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) GetRepoBranches(ctx context.Context, params *GetRepoBranchesParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetRepoBranchesRequest(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) GetAllSealedSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllSealedSecretsRequest(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) DownloadSealedSecretKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDownloadSealedSecretKeysRequest(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) GetAllServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllServicesRequest(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) GetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSessionRequest(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) GetSettings(ctx context.Context, params *GetSettingsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSettingsRequest(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) EditSettingsWithBody(ctx context.Context, settingId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditSettingsRequestWithBody(c.Server, settingId, 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) EditSettings(ctx context.Context, settingId string, body EditSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditSettingsRequest(c.Server, settingId, 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) GetSettingsInfo(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSettingsInfoRequest(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) GetTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamsRequest(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) CreateTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTeamRequestWithBody(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) CreateTeam(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateTeamRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteTeamRequest(c.Server, teamId) + 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) GetTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamRequest(c.Server, teamId) + 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) EditTeamWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditTeamRequestWithBody(c.Server, teamId, 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) EditTeam(ctx context.Context, teamId string, body EditTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditTeamRequest(c.Server, teamId, 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) GetTeamBackups(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamBackupsRequest(c.Server, teamId) + 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) CreateBackupWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateBackupRequestWithBody(c.Server, teamId, 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) CreateBackup(ctx context.Context, teamId string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateBackupRequest(c.Server, teamId, 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) DeleteBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteBackupRequest(c.Server, teamId, backupName) + 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) GetBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBackupRequest(c.Server, teamId, backupName) + 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) EditBackupWithBody(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditBackupRequestWithBody(c.Server, teamId, backupName, 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) EditBackup(ctx context.Context, teamId string, backupName string, body EditBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditBackupRequest(c.Server, teamId, backupName, 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) GetTeamBuilds(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamBuildsRequest(c.Server, teamId) + 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) CreateBuildWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateBuildRequestWithBody(c.Server, teamId, 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) CreateBuild(ctx context.Context, teamId string, body CreateBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateBuildRequest(c.Server, teamId, 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) DeleteBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteBuildRequest(c.Server, teamId, buildName) + 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) GetBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetBuildRequest(c.Server, teamId, buildName) + 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) EditBuildWithBody(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditBuildRequestWithBody(c.Server, teamId, buildName, 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) EditBuild(ctx context.Context, teamId string, buildName string, body EditBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditBuildRequest(c.Server, teamId, buildName, 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) GetTeamCodeRepos(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamCodeReposRequest(c.Server, teamId) + 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) CreateCodeRepoWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCodeRepoRequestWithBody(c.Server, teamId, 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) CreateCodeRepo(ctx context.Context, teamId string, body CreateCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateCodeRepoRequest(c.Server, teamId, 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) DeleteCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteCodeRepoRequest(c.Server, teamId, codeRepositoryName) + 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) GetCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetCodeRepoRequest(c.Server, teamId, codeRepositoryName) + 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) EditCodeRepoWithBody(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditCodeRepoRequestWithBody(c.Server, teamId, codeRepositoryName, 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) EditCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, body EditCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditCodeRepoRequest(c.Server, teamId, codeRepositoryName, 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) GetSecretsFromK8s(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSecretsFromK8sRequest(c.Server, teamId) + 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) ListUniquePodNamesByLabel(ctx context.Context, teamId string, params *ListUniquePodNamesByLabelParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewListUniquePodNamesByLabelRequest(c.Server, teamId, 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) GetK8SWorkloadPodLabels(ctx context.Context, teamId string, params *GetK8SWorkloadPodLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetK8SWorkloadPodLabelsRequest(c.Server, teamId, 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) GetTeamK8sServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamK8sServicesRequest(c.Server, teamId) + 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) GetTeamNetpols(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamNetpolsRequest(c.Server, teamId) + 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) CreateNetpolWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateNetpolRequestWithBody(c.Server, teamId, 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) CreateNetpol(ctx context.Context, teamId string, body CreateNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateNetpolRequest(c.Server, teamId, 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) DeleteNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteNetpolRequest(c.Server, teamId, netpolName) + 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) GetNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetNetpolRequest(c.Server, teamId, netpolName) + 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) EditNetpolWithBody(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditNetpolRequestWithBody(c.Server, teamId, netpolName, 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) EditNetpol(ctx context.Context, teamId string, netpolName string, body EditNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditNetpolRequest(c.Server, teamId, netpolName, 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) GetTeamPolicies(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamPoliciesRequest(c.Server, teamId) + 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) GetPolicy(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetPolicyRequest(c.Server, teamId, policyName) + 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) EditPolicyWithBody(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPolicyRequestWithBody(c.Server, teamId, policyName, 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) EditPolicy(ctx context.Context, teamId string, policyName string, body EditPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditPolicyRequest(c.Server, teamId, policyName, 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) GetSealedSecrets(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSealedSecretsRequest(c.Server, teamId) + 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) CreateSealedSecretWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSealedSecretRequestWithBody(c.Server, teamId, 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) CreateSealedSecret(ctx context.Context, teamId string, body CreateSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateSealedSecretRequest(c.Server, teamId, 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) DeleteSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteSealedSecretRequest(c.Server, teamId, sealedSecretName) + 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) GetSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetSealedSecretRequest(c.Server, teamId, sealedSecretName) + 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) EditSealedSecretWithBody(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditSealedSecretRequestWithBody(c.Server, teamId, sealedSecretName, 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) EditSealedSecret(ctx context.Context, teamId string, sealedSecretName string, body EditSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditSealedSecretRequest(c.Server, teamId, sealedSecretName, 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) GetTeamServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamServicesRequest(c.Server, teamId) + 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) CreateServiceWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateServiceRequestWithBody(c.Server, teamId, 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) CreateService(ctx context.Context, teamId string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateServiceRequest(c.Server, teamId, 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) DeleteService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteServiceRequest(c.Server, teamId, serviceName) + 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) GetService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetServiceRequest(c.Server, teamId, serviceName) + 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) EditServiceWithBody(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditServiceRequestWithBody(c.Server, teamId, serviceName, 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) EditService(ctx context.Context, teamId string, serviceName string, body EditServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditServiceRequest(c.Server, teamId, serviceName, 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) EditTeamUsersWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditTeamUsersRequestWithBody(c.Server, teamId, 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) EditTeamUsers(ctx context.Context, teamId string, body EditTeamUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditTeamUsersRequest(c.Server, teamId, 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) GetTeamWorkloads(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamWorkloadsRequest(c.Server, teamId) + 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) CreateWorkloadWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadRequestWithBody(c.Server, teamId, 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) CreateWorkload(ctx context.Context, teamId string, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateWorkloadRequest(c.Server, teamId, 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) DeleteWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteWorkloadRequest(c.Server, teamId, workloadName) + 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) GetWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkloadRequest(c.Server, teamId, workloadName) + 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) EditWorkloadWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditWorkloadRequestWithBody(c.Server, teamId, workloadName, 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) EditWorkload(ctx context.Context, teamId string, workloadName string, body EditWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditWorkloadRequest(c.Server, teamId, workloadName, 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) GetWorkloadValues(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetWorkloadValuesRequest(c.Server, teamId, workloadName) + 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) EditWorkloadValuesWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditWorkloadValuesRequestWithBody(c.Server, teamId, workloadName, 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) EditWorkloadValues(ctx context.Context, teamId string, workloadName string, body EditWorkloadValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditWorkloadValuesRequest(c.Server, teamId, workloadName, 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) GetTestRepoConnect(ctx context.Context, params *GetTestRepoConnectParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTestRepoConnectRequest(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) GetAllUsers(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllUsersRequest(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) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateUserRequestWithBody(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) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateUserRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteUser(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteUserRequest(c.Server, userId) + 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, userId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetUserRequest(c.Server, userId) + 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) EditUserWithBody(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditUserRequestWithBody(c.Server, userId, 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) EditUser(ctx context.Context, userId string, body EditUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditUserRequest(c.Server, userId, 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) WorkloadCatalogWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadCatalogRequestWithBody(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) WorkloadCatalog(ctx context.Context, body WorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewWorkloadCatalogRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) GetAllWorkloads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllWorkloadsRequest(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) GetAllAplBackups(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplBackupsRequest(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) GetAllAplBuilds(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplBuildsRequest(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) DeleteAplCloudtty(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplCloudttyRequest(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) ConnectAplCloudtty(ctx context.Context, params *ConnectAplCloudttyParams, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewConnectAplCloudttyRequest(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) GetAllAplCodeRepos(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplCodeReposRequest(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) GetAllAplNetpols(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplNetpolsRequest(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) GetAllAplPolicies(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplPoliciesRequest(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) GetAllAplSecrets(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplSecretsRequest(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) GetAllAplServices(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplServicesRequest(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) GetAplTeams(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplTeamsRequest(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) CreateAplTeamWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplTeamRequestWithBody(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) CreateAplTeam(ctx context.Context, body CreateAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplTeamRequest(c.Server, body) + if err != nil { + return nil, err + } + req = req.WithContext(ctx) + if err := c.applyEditors(ctx, req, reqEditors); err != nil { + return nil, err + } + return c.Client.Do(req) +} + +func (c *Client) DeleteAplTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplTeamRequest(c.Server, teamId) + 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) GetAplTeam(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplTeamRequest(c.Server, teamId) + 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) EditAplTeamWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplTeamRequestWithBody(c.Server, teamId, 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) EditAplTeam(ctx context.Context, teamId string, body EditAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplTeamRequest(c.Server, teamId, 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) GetTeamAplBackups(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplBackupsRequest(c.Server, teamId) + 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) CreateAplBackupWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplBackupRequestWithBody(c.Server, teamId, 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) CreateAplBackup(ctx context.Context, teamId string, body CreateAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplBackupRequest(c.Server, teamId, 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) DeleteAplBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplBackupRequest(c.Server, teamId, backupName) + 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) GetAplBackup(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplBackupRequest(c.Server, teamId, backupName) + 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) EditAplBackupWithBody(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplBackupRequestWithBody(c.Server, teamId, backupName, 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) EditAplBackup(ctx context.Context, teamId string, backupName string, body EditAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplBackupRequest(c.Server, teamId, backupName, 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) GetTeamAplBuilds(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplBuildsRequest(c.Server, teamId) + 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) CreateAplBuildWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplBuildRequestWithBody(c.Server, teamId, 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) CreateAplBuild(ctx context.Context, teamId string, body CreateAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplBuildRequest(c.Server, teamId, 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) DeleteAplBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplBuildRequest(c.Server, teamId, buildName) + 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) GetAplBuild(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplBuildRequest(c.Server, teamId, buildName) + 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) EditAplBuildWithBody(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplBuildRequestWithBody(c.Server, teamId, buildName, 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) EditAplBuild(ctx context.Context, teamId string, buildName string, body EditAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplBuildRequest(c.Server, teamId, buildName, 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) GetTeamAplCodeRepos(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplCodeReposRequest(c.Server, teamId) + 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) CreateAplCodeRepoWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplCodeRepoRequestWithBody(c.Server, teamId, 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) CreateAplCodeRepo(ctx context.Context, teamId string, body CreateAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplCodeRepoRequest(c.Server, teamId, 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) DeleteAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplCodeRepoRequest(c.Server, teamId, codeRepositoryName) + 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) GetAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplCodeRepoRequest(c.Server, teamId, codeRepositoryName) + 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) EditAplCodeRepoWithBody(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplCodeRepoRequestWithBody(c.Server, teamId, codeRepositoryName, 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) EditAplCodeRepo(ctx context.Context, teamId string, codeRepositoryName string, body EditAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplCodeRepoRequest(c.Server, teamId, codeRepositoryName, 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) GetTeamAplNetpols(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplNetpolsRequest(c.Server, teamId) + 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) CreateAplNetpolWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplNetpolRequestWithBody(c.Server, teamId, 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) CreateAplNetpol(ctx context.Context, teamId string, body CreateAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplNetpolRequest(c.Server, teamId, 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) DeleteAplNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplNetpolRequest(c.Server, teamId, netpolName) + 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) GetAplNetpol(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplNetpolRequest(c.Server, teamId, netpolName) + 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) EditAplNetpolWithBody(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplNetpolRequestWithBody(c.Server, teamId, netpolName, 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) EditAplNetpol(ctx context.Context, teamId string, netpolName string, body EditAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplNetpolRequest(c.Server, teamId, netpolName, 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) GetTeamAplPolicies(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplPoliciesRequest(c.Server, teamId) + 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) GetAplPolicy(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplPolicyRequest(c.Server, teamId, policyName) + 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) EditAplPolicyWithBody(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplPolicyRequestWithBody(c.Server, teamId, policyName, 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) EditAplPolicy(ctx context.Context, teamId string, policyName string, body EditAplPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplPolicyRequest(c.Server, teamId, policyName, 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) GetAplSealedSecrets(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplSealedSecretsRequest(c.Server, teamId) + 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) CreateAplSealedSecretWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplSealedSecretRequestWithBody(c.Server, teamId, 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) CreateAplSealedSecret(ctx context.Context, teamId string, body CreateAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplSealedSecretRequest(c.Server, teamId, 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) DeleteAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplSealedSecretRequest(c.Server, teamId, sealedSecretName) + 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) GetAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplSealedSecretRequest(c.Server, teamId, sealedSecretName) + 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) EditAplSealedSecretWithBody(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplSealedSecretRequestWithBody(c.Server, teamId, sealedSecretName, 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) EditAplSealedSecret(ctx context.Context, teamId string, sealedSecretName string, body EditAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplSealedSecretRequest(c.Server, teamId, sealedSecretName, 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) GetTeamAplServices(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplServicesRequest(c.Server, teamId) + 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) CreateAplServiceWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplServiceRequestWithBody(c.Server, teamId, 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) CreateAplService(ctx context.Context, teamId string, body CreateAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplServiceRequest(c.Server, teamId, 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) DeleteAplService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplServiceRequest(c.Server, teamId, serviceName) + 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) GetAplService(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplServiceRequest(c.Server, teamId, serviceName) + 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) EditAplServiceWithBody(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplServiceRequestWithBody(c.Server, teamId, serviceName, 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) EditAplService(ctx context.Context, teamId string, serviceName string, body EditAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplServiceRequest(c.Server, teamId, serviceName, 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) GetTeamAplWorkloads(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetTeamAplWorkloadsRequest(c.Server, teamId) + 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) CreateAplWorkloadWithBody(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplWorkloadRequestWithBody(c.Server, teamId, 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) CreateAplWorkload(ctx context.Context, teamId string, body CreateAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewCreateAplWorkloadRequest(c.Server, teamId, 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) DeleteAplWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewDeleteAplWorkloadRequest(c.Server, teamId, workloadName) + 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) GetAplWorkload(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAplWorkloadRequest(c.Server, teamId, workloadName) + 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) EditAplWorkloadWithBody(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplWorkloadRequestWithBody(c.Server, teamId, workloadName, 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) EditAplWorkload(ctx context.Context, teamId string, workloadName string, body EditAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewEditAplWorkloadRequest(c.Server, teamId, workloadName, 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) GetAllAplWorkloadNames(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplWorkloadNamesRequest(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) GetAllAplWorkloads(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) { + req, err := NewGetAllAplWorkloadsRequest(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) +} + +// NewGetAIModelsRequest generates requests for GetAIModels +func NewGetAIModelsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/ai/models") + 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 +} + +// NewGetAplAgentsRequest generates requests for GetAplAgents +func NewGetAplAgentsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/agents", 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 +} + +// NewCreateAplAgentRequest calls the generic CreateAplAgent builder with application/json body +func NewCreateAplAgentRequest(server string, teamId string, body CreateAplAgentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplAgentRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplAgentRequestWithBody generates requests for CreateAplAgent with any type of body +func NewCreateAplAgentRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%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) + + return req, nil +} + +// NewDeleteAplAgentRequest generates requests for DeleteAplAgent +func NewDeleteAplAgentRequest(server string, teamId string, agentName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "agentName", agentName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%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 + } + + return req, nil +} + +// NewGetAplAgentRequest generates requests for GetAplAgent +func NewGetAplAgentRequest(server string, teamId string, agentName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "agentName", agentName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%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("GET", queryURL.String(), nil) + if err != nil { + return nil, err + } + + return req, nil +} + +// NewEditAplAgentRequest calls the generic EditAplAgent builder with application/json body +func NewEditAplAgentRequest(server string, teamId string, agentName string, body EditAplAgentJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplAgentRequestWithBody(server, teamId, agentName, "application/json", bodyReader) +} + +// NewEditAplAgentRequestWithBody generates requests for EditAplAgent with any type of body +func NewEditAplAgentRequestWithBody(server string, teamId string, agentName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "agentName", agentName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%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("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAplKnowledgeBasesRequest generates requests for GetAplKnowledgeBases +func NewGetAplKnowledgeBasesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/kb", 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 +} + +// NewCreateAplKnowledgeBaseRequest calls the generic CreateAplKnowledgeBase builder with application/json body +func NewCreateAplKnowledgeBaseRequest(server string, teamId string, body CreateAplKnowledgeBaseJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplKnowledgeBaseRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplKnowledgeBaseRequestWithBody generates requests for CreateAplKnowledgeBase with any type of body +func NewCreateAplKnowledgeBaseRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/kb", 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) + + return req, nil +} + +// NewDeleteAplKnowledgeBaseRequest generates requests for DeleteAplKnowledgeBase +func NewDeleteAplKnowledgeBaseRequest(server string, teamId string, knowledgeBaseName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "knowledgeBaseName", knowledgeBaseName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/kb/%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 + } + + return req, nil +} + +// NewGetAplKnowledgeBaseRequest generates requests for GetAplKnowledgeBase +func NewGetAplKnowledgeBaseRequest(server string, teamId string, knowledgeBaseName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "knowledgeBaseName", knowledgeBaseName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/kb/%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 + } + + return req, nil +} + +// NewEditAplKnowledgeBaseRequest calls the generic EditAplKnowledgeBase builder with application/json body +func NewEditAplKnowledgeBaseRequest(server string, teamId string, knowledgeBaseName string, body EditAplKnowledgeBaseJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplKnowledgeBaseRequestWithBody(server, teamId, knowledgeBaseName, "application/json", bodyReader) +} + +// NewEditAplKnowledgeBaseRequestWithBody generates requests for EditAplKnowledgeBase with any type of body +func NewEditAplKnowledgeBaseRequestWithBody(server string, teamId string, knowledgeBaseName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "knowledgeBaseName", knowledgeBaseName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/alpha/teams/%s/kb/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewV1apiDocsRequest generates requests for V1apiDocs +func NewV1apiDocsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/apiDocs") + 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 +} + +// NewGetAppsRequest generates requests for GetApps +func NewGetAppsRequest(server string, teamId string, params *GetAppsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/apps/%s", 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.Picks != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "picks", *params.Picks, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); 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 + } + + return req, nil +} + +// NewToggleAppsRequest calls the generic ToggleApps builder with application/json body +func NewToggleAppsRequest(server string, teamId string, body ToggleAppsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewToggleAppsRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewToggleAppsRequestWithBody generates requests for ToggleApps with any type of body +func NewToggleAppsRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/apps/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAppRequest generates requests for GetApp +func NewGetAppRequest(server string, teamId string, appId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "appId", appId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/apps/%s/%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 + } + + return req, nil +} + +// NewEditAppRequest calls the generic EditApp builder with application/json body +func NewEditAppRequest(server string, teamId string, appId string, body EditAppJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAppRequestWithBody(server, teamId, appId, "application/json", bodyReader) +} + +// NewEditAppRequestWithBody generates requests for EditApp with any type of body +func NewEditAppRequestWithBody(server string, teamId string, appId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "appId", appId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/apps/%s/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllBackupsRequest generates requests for GetAllBackups +func NewGetAllBackupsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/backups") + 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 +} + +// NewGetAllBuildsRequest generates requests for GetAllBuilds +func NewGetAllBuildsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/builds") + 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 +} + +// NewDeleteCloudttyRequest generates requests for DeleteCloudtty +func NewDeleteCloudttyRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cloudtty") + 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 + } + + return req, nil +} + +// NewConnectCloudttyRequest generates requests for ConnectCloudtty +func NewConnectCloudttyRequest(server string, params *ConnectCloudttyParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/cloudtty") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TeamId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamId", *params.TeamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetAllCodeReposRequest generates requests for GetAllCodeRepos +func NewGetAllCodeReposRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/coderepos") + 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 +} + +// NewCreateWorkloadCatalogRequest calls the generic CreateWorkloadCatalog builder with application/json body +func NewCreateWorkloadCatalogRequest(server string, body CreateWorkloadCatalogJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkloadCatalogRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateWorkloadCatalogRequestWithBody generates requests for CreateWorkloadCatalog with any type of body +func NewCreateWorkloadCatalogRequestWithBody(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("/v1/createWorkloadCatalog") + 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 +} + +// NewGetDashboardRequest generates requests for GetDashboard +func NewGetDashboardRequest(server string, params *GetDashboardParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/dashboard") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TeamName != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamName", *params.TeamName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewDownloadDockerConfigRequest generates requests for DownloadDockerConfig +func NewDownloadDockerConfigRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/dockerconfig/%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 + } + + return req, nil +} + +// NewGetHelmChartContentRequest generates requests for GetHelmChartContent +func NewGetHelmChartContentRequest(server string, params *GetHelmChartContentParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/helmChartContent") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Url != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "url", *params.Url, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetInternalRepoUrlsRequest generates requests for GetInternalRepoUrls +func NewGetInternalRepoUrlsRequest(server string, params *GetInternalRepoUrlsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/internalRepoUrls") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TeamId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamId", *params.TeamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetK8sVersionRequest generates requests for GetK8sVersion +func NewGetK8sVersionRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/k8sVersion") + 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 +} + +// NewDownloadKubecfgRequest generates requests for DownloadKubecfg +func NewDownloadKubecfgRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/kubecfg/%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 + } + + return req, nil +} + +// NewGetAllNetpolsRequest generates requests for GetAllNetpols +func NewGetAllNetpolsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/netpols") + 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 +} + +// NewCreateObjWizardRequest calls the generic CreateObjWizard builder with application/json body +func NewCreateObjWizardRequest(server string, body CreateObjWizardJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateObjWizardRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateObjWizardRequestWithBody generates requests for CreateObjWizard with any type of body +func NewCreateObjWizardRequestWithBody(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("/v1/objwizard") + 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 +} + +// NewGetValuesRequest generates requests for GetValues +func NewGetValuesRequest(server string, params *GetValuesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/otomi/values") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.FilesOnly != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "filesOnly", *params.FilesOnly, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.ExcludeSecrets != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "excludeSecrets", *params.ExcludeSecrets, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.WithWorkloadValues != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "withWorkloadValues", *params.WithWorkloadValues, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetAllPoliciesRequest generates requests for GetAllPolicies +func NewGetAllPoliciesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/policies") + 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 +} + +// NewGetRepoBranchesRequest generates requests for GetRepoBranches +func NewGetRepoBranchesRequest(server string, params *GetRepoBranchesParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/repoBranches") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.CodeRepoName != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "codeRepoName", *params.CodeRepoName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.TeamId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamId", *params.TeamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetAllSealedSecretsRequest generates requests for GetAllSealedSecrets +func NewGetAllSealedSecretsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/sealedsecrets") + 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 +} + +// NewDownloadSealedSecretKeysRequest generates requests for DownloadSealedSecretKeys +func NewDownloadSealedSecretKeysRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/sealedsecretskeys") + 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 +} + +// NewGetAllServicesRequest generates requests for GetAllServices +func NewGetAllServicesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/services") + 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 +} + +// NewGetSessionRequest generates requests for GetSession +func NewGetSessionRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/session") + 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 +} + +// NewGetSettingsRequest generates requests for GetSettings +func NewGetSettingsRequest(server string, params *GetSettingsParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/settings") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Ids != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "ids", *params.Ids, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "array", Format: ""}); 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 + } + + return req, nil +} + +// NewEditSettingsRequest calls the generic EditSettings builder with application/json body +func NewEditSettingsRequest(server string, settingId string, body EditSettingsJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditSettingsRequestWithBody(server, settingId, "application/json", bodyReader) +} + +// NewEditSettingsRequestWithBody generates requests for EditSettings with any type of body +func NewEditSettingsRequestWithBody(server string, settingId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "settingId", settingId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/settings/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetSettingsInfoRequest generates requests for GetSettingsInfo +func NewGetSettingsInfoRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/settingsInfo") + 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 +} + +// NewGetTeamsRequest generates requests for GetTeams +func NewGetTeamsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams") + 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 +} + +// NewCreateTeamRequest calls the generic CreateTeam builder with application/json body +func NewCreateTeamRequest(server string, body CreateTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateTeamRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateTeamRequestWithBody generates requests for CreateTeam with any type of body +func NewCreateTeamRequestWithBody(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("/v1/teams") + 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 +} + +// NewDeleteTeamRequest generates requests for DeleteTeam +func NewDeleteTeamRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%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 + } + + return req, nil +} + +// NewGetTeamRequest generates requests for GetTeam +func NewGetTeamRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%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 + } + + return req, nil +} + +// NewEditTeamRequest calls the generic EditTeam builder with application/json body +func NewEditTeamRequest(server string, teamId string, body EditTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditTeamRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewEditTeamRequestWithBody generates requests for EditTeam with any type of body +func NewEditTeamRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamBackupsRequest generates requests for GetTeamBackups +func NewGetTeamBackupsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/backups", 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 +} + +// NewCreateBackupRequest calls the generic CreateBackup builder with application/json body +func NewCreateBackupRequest(server string, teamId string, body CreateBackupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateBackupRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateBackupRequestWithBody generates requests for CreateBackup with any type of body +func NewCreateBackupRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/backups", 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) + + return req, nil +} + +// NewDeleteBackupRequest generates requests for DeleteBackup +func NewDeleteBackupRequest(server string, teamId string, backupName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/backups/%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 + } + + return req, nil +} + +// NewGetBackupRequest generates requests for GetBackup +func NewGetBackupRequest(server string, teamId string, backupName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/backups/%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 + } + + return req, nil +} + +// NewEditBackupRequest calls the generic EditBackup builder with application/json body +func NewEditBackupRequest(server string, teamId string, backupName string, body EditBackupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditBackupRequestWithBody(server, teamId, backupName, "application/json", bodyReader) +} + +// NewEditBackupRequestWithBody generates requests for EditBackup with any type of body +func NewEditBackupRequestWithBody(server string, teamId string, backupName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/backups/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamBuildsRequest generates requests for GetTeamBuilds +func NewGetTeamBuildsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/builds", 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 +} + +// NewCreateBuildRequest calls the generic CreateBuild builder with application/json body +func NewCreateBuildRequest(server string, teamId string, body CreateBuildJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateBuildRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateBuildRequestWithBody generates requests for CreateBuild with any type of body +func NewCreateBuildRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/builds", 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) + + return req, nil +} + +// NewDeleteBuildRequest generates requests for DeleteBuild +func NewDeleteBuildRequest(server string, teamId string, buildName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/builds/%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 + } + + return req, nil +} + +// NewGetBuildRequest generates requests for GetBuild +func NewGetBuildRequest(server string, teamId string, buildName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/builds/%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 + } + + return req, nil +} + +// NewEditBuildRequest calls the generic EditBuild builder with application/json body +func NewEditBuildRequest(server string, teamId string, buildName string, body EditBuildJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditBuildRequestWithBody(server, teamId, buildName, "application/json", bodyReader) +} + +// NewEditBuildRequestWithBody generates requests for EditBuild with any type of body +func NewEditBuildRequestWithBody(server string, teamId string, buildName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/builds/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamCodeReposRequest generates requests for GetTeamCodeRepos +func NewGetTeamCodeReposRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/coderepos", 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 +} + +// NewCreateCodeRepoRequest calls the generic CreateCodeRepo builder with application/json body +func NewCreateCodeRepoRequest(server string, teamId string, body CreateCodeRepoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateCodeRepoRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateCodeRepoRequestWithBody generates requests for CreateCodeRepo with any type of body +func NewCreateCodeRepoRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/coderepos", 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) + + return req, nil +} + +// NewDeleteCodeRepoRequest generates requests for DeleteCodeRepo +func NewDeleteCodeRepoRequest(server string, teamId string, codeRepositoryName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/coderepos/%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 + } + + return req, nil +} + +// NewGetCodeRepoRequest generates requests for GetCodeRepo +func NewGetCodeRepoRequest(server string, teamId string, codeRepositoryName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/coderepos/%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 + } + + return req, nil +} + +// NewEditCodeRepoRequest calls the generic EditCodeRepo builder with application/json body +func NewEditCodeRepoRequest(server string, teamId string, codeRepositoryName string, body EditCodeRepoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditCodeRepoRequestWithBody(server, teamId, codeRepositoryName, "application/json", bodyReader) +} + +// NewEditCodeRepoRequestWithBody generates requests for EditCodeRepo with any type of body +func NewEditCodeRepoRequestWithBody(server string, teamId string, codeRepositoryName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/coderepos/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetSecretsFromK8sRequest generates requests for GetSecretsFromK8s +func NewGetSecretsFromK8sRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/k8sSecrets", 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 +} + +// NewListUniquePodNamesByLabelRequest generates requests for ListUniquePodNamesByLabel +func NewListUniquePodNamesByLabelRequest(server string, teamId string, params *ListUniquePodNamesByLabelParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/kubernetes/fetchPodsFromLabel", 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.LabelSelector != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "labelSelector", *params.LabelSelector, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.Namespace != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "namespace", *params.Namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetK8SWorkloadPodLabelsRequest generates requests for GetK8SWorkloadPodLabels +func NewGetK8SWorkloadPodLabelsRequest(server string, teamId string, params *GetK8SWorkloadPodLabelsParams) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/kubernetes/networkpolicies", 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.WorkloadName != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "workloadName", *params.WorkloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.Namespace != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "namespace", *params.Namespace, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetTeamK8sServicesRequest generates requests for GetTeamK8sServices +func NewGetTeamK8sServicesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/kubernetes/services", 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 +} + +// NewGetTeamNetpolsRequest generates requests for GetTeamNetpols +func NewGetTeamNetpolsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/netpols", 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 +} + +// NewCreateNetpolRequest calls the generic CreateNetpol builder with application/json body +func NewCreateNetpolRequest(server string, teamId string, body CreateNetpolJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateNetpolRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateNetpolRequestWithBody generates requests for CreateNetpol with any type of body +func NewCreateNetpolRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/netpols", 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) + + return req, nil +} + +// NewDeleteNetpolRequest generates requests for DeleteNetpol +func NewDeleteNetpolRequest(server string, teamId string, netpolName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/netpols/%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 + } + + return req, nil +} + +// NewGetNetpolRequest generates requests for GetNetpol +func NewGetNetpolRequest(server string, teamId string, netpolName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/netpols/%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 + } + + return req, nil +} + +// NewEditNetpolRequest calls the generic EditNetpol builder with application/json body +func NewEditNetpolRequest(server string, teamId string, netpolName string, body EditNetpolJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditNetpolRequestWithBody(server, teamId, netpolName, "application/json", bodyReader) +} + +// NewEditNetpolRequestWithBody generates requests for EditNetpol with any type of body +func NewEditNetpolRequestWithBody(server string, teamId string, netpolName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/netpols/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamPoliciesRequest generates requests for GetTeamPolicies +func NewGetTeamPoliciesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/policies", 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 +} + +// NewGetPolicyRequest generates requests for GetPolicy +func NewGetPolicyRequest(server string, teamId string, policyName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "policyName", policyName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/policies/%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 + } + + return req, nil +} + +// NewEditPolicyRequest calls the generic EditPolicy builder with application/json body +func NewEditPolicyRequest(server string, teamId string, policyName string, body EditPolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditPolicyRequestWithBody(server, teamId, policyName, "application/json", bodyReader) +} + +// NewEditPolicyRequestWithBody generates requests for EditPolicy with any type of body +func NewEditPolicyRequestWithBody(server string, teamId string, policyName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "policyName", policyName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetSealedSecretsRequest generates requests for GetSealedSecrets +func NewGetSealedSecretsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/sealedsecrets", 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 +} + +// NewCreateSealedSecretRequest calls the generic CreateSealedSecret builder with application/json body +func NewCreateSealedSecretRequest(server string, teamId string, body CreateSealedSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateSealedSecretRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateSealedSecretRequestWithBody generates requests for CreateSealedSecret with any type of body +func NewCreateSealedSecretRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/sealedsecrets", 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) + + return req, nil +} + +// NewDeleteSealedSecretRequest generates requests for DeleteSealedSecret +func NewDeleteSealedSecretRequest(server string, teamId string, sealedSecretName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/sealedsecrets/%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 + } + + return req, nil +} + +// NewGetSealedSecretRequest generates requests for GetSealedSecret +func NewGetSealedSecretRequest(server string, teamId string, sealedSecretName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/sealedsecrets/%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 + } + + return req, nil +} + +// NewEditSealedSecretRequest calls the generic EditSealedSecret builder with application/json body +func NewEditSealedSecretRequest(server string, teamId string, sealedSecretName string, body EditSealedSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditSealedSecretRequestWithBody(server, teamId, sealedSecretName, "application/json", bodyReader) +} + +// NewEditSealedSecretRequestWithBody generates requests for EditSealedSecret with any type of body +func NewEditSealedSecretRequestWithBody(server string, teamId string, sealedSecretName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/sealedsecrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamServicesRequest generates requests for GetTeamServices +func NewGetTeamServicesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/services", 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 +} + +// NewCreateServiceRequest calls the generic CreateService builder with application/json body +func NewCreateServiceRequest(server string, teamId string, body CreateServiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateServiceRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateServiceRequestWithBody generates requests for CreateService with any type of body +func NewCreateServiceRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/services", 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) + + return req, nil +} + +// NewDeleteServiceRequest generates requests for DeleteService +func NewDeleteServiceRequest(server string, teamId string, serviceName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/services/%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 + } + + return req, nil +} + +// NewGetServiceRequest generates requests for GetService +func NewGetServiceRequest(server string, teamId string, serviceName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/services/%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 + } + + return req, nil +} + +// NewEditServiceRequest calls the generic EditService builder with application/json body +func NewEditServiceRequest(server string, teamId string, serviceName string, body EditServiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditServiceRequestWithBody(server, teamId, serviceName, "application/json", bodyReader) +} + +// NewEditServiceRequestWithBody generates requests for EditService with any type of body +func NewEditServiceRequestWithBody(server string, teamId string, serviceName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/services/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewEditTeamUsersRequest calls the generic EditTeamUsers builder with application/json body +func NewEditTeamUsersRequest(server string, teamId string, body EditTeamUsersJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditTeamUsersRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewEditTeamUsersRequestWithBody generates requests for EditTeamUsers with any type of body +func NewEditTeamUsersRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/users", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamWorkloadsRequest generates requests for GetTeamWorkloads +func NewGetTeamWorkloadsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads", 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 +} + +// NewCreateWorkloadRequest calls the generic CreateWorkload builder with application/json body +func NewCreateWorkloadRequest(server string, teamId string, body CreateWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateWorkloadRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateWorkloadRequestWithBody generates requests for CreateWorkload with any type of body +func NewCreateWorkloadRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads", 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) + + return req, nil +} + +// NewDeleteWorkloadRequest generates requests for DeleteWorkload +func NewDeleteWorkloadRequest(server string, teamId string, workloadName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads/%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 + } + + return req, nil +} + +// NewGetWorkloadRequest generates requests for GetWorkload +func NewGetWorkloadRequest(server string, teamId string, workloadName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads/%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 + } + + return req, nil +} + +// NewEditWorkloadRequest calls the generic EditWorkload builder with application/json body +func NewEditWorkloadRequest(server string, teamId string, workloadName string, body EditWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditWorkloadRequestWithBody(server, teamId, workloadName, "application/json", bodyReader) +} + +// NewEditWorkloadRequestWithBody generates requests for EditWorkload with any type of body +func NewEditWorkloadRequestWithBody(server string, teamId string, workloadName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetWorkloadValuesRequest generates requests for GetWorkloadValues +func NewGetWorkloadValuesRequest(server string, teamId string, workloadName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads/%s/values", 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 + } + + return req, nil +} + +// NewEditWorkloadValuesRequest calls the generic EditWorkloadValues builder with application/json body +func NewEditWorkloadValuesRequest(server string, teamId string, workloadName string, body EditWorkloadValuesJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditWorkloadValuesRequestWithBody(server, teamId, workloadName, "application/json", bodyReader) +} + +// NewEditWorkloadValuesRequestWithBody generates requests for EditWorkloadValues with any type of body +func NewEditWorkloadValuesRequestWithBody(server string, teamId string, workloadName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/teams/%s/workloads/%s/values", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTestRepoConnectRequest generates requests for GetTestRepoConnect +func NewGetTestRepoConnectRequest(server string, params *GetTestRepoConnectParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/testRepoConnect") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.Url != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "url", *params.Url, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.TeamId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamId", *params.TeamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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.Secret != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "secret", *params.Secret, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetAllUsersRequest generates requests for GetAllUsers +func NewGetAllUsersRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/users") + 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 +} + +// NewCreateUserRequest calls the generic CreateUser builder with application/json body +func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateUserRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateUserRequestWithBody generates requests for CreateUser with any type of body +func NewCreateUserRequestWithBody(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("/v1/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) + + return req, nil +} + +// NewDeleteUserRequest generates requests for DeleteUser +func NewDeleteUserRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/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 + } + + return req, nil +} + +// NewGetUserRequest generates requests for GetUser +func NewGetUserRequest(server string, userId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/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 + } + + return req, nil +} + +// NewEditUserRequest calls the generic EditUser builder with application/json body +func NewEditUserRequest(server string, userId string, body EditUserJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditUserRequestWithBody(server, userId, "application/json", bodyReader) +} + +// NewEditUserRequestWithBody generates requests for EditUser with any type of body +func NewEditUserRequestWithBody(server string, userId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "userId", userId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/users/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewWorkloadCatalogRequest calls the generic WorkloadCatalog builder with application/json body +func NewWorkloadCatalogRequest(server string, body WorkloadCatalogJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewWorkloadCatalogRequestWithBody(server, "application/json", bodyReader) +} + +// NewWorkloadCatalogRequestWithBody generates requests for WorkloadCatalog with any type of body +func NewWorkloadCatalogRequestWithBody(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("/v1/workloadCatalog") + 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 +} + +// NewGetAllWorkloadsRequest generates requests for GetAllWorkloads +func NewGetAllWorkloadsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v1/workloads") + 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 +} + +// NewGetAllAplBackupsRequest generates requests for GetAllAplBackups +func NewGetAllAplBackupsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/backups") + 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 +} + +// NewGetAllAplBuildsRequest generates requests for GetAllAplBuilds +func NewGetAllAplBuildsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/builds") + 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 +} + +// NewDeleteAplCloudttyRequest generates requests for DeleteAplCloudtty +func NewDeleteAplCloudttyRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/cloudtty") + 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 + } + + return req, nil +} + +// NewConnectAplCloudttyRequest generates requests for ConnectAplCloudtty +func NewConnectAplCloudttyRequest(server string, params *ConnectAplCloudttyParams) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/cloudtty") + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + if params != nil { + queryValues := queryURL.Query() + + if params.TeamId != nil { + + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "teamId", *params.TeamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); 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 + } + + return req, nil +} + +// NewGetAllAplCodeReposRequest generates requests for GetAllAplCodeRepos +func NewGetAllAplCodeReposRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/coderepos") + 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 +} + +// NewGetAllAplNetpolsRequest generates requests for GetAllAplNetpols +func NewGetAllAplNetpolsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/netpols") + 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 +} + +// NewGetAllAplPoliciesRequest generates requests for GetAllAplPolicies +func NewGetAllAplPoliciesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/policies") + 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 +} + +// NewGetAllAplSecretsRequest generates requests for GetAllAplSecrets +func NewGetAllAplSecretsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/sealedsecrets") + 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 +} + +// NewGetAllAplServicesRequest generates requests for GetAllAplServices +func NewGetAllAplServicesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/services") + 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 +} + +// NewGetAplTeamsRequest generates requests for GetAplTeams +func NewGetAplTeamsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams") + 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 +} + +// NewCreateAplTeamRequest calls the generic CreateAplTeam builder with application/json body +func NewCreateAplTeamRequest(server string, body CreateAplTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplTeamRequestWithBody(server, "application/json", bodyReader) +} + +// NewCreateAplTeamRequestWithBody generates requests for CreateAplTeam with any type of body +func NewCreateAplTeamRequestWithBody(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("/v2/teams") + 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 +} + +// NewDeleteAplTeamRequest generates requests for DeleteAplTeam +func NewDeleteAplTeamRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%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 + } + + return req, nil +} + +// NewGetAplTeamRequest generates requests for GetAplTeam +func NewGetAplTeamRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%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 + } + + return req, nil +} + +// NewEditAplTeamRequest calls the generic EditAplTeam builder with application/json body +func NewEditAplTeamRequest(server string, teamId string, body EditAplTeamJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplTeamRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewEditAplTeamRequestWithBody generates requests for EditAplTeam with any type of body +func NewEditAplTeamRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s", pathParam0) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplBackupsRequest generates requests for GetTeamAplBackups +func NewGetTeamAplBackupsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/backups", 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 +} + +// NewCreateAplBackupRequest calls the generic CreateAplBackup builder with application/json body +func NewCreateAplBackupRequest(server string, teamId string, body CreateAplBackupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplBackupRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplBackupRequestWithBody generates requests for CreateAplBackup with any type of body +func NewCreateAplBackupRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/backups", 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) + + return req, nil +} + +// NewDeleteAplBackupRequest generates requests for DeleteAplBackup +func NewDeleteAplBackupRequest(server string, teamId string, backupName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/backups/%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 + } + + return req, nil +} + +// NewGetAplBackupRequest generates requests for GetAplBackup +func NewGetAplBackupRequest(server string, teamId string, backupName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/backups/%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 + } + + return req, nil +} + +// NewEditAplBackupRequest calls the generic EditAplBackup builder with application/json body +func NewEditAplBackupRequest(server string, teamId string, backupName string, body EditAplBackupJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplBackupRequestWithBody(server, teamId, backupName, "application/json", bodyReader) +} + +// NewEditAplBackupRequestWithBody generates requests for EditAplBackup with any type of body +func NewEditAplBackupRequestWithBody(server string, teamId string, backupName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "backupName", backupName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/backups/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplBuildsRequest generates requests for GetTeamAplBuilds +func NewGetTeamAplBuildsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/builds", 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 +} + +// NewCreateAplBuildRequest calls the generic CreateAplBuild builder with application/json body +func NewCreateAplBuildRequest(server string, teamId string, body CreateAplBuildJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplBuildRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplBuildRequestWithBody generates requests for CreateAplBuild with any type of body +func NewCreateAplBuildRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/builds", 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) + + return req, nil +} + +// NewDeleteAplBuildRequest generates requests for DeleteAplBuild +func NewDeleteAplBuildRequest(server string, teamId string, buildName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/builds/%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 + } + + return req, nil +} + +// NewGetAplBuildRequest generates requests for GetAplBuild +func NewGetAplBuildRequest(server string, teamId string, buildName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/builds/%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 + } + + return req, nil +} + +// NewEditAplBuildRequest calls the generic EditAplBuild builder with application/json body +func NewEditAplBuildRequest(server string, teamId string, buildName string, body EditAplBuildJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplBuildRequestWithBody(server, teamId, buildName, "application/json", bodyReader) +} + +// NewEditAplBuildRequestWithBody generates requests for EditAplBuild with any type of body +func NewEditAplBuildRequestWithBody(server string, teamId string, buildName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "buildName", buildName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/builds/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplCodeReposRequest generates requests for GetTeamAplCodeRepos +func NewGetTeamAplCodeReposRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/coderepos", 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 +} + +// NewCreateAplCodeRepoRequest calls the generic CreateAplCodeRepo builder with application/json body +func NewCreateAplCodeRepoRequest(server string, teamId string, body CreateAplCodeRepoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplCodeRepoRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplCodeRepoRequestWithBody generates requests for CreateAplCodeRepo with any type of body +func NewCreateAplCodeRepoRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/coderepos", 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) + + return req, nil +} + +// NewDeleteAplCodeRepoRequest generates requests for DeleteAplCodeRepo +func NewDeleteAplCodeRepoRequest(server string, teamId string, codeRepositoryName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/coderepos/%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 + } + + return req, nil +} + +// NewGetAplCodeRepoRequest generates requests for GetAplCodeRepo +func NewGetAplCodeRepoRequest(server string, teamId string, codeRepositoryName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/coderepos/%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 + } + + return req, nil +} + +// NewEditAplCodeRepoRequest calls the generic EditAplCodeRepo builder with application/json body +func NewEditAplCodeRepoRequest(server string, teamId string, codeRepositoryName string, body EditAplCodeRepoJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplCodeRepoRequestWithBody(server, teamId, codeRepositoryName, "application/json", bodyReader) +} + +// NewEditAplCodeRepoRequestWithBody generates requests for EditAplCodeRepo with any type of body +func NewEditAplCodeRepoRequestWithBody(server string, teamId string, codeRepositoryName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "codeRepositoryName", codeRepositoryName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/coderepos/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplNetpolsRequest generates requests for GetTeamAplNetpols +func NewGetTeamAplNetpolsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/netpols", 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 +} + +// NewCreateAplNetpolRequest calls the generic CreateAplNetpol builder with application/json body +func NewCreateAplNetpolRequest(server string, teamId string, body CreateAplNetpolJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplNetpolRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplNetpolRequestWithBody generates requests for CreateAplNetpol with any type of body +func NewCreateAplNetpolRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/netpols", 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) + + return req, nil +} + +// NewDeleteAplNetpolRequest generates requests for DeleteAplNetpol +func NewDeleteAplNetpolRequest(server string, teamId string, netpolName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/netpols/%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 + } + + return req, nil +} + +// NewGetAplNetpolRequest generates requests for GetAplNetpol +func NewGetAplNetpolRequest(server string, teamId string, netpolName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/netpols/%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 + } + + return req, nil +} + +// NewEditAplNetpolRequest calls the generic EditAplNetpol builder with application/json body +func NewEditAplNetpolRequest(server string, teamId string, netpolName string, body EditAplNetpolJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplNetpolRequestWithBody(server, teamId, netpolName, "application/json", bodyReader) +} + +// NewEditAplNetpolRequestWithBody generates requests for EditAplNetpol with any type of body +func NewEditAplNetpolRequestWithBody(server string, teamId string, netpolName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "netpolName", netpolName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/netpols/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplPoliciesRequest generates requests for GetTeamAplPolicies +func NewGetTeamAplPoliciesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/policies", 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 +} + +// NewGetAplPolicyRequest generates requests for GetAplPolicy +func NewGetAplPolicyRequest(server string, teamId string, policyName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "policyName", policyName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/policies/%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 + } + + return req, nil +} + +// NewEditAplPolicyRequest calls the generic EditAplPolicy builder with application/json body +func NewEditAplPolicyRequest(server string, teamId string, policyName string, body EditAplPolicyJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplPolicyRequestWithBody(server, teamId, policyName, "application/json", bodyReader) +} + +// NewEditAplPolicyRequestWithBody generates requests for EditAplPolicy with any type of body +func NewEditAplPolicyRequestWithBody(server string, teamId string, policyName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "policyName", policyName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/policies/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAplSealedSecretsRequest generates requests for GetAplSealedSecrets +func NewGetAplSealedSecretsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/sealedsecrets", 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 +} + +// NewCreateAplSealedSecretRequest calls the generic CreateAplSealedSecret builder with application/json body +func NewCreateAplSealedSecretRequest(server string, teamId string, body CreateAplSealedSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplSealedSecretRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplSealedSecretRequestWithBody generates requests for CreateAplSealedSecret with any type of body +func NewCreateAplSealedSecretRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/sealedsecrets", 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) + + return req, nil +} + +// NewDeleteAplSealedSecretRequest generates requests for DeleteAplSealedSecret +func NewDeleteAplSealedSecretRequest(server string, teamId string, sealedSecretName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/sealedsecrets/%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 + } + + return req, nil +} + +// NewGetAplSealedSecretRequest generates requests for GetAplSealedSecret +func NewGetAplSealedSecretRequest(server string, teamId string, sealedSecretName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/sealedsecrets/%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 + } + + return req, nil +} + +// NewEditAplSealedSecretRequest calls the generic EditAplSealedSecret builder with application/json body +func NewEditAplSealedSecretRequest(server string, teamId string, sealedSecretName string, body EditAplSealedSecretJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplSealedSecretRequestWithBody(server, teamId, sealedSecretName, "application/json", bodyReader) +} + +// NewEditAplSealedSecretRequestWithBody generates requests for EditAplSealedSecret with any type of body +func NewEditAplSealedSecretRequestWithBody(server string, teamId string, sealedSecretName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "sealedSecretName", sealedSecretName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/sealedsecrets/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplServicesRequest generates requests for GetTeamAplServices +func NewGetTeamAplServicesRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/services", 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 +} + +// NewCreateAplServiceRequest calls the generic CreateAplService builder with application/json body +func NewCreateAplServiceRequest(server string, teamId string, body CreateAplServiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplServiceRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplServiceRequestWithBody generates requests for CreateAplService with any type of body +func NewCreateAplServiceRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/services", 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) + + return req, nil +} + +// NewDeleteAplServiceRequest generates requests for DeleteAplService +func NewDeleteAplServiceRequest(server string, teamId string, serviceName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/services/%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 + } + + return req, nil +} + +// NewGetAplServiceRequest generates requests for GetAplService +func NewGetAplServiceRequest(server string, teamId string, serviceName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/services/%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 + } + + return req, nil +} + +// NewEditAplServiceRequest calls the generic EditAplService builder with application/json body +func NewEditAplServiceRequest(server string, teamId string, serviceName string, body EditAplServiceJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplServiceRequestWithBody(server, teamId, serviceName, "application/json", bodyReader) +} + +// NewEditAplServiceRequestWithBody generates requests for EditAplService with any type of body +func NewEditAplServiceRequestWithBody(server string, teamId string, serviceName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "serviceName", serviceName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/services/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetTeamAplWorkloadsRequest generates requests for GetTeamAplWorkloads +func NewGetTeamAplWorkloadsRequest(server string, teamId string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/workloads", 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 +} + +// NewCreateAplWorkloadRequest calls the generic CreateAplWorkload builder with application/json body +func NewCreateAplWorkloadRequest(server string, teamId string, body CreateAplWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewCreateAplWorkloadRequestWithBody(server, teamId, "application/json", bodyReader) +} + +// NewCreateAplWorkloadRequestWithBody generates requests for CreateAplWorkload with any type of body +func NewCreateAplWorkloadRequestWithBody(server string, teamId string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/workloads", 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) + + return req, nil +} + +// NewDeleteAplWorkloadRequest generates requests for DeleteAplWorkload +func NewDeleteAplWorkloadRequest(server string, teamId string, workloadName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/workloads/%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 + } + + return req, nil +} + +// NewGetAplWorkloadRequest generates requests for GetAplWorkload +func NewGetAplWorkloadRequest(server string, teamId string, workloadName string) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/workloads/%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 + } + + return req, nil +} + +// NewEditAplWorkloadRequest calls the generic EditAplWorkload builder with application/json body +func NewEditAplWorkloadRequest(server string, teamId string, workloadName string, body EditAplWorkloadJSONRequestBody) (*http.Request, error) { + var bodyReader io.Reader + buf, err := json.Marshal(body) + if err != nil { + return nil, err + } + bodyReader = bytes.NewReader(buf) + return NewEditAplWorkloadRequestWithBody(server, teamId, workloadName, "application/json", bodyReader) +} + +// NewEditAplWorkloadRequestWithBody generates requests for EditAplWorkload with any type of body +func NewEditAplWorkloadRequestWithBody(server string, teamId string, workloadName string, contentType string, body io.Reader) (*http.Request, error) { + var err error + + var pathParam0 string + + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "teamId", teamId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + var pathParam1 string + + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "workloadName", workloadName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "string", Format: ""}) + if err != nil { + return nil, err + } + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/teams/%s/workloads/%s", pathParam0, pathParam1) + if operationPath[0] == '/' { + operationPath = "." + operationPath + } + + queryURL, err := serverURL.Parse(operationPath) + if err != nil { + return nil, err + } + + req, err := http.NewRequest("PUT", queryURL.String(), body) + if err != nil { + return nil, err + } + + req.Header.Add("Content-Type", contentType) + + return req, nil +} + +// NewGetAllAplWorkloadNamesRequest generates requests for GetAllAplWorkloadNames +func NewGetAllAplWorkloadNamesRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/workloadNames") + 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 +} + +// NewGetAllAplWorkloadsRequest generates requests for GetAllAplWorkloads +func NewGetAllAplWorkloadsRequest(server string) (*http.Request, error) { + var err error + + serverURL, err := url.Parse(server) + if err != nil { + return nil, err + } + + operationPath := fmt.Sprintf("/v2/workloads") + 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 { + // GetAIModelsWithResponse request + GetAIModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAIModelsResponse, error) + + // GetAplAgentsWithResponse request + GetAplAgentsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplAgentsResponse, error) + + // CreateAplAgentWithBodyWithResponse request with any body + CreateAplAgentWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplAgentResponse, error) + + CreateAplAgentWithResponse(ctx context.Context, teamId string, body CreateAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplAgentResponse, error) + + // DeleteAplAgentWithResponse request + DeleteAplAgentWithResponse(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*DeleteAplAgentResponse, error) + + // GetAplAgentWithResponse request + GetAplAgentWithResponse(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*GetAplAgentResponse, error) + + // EditAplAgentWithBodyWithResponse request with any body + EditAplAgentWithBodyWithResponse(ctx context.Context, teamId string, agentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplAgentResponse, error) + + EditAplAgentWithResponse(ctx context.Context, teamId string, agentName string, body EditAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplAgentResponse, error) + + // GetAplKnowledgeBasesWithResponse request + GetAplKnowledgeBasesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplKnowledgeBasesResponse, error) + + // CreateAplKnowledgeBaseWithBodyWithResponse request with any body + CreateAplKnowledgeBaseWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplKnowledgeBaseResponse, error) + + CreateAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, body CreateAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplKnowledgeBaseResponse, error) + + // DeleteAplKnowledgeBaseWithResponse request + DeleteAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*DeleteAplKnowledgeBaseResponse, error) + + // GetAplKnowledgeBaseWithResponse request + GetAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*GetAplKnowledgeBaseResponse, error) + + // EditAplKnowledgeBaseWithBodyWithResponse request with any body + EditAplKnowledgeBaseWithBodyWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplKnowledgeBaseResponse, error) + + EditAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, body EditAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplKnowledgeBaseResponse, error) + + // V1apiDocsWithResponse request + V1apiDocsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1apiDocsResponse, error) + + // GetAppsWithResponse request + GetAppsWithResponse(ctx context.Context, teamId string, params *GetAppsParams, reqEditors ...RequestEditorFn) (*GetAppsResponse, error) + + // ToggleAppsWithBodyWithResponse request with any body + ToggleAppsWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ToggleAppsResponse, error) + + ToggleAppsWithResponse(ctx context.Context, teamId string, body ToggleAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*ToggleAppsResponse, error) + + // GetAppWithResponse request + GetAppWithResponse(ctx context.Context, teamId string, appId string, reqEditors ...RequestEditorFn) (*GetAppResponse, error) + + // EditAppWithBodyWithResponse request with any body + EditAppWithBodyWithResponse(ctx context.Context, teamId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAppResponse, error) + + EditAppWithResponse(ctx context.Context, teamId string, appId string, body EditAppJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAppResponse, error) + + // GetAllBackupsWithResponse request + GetAllBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllBackupsResponse, error) + + // GetAllBuildsWithResponse request + GetAllBuildsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllBuildsResponse, error) + + // DeleteCloudttyWithResponse request + DeleteCloudttyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCloudttyResponse, error) + + // ConnectCloudttyWithResponse request + ConnectCloudttyWithResponse(ctx context.Context, params *ConnectCloudttyParams, reqEditors ...RequestEditorFn) (*ConnectCloudttyResponse, error) + + // GetAllCodeReposWithResponse request + GetAllCodeReposWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllCodeReposResponse, error) + + // CreateWorkloadCatalogWithBodyWithResponse request with any body + CreateWorkloadCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadCatalogResponse, error) + + CreateWorkloadCatalogWithResponse(ctx context.Context, body CreateWorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadCatalogResponse, error) + + // GetDashboardWithResponse request + GetDashboardWithResponse(ctx context.Context, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) + + // DownloadDockerConfigWithResponse request + DownloadDockerConfigWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DownloadDockerConfigResponse, error) + + // GetHelmChartContentWithResponse request + GetHelmChartContentWithResponse(ctx context.Context, params *GetHelmChartContentParams, reqEditors ...RequestEditorFn) (*GetHelmChartContentResponse, error) + + // GetInternalRepoUrlsWithResponse request + GetInternalRepoUrlsWithResponse(ctx context.Context, params *GetInternalRepoUrlsParams, reqEditors ...RequestEditorFn) (*GetInternalRepoUrlsResponse, error) + + // GetK8sVersionWithResponse request + GetK8sVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetK8sVersionResponse, error) + + // DownloadKubecfgWithResponse request + DownloadKubecfgWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DownloadKubecfgResponse, error) + + // GetAllNetpolsWithResponse request + GetAllNetpolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllNetpolsResponse, error) + + // CreateObjWizardWithBodyWithResponse request with any body + CreateObjWizardWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObjWizardResponse, error) + + CreateObjWizardWithResponse(ctx context.Context, body CreateObjWizardJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObjWizardResponse, error) + + // GetValuesWithResponse request + GetValuesWithResponse(ctx context.Context, params *GetValuesParams, reqEditors ...RequestEditorFn) (*GetValuesResponse, error) + + // GetAllPoliciesWithResponse request + GetAllPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllPoliciesResponse, error) + + // GetRepoBranchesWithResponse request + GetRepoBranchesWithResponse(ctx context.Context, params *GetRepoBranchesParams, reqEditors ...RequestEditorFn) (*GetRepoBranchesResponse, error) + + // GetAllSealedSecretsWithResponse request + GetAllSealedSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllSealedSecretsResponse, error) + + // DownloadSealedSecretKeysWithResponse request + DownloadSealedSecretKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DownloadSealedSecretKeysResponse, error) + + // GetAllServicesWithResponse request + GetAllServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllServicesResponse, error) + + // GetSessionWithResponse request + GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error) + + // GetSettingsWithResponse request + GetSettingsWithResponse(ctx context.Context, params *GetSettingsParams, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) + + // EditSettingsWithBodyWithResponse request with any body + EditSettingsWithBodyWithResponse(ctx context.Context, settingId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSettingsResponse, error) + + EditSettingsWithResponse(ctx context.Context, settingId string, body EditSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSettingsResponse, error) + + // GetSettingsInfoWithResponse request + GetSettingsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsInfoResponse, error) + + // GetTeamsWithResponse request + GetTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error) + + // CreateTeamWithBodyWithResponse request with any body + CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) + + CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) + + // DeleteTeamWithResponse request + DeleteTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) + + // GetTeamWithResponse request + GetTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamResponse, error) + + // EditTeamWithBodyWithResponse request with any body + EditTeamWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTeamResponse, error) + + EditTeamWithResponse(ctx context.Context, teamId string, body EditTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTeamResponse, error) + + // GetTeamBackupsWithResponse request + GetTeamBackupsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamBackupsResponse, error) + + // CreateBackupWithBodyWithResponse request with any body + CreateBackupWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error) + + CreateBackupWithResponse(ctx context.Context, teamId string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error) + + // DeleteBackupWithResponse request + DeleteBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error) + + // GetBackupWithResponse request + GetBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*GetBackupResponse, error) + + // EditBackupWithBodyWithResponse request with any body + EditBackupWithBodyWithResponse(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditBackupResponse, error) + + EditBackupWithResponse(ctx context.Context, teamId string, backupName string, body EditBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditBackupResponse, error) + + // GetTeamBuildsWithResponse request + GetTeamBuildsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamBuildsResponse, error) + + // CreateBuildWithBodyWithResponse request with any body + CreateBuildWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error) + + CreateBuildWithResponse(ctx context.Context, teamId string, body CreateBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error) + + // DeleteBuildWithResponse request + DeleteBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*DeleteBuildResponse, error) + + // GetBuildWithResponse request + GetBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*GetBuildResponse, error) + + // EditBuildWithBodyWithResponse request with any body + EditBuildWithBodyWithResponse(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditBuildResponse, error) + + EditBuildWithResponse(ctx context.Context, teamId string, buildName string, body EditBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*EditBuildResponse, error) + + // GetTeamCodeReposWithResponse request + GetTeamCodeReposWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamCodeReposResponse, error) + + // CreateCodeRepoWithBodyWithResponse request with any body + CreateCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCodeRepoResponse, error) + + CreateCodeRepoWithResponse(ctx context.Context, teamId string, body CreateCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCodeRepoResponse, error) + + // DeleteCodeRepoWithResponse request + DeleteCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*DeleteCodeRepoResponse, error) + + // GetCodeRepoWithResponse request + GetCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*GetCodeRepoResponse, error) + + // EditCodeRepoWithBodyWithResponse request with any body + EditCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCodeRepoResponse, error) + + EditCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, body EditCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCodeRepoResponse, error) + + // GetSecretsFromK8sWithResponse request + GetSecretsFromK8sWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetSecretsFromK8sResponse, error) + + // ListUniquePodNamesByLabelWithResponse request + ListUniquePodNamesByLabelWithResponse(ctx context.Context, teamId string, params *ListUniquePodNamesByLabelParams, reqEditors ...RequestEditorFn) (*ListUniquePodNamesByLabelResponse, error) + + // GetK8SWorkloadPodLabelsWithResponse request + GetK8SWorkloadPodLabelsWithResponse(ctx context.Context, teamId string, params *GetK8SWorkloadPodLabelsParams, reqEditors ...RequestEditorFn) (*GetK8SWorkloadPodLabelsResponse, error) + + // GetTeamK8sServicesWithResponse request + GetTeamK8sServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamK8sServicesResponse, error) + + // GetTeamNetpolsWithResponse request + GetTeamNetpolsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamNetpolsResponse, error) + + // CreateNetpolWithBodyWithResponse request with any body + CreateNetpolWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetpolResponse, error) + + CreateNetpolWithResponse(ctx context.Context, teamId string, body CreateNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetpolResponse, error) + + // DeleteNetpolWithResponse request + DeleteNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*DeleteNetpolResponse, error) + + // GetNetpolWithResponse request + GetNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*GetNetpolResponse, error) + + // EditNetpolWithBodyWithResponse request with any body + EditNetpolWithBodyWithResponse(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditNetpolResponse, error) + + EditNetpolWithResponse(ctx context.Context, teamId string, netpolName string, body EditNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*EditNetpolResponse, error) + + // GetTeamPoliciesWithResponse request + GetTeamPoliciesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamPoliciesResponse, error) + + // GetPolicyWithResponse request + GetPolicyWithResponse(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) + + // EditPolicyWithBodyWithResponse request with any body + EditPolicyWithBodyWithResponse(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPolicyResponse, error) + + EditPolicyWithResponse(ctx context.Context, teamId string, policyName string, body EditPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPolicyResponse, error) + + // GetSealedSecretsWithResponse request + GetSealedSecretsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetSealedSecretsResponse, error) + + // CreateSealedSecretWithBodyWithResponse request with any body + CreateSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSealedSecretResponse, error) + + CreateSealedSecretWithResponse(ctx context.Context, teamId string, body CreateSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSealedSecretResponse, error) + + // DeleteSealedSecretWithResponse request + DeleteSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*DeleteSealedSecretResponse, error) + + // GetSealedSecretWithResponse request + GetSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*GetSealedSecretResponse, error) + + // EditSealedSecretWithBodyWithResponse request with any body + EditSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSealedSecretResponse, error) + + EditSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, body EditSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSealedSecretResponse, error) + + // GetTeamServicesWithResponse request + GetTeamServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamServicesResponse, error) + + // CreateServiceWithBodyWithResponse request with any body + CreateServiceWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error) + + CreateServiceWithResponse(ctx context.Context, teamId string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error) + + // DeleteServiceWithResponse request + DeleteServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error) + + // GetServiceWithResponse request + GetServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*GetServiceResponse, error) + + // EditServiceWithBodyWithResponse request with any body + EditServiceWithBodyWithResponse(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditServiceResponse, error) + + EditServiceWithResponse(ctx context.Context, teamId string, serviceName string, body EditServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*EditServiceResponse, error) + + // EditTeamUsersWithBodyWithResponse request with any body + EditTeamUsersWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTeamUsersResponse, error) + + EditTeamUsersWithResponse(ctx context.Context, teamId string, body EditTeamUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTeamUsersResponse, error) + + // GetTeamWorkloadsWithResponse request + GetTeamWorkloadsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamWorkloadsResponse, error) + + // CreateWorkloadWithBodyWithResponse request with any body + CreateWorkloadWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResponse, error) + + CreateWorkloadWithResponse(ctx context.Context, teamId string, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResponse, error) + + // DeleteWorkloadWithResponse request + DeleteWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*DeleteWorkloadResponse, error) + + // GetWorkloadWithResponse request + GetWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetWorkloadResponse, error) + + // EditWorkloadWithBodyWithResponse request with any body + EditWorkloadWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditWorkloadResponse, error) + + EditWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, body EditWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*EditWorkloadResponse, error) + + // GetWorkloadValuesWithResponse request + GetWorkloadValuesWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetWorkloadValuesResponse, error) + + // EditWorkloadValuesWithBodyWithResponse request with any body + EditWorkloadValuesWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditWorkloadValuesResponse, error) + + EditWorkloadValuesWithResponse(ctx context.Context, teamId string, workloadName string, body EditWorkloadValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditWorkloadValuesResponse, error) + + // GetTestRepoConnectWithResponse request + GetTestRepoConnectWithResponse(ctx context.Context, params *GetTestRepoConnectParams, reqEditors ...RequestEditorFn) (*GetTestRepoConnectResponse, error) + + // GetAllUsersWithResponse request + GetAllUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error) + + // CreateUserWithBodyWithResponse request with any body + CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error) + + CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error) + + // DeleteUserWithResponse request + DeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) + + // GetUserWithResponse request + GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) + + // EditUserWithBodyWithResponse request with any body + EditUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditUserResponse, error) + + EditUserWithResponse(ctx context.Context, userId string, body EditUserJSONRequestBody, reqEditors ...RequestEditorFn) (*EditUserResponse, error) + + // WorkloadCatalogWithBodyWithResponse request with any body + WorkloadCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkloadCatalogResponse, error) + + WorkloadCatalogWithResponse(ctx context.Context, body WorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkloadCatalogResponse, error) + + // GetAllWorkloadsWithResponse request + GetAllWorkloadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllWorkloadsResponse, error) + + // GetAllAplBackupsWithResponse request + GetAllAplBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplBackupsResponse, error) + + // GetAllAplBuildsWithResponse request + GetAllAplBuildsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplBuildsResponse, error) + + // DeleteAplCloudttyWithResponse request + DeleteAplCloudttyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAplCloudttyResponse, error) + + // ConnectAplCloudttyWithResponse request + ConnectAplCloudttyWithResponse(ctx context.Context, params *ConnectAplCloudttyParams, reqEditors ...RequestEditorFn) (*ConnectAplCloudttyResponse, error) + + // GetAllAplCodeReposWithResponse request + GetAllAplCodeReposWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplCodeReposResponse, error) + + // GetAllAplNetpolsWithResponse request + GetAllAplNetpolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplNetpolsResponse, error) + + // GetAllAplPoliciesWithResponse request + GetAllAplPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplPoliciesResponse, error) + + // GetAllAplSecretsWithResponse request + GetAllAplSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplSecretsResponse, error) + + // GetAllAplServicesWithResponse request + GetAllAplServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplServicesResponse, error) + + // GetAplTeamsWithResponse request + GetAplTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAplTeamsResponse, error) + + // CreateAplTeamWithBodyWithResponse request with any body + CreateAplTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplTeamResponse, error) + + CreateAplTeamWithResponse(ctx context.Context, body CreateAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplTeamResponse, error) + + // DeleteAplTeamWithResponse request + DeleteAplTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DeleteAplTeamResponse, error) + + // GetAplTeamWithResponse request + GetAplTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplTeamResponse, error) + + // EditAplTeamWithBodyWithResponse request with any body + EditAplTeamWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplTeamResponse, error) + + EditAplTeamWithResponse(ctx context.Context, teamId string, body EditAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplTeamResponse, error) + + // GetTeamAplBackupsWithResponse request + GetTeamAplBackupsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplBackupsResponse, error) + + // CreateAplBackupWithBodyWithResponse request with any body + CreateAplBackupWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplBackupResponse, error) + + CreateAplBackupWithResponse(ctx context.Context, teamId string, body CreateAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplBackupResponse, error) + + // DeleteAplBackupWithResponse request + DeleteAplBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*DeleteAplBackupResponse, error) + + // GetAplBackupWithResponse request + GetAplBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*GetAplBackupResponse, error) + + // EditAplBackupWithBodyWithResponse request with any body + EditAplBackupWithBodyWithResponse(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplBackupResponse, error) + + EditAplBackupWithResponse(ctx context.Context, teamId string, backupName string, body EditAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplBackupResponse, error) + + // GetTeamAplBuildsWithResponse request + GetTeamAplBuildsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplBuildsResponse, error) + + // CreateAplBuildWithBodyWithResponse request with any body + CreateAplBuildWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplBuildResponse, error) + + CreateAplBuildWithResponse(ctx context.Context, teamId string, body CreateAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplBuildResponse, error) + + // DeleteAplBuildWithResponse request + DeleteAplBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*DeleteAplBuildResponse, error) + + // GetAplBuildWithResponse request + GetAplBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*GetAplBuildResponse, error) + + // EditAplBuildWithBodyWithResponse request with any body + EditAplBuildWithBodyWithResponse(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplBuildResponse, error) + + EditAplBuildWithResponse(ctx context.Context, teamId string, buildName string, body EditAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplBuildResponse, error) + + // GetTeamAplCodeReposWithResponse request + GetTeamAplCodeReposWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplCodeReposResponse, error) + + // CreateAplCodeRepoWithBodyWithResponse request with any body + CreateAplCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplCodeRepoResponse, error) + + CreateAplCodeRepoWithResponse(ctx context.Context, teamId string, body CreateAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplCodeRepoResponse, error) + + // DeleteAplCodeRepoWithResponse request + DeleteAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*DeleteAplCodeRepoResponse, error) + + // GetAplCodeRepoWithResponse request + GetAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*GetAplCodeRepoResponse, error) + + // EditAplCodeRepoWithBodyWithResponse request with any body + EditAplCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplCodeRepoResponse, error) + + EditAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, body EditAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplCodeRepoResponse, error) + + // GetTeamAplNetpolsWithResponse request + GetTeamAplNetpolsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplNetpolsResponse, error) + + // CreateAplNetpolWithBodyWithResponse request with any body + CreateAplNetpolWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplNetpolResponse, error) + + CreateAplNetpolWithResponse(ctx context.Context, teamId string, body CreateAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplNetpolResponse, error) + + // DeleteAplNetpolWithResponse request + DeleteAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*DeleteAplNetpolResponse, error) + + // GetAplNetpolWithResponse request + GetAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*GetAplNetpolResponse, error) + + // EditAplNetpolWithBodyWithResponse request with any body + EditAplNetpolWithBodyWithResponse(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplNetpolResponse, error) + + EditAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, body EditAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplNetpolResponse, error) + + // GetTeamAplPoliciesWithResponse request + GetTeamAplPoliciesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplPoliciesResponse, error) + + // GetAplPolicyWithResponse request + GetAplPolicyWithResponse(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*GetAplPolicyResponse, error) + + // EditAplPolicyWithBodyWithResponse request with any body + EditAplPolicyWithBodyWithResponse(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplPolicyResponse, error) + + EditAplPolicyWithResponse(ctx context.Context, teamId string, policyName string, body EditAplPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplPolicyResponse, error) + + // GetAplSealedSecretsWithResponse request + GetAplSealedSecretsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplSealedSecretsResponse, error) + + // CreateAplSealedSecretWithBodyWithResponse request with any body + CreateAplSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplSealedSecretResponse, error) + + CreateAplSealedSecretWithResponse(ctx context.Context, teamId string, body CreateAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplSealedSecretResponse, error) + + // DeleteAplSealedSecretWithResponse request + DeleteAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*DeleteAplSealedSecretResponse, error) + + // GetAplSealedSecretWithResponse request + GetAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*GetAplSealedSecretResponse, error) + + // EditAplSealedSecretWithBodyWithResponse request with any body + EditAplSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplSealedSecretResponse, error) + + EditAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, body EditAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplSealedSecretResponse, error) + + // GetTeamAplServicesWithResponse request + GetTeamAplServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplServicesResponse, error) + + // CreateAplServiceWithBodyWithResponse request with any body + CreateAplServiceWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplServiceResponse, error) + + CreateAplServiceWithResponse(ctx context.Context, teamId string, body CreateAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplServiceResponse, error) + + // DeleteAplServiceWithResponse request + DeleteAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*DeleteAplServiceResponse, error) + + // GetAplServiceWithResponse request + GetAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*GetAplServiceResponse, error) + + // EditAplServiceWithBodyWithResponse request with any body + EditAplServiceWithBodyWithResponse(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplServiceResponse, error) + + EditAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, body EditAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplServiceResponse, error) + + // GetTeamAplWorkloadsWithResponse request + GetTeamAplWorkloadsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplWorkloadsResponse, error) + + // CreateAplWorkloadWithBodyWithResponse request with any body + CreateAplWorkloadWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplWorkloadResponse, error) + + CreateAplWorkloadWithResponse(ctx context.Context, teamId string, body CreateAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplWorkloadResponse, error) + + // DeleteAplWorkloadWithResponse request + DeleteAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*DeleteAplWorkloadResponse, error) + + // GetAplWorkloadWithResponse request + GetAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetAplWorkloadResponse, error) + + // EditAplWorkloadWithBodyWithResponse request with any body + EditAplWorkloadWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplWorkloadResponse, error) + + EditAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, body EditAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplWorkloadResponse, error) + + // GetAllAplWorkloadNamesWithResponse request + GetAllAplWorkloadNamesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplWorkloadNamesResponse, error) + + // GetAllAplWorkloadsWithResponse request + GetAllAplWorkloadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplWorkloadsResponse, error) +} + +type GetAIModelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAIModels200Kind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // DisplayName User-friendly model display name + DisplayName *string `json:"displayName,omitempty"` + + // ModelDimension Embedding dimension, must be compatible with model and database + ModelDimension *int `json:"modelDimension,omitempty"` + ModelEndpoint string `json:"modelEndpoint"` + + // ModelType Model type, foundation for text generation, embedding for vector search + ModelType GetAIModels200SpecModelType `json:"modelType"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } +} +type GetAIModels200Kind string +type GetAIModels200SpecModelType string + +// Status returns HTTPResponse.Status +func (r GetAIModelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAIModelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplAgentsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAplAgents200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } +} +type GetAplAgents200Kind string + +// Status returns HTTPResponse.Status +func (r GetAplAgentsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplAgentsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplAgentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplAgent200Kind string +type CreateAplAgent400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplAgentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplAgent400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplAgentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplAgent200Kind string +type GetAplAgent400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplAgentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplAgent200Kind string +type EditAplAgent400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplAgentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplAgentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplKnowledgeBasesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAplKnowledgeBases200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } +} +type GetAplKnowledgeBases200Kind string + +// Status returns HTTPResponse.Status +func (r GetAplKnowledgeBasesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplKnowledgeBasesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplKnowledgeBaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplKnowledgeBase200Kind string +type CreateAplKnowledgeBase400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplKnowledgeBaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplKnowledgeBaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplKnowledgeBaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplKnowledgeBase400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplKnowledgeBaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplKnowledgeBaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplKnowledgeBaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplKnowledgeBase200Kind string +type GetAplKnowledgeBase400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplKnowledgeBaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplKnowledgeBaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplKnowledgeBaseResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplKnowledgeBase200Kind string +type EditAplKnowledgeBase400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplKnowledgeBaseResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplKnowledgeBaseResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type V1apiDocsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r V1apiDocsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r V1apiDocsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAppsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Enabled *bool `json:"enabled,omitempty"` + Id string `json:"id"` + + // RawValues May define value overrides for a chart. WARNING: these values currently have no schema and will not be validated. + RawValues *map[string]interface{} `json:"rawValues,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetAppsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAppsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ToggleAppsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ToggleApps400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type ToggleApps400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r ToggleAppsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ToggleAppsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAppResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Enabled *bool `json:"enabled,omitempty"` + Id string `json:"id"` + + // RawValues May define value overrides for a chart. WARNING: these values currently have no schema and will not be validated. + RawValues *map[string]interface{} `json:"rawValues,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetAppResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAppResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAppResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditApp400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditApp400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAppResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAppResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllBackupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllBackups400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllBackupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllBackupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllBuildsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAllBuilds_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllBuilds200Mode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetAllBuilds200Mode0Type `json:"type"` +} +type GetAllBuilds200Mode0Type string +type GetAllBuilds200Mode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetAllBuilds200Mode1Type `json:"type"` +} +type GetAllBuilds200Mode1Type string +type GetAllBuilds_200_Mode struct { + union json.RawMessage +} +type GetAllBuilds400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllBuildsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllBuildsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteCloudttyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteCloudttyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCloudttyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ConnectCloudttyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + IFrameUrl *string `json:"iFrameUrl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ConnectCloudtty400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type ConnectCloudtty400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r ConnectCloudttyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ConnectCloudttyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllCodeReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + GitService GetAllCodeRepos200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllCodeRepos200GitService string +type GetAllCodeRepos400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllCodeReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllCodeReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateWorkloadCatalogResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateWorkloadCatalog400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateWorkloadCatalog400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateWorkloadCatalogResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateWorkloadCatalogResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetDashboardResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetDashboard400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetDashboard400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetDashboardResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetDashboardResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DownloadDockerConfigResponse struct { + Body []byte + HTTPResponse *http.Response + YAML200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadDockerConfig400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DownloadDockerConfig400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DownloadDockerConfigResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadDockerConfigResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetHelmChartContentResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Error *string `json:"error,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetHelmChartContent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetHelmChartContent400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetHelmChartContentResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetHelmChartContentResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetInternalRepoUrlsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetInternalRepoUrls400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetInternalRepoUrls400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetInternalRepoUrlsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetInternalRepoUrlsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetK8sVersionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *string + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetK8sVersion400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetK8sVersion400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetK8sVersionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetK8sVersionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DownloadKubecfgResponse struct { + Body []byte + HTTPResponse *http.Response + YAML200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadKubecfg400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DownloadKubecfg400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DownloadKubecfgResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadKubecfgResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllNetpolsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAllNetpols200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAllNetpols200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAllNetpols200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllNetpols200RuleTypeEgressPortsProtocol string +type GetAllNetpols200RuleTypeIngressMode string +type GetAllNetpols200RuleTypeType string +type GetAllNetpols400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllNetpolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllNetpolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateObjWizardResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateObjWizard400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateObjWizard400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateObjWizardResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateObjWizardResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetValuesResponse struct { + Body []byte + HTTPResponse *http.Response + YAML200 *map[string]interface{} +} + +// Status returns HTTPResponse.Status +func (r GetValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // AllowedImageRepositories In addition to restricting the image registry from which images are pulled, in some cases and environments it may be required to also restrict which image repositories are used, for example in some restricted Namespaces. This policy ensures that the only allowed image repositories present in a given Pod, across any container type, come from the designated list. + AllowedImageRepositories *struct { + Action *GetAllPolicies200AllowedImageRepositoriesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200AllowedImageRepositoriesSeverity `json:"severity,omitempty"` + } `json:"allowed-image-repositories,omitempty"` + + // DisallowCapabilities Container capabilities beyond those listed in the policy must be disallowed. + DisallowCapabilities *struct { + Action *GetAllPolicies200DisallowCapabilitiesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200DisallowCapabilitiesSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities,omitempty"` + + // DisallowCapabilitiesStrict Adding capabilities other than `NET_BIND_SERVICE` is disallowed. In addition, all containers must explicitly drop `ALL` capabilities. + DisallowCapabilitiesStrict *struct { + Action *GetAllPolicies200DisallowCapabilitiesStrictAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowCapabilitiesStrictSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities-strict,omitempty"` + + // DisallowHostNamespaces Host namespaces (Process ID namespace, Inter-Process Communication namespace, and network namespace) allow access to shared information and can be used to elevate privileges. Pods should not be allowed access to host namespaces. This policy ensures fields which make use of these host namespaces are unset or set to `false`. + DisallowHostNamespaces *struct { + Action *GetAllPolicies200DisallowHostNamespacesAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostNamespacesSeverity `json:"severity,omitempty"` + } `json:"disallow-host-namespaces,omitempty"` + + // DisallowHostPath HostPath volumes let Pods use host directories and volumes in containers. Using host resources can be used to access shared data or escalate privilegesand should not be allowed. This policy ensures no hostPath volumes are in use. + DisallowHostPath *struct { + Action *GetAllPolicies200DisallowHostPathAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostPathSeverity `json:"severity,omitempty"` + } `json:"disallow-host-path,omitempty"` + + // DisallowHostPorts Access to host ports allows potential snooping of network traffic and should not be allowed, or at minimum restricted to a known list. This policy ensures the `hostPort` field is unset or set to `0`. + DisallowHostPorts *struct { + Action *GetAllPolicies200DisallowHostPortsAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostPortsSeverity `json:"severity,omitempty"` + } `json:"disallow-host-ports,omitempty"` + + // DisallowHostProcess Windows pods offer the ability to run HostProcess containers which enables privileged access to the Windows node. Privileged access to the host is disallowed in the baseline policy. HostProcess pods are an alpha feature as of Kubernetes v1.22. This policy ensures the `hostProcess` field, if present, is set to `false`. + DisallowHostProcess *struct { + Action *GetAllPolicies200DisallowHostProcessAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostProcessSeverity `json:"severity,omitempty"` + } `json:"disallow-host-process,omitempty"` + + // DisallowLatestTag The `latest` tag is mutable and can lead to unexpected errors if the image changes. A best practice is to use an immutable tag that maps to a specific version of an application Pod. This policy validates that the image specifies a tag and that it is not called `latest`. + DisallowLatestTag *struct { + Action *GetAllPolicies200DisallowLatestTagAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowLatestTagSeverity `json:"severity,omitempty"` + } `json:"disallow-latest-tag,omitempty"` + + // DisallowPrivilegeEscalation Privilege escalation, such as via set-user-ID or set-group-ID file mode, should not be allowed. This policy ensures the `allowPrivilegeEscalation` field is set to `false`. + DisallowPrivilegeEscalation *struct { + Action *GetAllPolicies200DisallowPrivilegeEscalationAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowPrivilegeEscalationSeverity `json:"severity,omitempty"` + } `json:"disallow-privilege-escalation,omitempty"` + + // DisallowPrivilegedContainers Privileged mode disables most security mechanisms and must not be allowed. This policy ensures Pods do not call for privileged mode. + DisallowPrivilegedContainers *struct { + Action *GetAllPolicies200DisallowPrivilegedContainersAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowPrivilegedContainersSeverity `json:"severity,omitempty"` + } `json:"disallow-privileged-containers,omitempty"` + + // DisallowProcMount The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server. + DisallowProcMount *struct { + Action *GetAllPolicies200DisallowProcMountAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowProcMountSeverity `json:"severity,omitempty"` + } `json:"disallow-proc-mount,omitempty"` + + // DisallowSelinux SELinux options can be used to escalate privileges and should not be allowed. This policy ensures that the `seLinuxOptions` field is undefined. + DisallowSelinux *struct { + Action *GetAllPolicies200DisallowSelinuxAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowSelinuxSeverity `json:"severity,omitempty"` + } `json:"disallow-selinux,omitempty"` + + // RequireLabels Define and use labels that identify your application or Deployment, for example `otomi.io/app`. + RequireLabels *struct { + Action *GetAllPolicies200RequireLabelsAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200RequireLabelsSeverity `json:"severity,omitempty"` + } `json:"require-labels,omitempty"` + + // RequireLimits As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource limits per Pod, especially for memory and CPU. If a Namespace level limit is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU limits specified. + RequireLimits *struct { + Action *GetAllPolicies200RequireLimitsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireLimitsSeverity `json:"severity,omitempty"` + } `json:"require-limits,omitempty"` + + // RequireLivenessProbe Liveness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. For each Pod, a periodic `livenessProbe` is performed by the kubelet to determine if the Pod`s containers are running or need to be restarted. This policy validates that all containers have a livenessProbe defined. + RequireLivenessProbe *struct { + Action *GetAllPolicies200RequireLivenessProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireLivenessProbeSeverity `json:"severity,omitempty"` + } `json:"require-liveness-probe,omitempty"` + + // RequireNonRootGroups Containers should be forbidden from running with a root primary or supplementary GID. This policy ensures the `runAsGroup`, `supplementalGroups`, and `fsGroup` fields are set to a number greater than zero (i.e., non root). A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireNonRootGroups *struct { + Action *GetAllPolicies200RequireNonRootGroupsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireNonRootGroupsSeverity `json:"severity,omitempty"` + } `json:"require-non-root-groups,omitempty"` + + // RequireReadinessProbe Readiness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. A `readinessProbe` is used by Service and Deployments to determine if the Pod is ready to receive network traffic. This policy validates that all containers have a readinessProbe defined. + RequireReadinessProbe *struct { + Action *GetAllPolicies200RequireReadinessProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireReadinessProbeSeverity `json:"severity,omitempty"` + } `json:"require-readiness-probe,omitempty"` + + // RequireRequests As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource requests per Pod, especially for memory and CPU. If a Namespace level request is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU requests specified. + RequireRequests *struct { + Action *GetAllPolicies200RequireRequestsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRequestsSeverity `json:"severity,omitempty"` + } `json:"require-requests,omitempty"` + + // RequireRunAsNonRootUser Containers must be required to run as non-root users. This policy ensures `runAsUser` is either unset or set to a number greater than zero. + RequireRunAsNonRootUser *struct { + Action *GetAllPolicies200RequireRunAsNonRootUserAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRunAsNonRootUserSeverity `json:"severity,omitempty"` + } `json:"require-run-as-non-root-user,omitempty"` + + // RequireRunAsNonroot Containers must be required to run as non-root users. This policy ensures `runAsNonRoot` is set to `true`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireRunAsNonroot *struct { + Action *GetAllPolicies200RequireRunAsNonrootAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRunAsNonrootSeverity `json:"severity,omitempty"` + } `json:"require-run-as-nonroot,omitempty"` + + // RequireStartupProbe Startup probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. Sometimes, applications are temporarily unable to serve traffic. For example, an application might need to load large data or configuration files during startup, or depend on external services after startup. In such cases, you don`t want to kill the application, but you don`t want to send it requests either. Kubernetes provides readiness probes to detect and mitigate these situations. A pod with containers reporting that they are not ready does not receive traffic through Kubernetes Services. This policy validates that all containers have a livenessProbe defined. + RequireStartupProbe *struct { + Action *GetAllPolicies200RequireStartupProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireStartupProbeSeverity `json:"severity,omitempty"` + } `json:"require-startup-probe,omitempty"` + + // RestrictApparmorProfiles On supported hosts, the `runtime/default` AppArmor profile is applied by default. The default policy should prevent overriding or disabling the policy, or restrict overrides to an allowed set of profiles. This policy ensures Pods do not specify any other AppArmor profiles than `runtime/default` or `localhost/*`. + RestrictApparmorProfiles *struct { + Action *GetAllPolicies200RestrictApparmorProfilesAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictApparmorProfilesSeverity `json:"severity,omitempty"` + } `json:"restrict-apparmor-profiles,omitempty"` + + // RestrictSeccomp The seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`. + RestrictSeccomp *struct { + Action *GetAllPolicies200RestrictSeccompAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSeccompSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp,omitempty"` + + // RestrictSeccompStrict The seccomp profile in the Restricted group must not be explicitly set to Unconfined but additionally must also not allow an unset value. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is set to `RuntimeDefault` or `Localhost`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RestrictSeccompStrict *struct { + Action *GetAllPolicies200RestrictSeccompStrictAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSeccompStrictSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp-strict,omitempty"` + + // RestrictSysctls Sysctls can disable security mechanisms or affect all containers on a host, and should be disallowed except for an allowed "safe" subset. A sysctl is considered safe if it is namespaced in the container or the Pod, and it is isolated from other Pods or processes on the same Node. This policy ensures that only those "safe" subsets can be specified in a Pod. + RestrictSysctls *struct { + Action *GetAllPolicies200RestrictSysctlsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSysctlsSeverity `json:"severity,omitempty"` + } `json:"restrict-sysctls,omitempty"` + + // RestrictVolumeTypes In addition to restricting HostPath volumes, the restricted pod security profile limits usage of non-core volume types to those defined through PersistentVolumes. This policy blocks any other type of volume other than those in the allow list. + RestrictVolumeTypes *struct { + Action *GetAllPolicies200RestrictVolumeTypesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200RestrictVolumeTypesSeverity `json:"severity,omitempty"` + } `json:"restrict-volume-types,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllPolicies200AllowedImageRepositoriesAction string +type GetAllPolicies200AllowedImageRepositoriesSeverity string +type GetAllPolicies200DisallowCapabilitiesAction string +type GetAllPolicies200DisallowCapabilitiesSeverity string +type GetAllPolicies200DisallowCapabilitiesStrictAction string +type GetAllPolicies200DisallowCapabilitiesStrictSeverity string +type GetAllPolicies200DisallowHostNamespacesAction string +type GetAllPolicies200DisallowHostNamespacesSeverity string +type GetAllPolicies200DisallowHostPathAction string +type GetAllPolicies200DisallowHostPathSeverity string +type GetAllPolicies200DisallowHostPortsAction string +type GetAllPolicies200DisallowHostPortsSeverity string +type GetAllPolicies200DisallowHostProcessAction string +type GetAllPolicies200DisallowHostProcessSeverity string +type GetAllPolicies200DisallowLatestTagAction string +type GetAllPolicies200DisallowLatestTagSeverity string +type GetAllPolicies200DisallowPrivilegeEscalationAction string +type GetAllPolicies200DisallowPrivilegeEscalationSeverity string +type GetAllPolicies200DisallowPrivilegedContainersAction string +type GetAllPolicies200DisallowPrivilegedContainersSeverity string +type GetAllPolicies200DisallowProcMountAction string +type GetAllPolicies200DisallowProcMountSeverity string +type GetAllPolicies200DisallowSelinuxAction string +type GetAllPolicies200DisallowSelinuxSeverity string +type GetAllPolicies200RequireLabelsAction string +type GetAllPolicies200RequireLabelsSeverity string +type GetAllPolicies200RequireLimitsAction string +type GetAllPolicies200RequireLimitsSeverity string +type GetAllPolicies200RequireLivenessProbeAction string +type GetAllPolicies200RequireLivenessProbeSeverity string +type GetAllPolicies200RequireNonRootGroupsAction string +type GetAllPolicies200RequireNonRootGroupsSeverity string +type GetAllPolicies200RequireReadinessProbeAction string +type GetAllPolicies200RequireReadinessProbeSeverity string +type GetAllPolicies200RequireRequestsAction string +type GetAllPolicies200RequireRequestsSeverity string +type GetAllPolicies200RequireRunAsNonRootUserAction string +type GetAllPolicies200RequireRunAsNonRootUserSeverity string +type GetAllPolicies200RequireRunAsNonrootAction string +type GetAllPolicies200RequireRunAsNonrootSeverity string +type GetAllPolicies200RequireStartupProbeAction string +type GetAllPolicies200RequireStartupProbeSeverity string +type GetAllPolicies200RestrictApparmorProfilesAction string +type GetAllPolicies200RestrictApparmorProfilesSeverity string +type GetAllPolicies200RestrictSeccompAction string +type GetAllPolicies200RestrictSeccompSeverity string +type GetAllPolicies200RestrictSeccompStrictAction string +type GetAllPolicies200RestrictSeccompStrictSeverity string +type GetAllPolicies200RestrictSysctlsAction string +type GetAllPolicies200RestrictSysctlsSeverity string +type GetAllPolicies200RestrictVolumeTypesAction string +type GetAllPolicies200RestrictVolumeTypesSeverity string +type GetAllPolicies400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllPoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetRepoBranchesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string +} + +// Status returns HTTPResponse.Status +func (r GetRepoBranchesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetRepoBranchesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllSealedSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAllSealedSecrets200Type `json:"type"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllSealedSecrets200Type string +type GetAllSealedSecrets400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllSealedSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllSealedSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DownloadSealedSecretKeysResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadSealedSecretKeys400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type DownloadSealedSecretKeys400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DownloadSealedSecretKeysResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DownloadSealedSecretKeysResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllServicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetAllServices_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllServices200Ingress0 struct { + Type *GetAllServices200Ingress0Type `json:"type,omitempty"` +} +type GetAllServices200Ingress0Type string +type GetAllServices200Ingress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *GetAllServices200Ingress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} +type GetAllServices200Ingress1Type string +type GetAllServices_200_Ingress struct { + union json.RawMessage +} +type GetAllServices400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllServicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllServicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSessionResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Ca *string `json:"ca,omitempty"` + Core *map[string]interface{} `json:"core,omitempty"` + Corrupt *bool `json:"corrupt,omitempty"` + DefaultPlatformAdminEmail *string `json:"defaultPlatformAdminEmail,omitempty"` + Editor *string `json:"editor,omitempty"` + InactivityTimeout *int `json:"inactivityTimeout,omitempty"` + ObjectStorage *struct { + ObjStorageApps *[]struct { + AppId *string `json:"appId,omitempty"` + Required *bool `json:"required,omitempty"` + } `json:"objStorageApps,omitempty"` + ObjStorageRegions *[]struct { + Id *string `json:"id,omitempty"` + Label *string `json:"label,omitempty"` + } `json:"objStorageRegions,omitempty"` + ShowWizard *bool `json:"showWizard,omitempty"` + } `json:"objectStorage,omitempty"` + SealedSecretsPEM *string `json:"sealedSecretsPEM,omitempty"` + User *struct { + Authz map[string]struct { + // DeniedAttributes Attribute paths that are not allowed to be modified by a user + DeniedAttributes map[string][]string `json:"deniedAttributes"` + } `json:"authz"` + Email string `json:"email"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin bool `json:"isPlatformAdmin"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin bool `json:"isTeamAdmin"` + + // Name A user name + Name string `json:"name"` + + // Roles A list of roles that the user has. + Roles []string `json:"roles"` + + // Sub A user subject. + Sub *string `json:"sub,omitempty"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams []string `json:"teams"` + } `json:"user,omitempty"` + ValuesSchema *map[string]interface{} `json:"valuesSchema,omitempty"` + Versions *struct { + Api *string `json:"api,omitempty"` + Console *string `json:"console,omitempty"` + Core *string `json:"core,omitempty"` + Values *string `json:"values,omitempty"` + } `json:"versions,omitempty"` + } +} + +// Status returns HTTPResponse.Status +func (r GetSessionResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSessionResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Alerts Configure alerting endpoints to receive notifications from Alertmanager. + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetSettings200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // Cluster The Kubernetes cluster running APL. + Cluster *struct { + // ApiServer URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. + ApiServer *string `json:"apiServer,omitempty"` + + // DefaultStorageClass Default storage class for platform components. Use '' for relying on the cluster's default storage class. + DefaultStorageClass *string `json:"defaultStorageClass,omitempty"` + + // DomainSuffix The domain suffix for the cluster. + DomainSuffix *string `json:"domainSuffix,omitempty"` + K8sContext *string `json:"k8sContext,omitempty"` + Name string `json:"name"` + + // Owner The name of the organization owning the cluster. + Owner *string `json:"owner,omitempty"` + + // Provider The cloud provider of this cluster. + Provider GetSettings200ClusterProvider `json:"provider"` + } `json:"cluster,omitempty"` + + // Dns Domain name server settings. + Dns *struct { + // DomainFilters Limit possible target zones by domain suffixes. + DomainFilters *[]string `json:"domainFilters,omitempty"` + + // Provider The DNS provider managing the domains. + Provider *GetSettings_200_Dns_Provider `json:"provider,omitempty"` + + // ZoneIdFilters Limit possible target zones by zone id. + ZoneIdFilters *[]string `json:"zoneIdFilters,omitempty"` + + // Zones Extra DNS zones the cluster can administer (see DNS). Teams can use this domain for Service exposure. + Zones *[]string `json:"zones,omitempty"` + } `json:"dns,omitempty"` + Ingress *struct { + Classes *[]struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName An arbitrary name that will be used to assign an ingress class to a team service. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"classes,omitempty"` + PlatformClass *struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName The platform ingress class is used for all platform services. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"platformClass,omitempty"` + } `json:"ingress,omitempty"` + + // Kms Manage settings for retrieving encryption/decryption keys. + Kms *struct { + // Sops Select encryption engine for SOPS to encrypt the platform secrets. + Sops *GetSettings_200_Kms_Sops `json:"sops,omitempty"` + } `json:"kms,omitempty"` + Obj *struct { + // Provider Select the preferred Object Storage provider. + Provider *GetSettings_200_Obj_Provider `json:"provider,omitempty"` + + // ShowWizard Show the Object Storage wizard. + ShowWizard *bool `json:"showWizard,omitempty"` + } `json:"obj,omitempty"` + Oidc *struct { + AllTeamsAdminGroupID *string `json:"allTeamsAdminGroupID,omitempty"` + ClientID string `json:"clientID"` + ClientSecret string `json:"clientSecret"` + Issuer string `json:"issuer"` + PlatformAdminGroupID *string `json:"platformAdminGroupID,omitempty"` + + // SubClaimMapper Set OIDC claim to be passed by Keycloak as a unique user identifier. It is advised to not change the default. + SubClaimMapper *string `json:"subClaimMapper,omitempty"` + TeamAdminGroupID *string `json:"teamAdminGroupID,omitempty"` + + // UsernameClaimMapper Claim name used by Keycloak to identify incoming users from the identity provider. + UsernameClaimMapper *string `json:"usernameClaimMapper,omitempty"` + } `json:"oidc,omitempty"` + Otomi *struct { + // AdminPassword Master admin password that will be used for all apps that are not configured to use their own password. + AdminPassword *string `json:"adminPassword,omitempty"` + + // AiEnabled Defines if APL enables AI/ML components + AiEnabled *bool `json:"aiEnabled,omitempty"` + + // GlobalPullSecret Will be connected to each "default" service account in all Team namespaces to avoid rate limiting. + GlobalPullSecret *struct { + Email *string `json:"email,omitempty"` + Password *string `json:"password,omitempty"` + Server *string `json:"server,omitempty"` + Username *string `json:"username,omitempty"` + } `json:"globalPullSecret,omitempty"` + + // HasExternalDNS Set this to true when an external DNS zone is available to manage DNS records (Expects required DNS fields to be set). + HasExternalDNS *bool `json:"hasExternalDNS,omitempty"` + + // HasExternalIDP Set this to true when bringing your own external IDP such as Azure Entra ID (Expects required OIDC fields to be set). + HasExternalIDP *bool `json:"hasExternalIDP,omitempty"` + + // IsMultitenant Will separate team metrics and logs. Disabling this effectively gives all users admin role and lets them see everything. + IsMultitenant *bool `json:"isMultitenant,omitempty"` + + // IsPreInstalled Defines if platform is installed through Akamai Connected Cloud. + IsPreInstalled *bool `json:"isPreInstalled,omitempty"` + + // NodeSelector One or more label/value pairs of one or more nodes. This will enforce scheduling of all platform services on these nodes. + NodeSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"nodeSelector,omitempty"` + + // UseORCS Defines if the OCI Registry Cache Service (ORCS) is used to cache images from the public registry. + UseORCS *bool `json:"useORCS,omitempty"` + + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"otomi,omitempty"` + PlatformBackups *struct { + Database *struct { + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + Harbor *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"harbor,omitempty"` + Keycloak *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"keycloak,omitempty"` + } `json:"database,omitempty"` + + // Gitea Enable application-level backup of Gitea repositories. + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + + // PersistentVolumes Add a Linode API token and enable the Velero App to create backups of PVs. + PersistentVolumes *struct { + LinodeApiToken *string `json:"linodeApiToken,omitempty"` + } `json:"persistentVolumes,omitempty"` + } `json:"platformBackups,omitempty"` + Smtp *struct { + AuthIdentity *string `json:"auth_identity,omitempty"` + AuthPassword *string `json:"auth_password,omitempty"` + AuthSecret *string `json:"auth_secret,omitempty"` + AuthUsername *string `json:"auth_username,omitempty"` + + // From The from address. Defaults to alerts@$clusterDomain. + From *string `json:"from,omitempty"` + + // Hello The hostname to identify to the SMTP server. + Hello *string `json:"hello,omitempty"` + + // Smarthost The smtp host:port combination. + Smarthost string `json:"smarthost"` + } `json:"smtp,omitempty"` + Versions *struct { + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"versions,omitempty"` + } +} +type GetSettings200AlertsReceivers string +type GetSettings200ClusterProvider string +type GetSettings200DnsProvider0 = map[string]interface{} +type GetSettings200DnsProvider1 struct { + Akamai *struct { + // AccessToken Akamai Edgegrid API access token + AccessToken string `json:"accessToken"` + + // ClientSecret Akamai Edgegrid API client secret + ClientSecret string `json:"clientSecret"` + + // ClientToken Akamai Edgegrid API client token + ClientToken string `json:"clientToken"` + + // Host Akamai Edgegrid API server + Host string `json:"host"` + } `json:"akamai,omitempty"` +} +type GetSettings200DnsProvider2 struct { + Aws struct { + Credentials *struct { + // AccessKey An AWS access key ID. + AccessKey *string `json:"accessKey,omitempty"` + + // SecretKey An AWS secret key. + SecretKey *string `json:"secretKey,omitempty"` + } `json:"credentials,omitempty"` + + // Region An AWS region. + Region string `json:"region"` + + // Role Role may be set explicitly if no metadata can be accessed. + Role *string `json:"role,omitempty"` + } `json:"aws"` +} +type GetSettings200DnsProvider3 struct { + Azure struct { + // AadClientId An Azure client id. + AadClientId string `json:"aadClientId"` + + // AadClientSecret Azure Application Client Secret + AadClientSecret string `json:"aadClientSecret"` + + // HostedZoneName Name of the DNS zone that should be used. + HostedZoneName *string `json:"hostedZoneName,omitempty"` + + // ResourceGroup An Azure resource group. + ResourceGroup string `json:"resourceGroup"` + + // SubscriptionId An Azure subscription id. + SubscriptionId string `json:"subscriptionId"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId string `json:"tenantId"` + } `json:"azure"` +} +type GetSettings200DnsProvider4 struct { + AzurePrivateDns struct { + // AadClientId An Azure client id. + AadClientId string `json:"aadClientId"` + + // AadClientSecret Azure Application Client Secret + AadClientSecret string `json:"aadClientSecret"` + + // HostedZoneName Name of the DNS zone that should be used. + HostedZoneName *string `json:"hostedZoneName,omitempty"` + + // ResourceGroup An Azure resource group. + ResourceGroup string `json:"resourceGroup"` + + // SubscriptionId An Azure subscription id. + SubscriptionId string `json:"subscriptionId"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId string `json:"tenantId"` + } `json:"azure-private-dns"` +} +type GetSettings200DnsProvider5 struct { + Cloudflare struct { + // ApiSecret Required when Email is set. + ApiSecret *string `json:"apiSecret,omitempty"` + ApiToken *string `json:"apiToken,omitempty"` + + // Email Required when ApiSecret is set. + Email *string `json:"email,omitempty"` + Proxied *bool `json:"proxied,omitempty"` + } `json:"cloudflare"` +} +type GetSettings200DnsProvider6 struct { + Digitalocean struct { + ApiToken *string `json:"apiToken,omitempty"` + } `json:"digitalocean"` +} +type GetSettings200DnsProvider7 struct { + Linode struct { + ApiToken *string `json:"apiToken,omitempty"` + } `json:"linode"` +} +type GetSettings200DnsProvider8 struct { + Google struct { + // Project Enter GCP project. + Project string `json:"project"` + + // ServiceAccountKey A service account key in json format for managing a DNS zone. + ServiceAccountKey *string `json:"serviceAccountKey,omitempty"` + } `json:"google"` +} +type GetSettings200DnsProvider9 struct { + // Other This option requires configuration for both external-dns as well as cert-manager. No schema validation is available so provide correct data. + Other struct { + // CertManager The dns01 config as provided here: https://cert-manager.io/docs/configuration/acme/dns01/ + CertManager map[string]interface{} `json:"cert-manager"` + + // ExternalDns The provider config + ExternalDns map[string]interface{} `json:"external-dns"` + + // Name Name of the provider. + Name string `json:"name"` + } `json:"other"` +} +type GetSettings_200_Dns_Provider struct { + union json.RawMessage +} +type GetSettings200KmsSops0 = map[string]interface{} +type GetSettings200KmsSops1 struct { + Age struct { + // PrivateKey Age private key + PrivateKey string `json:"privateKey"` + + // PublicKey Age public key + PublicKey string `json:"publicKey"` + } `json:"age"` + Provider *GetSettings200KmsSops1Provider `json:"provider,omitempty"` +} +type GetSettings200KmsSops1Provider string +type GetSettings200KmsSops2 struct { + Aws struct { + // AccessKey An AWS access key ID. + AccessKey string `json:"accessKey"` + + // Keys Comma separated list of one or two ARNs to keys as defined in AWS KMS. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // Region An AWS region. + Region *string `json:"region,omitempty"` + + // SecretKey An AWS secret key. + SecretKey string `json:"secretKey"` + } `json:"aws"` + Provider *GetSettings200KmsSops2Provider `json:"provider,omitempty"` +} +type GetSettings200KmsSops2Provider string +type GetSettings200KmsSops3 struct { + Azure struct { + // ClientId An Azure client id. + ClientId string `json:"clientId"` + + // ClientSecret An Azure client secret. + ClientSecret string `json:"clientSecret"` + + // Keys Comma separated list of one or two paths to keys as defined in Azure Keyvault. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // TenantId An Azure tenant id. Defaults to one found in metadata. + TenantId *string `json:"tenantId,omitempty"` + } `json:"azure"` + Provider *GetSettings200KmsSops3Provider `json:"provider,omitempty"` +} +type GetSettings200KmsSops3Provider string +type GetSettings200KmsSops4 struct { + Google struct { + // AccountJson Enter GCP account JSON for authentication. + AccountJson string `json:"accountJson"` + + // Keys Comma separated list of one or two paths to keys as defined in GCP KMS. One if used for both enc+dec. Two if one for enc, other for dec. + Keys string `json:"keys"` + + // Project Enter GCP project. + Project string `json:"project"` + } `json:"google"` + Provider *GetSettings200KmsSops4Provider `json:"provider,omitempty"` +} +type GetSettings200KmsSops4Provider string +type GetSettings_200_Kms_Sops struct { + union json.RawMessage +} +type GetSettings200ObjProvider0 struct { + Type *GetSettings200ObjProvider0Type `json:"type,omitempty"` +} +type GetSettings200ObjProvider0Type string +type GetSettings200ObjProvider1 struct { + Type *GetSettings200ObjProvider1Type `json:"type,omitempty"` +} +type GetSettings200ObjProvider1Type string +type GetSettings200ObjProvider2 struct { + // Linode Select to use Linode Object Storage. + Linode struct { + // AccessKeyId The ID of the access key. + AccessKeyId string `json:"accessKeyId"` + + // Buckets Add the preferred bucket names for each app. + Buckets *struct { + Cnpg *string `json:"cnpg,omitempty"` + Gitea *string `json:"gitea,omitempty"` + Harbor *string `json:"harbor,omitempty"` + KubeflowPipelines *string `json:"kubeflow-pipelines,omitempty"` + Loki *string `json:"loki,omitempty"` + Tempo *string `json:"tempo,omitempty"` + Thanos *string `json:"thanos,omitempty"` + Velero *string `json:"velero,omitempty"` + } `json:"buckets,omitempty"` + + // Region The name of the Linode region. + Region string `json:"region"` + + // SecretAccessKey The Secret of the access key. + SecretAccessKey string `json:"secretAccessKey"` + } `json:"linode"` + Type GetSettings200ObjProvider2Type `json:"type"` +} +type GetSettings200ObjProvider2Type string +type GetSettings_200_Obj_Provider struct { + union json.RawMessage +} + +// Status returns HTTPResponse.Status +func (r GetSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditSettingsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditSettings400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditSettings400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditSettingsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditSettingsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSettingsInfoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Cluster *struct { + // ApiServer URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. + ApiServer *string `json:"apiServer,omitempty"` + + // DomainSuffix The domain suffix for the cluster. + DomainSuffix *string `json:"domainSuffix,omitempty"` + + // Name Name of the cluster. + Name *string `json:"name,omitempty"` + + // Provider The cloud provider of this cluster. + Provider *GetSettingsInfo200ClusterProvider `json:"provider,omitempty"` + } `json:"cluster,omitempty"` + Dns *struct { + // Zones Extra DNS zones that the cluster can administer. Team services can use this to publish their URLs on. + Zones *[]string `json:"zones,omitempty"` + } `json:"dns,omitempty"` + + // IngressClassNames Ingress class names that are used by the cluster. + IngressClassNames *[]string `json:"ingressClassNames,omitempty"` + Otomi *struct { + AiEnabled *bool `json:"aiEnabled,omitempty"` + HasExternalDNS *bool `json:"hasExternalDNS,omitempty"` + HasExternalIDP *bool `json:"hasExternalIDP,omitempty"` + IsPreInstalled *bool `json:"isPreInstalled,omitempty"` + } `json:"otomi,omitempty"` + Smtp *struct { + Smarthost *string `json:"smarthost,omitempty"` + } `json:"smtp,omitempty"` + } +} +type GetSettingsInfo200ClusterProvider string + +// Status returns HTTPResponse.Status +func (r GetSettingsInfoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSettingsInfoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetTeams200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } +} +type GetTeams200AlertsReceivers string + +// Status returns HTTPResponse.Status +func (r GetTeamsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateTeam200AlertsReceivers string +type CreateTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeam200AlertsReceivers string +type GetTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditTeam200AlertsReceivers string +type EditTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamBackupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamBackups400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamBackupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamBackupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamBuildsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetTeamBuilds_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamBuilds200Mode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetTeamBuilds200Mode0Type `json:"type"` +} +type GetTeamBuilds200Mode0Type string +type GetTeamBuilds200Mode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetTeamBuilds200Mode1Type `json:"type"` +} +type GetTeamBuilds200Mode1Type string +type GetTeamBuilds_200_Mode struct { + union json.RawMessage +} +type GetTeamBuilds400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamBuildsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamBuildsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateBuild200Mode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type CreateBuild200Mode0Type `json:"type"` +} +type CreateBuild200Mode0Type string +type CreateBuild200Mode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type CreateBuild200Mode1Type `json:"type"` +} +type CreateBuild200Mode1Type string +type CreateBuild_200_Mode struct { + union json.RawMessage +} +type CreateBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetBuild200Mode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetBuild200Mode0Type `json:"type"` +} +type GetBuild200Mode0Type string +type GetBuild200Mode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetBuild200Mode1Type `json:"type"` +} +type GetBuild200Mode1Type string +type GetBuild_200_Mode struct { + union json.RawMessage +} +type GetBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditBuild200Mode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type EditBuild200Mode0Type `json:"type"` +} +type EditBuild200Mode0Type string +type EditBuild200Mode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type EditBuild200Mode1Type `json:"type"` +} +type EditBuild200Mode1Type string +type EditBuild_200_Mode struct { + union json.RawMessage +} +type EditBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamCodeReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + GitService GetTeamCodeRepos200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetTeamCodeRepos200GitService string +type GetTeamCodeRepos400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamCodeReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamCodeReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + GitService CreateCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateCodeRepo200GitService string +type CreateCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + GitService GetCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetCodeRepo200GitService string +type GetCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + GitService EditCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditCodeRepo200GitService string +type EditCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSecretsFromK8sResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Name *string `json:"name,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSecretsFromK8s400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetSecretsFromK8s400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetSecretsFromK8sResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSecretsFromK8sResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ListUniquePodNamesByLabelResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]string + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ListUniquePodNamesByLabel400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type ListUniquePodNamesByLabel400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r ListUniquePodNamesByLabelResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ListUniquePodNamesByLabelResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetK8SWorkloadPodLabelsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]string + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetK8SWorkloadPodLabels400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetK8SWorkloadPodLabels400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetK8SWorkloadPodLabelsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetK8SWorkloadPodLabelsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamK8sServicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + ManagedByKnative *bool `json:"managedByKnative,omitempty"` + Name string `json:"name"` + Ports *[]int `json:"ports,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamK8sServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetTeamK8sServices400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamK8sServicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamK8sServicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamNetpolsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetTeamNetpols200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetTeamNetpols200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetTeamNetpols200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamNetpols200RuleTypeEgressPortsProtocol string +type GetTeamNetpols200RuleTypeIngressMode string +type GetTeamNetpols200RuleTypeType string +type GetTeamNetpols400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamNetpolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamNetpolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateNetpol200RuleTypeEgressPortsProtocol string +type CreateNetpol200RuleTypeIngressMode string +type CreateNetpol200RuleTypeType string +type CreateNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetNetpol200RuleTypeEgressPortsProtocol string +type GetNetpol200RuleTypeIngressMode string +type GetNetpol200RuleTypeType string +type GetNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditNetpol200RuleTypeEgressPortsProtocol string +type EditNetpol200RuleTypeIngressMode string +type EditNetpol200RuleTypeType string +type EditNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // AllowedImageRepositories In addition to restricting the image registry from which images are pulled, in some cases and environments it may be required to also restrict which image repositories are used, for example in some restricted Namespaces. This policy ensures that the only allowed image repositories present in a given Pod, across any container type, come from the designated list. + AllowedImageRepositories *struct { + Action *GetTeamPolicies200AllowedImageRepositoriesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200AllowedImageRepositoriesSeverity `json:"severity,omitempty"` + } `json:"allowed-image-repositories,omitempty"` + + // DisallowCapabilities Container capabilities beyond those listed in the policy must be disallowed. + DisallowCapabilities *struct { + Action *GetTeamPolicies200DisallowCapabilitiesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200DisallowCapabilitiesSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities,omitempty"` + + // DisallowCapabilitiesStrict Adding capabilities other than `NET_BIND_SERVICE` is disallowed. In addition, all containers must explicitly drop `ALL` capabilities. + DisallowCapabilitiesStrict *struct { + Action *GetTeamPolicies200DisallowCapabilitiesStrictAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowCapabilitiesStrictSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities-strict,omitempty"` + + // DisallowHostNamespaces Host namespaces (Process ID namespace, Inter-Process Communication namespace, and network namespace) allow access to shared information and can be used to elevate privileges. Pods should not be allowed access to host namespaces. This policy ensures fields which make use of these host namespaces are unset or set to `false`. + DisallowHostNamespaces *struct { + Action *GetTeamPolicies200DisallowHostNamespacesAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostNamespacesSeverity `json:"severity,omitempty"` + } `json:"disallow-host-namespaces,omitempty"` + + // DisallowHostPath HostPath volumes let Pods use host directories and volumes in containers. Using host resources can be used to access shared data or escalate privilegesand should not be allowed. This policy ensures no hostPath volumes are in use. + DisallowHostPath *struct { + Action *GetTeamPolicies200DisallowHostPathAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostPathSeverity `json:"severity,omitempty"` + } `json:"disallow-host-path,omitempty"` + + // DisallowHostPorts Access to host ports allows potential snooping of network traffic and should not be allowed, or at minimum restricted to a known list. This policy ensures the `hostPort` field is unset or set to `0`. + DisallowHostPorts *struct { + Action *GetTeamPolicies200DisallowHostPortsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostPortsSeverity `json:"severity,omitempty"` + } `json:"disallow-host-ports,omitempty"` + + // DisallowHostProcess Windows pods offer the ability to run HostProcess containers which enables privileged access to the Windows node. Privileged access to the host is disallowed in the baseline policy. HostProcess pods are an alpha feature as of Kubernetes v1.22. This policy ensures the `hostProcess` field, if present, is set to `false`. + DisallowHostProcess *struct { + Action *GetTeamPolicies200DisallowHostProcessAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostProcessSeverity `json:"severity,omitempty"` + } `json:"disallow-host-process,omitempty"` + + // DisallowLatestTag The `latest` tag is mutable and can lead to unexpected errors if the image changes. A best practice is to use an immutable tag that maps to a specific version of an application Pod. This policy validates that the image specifies a tag and that it is not called `latest`. + DisallowLatestTag *struct { + Action *GetTeamPolicies200DisallowLatestTagAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowLatestTagSeverity `json:"severity,omitempty"` + } `json:"disallow-latest-tag,omitempty"` + + // DisallowPrivilegeEscalation Privilege escalation, such as via set-user-ID or set-group-ID file mode, should not be allowed. This policy ensures the `allowPrivilegeEscalation` field is set to `false`. + DisallowPrivilegeEscalation *struct { + Action *GetTeamPolicies200DisallowPrivilegeEscalationAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowPrivilegeEscalationSeverity `json:"severity,omitempty"` + } `json:"disallow-privilege-escalation,omitempty"` + + // DisallowPrivilegedContainers Privileged mode disables most security mechanisms and must not be allowed. This policy ensures Pods do not call for privileged mode. + DisallowPrivilegedContainers *struct { + Action *GetTeamPolicies200DisallowPrivilegedContainersAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowPrivilegedContainersSeverity `json:"severity,omitempty"` + } `json:"disallow-privileged-containers,omitempty"` + + // DisallowProcMount The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server. + DisallowProcMount *struct { + Action *GetTeamPolicies200DisallowProcMountAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowProcMountSeverity `json:"severity,omitempty"` + } `json:"disallow-proc-mount,omitempty"` + + // DisallowSelinux SELinux options can be used to escalate privileges and should not be allowed. This policy ensures that the `seLinuxOptions` field is undefined. + DisallowSelinux *struct { + Action *GetTeamPolicies200DisallowSelinuxAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowSelinuxSeverity `json:"severity,omitempty"` + } `json:"disallow-selinux,omitempty"` + + // RequireLabels Define and use labels that identify your application or Deployment, for example `otomi.io/app`. + RequireLabels *struct { + Action *GetTeamPolicies200RequireLabelsAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200RequireLabelsSeverity `json:"severity,omitempty"` + } `json:"require-labels,omitempty"` + + // RequireLimits As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource limits per Pod, especially for memory and CPU. If a Namespace level limit is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU limits specified. + RequireLimits *struct { + Action *GetTeamPolicies200RequireLimitsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireLimitsSeverity `json:"severity,omitempty"` + } `json:"require-limits,omitempty"` + + // RequireLivenessProbe Liveness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. For each Pod, a periodic `livenessProbe` is performed by the kubelet to determine if the Pod`s containers are running or need to be restarted. This policy validates that all containers have a livenessProbe defined. + RequireLivenessProbe *struct { + Action *GetTeamPolicies200RequireLivenessProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireLivenessProbeSeverity `json:"severity,omitempty"` + } `json:"require-liveness-probe,omitempty"` + + // RequireNonRootGroups Containers should be forbidden from running with a root primary or supplementary GID. This policy ensures the `runAsGroup`, `supplementalGroups`, and `fsGroup` fields are set to a number greater than zero (i.e., non root). A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireNonRootGroups *struct { + Action *GetTeamPolicies200RequireNonRootGroupsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireNonRootGroupsSeverity `json:"severity,omitempty"` + } `json:"require-non-root-groups,omitempty"` + + // RequireReadinessProbe Readiness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. A `readinessProbe` is used by Service and Deployments to determine if the Pod is ready to receive network traffic. This policy validates that all containers have a readinessProbe defined. + RequireReadinessProbe *struct { + Action *GetTeamPolicies200RequireReadinessProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireReadinessProbeSeverity `json:"severity,omitempty"` + } `json:"require-readiness-probe,omitempty"` + + // RequireRequests As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource requests per Pod, especially for memory and CPU. If a Namespace level request is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU requests specified. + RequireRequests *struct { + Action *GetTeamPolicies200RequireRequestsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRequestsSeverity `json:"severity,omitempty"` + } `json:"require-requests,omitempty"` + + // RequireRunAsNonRootUser Containers must be required to run as non-root users. This policy ensures `runAsUser` is either unset or set to a number greater than zero. + RequireRunAsNonRootUser *struct { + Action *GetTeamPolicies200RequireRunAsNonRootUserAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRunAsNonRootUserSeverity `json:"severity,omitempty"` + } `json:"require-run-as-non-root-user,omitempty"` + + // RequireRunAsNonroot Containers must be required to run as non-root users. This policy ensures `runAsNonRoot` is set to `true`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireRunAsNonroot *struct { + Action *GetTeamPolicies200RequireRunAsNonrootAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRunAsNonrootSeverity `json:"severity,omitempty"` + } `json:"require-run-as-nonroot,omitempty"` + + // RequireStartupProbe Startup probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. Sometimes, applications are temporarily unable to serve traffic. For example, an application might need to load large data or configuration files during startup, or depend on external services after startup. In such cases, you don`t want to kill the application, but you don`t want to send it requests either. Kubernetes provides readiness probes to detect and mitigate these situations. A pod with containers reporting that they are not ready does not receive traffic through Kubernetes Services. This policy validates that all containers have a livenessProbe defined. + RequireStartupProbe *struct { + Action *GetTeamPolicies200RequireStartupProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireStartupProbeSeverity `json:"severity,omitempty"` + } `json:"require-startup-probe,omitempty"` + + // RestrictApparmorProfiles On supported hosts, the `runtime/default` AppArmor profile is applied by default. The default policy should prevent overriding or disabling the policy, or restrict overrides to an allowed set of profiles. This policy ensures Pods do not specify any other AppArmor profiles than `runtime/default` or `localhost/*`. + RestrictApparmorProfiles *struct { + Action *GetTeamPolicies200RestrictApparmorProfilesAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictApparmorProfilesSeverity `json:"severity,omitempty"` + } `json:"restrict-apparmor-profiles,omitempty"` + + // RestrictSeccomp The seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`. + RestrictSeccomp *struct { + Action *GetTeamPolicies200RestrictSeccompAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSeccompSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp,omitempty"` + + // RestrictSeccompStrict The seccomp profile in the Restricted group must not be explicitly set to Unconfined but additionally must also not allow an unset value. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is set to `RuntimeDefault` or `Localhost`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RestrictSeccompStrict *struct { + Action *GetTeamPolicies200RestrictSeccompStrictAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSeccompStrictSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp-strict,omitempty"` + + // RestrictSysctls Sysctls can disable security mechanisms or affect all containers on a host, and should be disallowed except for an allowed "safe" subset. A sysctl is considered safe if it is namespaced in the container or the Pod, and it is isolated from other Pods or processes on the same Node. This policy ensures that only those "safe" subsets can be specified in a Pod. + RestrictSysctls *struct { + Action *GetTeamPolicies200RestrictSysctlsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSysctlsSeverity `json:"severity,omitempty"` + } `json:"restrict-sysctls,omitempty"` + + // RestrictVolumeTypes In addition to restricting HostPath volumes, the restricted pod security profile limits usage of non-core volume types to those defined through PersistentVolumes. This policy blocks any other type of volume other than those in the allow list. + RestrictVolumeTypes *struct { + Action *GetTeamPolicies200RestrictVolumeTypesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200RestrictVolumeTypesSeverity `json:"severity,omitempty"` + } `json:"restrict-volume-types,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamPolicies200AllowedImageRepositoriesAction string +type GetTeamPolicies200AllowedImageRepositoriesSeverity string +type GetTeamPolicies200DisallowCapabilitiesAction string +type GetTeamPolicies200DisallowCapabilitiesSeverity string +type GetTeamPolicies200DisallowCapabilitiesStrictAction string +type GetTeamPolicies200DisallowCapabilitiesStrictSeverity string +type GetTeamPolicies200DisallowHostNamespacesAction string +type GetTeamPolicies200DisallowHostNamespacesSeverity string +type GetTeamPolicies200DisallowHostPathAction string +type GetTeamPolicies200DisallowHostPathSeverity string +type GetTeamPolicies200DisallowHostPortsAction string +type GetTeamPolicies200DisallowHostPortsSeverity string +type GetTeamPolicies200DisallowHostProcessAction string +type GetTeamPolicies200DisallowHostProcessSeverity string +type GetTeamPolicies200DisallowLatestTagAction string +type GetTeamPolicies200DisallowLatestTagSeverity string +type GetTeamPolicies200DisallowPrivilegeEscalationAction string +type GetTeamPolicies200DisallowPrivilegeEscalationSeverity string +type GetTeamPolicies200DisallowPrivilegedContainersAction string +type GetTeamPolicies200DisallowPrivilegedContainersSeverity string +type GetTeamPolicies200DisallowProcMountAction string +type GetTeamPolicies200DisallowProcMountSeverity string +type GetTeamPolicies200DisallowSelinuxAction string +type GetTeamPolicies200DisallowSelinuxSeverity string +type GetTeamPolicies200RequireLabelsAction string +type GetTeamPolicies200RequireLabelsSeverity string +type GetTeamPolicies200RequireLimitsAction string +type GetTeamPolicies200RequireLimitsSeverity string +type GetTeamPolicies200RequireLivenessProbeAction string +type GetTeamPolicies200RequireLivenessProbeSeverity string +type GetTeamPolicies200RequireNonRootGroupsAction string +type GetTeamPolicies200RequireNonRootGroupsSeverity string +type GetTeamPolicies200RequireReadinessProbeAction string +type GetTeamPolicies200RequireReadinessProbeSeverity string +type GetTeamPolicies200RequireRequestsAction string +type GetTeamPolicies200RequireRequestsSeverity string +type GetTeamPolicies200RequireRunAsNonRootUserAction string +type GetTeamPolicies200RequireRunAsNonRootUserSeverity string +type GetTeamPolicies200RequireRunAsNonrootAction string +type GetTeamPolicies200RequireRunAsNonrootSeverity string +type GetTeamPolicies200RequireStartupProbeAction string +type GetTeamPolicies200RequireStartupProbeSeverity string +type GetTeamPolicies200RestrictApparmorProfilesAction string +type GetTeamPolicies200RestrictApparmorProfilesSeverity string +type GetTeamPolicies200RestrictSeccompAction string +type GetTeamPolicies200RestrictSeccompSeverity string +type GetTeamPolicies200RestrictSeccompStrictAction string +type GetTeamPolicies200RestrictSeccompStrictSeverity string +type GetTeamPolicies200RestrictSysctlsAction string +type GetTeamPolicies200RestrictSysctlsSeverity string +type GetTeamPolicies200RestrictVolumeTypesAction string +type GetTeamPolicies200RestrictVolumeTypesSeverity string +type GetTeamPolicies400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamPoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Action GetPolicy200Action `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetPolicy200Severity `json:"severity"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetPolicy200Action string +type GetPolicy200Severity string +type GetPolicy400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Action EditPolicy200Action `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditPolicy200Severity `json:"severity"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditPolicy200Action string +type EditPolicy200Severity string +type EditPolicy400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSealedSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetSealedSecrets200Type `json:"type"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetSealedSecrets200Type string +type GetSealedSecrets400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetSealedSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSealedSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateSealedSecret200Type `json:"type"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateSealedSecret200Type string +type CreateSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetSealedSecret200Type `json:"type"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetSealedSecret200Type string +type GetSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditSealedSecret200Type `json:"type"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditSealedSecret200Type string +type EditSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamServicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetTeamServices_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetTeamServices200Ingress0 struct { + Type *GetTeamServices200Ingress0Type `json:"type,omitempty"` +} +type GetTeamServices200Ingress0Type string +type GetTeamServices200Ingress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *GetTeamServices200Ingress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} +type GetTeamServices200Ingress1Type string +type GetTeamServices_200_Ingress struct { + union json.RawMessage +} +type GetTeamServices400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamServicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamServicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress CreateService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateService200Ingress0 struct { + Type *CreateService200Ingress0Type `json:"type,omitempty"` +} +type CreateService200Ingress0Type string +type CreateService200Ingress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *CreateService200Ingress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} +type CreateService200Ingress1Type string +type CreateService_200_Ingress struct { + union json.RawMessage +} +type CreateService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetService200Ingress0 struct { + Type *GetService200Ingress0Type `json:"type,omitempty"` +} +type GetService200Ingress0Type string +type GetService200Ingress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *GetService200Ingress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} +type GetService200Ingress1Type string +type GetService_200_Ingress struct { + union json.RawMessage +} +type GetService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress EditService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditService200Ingress0 struct { + Type *EditService200Ingress0Type `json:"type,omitempty"` +} +type EditService200Ingress0Type string +type EditService200Ingress1 struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + + // CertSelect Select a TLS SealedSecret. + CertSelect *bool `json:"certSelect,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain string `json:"domain"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + + // Subdomain A host that is used to set DNS 'A' records. + Subdomain string `json:"subdomain"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + Type *EditService200Ingress1Type `json:"type,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + + // UseDefaultHost Use the team domain so that the URL reveals the owner. + UseDefaultHost *bool `json:"useDefaultHost,omitempty"` +} +type EditService200Ingress1Type string +type EditService_200_Ingress struct { + union json.RawMessage +} +type EditService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditTeamUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Id *string `json:"id,omitempty"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditTeamUsers400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditTeamUsers400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditTeamUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditTeamUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetTeamWorkloads200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetTeamWorkloads_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamWorkloads200ChartProvider string +type GetTeamWorkloads200ImageUpdateStrategy0 struct { + Type *GetTeamWorkloads200ImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetTeamWorkloads200ImageUpdateStrategy0Type string +type GetTeamWorkloads200ImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetTeamWorkloads200ImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetTeamWorkloads200ImageUpdateStrategy1Type string +type GetTeamWorkloads200ImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetTeamWorkloads200ImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetTeamWorkloads200ImageUpdateStrategy2Type string +type GetTeamWorkloads_200_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetTeamWorkloads400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamWorkloadsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateWorkload200ChartProvider string +type CreateWorkload200ImageUpdateStrategy0 struct { + Type *CreateWorkload200ImageUpdateStrategy0Type `json:"type,omitempty"` +} +type CreateWorkload200ImageUpdateStrategy0Type string +type CreateWorkload200ImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *CreateWorkload200ImageUpdateStrategy1Type `json:"type,omitempty"` +} +type CreateWorkload200ImageUpdateStrategy1Type string +type CreateWorkload200ImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *CreateWorkload200ImageUpdateStrategy2Type `json:"type,omitempty"` +} +type CreateWorkload200ImageUpdateStrategy2Type string +type CreateWorkload_200_ImageUpdateStrategy struct { + union json.RawMessage +} +type CreateWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetWorkload200ChartProvider string +type GetWorkload200ImageUpdateStrategy0 struct { + Type *GetWorkload200ImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetWorkload200ImageUpdateStrategy0Type string +type GetWorkload200ImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetWorkload200ImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetWorkload200ImageUpdateStrategy1Type string +type GetWorkload200ImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetWorkload200ImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetWorkload200ImageUpdateStrategy2Type string +type GetWorkload_200_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditWorkload200ChartProvider string +type EditWorkload200ImageUpdateStrategy0 struct { + Type *EditWorkload200ImageUpdateStrategy0Type `json:"type,omitempty"` +} +type EditWorkload200ImageUpdateStrategy0Type string +type EditWorkload200ImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *EditWorkload200ImageUpdateStrategy1Type `json:"type,omitempty"` +} +type EditWorkload200ImageUpdateStrategy1Type string +type EditWorkload200ImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *EditWorkload200ImageUpdateStrategy2Type `json:"type,omitempty"` +} +type EditWorkload200ImageUpdateStrategy2Type string +type EditWorkload_200_ImageUpdateStrategy struct { + union json.RawMessage +} +type EditWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetWorkloadValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TeamId *string `json:"teamId,omitempty"` + Values GetWorkloadValues_200_Values `json:"values"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetWorkloadValues400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetWorkloadValues200Values0 = map[string]interface{} +type GetWorkloadValues200Values1 = string +type GetWorkloadValues_200_Values struct { + union json.RawMessage +} +type GetWorkloadValues400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetWorkloadValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetWorkloadValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditWorkloadValuesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TeamId *string `json:"teamId,omitempty"` + Values EditWorkloadValues_200_Values `json:"values"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditWorkloadValues400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditWorkloadValues200Values0 = map[string]interface{} +type EditWorkloadValues200Values1 = string +type EditWorkloadValues_200_Values struct { + union json.RawMessage +} +type EditWorkloadValues400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditWorkloadValuesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditWorkloadValuesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTestRepoConnectResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Status *GetTestRepoConnect200Status `json:"status,omitempty"` + Url *string `json:"url,omitempty"` + } +} +type GetTestRepoConnect200Status string + +// Status returns HTTPResponse.Status +func (r GetTestRepoConnectResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTestRepoConnectResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllUsersResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllUsers400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllUsers400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllUsersResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllUsersResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateUser400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteUser400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetUser400ErrorsLocation string + +// 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 EditUserResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditUser400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditUserResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditUserResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type WorkloadCatalogResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *map[string]interface{} + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *WorkloadCatalog400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type WorkloadCatalog400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r WorkloadCatalogResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r WorkloadCatalogResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAllWorkloads200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAllWorkloads_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllWorkloads200ChartProvider string +type GetAllWorkloads200ImageUpdateStrategy0 struct { + Type *GetAllWorkloads200ImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetAllWorkloads200ImageUpdateStrategy0Type string +type GetAllWorkloads200ImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetAllWorkloads200ImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetAllWorkloads200ImageUpdateStrategy1Type string +type GetAllWorkloads200ImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetAllWorkloads200ImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetAllWorkloads200ImageUpdateStrategy2Type string +type GetAllWorkloads_200_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetAllWorkloads400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllWorkloadsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplBackupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplBackups200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplBackups200Kind string +type GetAllAplBackups400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplBackupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplBackupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplBuildsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplBuilds200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAllAplBuilds_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplBuilds200Kind string +type GetAllAplBuilds200SpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetAllAplBuilds200SpecMode0Type `json:"type"` +} +type GetAllAplBuilds200SpecMode0Type string +type GetAllAplBuilds200SpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetAllAplBuilds200SpecMode1Type `json:"type"` +} +type GetAllAplBuilds200SpecMode1Type string +type GetAllAplBuilds_200_Spec_Mode struct { + union json.RawMessage +} +type GetAllAplBuilds400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplBuildsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplBuildsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplCloudttyResponse struct { + Body []byte + HTTPResponse *http.Response +} + +// Status returns HTTPResponse.Status +func (r DeleteAplCloudttyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplCloudttyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type ConnectAplCloudttyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + IFrameUrl *string `json:"iFrameUrl,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ConnectAplCloudtty400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type ConnectAplCloudtty400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r ConnectAplCloudttyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r ConnectAplCloudttyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplCodeReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplCodeRepos200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetAllAplCodeRepos200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllAplCodeRepos200Kind string +type GetAllAplCodeRepos200SpecGitService string +type GetAllAplCodeRepos400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplCodeReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplCodeReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplNetpolsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplNetpols200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAllAplNetpols200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAllAplNetpols200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAllAplNetpols200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplNetpols200Kind string +type GetAllAplNetpols200SpecRuleTypeEgressPortsProtocol string +type GetAllAplNetpols200SpecRuleTypeIngressMode string +type GetAllAplNetpols200SpecRuleTypeType string +type GetAllAplNetpols400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplNetpolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplNetpolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplPolicies200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetAllAplPolicies200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetAllAplPolicies200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplPolicies200Kind string +type GetAllAplPolicies200SpecAction string +type GetAllAplPolicies200SpecSeverity string +type GetAllAplPolicies400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplPoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplSecrets200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAllAplSecrets200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllAplSecrets200Kind string +type GetAllAplSecrets200SpecType string +type GetAllAplSecrets400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplServicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplServices200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAllAplServices200Kind string +type GetAllAplServices400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplServicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplServicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplTeamsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAplTeams200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetAplTeams200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } +} +type GetAplTeams200Kind string +type GetAplTeams200SpecAlertsReceivers string + +// Status returns HTTPResponse.Status +func (r GetAplTeamsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplTeamsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplTeam200Kind string +type CreateAplTeam200SpecAlertsReceivers string +type CreateAplTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplTeam200Kind string +type GetAplTeam200SpecAlertsReceivers string +type GetAplTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplTeamResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplTeam200Kind string +type EditAplTeam200SpecAlertsReceivers string +type EditAplTeam400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplTeamResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplTeamResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplBackupsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplBackups200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamAplBackups200Kind string +type GetTeamAplBackups400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplBackupsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplBackupsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplBackup200Kind string +type CreateAplBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplBackup200Kind string +type GetAplBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplBackupResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplBackup200Kind string +type EditAplBackup400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplBackupResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplBackupResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplBuildsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplBuilds200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetTeamAplBuilds_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamAplBuilds200Kind string +type GetTeamAplBuilds200SpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetTeamAplBuilds200SpecMode0Type `json:"type"` +} +type GetTeamAplBuilds200SpecMode0Type string +type GetTeamAplBuilds200SpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetTeamAplBuilds200SpecMode1Type `json:"type"` +} +type GetTeamAplBuilds200SpecMode1Type string +type GetTeamAplBuilds_200_Spec_Mode struct { + union json.RawMessage +} +type GetTeamAplBuilds400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplBuildsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplBuildsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplBuild200Kind string +type CreateAplBuild200SpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type CreateAplBuild200SpecMode0Type `json:"type"` +} +type CreateAplBuild200SpecMode0Type string +type CreateAplBuild200SpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type CreateAplBuild200SpecMode1Type `json:"type"` +} +type CreateAplBuild200SpecMode1Type string +type CreateAplBuild_200_Spec_Mode struct { + union json.RawMessage +} +type CreateAplBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplBuild200Kind string +type GetAplBuild200SpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type GetAplBuild200SpecMode0Type `json:"type"` +} +type GetAplBuild200SpecMode0Type string +type GetAplBuild200SpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type GetAplBuild200SpecMode1Type `json:"type"` +} +type GetAplBuild200SpecMode1Type string +type GetAplBuild_200_Spec_Mode struct { + union json.RawMessage +} +type GetAplBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplBuildResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplBuild200Kind string +type EditAplBuild200SpecMode0 struct { + Docker struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path The path to the Dockerfile to execute (defaults to ./Dockerfile). + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"docker"` + Type EditAplBuild200SpecMode0Type `json:"type"` +} +type EditAplBuild200SpecMode0Type string +type EditAplBuild200SpecMode1 struct { + Buildpacks struct { + EnvVars *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"envVars,omitempty"` + + // Path Optional: A subpath within the repo where the source is located + Path *string `json:"path,omitempty"` + + // RepoUrl The URL of the Git repo that contains the application code. + RepoUrl string `json:"repoUrl"` + + // Revision This can be a commit, a tag, or a branch. + Revision *string `json:"revision,omitempty"` + } `json:"buildpacks"` + Type EditAplBuild200SpecMode1Type `json:"type"` +} +type EditAplBuild200SpecMode1Type string +type EditAplBuild_200_Spec_Mode struct { + union json.RawMessage +} +type EditAplBuild400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplBuildResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplBuildResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplCodeReposResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplCodeRepos200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetTeamAplCodeRepos200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetTeamAplCodeRepos200Kind string +type GetTeamAplCodeRepos200SpecGitService string +type GetTeamAplCodeRepos400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplCodeReposResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplCodeReposResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService CreateAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplCodeRepo200Kind string +type CreateAplCodeRepo200SpecGitService string +type CreateAplCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplCodeRepo200Kind string +type GetAplCodeRepo200SpecGitService string +type GetAplCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplCodeRepoResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService EditAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplCodeRepo200Kind string +type EditAplCodeRepo200SpecGitService string +type EditAplCodeRepo400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplCodeRepoResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplCodeRepoResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplNetpolsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplNetpols200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetTeamAplNetpols200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetTeamAplNetpols200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetTeamAplNetpols200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamAplNetpols200Kind string +type GetTeamAplNetpols200SpecRuleTypeEgressPortsProtocol string +type GetTeamAplNetpols200SpecRuleTypeIngressMode string +type GetTeamAplNetpols200SpecRuleTypeType string +type GetTeamAplNetpols400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplNetpolsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplNetpolsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplNetpol200Kind string +type CreateAplNetpol200SpecRuleTypeEgressPortsProtocol string +type CreateAplNetpol200SpecRuleTypeIngressMode string +type CreateAplNetpol200SpecRuleTypeType string +type CreateAplNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplNetpol200Kind string +type GetAplNetpol200SpecRuleTypeEgressPortsProtocol string +type GetAplNetpol200SpecRuleTypeIngressMode string +type GetAplNetpol200SpecRuleTypeType string +type GetAplNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplNetpolResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplNetpol200Kind string +type EditAplNetpol200SpecRuleTypeEgressPortsProtocol string +type EditAplNetpol200SpecRuleTypeIngressMode string +type EditAplNetpol200SpecRuleTypeType string +type EditAplNetpol400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplNetpolResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplNetpolResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplPoliciesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplPolicies200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetTeamAplPolicies200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetTeamAplPolicies200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamAplPolicies200Kind string +type GetTeamAplPolicies200SpecAction string +type GetTeamAplPolicies200SpecSeverity string +type GetTeamAplPolicies400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplPoliciesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplPoliciesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplPolicy200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetAplPolicy200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetAplPolicy200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplPolicy200Kind string +type GetAplPolicy200SpecAction string +type GetAplPolicy200SpecSeverity string +type GetAplPolicy400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplPolicyResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplPolicy200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action EditAplPolicy200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditAplPolicy200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplPolicy200Kind string +type EditAplPolicy200SpecAction string +type EditAplPolicy200SpecSeverity string +type EditAplPolicy400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplPolicyResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplPolicyResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplSealedSecretsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAplSealedSecrets200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAplSealedSecrets200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetAplSealedSecrets200Kind string +type GetAplSealedSecrets200SpecType string +type GetAplSealedSecrets400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplSealedSecretsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplSealedSecretsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplSealedSecret200Kind string +type CreateAplSealedSecret200SpecType string +type CreateAplSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplSealedSecret200Kind string +type GetAplSealedSecret200SpecType string +type GetAplSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplSealedSecretResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplSealedSecret200Kind string +type EditAplSealedSecret200SpecType string +type EditAplSealedSecret400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplSealedSecretResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplSealedSecretResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplServicesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplServices200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } +} +type GetTeamAplServices200Kind string +type GetTeamAplServices400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplServicesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplServicesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplService200Kind string +type CreateAplService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplService200Kind string +type GetAplService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplServiceResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplService200Kind string +type EditAplService400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplServiceResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplServiceResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetTeamAplWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetTeamAplWorkloads200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetTeamAplWorkloads200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetTeamAplWorkloads_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetTeamAplWorkloads200Kind string +type GetTeamAplWorkloads200SpecChartProvider string +type GetTeamAplWorkloads200SpecImageUpdateStrategy0 struct { + Type *GetTeamAplWorkloads200SpecImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetTeamAplWorkloads200SpecImageUpdateStrategy0Type string +type GetTeamAplWorkloads200SpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetTeamAplWorkloads200SpecImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetTeamAplWorkloads200SpecImageUpdateStrategy1Type string +type GetTeamAplWorkloads200SpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetTeamAplWorkloads200SpecImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetTeamAplWorkloads200SpecImageUpdateStrategy2Type string +type GetTeamAplWorkloads_200_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetTeamAplWorkloads400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetTeamAplWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetTeamAplWorkloadsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type CreateAplWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind CreateAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON409 *struct { + Message *string `json:"message,omitempty"` + } +} +type CreateAplWorkload200Kind string +type CreateAplWorkload200SpecChartProvider string +type CreateAplWorkload200SpecImageUpdateStrategy0 struct { + Type *CreateAplWorkload200SpecImageUpdateStrategy0Type `json:"type,omitempty"` +} +type CreateAplWorkload200SpecImageUpdateStrategy0Type string +type CreateAplWorkload200SpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *CreateAplWorkload200SpecImageUpdateStrategy1Type `json:"type,omitempty"` +} +type CreateAplWorkload200SpecImageUpdateStrategy1Type string +type CreateAplWorkload200SpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *CreateAplWorkload200SpecImageUpdateStrategy2Type `json:"type,omitempty"` +} +type CreateAplWorkload200SpecImageUpdateStrategy2Type string +type CreateAplWorkload_200_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} +type CreateAplWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r CreateAplWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r CreateAplWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type DeleteAplWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type DeleteAplWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r DeleteAplWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r DeleteAplWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAplWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind GetAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAplWorkload200Kind string +type GetAplWorkload200SpecChartProvider string +type GetAplWorkload200SpecImageUpdateStrategy0 struct { + Type *GetAplWorkload200SpecImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetAplWorkload200SpecImageUpdateStrategy0Type string +type GetAplWorkload200SpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetAplWorkload200SpecImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetAplWorkload200SpecImageUpdateStrategy1Type string +type GetAplWorkload200SpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetAplWorkload200SpecImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetAplWorkload200SpecImageUpdateStrategy2Type string +type GetAplWorkload_200_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetAplWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAplWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAplWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type EditAplWorkloadResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *struct { + Kind EditAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type EditAplWorkload200Kind string +type EditAplWorkload200SpecChartProvider string +type EditAplWorkload200SpecImageUpdateStrategy0 struct { + Type *EditAplWorkload200SpecImageUpdateStrategy0Type `json:"type,omitempty"` +} +type EditAplWorkload200SpecImageUpdateStrategy0Type string +type EditAplWorkload200SpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *EditAplWorkload200SpecImageUpdateStrategy1Type `json:"type,omitempty"` +} +type EditAplWorkload200SpecImageUpdateStrategy1Type string +type EditAplWorkload200SpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *EditAplWorkload200SpecImageUpdateStrategy2Type `json:"type,omitempty"` +} +type EditAplWorkload200SpecImageUpdateStrategy2Type string +type EditAplWorkload_200_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} +type EditAplWorkload400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r EditAplWorkloadResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r EditAplWorkloadResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplWorkloadNamesResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Metadata *struct { + // Name Name of the workload. + Name *string `json:"name,omitempty"` + + // Namespace Namespace of the workload, including teamId. + Namespace *string `json:"namespace,omitempty"` + } `json:"metadata,omitempty"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplWorkloadNames400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplWorkloadNames400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplWorkloadNamesResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplWorkloadNamesResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +type GetAllAplWorkloadsResponse struct { + Body []byte + HTTPResponse *http.Response + JSON200 *[]struct { + Kind GetAllAplWorkloads200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAllAplWorkloads200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAllAplWorkloads_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + JSON400 *struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + JSON404 *struct { + Message *string `json:"message,omitempty"` + } +} +type GetAllAplWorkloads200Kind string +type GetAllAplWorkloads200SpecChartProvider string +type GetAllAplWorkloads200SpecImageUpdateStrategy0 struct { + Type *GetAllAplWorkloads200SpecImageUpdateStrategy0Type `json:"type,omitempty"` +} +type GetAllAplWorkloads200SpecImageUpdateStrategy0Type string +type GetAllAplWorkloads200SpecImageUpdateStrategy1 struct { + Digest *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The image repository name. + ImageRepository string `json:"imageRepository"` + + // Tag Tag of the build. + Tag string `json:"tag"` + TagParameter *string `json:"tagParameter,omitempty"` + } `json:"digest,omitempty"` + Type *GetAllAplWorkloads200SpecImageUpdateStrategy1Type `json:"type,omitempty"` +} +type GetAllAplWorkloads200SpecImageUpdateStrategy1Type string +type GetAllAplWorkloads200SpecImageUpdateStrategy2 struct { + Semver *struct { + ImageParameter *string `json:"imageParameter,omitempty"` + + // ImageRepository The container image repository name. + ImageRepository string `json:"imageRepository"` + TagParameter *string `json:"tagParameter,omitempty"` + + // VersionConstraint Example: v1.0 would allow the image to be updated to any patch version within the v1.0 minor release. + VersionConstraint string `json:"versionConstraint"` + } `json:"semver,omitempty"` + Type *GetAllAplWorkloads200SpecImageUpdateStrategy2Type `json:"type,omitempty"` +} +type GetAllAplWorkloads200SpecImageUpdateStrategy2Type string +type GetAllAplWorkloads_200_Spec_ImageUpdateStrategy struct { + union json.RawMessage +} +type GetAllAplWorkloads400ErrorsLocation string + +// Status returns HTTPResponse.Status +func (r GetAllAplWorkloadsResponse) Status() string { + if r.HTTPResponse != nil { + return r.HTTPResponse.Status + } + return http.StatusText(0) +} + +// StatusCode returns HTTPResponse.StatusCode +func (r GetAllAplWorkloadsResponse) StatusCode() int { + if r.HTTPResponse != nil { + return r.HTTPResponse.StatusCode + } + return 0 +} + +// GetAIModelsWithResponse request returning *GetAIModelsResponse +func (c *ClientWithResponses) GetAIModelsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAIModelsResponse, error) { + rsp, err := c.GetAIModels(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAIModelsResponse(rsp) +} + +// GetAplAgentsWithResponse request returning *GetAplAgentsResponse +func (c *ClientWithResponses) GetAplAgentsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplAgentsResponse, error) { + rsp, err := c.GetAplAgents(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplAgentsResponse(rsp) +} + +// CreateAplAgentWithBodyWithResponse request with arbitrary body returning *CreateAplAgentResponse +func (c *ClientWithResponses) CreateAplAgentWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplAgentResponse, error) { + rsp, err := c.CreateAplAgentWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplAgentResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplAgentWithResponse(ctx context.Context, teamId string, body CreateAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplAgentResponse, error) { + rsp, err := c.CreateAplAgent(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplAgentResponse(rsp) +} + +// DeleteAplAgentWithResponse request returning *DeleteAplAgentResponse +func (c *ClientWithResponses) DeleteAplAgentWithResponse(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*DeleteAplAgentResponse, error) { + rsp, err := c.DeleteAplAgent(ctx, teamId, agentName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplAgentResponse(rsp) +} + +// GetAplAgentWithResponse request returning *GetAplAgentResponse +func (c *ClientWithResponses) GetAplAgentWithResponse(ctx context.Context, teamId string, agentName string, reqEditors ...RequestEditorFn) (*GetAplAgentResponse, error) { + rsp, err := c.GetAplAgent(ctx, teamId, agentName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplAgentResponse(rsp) +} + +// EditAplAgentWithBodyWithResponse request with arbitrary body returning *EditAplAgentResponse +func (c *ClientWithResponses) EditAplAgentWithBodyWithResponse(ctx context.Context, teamId string, agentName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplAgentResponse, error) { + rsp, err := c.EditAplAgentWithBody(ctx, teamId, agentName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplAgentResponse(rsp) +} + +func (c *ClientWithResponses) EditAplAgentWithResponse(ctx context.Context, teamId string, agentName string, body EditAplAgentJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplAgentResponse, error) { + rsp, err := c.EditAplAgent(ctx, teamId, agentName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplAgentResponse(rsp) +} + +// GetAplKnowledgeBasesWithResponse request returning *GetAplKnowledgeBasesResponse +func (c *ClientWithResponses) GetAplKnowledgeBasesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplKnowledgeBasesResponse, error) { + rsp, err := c.GetAplKnowledgeBases(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplKnowledgeBasesResponse(rsp) +} + +// CreateAplKnowledgeBaseWithBodyWithResponse request with arbitrary body returning *CreateAplKnowledgeBaseResponse +func (c *ClientWithResponses) CreateAplKnowledgeBaseWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplKnowledgeBaseResponse, error) { + rsp, err := c.CreateAplKnowledgeBaseWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplKnowledgeBaseResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, body CreateAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplKnowledgeBaseResponse, error) { + rsp, err := c.CreateAplKnowledgeBase(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplKnowledgeBaseResponse(rsp) +} + +// DeleteAplKnowledgeBaseWithResponse request returning *DeleteAplKnowledgeBaseResponse +func (c *ClientWithResponses) DeleteAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*DeleteAplKnowledgeBaseResponse, error) { + rsp, err := c.DeleteAplKnowledgeBase(ctx, teamId, knowledgeBaseName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplKnowledgeBaseResponse(rsp) +} + +// GetAplKnowledgeBaseWithResponse request returning *GetAplKnowledgeBaseResponse +func (c *ClientWithResponses) GetAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, reqEditors ...RequestEditorFn) (*GetAplKnowledgeBaseResponse, error) { + rsp, err := c.GetAplKnowledgeBase(ctx, teamId, knowledgeBaseName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplKnowledgeBaseResponse(rsp) +} + +// EditAplKnowledgeBaseWithBodyWithResponse request with arbitrary body returning *EditAplKnowledgeBaseResponse +func (c *ClientWithResponses) EditAplKnowledgeBaseWithBodyWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplKnowledgeBaseResponse, error) { + rsp, err := c.EditAplKnowledgeBaseWithBody(ctx, teamId, knowledgeBaseName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplKnowledgeBaseResponse(rsp) +} + +func (c *ClientWithResponses) EditAplKnowledgeBaseWithResponse(ctx context.Context, teamId string, knowledgeBaseName string, body EditAplKnowledgeBaseJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplKnowledgeBaseResponse, error) { + rsp, err := c.EditAplKnowledgeBase(ctx, teamId, knowledgeBaseName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplKnowledgeBaseResponse(rsp) +} + +// V1apiDocsWithResponse request returning *V1apiDocsResponse +func (c *ClientWithResponses) V1apiDocsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*V1apiDocsResponse, error) { + rsp, err := c.V1apiDocs(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseV1apiDocsResponse(rsp) +} + +// GetAppsWithResponse request returning *GetAppsResponse +func (c *ClientWithResponses) GetAppsWithResponse(ctx context.Context, teamId string, params *GetAppsParams, reqEditors ...RequestEditorFn) (*GetAppsResponse, error) { + rsp, err := c.GetApps(ctx, teamId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAppsResponse(rsp) +} + +// ToggleAppsWithBodyWithResponse request with arbitrary body returning *ToggleAppsResponse +func (c *ClientWithResponses) ToggleAppsWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ToggleAppsResponse, error) { + rsp, err := c.ToggleAppsWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseToggleAppsResponse(rsp) +} + +func (c *ClientWithResponses) ToggleAppsWithResponse(ctx context.Context, teamId string, body ToggleAppsJSONRequestBody, reqEditors ...RequestEditorFn) (*ToggleAppsResponse, error) { + rsp, err := c.ToggleApps(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseToggleAppsResponse(rsp) +} + +// GetAppWithResponse request returning *GetAppResponse +func (c *ClientWithResponses) GetAppWithResponse(ctx context.Context, teamId string, appId string, reqEditors ...RequestEditorFn) (*GetAppResponse, error) { + rsp, err := c.GetApp(ctx, teamId, appId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAppResponse(rsp) +} + +// EditAppWithBodyWithResponse request with arbitrary body returning *EditAppResponse +func (c *ClientWithResponses) EditAppWithBodyWithResponse(ctx context.Context, teamId string, appId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAppResponse, error) { + rsp, err := c.EditAppWithBody(ctx, teamId, appId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAppResponse(rsp) +} + +func (c *ClientWithResponses) EditAppWithResponse(ctx context.Context, teamId string, appId string, body EditAppJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAppResponse, error) { + rsp, err := c.EditApp(ctx, teamId, appId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAppResponse(rsp) +} + +// GetAllBackupsWithResponse request returning *GetAllBackupsResponse +func (c *ClientWithResponses) GetAllBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllBackupsResponse, error) { + rsp, err := c.GetAllBackups(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllBackupsResponse(rsp) +} + +// GetAllBuildsWithResponse request returning *GetAllBuildsResponse +func (c *ClientWithResponses) GetAllBuildsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllBuildsResponse, error) { + rsp, err := c.GetAllBuilds(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllBuildsResponse(rsp) +} + +// DeleteCloudttyWithResponse request returning *DeleteCloudttyResponse +func (c *ClientWithResponses) DeleteCloudttyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteCloudttyResponse, error) { + rsp, err := c.DeleteCloudtty(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCloudttyResponse(rsp) +} + +// ConnectCloudttyWithResponse request returning *ConnectCloudttyResponse +func (c *ClientWithResponses) ConnectCloudttyWithResponse(ctx context.Context, params *ConnectCloudttyParams, reqEditors ...RequestEditorFn) (*ConnectCloudttyResponse, error) { + rsp, err := c.ConnectCloudtty(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectCloudttyResponse(rsp) +} + +// GetAllCodeReposWithResponse request returning *GetAllCodeReposResponse +func (c *ClientWithResponses) GetAllCodeReposWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllCodeReposResponse, error) { + rsp, err := c.GetAllCodeRepos(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllCodeReposResponse(rsp) +} + +// CreateWorkloadCatalogWithBodyWithResponse request with arbitrary body returning *CreateWorkloadCatalogResponse +func (c *ClientWithResponses) CreateWorkloadCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadCatalogResponse, error) { + rsp, err := c.CreateWorkloadCatalogWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateWorkloadCatalogResponse(rsp) +} + +func (c *ClientWithResponses) CreateWorkloadCatalogWithResponse(ctx context.Context, body CreateWorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadCatalogResponse, error) { + rsp, err := c.CreateWorkloadCatalog(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateWorkloadCatalogResponse(rsp) +} + +// GetDashboardWithResponse request returning *GetDashboardResponse +func (c *ClientWithResponses) GetDashboardWithResponse(ctx context.Context, params *GetDashboardParams, reqEditors ...RequestEditorFn) (*GetDashboardResponse, error) { + rsp, err := c.GetDashboard(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetDashboardResponse(rsp) +} + +// DownloadDockerConfigWithResponse request returning *DownloadDockerConfigResponse +func (c *ClientWithResponses) DownloadDockerConfigWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DownloadDockerConfigResponse, error) { + rsp, err := c.DownloadDockerConfig(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadDockerConfigResponse(rsp) +} + +// GetHelmChartContentWithResponse request returning *GetHelmChartContentResponse +func (c *ClientWithResponses) GetHelmChartContentWithResponse(ctx context.Context, params *GetHelmChartContentParams, reqEditors ...RequestEditorFn) (*GetHelmChartContentResponse, error) { + rsp, err := c.GetHelmChartContent(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetHelmChartContentResponse(rsp) +} + +// GetInternalRepoUrlsWithResponse request returning *GetInternalRepoUrlsResponse +func (c *ClientWithResponses) GetInternalRepoUrlsWithResponse(ctx context.Context, params *GetInternalRepoUrlsParams, reqEditors ...RequestEditorFn) (*GetInternalRepoUrlsResponse, error) { + rsp, err := c.GetInternalRepoUrls(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetInternalRepoUrlsResponse(rsp) +} + +// GetK8sVersionWithResponse request returning *GetK8sVersionResponse +func (c *ClientWithResponses) GetK8sVersionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetK8sVersionResponse, error) { + rsp, err := c.GetK8sVersion(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetK8sVersionResponse(rsp) +} + +// DownloadKubecfgWithResponse request returning *DownloadKubecfgResponse +func (c *ClientWithResponses) DownloadKubecfgWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DownloadKubecfgResponse, error) { + rsp, err := c.DownloadKubecfg(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadKubecfgResponse(rsp) +} + +// GetAllNetpolsWithResponse request returning *GetAllNetpolsResponse +func (c *ClientWithResponses) GetAllNetpolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllNetpolsResponse, error) { + rsp, err := c.GetAllNetpols(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllNetpolsResponse(rsp) +} + +// CreateObjWizardWithBodyWithResponse request with arbitrary body returning *CreateObjWizardResponse +func (c *ClientWithResponses) CreateObjWizardWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateObjWizardResponse, error) { + rsp, err := c.CreateObjWizardWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateObjWizardResponse(rsp) +} + +func (c *ClientWithResponses) CreateObjWizardWithResponse(ctx context.Context, body CreateObjWizardJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateObjWizardResponse, error) { + rsp, err := c.CreateObjWizard(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateObjWizardResponse(rsp) +} + +// GetValuesWithResponse request returning *GetValuesResponse +func (c *ClientWithResponses) GetValuesWithResponse(ctx context.Context, params *GetValuesParams, reqEditors ...RequestEditorFn) (*GetValuesResponse, error) { + rsp, err := c.GetValues(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetValuesResponse(rsp) +} + +// GetAllPoliciesWithResponse request returning *GetAllPoliciesResponse +func (c *ClientWithResponses) GetAllPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllPoliciesResponse, error) { + rsp, err := c.GetAllPolicies(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllPoliciesResponse(rsp) +} + +// GetRepoBranchesWithResponse request returning *GetRepoBranchesResponse +func (c *ClientWithResponses) GetRepoBranchesWithResponse(ctx context.Context, params *GetRepoBranchesParams, reqEditors ...RequestEditorFn) (*GetRepoBranchesResponse, error) { + rsp, err := c.GetRepoBranches(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetRepoBranchesResponse(rsp) +} + +// GetAllSealedSecretsWithResponse request returning *GetAllSealedSecretsResponse +func (c *ClientWithResponses) GetAllSealedSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllSealedSecretsResponse, error) { + rsp, err := c.GetAllSealedSecrets(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllSealedSecretsResponse(rsp) +} + +// DownloadSealedSecretKeysWithResponse request returning *DownloadSealedSecretKeysResponse +func (c *ClientWithResponses) DownloadSealedSecretKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DownloadSealedSecretKeysResponse, error) { + rsp, err := c.DownloadSealedSecretKeys(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseDownloadSealedSecretKeysResponse(rsp) +} + +// GetAllServicesWithResponse request returning *GetAllServicesResponse +func (c *ClientWithResponses) GetAllServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllServicesResponse, error) { + rsp, err := c.GetAllServices(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllServicesResponse(rsp) +} + +// GetSessionWithResponse request returning *GetSessionResponse +func (c *ClientWithResponses) GetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSessionResponse, error) { + rsp, err := c.GetSession(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSessionResponse(rsp) +} + +// GetSettingsWithResponse request returning *GetSettingsResponse +func (c *ClientWithResponses) GetSettingsWithResponse(ctx context.Context, params *GetSettingsParams, reqEditors ...RequestEditorFn) (*GetSettingsResponse, error) { + rsp, err := c.GetSettings(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSettingsResponse(rsp) +} + +// EditSettingsWithBodyWithResponse request with arbitrary body returning *EditSettingsResponse +func (c *ClientWithResponses) EditSettingsWithBodyWithResponse(ctx context.Context, settingId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSettingsResponse, error) { + rsp, err := c.EditSettingsWithBody(ctx, settingId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditSettingsResponse(rsp) +} + +func (c *ClientWithResponses) EditSettingsWithResponse(ctx context.Context, settingId string, body EditSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSettingsResponse, error) { + rsp, err := c.EditSettings(ctx, settingId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditSettingsResponse(rsp) +} + +// GetSettingsInfoWithResponse request returning *GetSettingsInfoResponse +func (c *ClientWithResponses) GetSettingsInfoWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetSettingsInfoResponse, error) { + rsp, err := c.GetSettingsInfo(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSettingsInfoResponse(rsp) +} + +// GetTeamsWithResponse request returning *GetTeamsResponse +func (c *ClientWithResponses) GetTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetTeamsResponse, error) { + rsp, err := c.GetTeams(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamsResponse(rsp) +} + +// CreateTeamWithBodyWithResponse request with arbitrary body returning *CreateTeamResponse +func (c *ClientWithResponses) CreateTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) { + rsp, err := c.CreateTeamWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTeamResponse(rsp) +} + +func (c *ClientWithResponses) CreateTeamWithResponse(ctx context.Context, body CreateTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTeamResponse, error) { + rsp, err := c.CreateTeam(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateTeamResponse(rsp) +} + +// DeleteTeamWithResponse request returning *DeleteTeamResponse +func (c *ClientWithResponses) DeleteTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DeleteTeamResponse, error) { + rsp, err := c.DeleteTeam(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteTeamResponse(rsp) +} + +// GetTeamWithResponse request returning *GetTeamResponse +func (c *ClientWithResponses) GetTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamResponse, error) { + rsp, err := c.GetTeam(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamResponse(rsp) +} + +// EditTeamWithBodyWithResponse request with arbitrary body returning *EditTeamResponse +func (c *ClientWithResponses) EditTeamWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTeamResponse, error) { + rsp, err := c.EditTeamWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditTeamResponse(rsp) +} + +func (c *ClientWithResponses) EditTeamWithResponse(ctx context.Context, teamId string, body EditTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTeamResponse, error) { + rsp, err := c.EditTeam(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditTeamResponse(rsp) +} + +// GetTeamBackupsWithResponse request returning *GetTeamBackupsResponse +func (c *ClientWithResponses) GetTeamBackupsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamBackupsResponse, error) { + rsp, err := c.GetTeamBackups(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamBackupsResponse(rsp) +} + +// CreateBackupWithBodyWithResponse request with arbitrary body returning *CreateBackupResponse +func (c *ClientWithResponses) CreateBackupWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error) { + rsp, err := c.CreateBackupWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateBackupResponse(rsp) +} + +func (c *ClientWithResponses) CreateBackupWithResponse(ctx context.Context, teamId string, body CreateBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBackupResponse, error) { + rsp, err := c.CreateBackup(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateBackupResponse(rsp) +} + +// DeleteBackupWithResponse request returning *DeleteBackupResponse +func (c *ClientWithResponses) DeleteBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*DeleteBackupResponse, error) { + rsp, err := c.DeleteBackup(ctx, teamId, backupName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteBackupResponse(rsp) +} + +// GetBackupWithResponse request returning *GetBackupResponse +func (c *ClientWithResponses) GetBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*GetBackupResponse, error) { + rsp, err := c.GetBackup(ctx, teamId, backupName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBackupResponse(rsp) +} + +// EditBackupWithBodyWithResponse request with arbitrary body returning *EditBackupResponse +func (c *ClientWithResponses) EditBackupWithBodyWithResponse(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditBackupResponse, error) { + rsp, err := c.EditBackupWithBody(ctx, teamId, backupName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditBackupResponse(rsp) +} + +func (c *ClientWithResponses) EditBackupWithResponse(ctx context.Context, teamId string, backupName string, body EditBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditBackupResponse, error) { + rsp, err := c.EditBackup(ctx, teamId, backupName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditBackupResponse(rsp) +} + +// GetTeamBuildsWithResponse request returning *GetTeamBuildsResponse +func (c *ClientWithResponses) GetTeamBuildsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamBuildsResponse, error) { + rsp, err := c.GetTeamBuilds(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamBuildsResponse(rsp) +} + +// CreateBuildWithBodyWithResponse request with arbitrary body returning *CreateBuildResponse +func (c *ClientWithResponses) CreateBuildWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error) { + rsp, err := c.CreateBuildWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateBuildResponse(rsp) +} + +func (c *ClientWithResponses) CreateBuildWithResponse(ctx context.Context, teamId string, body CreateBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateBuildResponse, error) { + rsp, err := c.CreateBuild(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateBuildResponse(rsp) +} + +// DeleteBuildWithResponse request returning *DeleteBuildResponse +func (c *ClientWithResponses) DeleteBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*DeleteBuildResponse, error) { + rsp, err := c.DeleteBuild(ctx, teamId, buildName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteBuildResponse(rsp) +} + +// GetBuildWithResponse request returning *GetBuildResponse +func (c *ClientWithResponses) GetBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*GetBuildResponse, error) { + rsp, err := c.GetBuild(ctx, teamId, buildName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetBuildResponse(rsp) +} + +// EditBuildWithBodyWithResponse request with arbitrary body returning *EditBuildResponse +func (c *ClientWithResponses) EditBuildWithBodyWithResponse(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditBuildResponse, error) { + rsp, err := c.EditBuildWithBody(ctx, teamId, buildName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditBuildResponse(rsp) +} + +func (c *ClientWithResponses) EditBuildWithResponse(ctx context.Context, teamId string, buildName string, body EditBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*EditBuildResponse, error) { + rsp, err := c.EditBuild(ctx, teamId, buildName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditBuildResponse(rsp) +} + +// GetTeamCodeReposWithResponse request returning *GetTeamCodeReposResponse +func (c *ClientWithResponses) GetTeamCodeReposWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamCodeReposResponse, error) { + rsp, err := c.GetTeamCodeRepos(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamCodeReposResponse(rsp) +} + +// CreateCodeRepoWithBodyWithResponse request with arbitrary body returning *CreateCodeRepoResponse +func (c *ClientWithResponses) CreateCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCodeRepoResponse, error) { + rsp, err := c.CreateCodeRepoWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCodeRepoResponse(rsp) +} + +func (c *ClientWithResponses) CreateCodeRepoWithResponse(ctx context.Context, teamId string, body CreateCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCodeRepoResponse, error) { + rsp, err := c.CreateCodeRepo(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateCodeRepoResponse(rsp) +} + +// DeleteCodeRepoWithResponse request returning *DeleteCodeRepoResponse +func (c *ClientWithResponses) DeleteCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*DeleteCodeRepoResponse, error) { + rsp, err := c.DeleteCodeRepo(ctx, teamId, codeRepositoryName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteCodeRepoResponse(rsp) +} + +// GetCodeRepoWithResponse request returning *GetCodeRepoResponse +func (c *ClientWithResponses) GetCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*GetCodeRepoResponse, error) { + rsp, err := c.GetCodeRepo(ctx, teamId, codeRepositoryName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetCodeRepoResponse(rsp) +} + +// EditCodeRepoWithBodyWithResponse request with arbitrary body returning *EditCodeRepoResponse +func (c *ClientWithResponses) EditCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditCodeRepoResponse, error) { + rsp, err := c.EditCodeRepoWithBody(ctx, teamId, codeRepositoryName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditCodeRepoResponse(rsp) +} + +func (c *ClientWithResponses) EditCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, body EditCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*EditCodeRepoResponse, error) { + rsp, err := c.EditCodeRepo(ctx, teamId, codeRepositoryName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditCodeRepoResponse(rsp) +} + +// GetSecretsFromK8sWithResponse request returning *GetSecretsFromK8sResponse +func (c *ClientWithResponses) GetSecretsFromK8sWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetSecretsFromK8sResponse, error) { + rsp, err := c.GetSecretsFromK8s(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSecretsFromK8sResponse(rsp) +} + +// ListUniquePodNamesByLabelWithResponse request returning *ListUniquePodNamesByLabelResponse +func (c *ClientWithResponses) ListUniquePodNamesByLabelWithResponse(ctx context.Context, teamId string, params *ListUniquePodNamesByLabelParams, reqEditors ...RequestEditorFn) (*ListUniquePodNamesByLabelResponse, error) { + rsp, err := c.ListUniquePodNamesByLabel(ctx, teamId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseListUniquePodNamesByLabelResponse(rsp) +} + +// GetK8SWorkloadPodLabelsWithResponse request returning *GetK8SWorkloadPodLabelsResponse +func (c *ClientWithResponses) GetK8SWorkloadPodLabelsWithResponse(ctx context.Context, teamId string, params *GetK8SWorkloadPodLabelsParams, reqEditors ...RequestEditorFn) (*GetK8SWorkloadPodLabelsResponse, error) { + rsp, err := c.GetK8SWorkloadPodLabels(ctx, teamId, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetK8SWorkloadPodLabelsResponse(rsp) +} + +// GetTeamK8sServicesWithResponse request returning *GetTeamK8sServicesResponse +func (c *ClientWithResponses) GetTeamK8sServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamK8sServicesResponse, error) { + rsp, err := c.GetTeamK8sServices(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamK8sServicesResponse(rsp) +} + +// GetTeamNetpolsWithResponse request returning *GetTeamNetpolsResponse +func (c *ClientWithResponses) GetTeamNetpolsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamNetpolsResponse, error) { + rsp, err := c.GetTeamNetpols(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamNetpolsResponse(rsp) +} + +// CreateNetpolWithBodyWithResponse request with arbitrary body returning *CreateNetpolResponse +func (c *ClientWithResponses) CreateNetpolWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateNetpolResponse, error) { + rsp, err := c.CreateNetpolWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateNetpolResponse(rsp) +} + +func (c *ClientWithResponses) CreateNetpolWithResponse(ctx context.Context, teamId string, body CreateNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateNetpolResponse, error) { + rsp, err := c.CreateNetpol(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateNetpolResponse(rsp) +} + +// DeleteNetpolWithResponse request returning *DeleteNetpolResponse +func (c *ClientWithResponses) DeleteNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*DeleteNetpolResponse, error) { + rsp, err := c.DeleteNetpol(ctx, teamId, netpolName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteNetpolResponse(rsp) +} + +// GetNetpolWithResponse request returning *GetNetpolResponse +func (c *ClientWithResponses) GetNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*GetNetpolResponse, error) { + rsp, err := c.GetNetpol(ctx, teamId, netpolName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetNetpolResponse(rsp) +} + +// EditNetpolWithBodyWithResponse request with arbitrary body returning *EditNetpolResponse +func (c *ClientWithResponses) EditNetpolWithBodyWithResponse(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditNetpolResponse, error) { + rsp, err := c.EditNetpolWithBody(ctx, teamId, netpolName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditNetpolResponse(rsp) +} + +func (c *ClientWithResponses) EditNetpolWithResponse(ctx context.Context, teamId string, netpolName string, body EditNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*EditNetpolResponse, error) { + rsp, err := c.EditNetpol(ctx, teamId, netpolName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditNetpolResponse(rsp) +} + +// GetTeamPoliciesWithResponse request returning *GetTeamPoliciesResponse +func (c *ClientWithResponses) GetTeamPoliciesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamPoliciesResponse, error) { + rsp, err := c.GetTeamPolicies(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamPoliciesResponse(rsp) +} + +// GetPolicyWithResponse request returning *GetPolicyResponse +func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error) { + rsp, err := c.GetPolicy(ctx, teamId, policyName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetPolicyResponse(rsp) +} + +// EditPolicyWithBodyWithResponse request with arbitrary body returning *EditPolicyResponse +func (c *ClientWithResponses) EditPolicyWithBodyWithResponse(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditPolicyResponse, error) { + rsp, err := c.EditPolicyWithBody(ctx, teamId, policyName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPolicyResponse(rsp) +} + +func (c *ClientWithResponses) EditPolicyWithResponse(ctx context.Context, teamId string, policyName string, body EditPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*EditPolicyResponse, error) { + rsp, err := c.EditPolicy(ctx, teamId, policyName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditPolicyResponse(rsp) +} + +// GetSealedSecretsWithResponse request returning *GetSealedSecretsResponse +func (c *ClientWithResponses) GetSealedSecretsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetSealedSecretsResponse, error) { + rsp, err := c.GetSealedSecrets(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSealedSecretsResponse(rsp) +} + +// CreateSealedSecretWithBodyWithResponse request with arbitrary body returning *CreateSealedSecretResponse +func (c *ClientWithResponses) CreateSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateSealedSecretResponse, error) { + rsp, err := c.CreateSealedSecretWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSealedSecretResponse(rsp) +} + +func (c *ClientWithResponses) CreateSealedSecretWithResponse(ctx context.Context, teamId string, body CreateSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateSealedSecretResponse, error) { + rsp, err := c.CreateSealedSecret(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateSealedSecretResponse(rsp) +} + +// DeleteSealedSecretWithResponse request returning *DeleteSealedSecretResponse +func (c *ClientWithResponses) DeleteSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*DeleteSealedSecretResponse, error) { + rsp, err := c.DeleteSealedSecret(ctx, teamId, sealedSecretName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteSealedSecretResponse(rsp) +} + +// GetSealedSecretWithResponse request returning *GetSealedSecretResponse +func (c *ClientWithResponses) GetSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*GetSealedSecretResponse, error) { + rsp, err := c.GetSealedSecret(ctx, teamId, sealedSecretName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetSealedSecretResponse(rsp) +} + +// EditSealedSecretWithBodyWithResponse request with arbitrary body returning *EditSealedSecretResponse +func (c *ClientWithResponses) EditSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditSealedSecretResponse, error) { + rsp, err := c.EditSealedSecretWithBody(ctx, teamId, sealedSecretName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditSealedSecretResponse(rsp) +} + +func (c *ClientWithResponses) EditSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, body EditSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*EditSealedSecretResponse, error) { + rsp, err := c.EditSealedSecret(ctx, teamId, sealedSecretName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditSealedSecretResponse(rsp) +} + +// GetTeamServicesWithResponse request returning *GetTeamServicesResponse +func (c *ClientWithResponses) GetTeamServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamServicesResponse, error) { + rsp, err := c.GetTeamServices(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamServicesResponse(rsp) +} + +// CreateServiceWithBodyWithResponse request with arbitrary body returning *CreateServiceResponse +func (c *ClientWithResponses) CreateServiceWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error) { + rsp, err := c.CreateServiceWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateServiceResponse(rsp) +} + +func (c *ClientWithResponses) CreateServiceWithResponse(ctx context.Context, teamId string, body CreateServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateServiceResponse, error) { + rsp, err := c.CreateService(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateServiceResponse(rsp) +} + +// DeleteServiceWithResponse request returning *DeleteServiceResponse +func (c *ClientWithResponses) DeleteServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*DeleteServiceResponse, error) { + rsp, err := c.DeleteService(ctx, teamId, serviceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteServiceResponse(rsp) +} + +// GetServiceWithResponse request returning *GetServiceResponse +func (c *ClientWithResponses) GetServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*GetServiceResponse, error) { + rsp, err := c.GetService(ctx, teamId, serviceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetServiceResponse(rsp) +} + +// EditServiceWithBodyWithResponse request with arbitrary body returning *EditServiceResponse +func (c *ClientWithResponses) EditServiceWithBodyWithResponse(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditServiceResponse, error) { + rsp, err := c.EditServiceWithBody(ctx, teamId, serviceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditServiceResponse(rsp) +} + +func (c *ClientWithResponses) EditServiceWithResponse(ctx context.Context, teamId string, serviceName string, body EditServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*EditServiceResponse, error) { + rsp, err := c.EditService(ctx, teamId, serviceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditServiceResponse(rsp) +} + +// EditTeamUsersWithBodyWithResponse request with arbitrary body returning *EditTeamUsersResponse +func (c *ClientWithResponses) EditTeamUsersWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditTeamUsersResponse, error) { + rsp, err := c.EditTeamUsersWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditTeamUsersResponse(rsp) +} + +func (c *ClientWithResponses) EditTeamUsersWithResponse(ctx context.Context, teamId string, body EditTeamUsersJSONRequestBody, reqEditors ...RequestEditorFn) (*EditTeamUsersResponse, error) { + rsp, err := c.EditTeamUsers(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditTeamUsersResponse(rsp) +} + +// GetTeamWorkloadsWithResponse request returning *GetTeamWorkloadsResponse +func (c *ClientWithResponses) GetTeamWorkloadsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamWorkloadsResponse, error) { + rsp, err := c.GetTeamWorkloads(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamWorkloadsResponse(rsp) +} + +// CreateWorkloadWithBodyWithResponse request with arbitrary body returning *CreateWorkloadResponse +func (c *ClientWithResponses) CreateWorkloadWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateWorkloadResponse, error) { + rsp, err := c.CreateWorkloadWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateWorkloadResponse(rsp) +} + +func (c *ClientWithResponses) CreateWorkloadWithResponse(ctx context.Context, teamId string, body CreateWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateWorkloadResponse, error) { + rsp, err := c.CreateWorkload(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateWorkloadResponse(rsp) +} + +// DeleteWorkloadWithResponse request returning *DeleteWorkloadResponse +func (c *ClientWithResponses) DeleteWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*DeleteWorkloadResponse, error) { + rsp, err := c.DeleteWorkload(ctx, teamId, workloadName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteWorkloadResponse(rsp) +} + +// GetWorkloadWithResponse request returning *GetWorkloadResponse +func (c *ClientWithResponses) GetWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetWorkloadResponse, error) { + rsp, err := c.GetWorkload(ctx, teamId, workloadName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkloadResponse(rsp) +} + +// EditWorkloadWithBodyWithResponse request with arbitrary body returning *EditWorkloadResponse +func (c *ClientWithResponses) EditWorkloadWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditWorkloadResponse, error) { + rsp, err := c.EditWorkloadWithBody(ctx, teamId, workloadName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditWorkloadResponse(rsp) +} + +func (c *ClientWithResponses) EditWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, body EditWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*EditWorkloadResponse, error) { + rsp, err := c.EditWorkload(ctx, teamId, workloadName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditWorkloadResponse(rsp) +} + +// GetWorkloadValuesWithResponse request returning *GetWorkloadValuesResponse +func (c *ClientWithResponses) GetWorkloadValuesWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetWorkloadValuesResponse, error) { + rsp, err := c.GetWorkloadValues(ctx, teamId, workloadName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetWorkloadValuesResponse(rsp) +} + +// EditWorkloadValuesWithBodyWithResponse request with arbitrary body returning *EditWorkloadValuesResponse +func (c *ClientWithResponses) EditWorkloadValuesWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditWorkloadValuesResponse, error) { + rsp, err := c.EditWorkloadValuesWithBody(ctx, teamId, workloadName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditWorkloadValuesResponse(rsp) +} + +func (c *ClientWithResponses) EditWorkloadValuesWithResponse(ctx context.Context, teamId string, workloadName string, body EditWorkloadValuesJSONRequestBody, reqEditors ...RequestEditorFn) (*EditWorkloadValuesResponse, error) { + rsp, err := c.EditWorkloadValues(ctx, teamId, workloadName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditWorkloadValuesResponse(rsp) +} + +// GetTestRepoConnectWithResponse request returning *GetTestRepoConnectResponse +func (c *ClientWithResponses) GetTestRepoConnectWithResponse(ctx context.Context, params *GetTestRepoConnectParams, reqEditors ...RequestEditorFn) (*GetTestRepoConnectResponse, error) { + rsp, err := c.GetTestRepoConnect(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTestRepoConnectResponse(rsp) +} + +// GetAllUsersWithResponse request returning *GetAllUsersResponse +func (c *ClientWithResponses) GetAllUsersWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllUsersResponse, error) { + rsp, err := c.GetAllUsers(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllUsersResponse(rsp) +} + +// CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserResponse +func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error) { + rsp, err := c.CreateUserWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateUserResponse(rsp) +} + +func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error) { + rsp, err := c.CreateUser(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateUserResponse(rsp) +} + +// DeleteUserWithResponse request returning *DeleteUserResponse +func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) { + rsp, err := c.DeleteUser(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteUserResponse(rsp) +} + +// GetUserWithResponse request returning *GetUserResponse +func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId string, reqEditors ...RequestEditorFn) (*GetUserResponse, error) { + rsp, err := c.GetUser(ctx, userId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetUserResponse(rsp) +} + +// EditUserWithBodyWithResponse request with arbitrary body returning *EditUserResponse +func (c *ClientWithResponses) EditUserWithBodyWithResponse(ctx context.Context, userId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditUserResponse, error) { + rsp, err := c.EditUserWithBody(ctx, userId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditUserResponse(rsp) +} + +func (c *ClientWithResponses) EditUserWithResponse(ctx context.Context, userId string, body EditUserJSONRequestBody, reqEditors ...RequestEditorFn) (*EditUserResponse, error) { + rsp, err := c.EditUser(ctx, userId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditUserResponse(rsp) +} + +// WorkloadCatalogWithBodyWithResponse request with arbitrary body returning *WorkloadCatalogResponse +func (c *ClientWithResponses) WorkloadCatalogWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*WorkloadCatalogResponse, error) { + rsp, err := c.WorkloadCatalogWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkloadCatalogResponse(rsp) +} + +func (c *ClientWithResponses) WorkloadCatalogWithResponse(ctx context.Context, body WorkloadCatalogJSONRequestBody, reqEditors ...RequestEditorFn) (*WorkloadCatalogResponse, error) { + rsp, err := c.WorkloadCatalog(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseWorkloadCatalogResponse(rsp) +} + +// GetAllWorkloadsWithResponse request returning *GetAllWorkloadsResponse +func (c *ClientWithResponses) GetAllWorkloadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllWorkloadsResponse, error) { + rsp, err := c.GetAllWorkloads(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllWorkloadsResponse(rsp) +} + +// GetAllAplBackupsWithResponse request returning *GetAllAplBackupsResponse +func (c *ClientWithResponses) GetAllAplBackupsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplBackupsResponse, error) { + rsp, err := c.GetAllAplBackups(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplBackupsResponse(rsp) +} + +// GetAllAplBuildsWithResponse request returning *GetAllAplBuildsResponse +func (c *ClientWithResponses) GetAllAplBuildsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplBuildsResponse, error) { + rsp, err := c.GetAllAplBuilds(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplBuildsResponse(rsp) +} + +// DeleteAplCloudttyWithResponse request returning *DeleteAplCloudttyResponse +func (c *ClientWithResponses) DeleteAplCloudttyWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*DeleteAplCloudttyResponse, error) { + rsp, err := c.DeleteAplCloudtty(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplCloudttyResponse(rsp) +} + +// ConnectAplCloudttyWithResponse request returning *ConnectAplCloudttyResponse +func (c *ClientWithResponses) ConnectAplCloudttyWithResponse(ctx context.Context, params *ConnectAplCloudttyParams, reqEditors ...RequestEditorFn) (*ConnectAplCloudttyResponse, error) { + rsp, err := c.ConnectAplCloudtty(ctx, params, reqEditors...) + if err != nil { + return nil, err + } + return ParseConnectAplCloudttyResponse(rsp) +} + +// GetAllAplCodeReposWithResponse request returning *GetAllAplCodeReposResponse +func (c *ClientWithResponses) GetAllAplCodeReposWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplCodeReposResponse, error) { + rsp, err := c.GetAllAplCodeRepos(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplCodeReposResponse(rsp) +} + +// GetAllAplNetpolsWithResponse request returning *GetAllAplNetpolsResponse +func (c *ClientWithResponses) GetAllAplNetpolsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplNetpolsResponse, error) { + rsp, err := c.GetAllAplNetpols(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplNetpolsResponse(rsp) +} + +// GetAllAplPoliciesWithResponse request returning *GetAllAplPoliciesResponse +func (c *ClientWithResponses) GetAllAplPoliciesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplPoliciesResponse, error) { + rsp, err := c.GetAllAplPolicies(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplPoliciesResponse(rsp) +} + +// GetAllAplSecretsWithResponse request returning *GetAllAplSecretsResponse +func (c *ClientWithResponses) GetAllAplSecretsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplSecretsResponse, error) { + rsp, err := c.GetAllAplSecrets(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplSecretsResponse(rsp) +} + +// GetAllAplServicesWithResponse request returning *GetAllAplServicesResponse +func (c *ClientWithResponses) GetAllAplServicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplServicesResponse, error) { + rsp, err := c.GetAllAplServices(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplServicesResponse(rsp) +} + +// GetAplTeamsWithResponse request returning *GetAplTeamsResponse +func (c *ClientWithResponses) GetAplTeamsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAplTeamsResponse, error) { + rsp, err := c.GetAplTeams(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplTeamsResponse(rsp) +} + +// CreateAplTeamWithBodyWithResponse request with arbitrary body returning *CreateAplTeamResponse +func (c *ClientWithResponses) CreateAplTeamWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplTeamResponse, error) { + rsp, err := c.CreateAplTeamWithBody(ctx, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplTeamResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplTeamWithResponse(ctx context.Context, body CreateAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplTeamResponse, error) { + rsp, err := c.CreateAplTeam(ctx, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplTeamResponse(rsp) +} + +// DeleteAplTeamWithResponse request returning *DeleteAplTeamResponse +func (c *ClientWithResponses) DeleteAplTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*DeleteAplTeamResponse, error) { + rsp, err := c.DeleteAplTeam(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplTeamResponse(rsp) +} + +// GetAplTeamWithResponse request returning *GetAplTeamResponse +func (c *ClientWithResponses) GetAplTeamWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplTeamResponse, error) { + rsp, err := c.GetAplTeam(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplTeamResponse(rsp) +} + +// EditAplTeamWithBodyWithResponse request with arbitrary body returning *EditAplTeamResponse +func (c *ClientWithResponses) EditAplTeamWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplTeamResponse, error) { + rsp, err := c.EditAplTeamWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplTeamResponse(rsp) +} + +func (c *ClientWithResponses) EditAplTeamWithResponse(ctx context.Context, teamId string, body EditAplTeamJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplTeamResponse, error) { + rsp, err := c.EditAplTeam(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplTeamResponse(rsp) +} + +// GetTeamAplBackupsWithResponse request returning *GetTeamAplBackupsResponse +func (c *ClientWithResponses) GetTeamAplBackupsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplBackupsResponse, error) { + rsp, err := c.GetTeamAplBackups(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplBackupsResponse(rsp) +} + +// CreateAplBackupWithBodyWithResponse request with arbitrary body returning *CreateAplBackupResponse +func (c *ClientWithResponses) CreateAplBackupWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplBackupResponse, error) { + rsp, err := c.CreateAplBackupWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplBackupResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplBackupWithResponse(ctx context.Context, teamId string, body CreateAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplBackupResponse, error) { + rsp, err := c.CreateAplBackup(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplBackupResponse(rsp) +} + +// DeleteAplBackupWithResponse request returning *DeleteAplBackupResponse +func (c *ClientWithResponses) DeleteAplBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*DeleteAplBackupResponse, error) { + rsp, err := c.DeleteAplBackup(ctx, teamId, backupName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplBackupResponse(rsp) +} + +// GetAplBackupWithResponse request returning *GetAplBackupResponse +func (c *ClientWithResponses) GetAplBackupWithResponse(ctx context.Context, teamId string, backupName string, reqEditors ...RequestEditorFn) (*GetAplBackupResponse, error) { + rsp, err := c.GetAplBackup(ctx, teamId, backupName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplBackupResponse(rsp) +} + +// EditAplBackupWithBodyWithResponse request with arbitrary body returning *EditAplBackupResponse +func (c *ClientWithResponses) EditAplBackupWithBodyWithResponse(ctx context.Context, teamId string, backupName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplBackupResponse, error) { + rsp, err := c.EditAplBackupWithBody(ctx, teamId, backupName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplBackupResponse(rsp) +} + +func (c *ClientWithResponses) EditAplBackupWithResponse(ctx context.Context, teamId string, backupName string, body EditAplBackupJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplBackupResponse, error) { + rsp, err := c.EditAplBackup(ctx, teamId, backupName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplBackupResponse(rsp) +} + +// GetTeamAplBuildsWithResponse request returning *GetTeamAplBuildsResponse +func (c *ClientWithResponses) GetTeamAplBuildsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplBuildsResponse, error) { + rsp, err := c.GetTeamAplBuilds(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplBuildsResponse(rsp) +} + +// CreateAplBuildWithBodyWithResponse request with arbitrary body returning *CreateAplBuildResponse +func (c *ClientWithResponses) CreateAplBuildWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplBuildResponse, error) { + rsp, err := c.CreateAplBuildWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplBuildResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplBuildWithResponse(ctx context.Context, teamId string, body CreateAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplBuildResponse, error) { + rsp, err := c.CreateAplBuild(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplBuildResponse(rsp) +} + +// DeleteAplBuildWithResponse request returning *DeleteAplBuildResponse +func (c *ClientWithResponses) DeleteAplBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*DeleteAplBuildResponse, error) { + rsp, err := c.DeleteAplBuild(ctx, teamId, buildName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplBuildResponse(rsp) +} + +// GetAplBuildWithResponse request returning *GetAplBuildResponse +func (c *ClientWithResponses) GetAplBuildWithResponse(ctx context.Context, teamId string, buildName string, reqEditors ...RequestEditorFn) (*GetAplBuildResponse, error) { + rsp, err := c.GetAplBuild(ctx, teamId, buildName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplBuildResponse(rsp) +} + +// EditAplBuildWithBodyWithResponse request with arbitrary body returning *EditAplBuildResponse +func (c *ClientWithResponses) EditAplBuildWithBodyWithResponse(ctx context.Context, teamId string, buildName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplBuildResponse, error) { + rsp, err := c.EditAplBuildWithBody(ctx, teamId, buildName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplBuildResponse(rsp) +} + +func (c *ClientWithResponses) EditAplBuildWithResponse(ctx context.Context, teamId string, buildName string, body EditAplBuildJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplBuildResponse, error) { + rsp, err := c.EditAplBuild(ctx, teamId, buildName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplBuildResponse(rsp) +} + +// GetTeamAplCodeReposWithResponse request returning *GetTeamAplCodeReposResponse +func (c *ClientWithResponses) GetTeamAplCodeReposWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplCodeReposResponse, error) { + rsp, err := c.GetTeamAplCodeRepos(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplCodeReposResponse(rsp) +} + +// CreateAplCodeRepoWithBodyWithResponse request with arbitrary body returning *CreateAplCodeRepoResponse +func (c *ClientWithResponses) CreateAplCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplCodeRepoResponse, error) { + rsp, err := c.CreateAplCodeRepoWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplCodeRepoResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplCodeRepoWithResponse(ctx context.Context, teamId string, body CreateAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplCodeRepoResponse, error) { + rsp, err := c.CreateAplCodeRepo(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplCodeRepoResponse(rsp) +} + +// DeleteAplCodeRepoWithResponse request returning *DeleteAplCodeRepoResponse +func (c *ClientWithResponses) DeleteAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*DeleteAplCodeRepoResponse, error) { + rsp, err := c.DeleteAplCodeRepo(ctx, teamId, codeRepositoryName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplCodeRepoResponse(rsp) +} + +// GetAplCodeRepoWithResponse request returning *GetAplCodeRepoResponse +func (c *ClientWithResponses) GetAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, reqEditors ...RequestEditorFn) (*GetAplCodeRepoResponse, error) { + rsp, err := c.GetAplCodeRepo(ctx, teamId, codeRepositoryName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplCodeRepoResponse(rsp) +} + +// EditAplCodeRepoWithBodyWithResponse request with arbitrary body returning *EditAplCodeRepoResponse +func (c *ClientWithResponses) EditAplCodeRepoWithBodyWithResponse(ctx context.Context, teamId string, codeRepositoryName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplCodeRepoResponse, error) { + rsp, err := c.EditAplCodeRepoWithBody(ctx, teamId, codeRepositoryName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplCodeRepoResponse(rsp) +} + +func (c *ClientWithResponses) EditAplCodeRepoWithResponse(ctx context.Context, teamId string, codeRepositoryName string, body EditAplCodeRepoJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplCodeRepoResponse, error) { + rsp, err := c.EditAplCodeRepo(ctx, teamId, codeRepositoryName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplCodeRepoResponse(rsp) +} + +// GetTeamAplNetpolsWithResponse request returning *GetTeamAplNetpolsResponse +func (c *ClientWithResponses) GetTeamAplNetpolsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplNetpolsResponse, error) { + rsp, err := c.GetTeamAplNetpols(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplNetpolsResponse(rsp) +} + +// CreateAplNetpolWithBodyWithResponse request with arbitrary body returning *CreateAplNetpolResponse +func (c *ClientWithResponses) CreateAplNetpolWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplNetpolResponse, error) { + rsp, err := c.CreateAplNetpolWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplNetpolResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplNetpolWithResponse(ctx context.Context, teamId string, body CreateAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplNetpolResponse, error) { + rsp, err := c.CreateAplNetpol(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplNetpolResponse(rsp) +} + +// DeleteAplNetpolWithResponse request returning *DeleteAplNetpolResponse +func (c *ClientWithResponses) DeleteAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*DeleteAplNetpolResponse, error) { + rsp, err := c.DeleteAplNetpol(ctx, teamId, netpolName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplNetpolResponse(rsp) +} + +// GetAplNetpolWithResponse request returning *GetAplNetpolResponse +func (c *ClientWithResponses) GetAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, reqEditors ...RequestEditorFn) (*GetAplNetpolResponse, error) { + rsp, err := c.GetAplNetpol(ctx, teamId, netpolName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplNetpolResponse(rsp) +} + +// EditAplNetpolWithBodyWithResponse request with arbitrary body returning *EditAplNetpolResponse +func (c *ClientWithResponses) EditAplNetpolWithBodyWithResponse(ctx context.Context, teamId string, netpolName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplNetpolResponse, error) { + rsp, err := c.EditAplNetpolWithBody(ctx, teamId, netpolName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplNetpolResponse(rsp) +} + +func (c *ClientWithResponses) EditAplNetpolWithResponse(ctx context.Context, teamId string, netpolName string, body EditAplNetpolJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplNetpolResponse, error) { + rsp, err := c.EditAplNetpol(ctx, teamId, netpolName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplNetpolResponse(rsp) +} + +// GetTeamAplPoliciesWithResponse request returning *GetTeamAplPoliciesResponse +func (c *ClientWithResponses) GetTeamAplPoliciesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplPoliciesResponse, error) { + rsp, err := c.GetTeamAplPolicies(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplPoliciesResponse(rsp) +} + +// GetAplPolicyWithResponse request returning *GetAplPolicyResponse +func (c *ClientWithResponses) GetAplPolicyWithResponse(ctx context.Context, teamId string, policyName string, reqEditors ...RequestEditorFn) (*GetAplPolicyResponse, error) { + rsp, err := c.GetAplPolicy(ctx, teamId, policyName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplPolicyResponse(rsp) +} + +// EditAplPolicyWithBodyWithResponse request with arbitrary body returning *EditAplPolicyResponse +func (c *ClientWithResponses) EditAplPolicyWithBodyWithResponse(ctx context.Context, teamId string, policyName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplPolicyResponse, error) { + rsp, err := c.EditAplPolicyWithBody(ctx, teamId, policyName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplPolicyResponse(rsp) +} + +func (c *ClientWithResponses) EditAplPolicyWithResponse(ctx context.Context, teamId string, policyName string, body EditAplPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplPolicyResponse, error) { + rsp, err := c.EditAplPolicy(ctx, teamId, policyName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplPolicyResponse(rsp) +} + +// GetAplSealedSecretsWithResponse request returning *GetAplSealedSecretsResponse +func (c *ClientWithResponses) GetAplSealedSecretsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetAplSealedSecretsResponse, error) { + rsp, err := c.GetAplSealedSecrets(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplSealedSecretsResponse(rsp) +} + +// CreateAplSealedSecretWithBodyWithResponse request with arbitrary body returning *CreateAplSealedSecretResponse +func (c *ClientWithResponses) CreateAplSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplSealedSecretResponse, error) { + rsp, err := c.CreateAplSealedSecretWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplSealedSecretResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplSealedSecretWithResponse(ctx context.Context, teamId string, body CreateAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplSealedSecretResponse, error) { + rsp, err := c.CreateAplSealedSecret(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplSealedSecretResponse(rsp) +} + +// DeleteAplSealedSecretWithResponse request returning *DeleteAplSealedSecretResponse +func (c *ClientWithResponses) DeleteAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*DeleteAplSealedSecretResponse, error) { + rsp, err := c.DeleteAplSealedSecret(ctx, teamId, sealedSecretName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplSealedSecretResponse(rsp) +} + +// GetAplSealedSecretWithResponse request returning *GetAplSealedSecretResponse +func (c *ClientWithResponses) GetAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, reqEditors ...RequestEditorFn) (*GetAplSealedSecretResponse, error) { + rsp, err := c.GetAplSealedSecret(ctx, teamId, sealedSecretName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplSealedSecretResponse(rsp) +} + +// EditAplSealedSecretWithBodyWithResponse request with arbitrary body returning *EditAplSealedSecretResponse +func (c *ClientWithResponses) EditAplSealedSecretWithBodyWithResponse(ctx context.Context, teamId string, sealedSecretName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplSealedSecretResponse, error) { + rsp, err := c.EditAplSealedSecretWithBody(ctx, teamId, sealedSecretName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplSealedSecretResponse(rsp) +} + +func (c *ClientWithResponses) EditAplSealedSecretWithResponse(ctx context.Context, teamId string, sealedSecretName string, body EditAplSealedSecretJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplSealedSecretResponse, error) { + rsp, err := c.EditAplSealedSecret(ctx, teamId, sealedSecretName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplSealedSecretResponse(rsp) +} + +// GetTeamAplServicesWithResponse request returning *GetTeamAplServicesResponse +func (c *ClientWithResponses) GetTeamAplServicesWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplServicesResponse, error) { + rsp, err := c.GetTeamAplServices(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplServicesResponse(rsp) +} + +// CreateAplServiceWithBodyWithResponse request with arbitrary body returning *CreateAplServiceResponse +func (c *ClientWithResponses) CreateAplServiceWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplServiceResponse, error) { + rsp, err := c.CreateAplServiceWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplServiceResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplServiceWithResponse(ctx context.Context, teamId string, body CreateAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplServiceResponse, error) { + rsp, err := c.CreateAplService(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplServiceResponse(rsp) +} + +// DeleteAplServiceWithResponse request returning *DeleteAplServiceResponse +func (c *ClientWithResponses) DeleteAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*DeleteAplServiceResponse, error) { + rsp, err := c.DeleteAplService(ctx, teamId, serviceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplServiceResponse(rsp) +} + +// GetAplServiceWithResponse request returning *GetAplServiceResponse +func (c *ClientWithResponses) GetAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, reqEditors ...RequestEditorFn) (*GetAplServiceResponse, error) { + rsp, err := c.GetAplService(ctx, teamId, serviceName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplServiceResponse(rsp) +} + +// EditAplServiceWithBodyWithResponse request with arbitrary body returning *EditAplServiceResponse +func (c *ClientWithResponses) EditAplServiceWithBodyWithResponse(ctx context.Context, teamId string, serviceName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplServiceResponse, error) { + rsp, err := c.EditAplServiceWithBody(ctx, teamId, serviceName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplServiceResponse(rsp) +} + +func (c *ClientWithResponses) EditAplServiceWithResponse(ctx context.Context, teamId string, serviceName string, body EditAplServiceJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplServiceResponse, error) { + rsp, err := c.EditAplService(ctx, teamId, serviceName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplServiceResponse(rsp) +} + +// GetTeamAplWorkloadsWithResponse request returning *GetTeamAplWorkloadsResponse +func (c *ClientWithResponses) GetTeamAplWorkloadsWithResponse(ctx context.Context, teamId string, reqEditors ...RequestEditorFn) (*GetTeamAplWorkloadsResponse, error) { + rsp, err := c.GetTeamAplWorkloads(ctx, teamId, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetTeamAplWorkloadsResponse(rsp) +} + +// CreateAplWorkloadWithBodyWithResponse request with arbitrary body returning *CreateAplWorkloadResponse +func (c *ClientWithResponses) CreateAplWorkloadWithBodyWithResponse(ctx context.Context, teamId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateAplWorkloadResponse, error) { + rsp, err := c.CreateAplWorkloadWithBody(ctx, teamId, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplWorkloadResponse(rsp) +} + +func (c *ClientWithResponses) CreateAplWorkloadWithResponse(ctx context.Context, teamId string, body CreateAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateAplWorkloadResponse, error) { + rsp, err := c.CreateAplWorkload(ctx, teamId, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseCreateAplWorkloadResponse(rsp) +} + +// DeleteAplWorkloadWithResponse request returning *DeleteAplWorkloadResponse +func (c *ClientWithResponses) DeleteAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*DeleteAplWorkloadResponse, error) { + rsp, err := c.DeleteAplWorkload(ctx, teamId, workloadName, reqEditors...) + if err != nil { + return nil, err + } + return ParseDeleteAplWorkloadResponse(rsp) +} + +// GetAplWorkloadWithResponse request returning *GetAplWorkloadResponse +func (c *ClientWithResponses) GetAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, reqEditors ...RequestEditorFn) (*GetAplWorkloadResponse, error) { + rsp, err := c.GetAplWorkload(ctx, teamId, workloadName, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAplWorkloadResponse(rsp) +} + +// EditAplWorkloadWithBodyWithResponse request with arbitrary body returning *EditAplWorkloadResponse +func (c *ClientWithResponses) EditAplWorkloadWithBodyWithResponse(ctx context.Context, teamId string, workloadName string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*EditAplWorkloadResponse, error) { + rsp, err := c.EditAplWorkloadWithBody(ctx, teamId, workloadName, contentType, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplWorkloadResponse(rsp) +} + +func (c *ClientWithResponses) EditAplWorkloadWithResponse(ctx context.Context, teamId string, workloadName string, body EditAplWorkloadJSONRequestBody, reqEditors ...RequestEditorFn) (*EditAplWorkloadResponse, error) { + rsp, err := c.EditAplWorkload(ctx, teamId, workloadName, body, reqEditors...) + if err != nil { + return nil, err + } + return ParseEditAplWorkloadResponse(rsp) +} + +// GetAllAplWorkloadNamesWithResponse request returning *GetAllAplWorkloadNamesResponse +func (c *ClientWithResponses) GetAllAplWorkloadNamesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplWorkloadNamesResponse, error) { + rsp, err := c.GetAllAplWorkloadNames(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplWorkloadNamesResponse(rsp) +} + +// GetAllAplWorkloadsWithResponse request returning *GetAllAplWorkloadsResponse +func (c *ClientWithResponses) GetAllAplWorkloadsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetAllAplWorkloadsResponse, error) { + rsp, err := c.GetAllAplWorkloads(ctx, reqEditors...) + if err != nil { + return nil, err + } + return ParseGetAllAplWorkloadsResponse(rsp) +} + +// ParseGetAIModelsResponse parses an HTTP response from a GetAIModelsWithResponse call +func ParseGetAIModelsResponse(rsp *http.Response) (*GetAIModelsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAIModelsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAIModels200Kind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // DisplayName User-friendly model display name + DisplayName *string `json:"displayName,omitempty"` + + // ModelDimension Embedding dimension, must be compatible with model and database + ModelDimension *int `json:"modelDimension,omitempty"` + ModelEndpoint string `json:"modelEndpoint"` + + // ModelType Model type, foundation for text generation, embedding for vector search + ModelType GetAIModels200SpecModelType `json:"modelType"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAplAgentsResponse parses an HTTP response from a GetAplAgentsWithResponse call +func ParseGetAplAgentsResponse(rsp *http.Response) (*GetAplAgentsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplAgentsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAplAgents200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateAplAgentResponse parses an HTTP response from a CreateAplAgentWithResponse call +func ParseCreateAplAgentResponse(rsp *http.Response) (*CreateAplAgentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplAgentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplAgentResponse parses an HTTP response from a DeleteAplAgentWithResponse call +func ParseDeleteAplAgentResponse(rsp *http.Response) (*DeleteAplAgentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplAgentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplAgentResponse parses an HTTP response from a GetAplAgentWithResponse call +func ParseGetAplAgentResponse(rsp *http.Response) (*GetAplAgentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplAgentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplAgentResponse parses an HTTP response from a EditAplAgentWithResponse call +func ParseEditAplAgentResponse(rsp *http.Response) (*EditAplAgentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplAgentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplAgent200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // AgentInstructions Custom instructions for the agent + AgentInstructions string `json:"agentInstructions"` + + // FoundationModel Name of the foundation model + FoundationModel string `json:"foundationModel"` + + // Tools Tools available to the agent + Tools *[]struct { + // Description Description of what the tool does + Description *string `json:"description,omitempty"` + + // Endpoint Optional endpoint URL for the tool + Endpoint *string `json:"endpoint,omitempty"` + + // Name Name of the tool resource + Name string `json:"name"` + + // Type Type of the tool + Type string `json:"type"` + } `json:"tools,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplAgent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplKnowledgeBasesResponse parses an HTTP response from a GetAplKnowledgeBasesWithResponse call +func ParseGetAplKnowledgeBasesResponse(rsp *http.Response) (*GetAplKnowledgeBasesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplKnowledgeBasesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAplKnowledgeBases200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateAplKnowledgeBaseResponse parses an HTTP response from a CreateAplKnowledgeBaseWithResponse call +func ParseCreateAplKnowledgeBaseResponse(rsp *http.Response) (*CreateAplKnowledgeBaseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplKnowledgeBaseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplKnowledgeBaseResponse parses an HTTP response from a DeleteAplKnowledgeBaseWithResponse call +func ParseDeleteAplKnowledgeBaseResponse(rsp *http.Response) (*DeleteAplKnowledgeBaseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplKnowledgeBaseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplKnowledgeBaseResponse parses an HTTP response from a GetAplKnowledgeBaseWithResponse call +func ParseGetAplKnowledgeBaseResponse(rsp *http.Response) (*GetAplKnowledgeBaseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplKnowledgeBaseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplKnowledgeBaseResponse parses an HTTP response from a EditAplKnowledgeBaseWithResponse call +func ParseEditAplKnowledgeBaseResponse(rsp *http.Response) (*EditAplKnowledgeBaseResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplKnowledgeBaseResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplKnowledgeBase200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ModelName Name of the embedding model service + ModelName string `json:"modelName"` + + // SourceUrl Public URL to the data source + SourceUrl string `json:"sourceUrl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplKnowledgeBase400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseV1apiDocsResponse parses an HTTP response from a V1apiDocsWithResponse call +func ParseV1apiDocsResponse(rsp *http.Response) (*V1apiDocsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &V1apiDocsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAppsResponse parses an HTTP response from a GetAppsWithResponse call +func ParseGetAppsResponse(rsp *http.Response) (*GetAppsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAppsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Enabled *bool `json:"enabled,omitempty"` + Id string `json:"id"` + + // RawValues May define value overrides for a chart. WARNING: these values currently have no schema and will not be validated. + RawValues *map[string]interface{} `json:"rawValues,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseToggleAppsResponse parses an HTTP response from a ToggleAppsWithResponse call +func ParseToggleAppsResponse(rsp *http.Response) (*ToggleAppsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ToggleAppsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ToggleApps400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseGetAppResponse parses an HTTP response from a GetAppWithResponse call +func ParseGetAppResponse(rsp *http.Response) (*GetAppResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAppResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Enabled *bool `json:"enabled,omitempty"` + Id string `json:"id"` + + // RawValues May define value overrides for a chart. WARNING: these values currently have no schema and will not be validated. + RawValues *map[string]interface{} `json:"rawValues,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditAppResponse parses an HTTP response from a EditAppWithResponse call +func ParseEditAppResponse(rsp *http.Response) (*EditAppResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAppResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditApp400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllBackupsResponse parses an HTTP response from a GetAllBackupsWithResponse call +func ParseGetAllBackupsResponse(rsp *http.Response) (*GetAllBackupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllBackupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllBuildsResponse parses an HTTP response from a GetAllBuildsWithResponse call +func ParseGetAllBuildsResponse(rsp *http.Response) (*GetAllBuildsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllBuildsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAllBuilds_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseDeleteCloudttyResponse parses an HTTP response from a DeleteCloudttyWithResponse call +func ParseDeleteCloudttyResponse(rsp *http.Response) (*DeleteCloudttyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCloudttyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseConnectCloudttyResponse parses an HTTP response from a ConnectCloudttyWithResponse call +func ParseConnectCloudttyResponse(rsp *http.Response) (*ConnectCloudttyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ConnectCloudttyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + IFrameUrl *string `json:"iFrameUrl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ConnectCloudtty400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseGetAllCodeReposResponse parses an HTTP response from a GetAllCodeReposWithResponse call +func ParseGetAllCodeReposResponse(rsp *http.Response) (*GetAllCodeReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllCodeReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + GitService GetAllCodeRepos200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateWorkloadCatalogResponse parses an HTTP response from a CreateWorkloadCatalogWithResponse call +func ParseCreateWorkloadCatalogResponse(rsp *http.Response) (*CreateWorkloadCatalogResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateWorkloadCatalogResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateWorkloadCatalog400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetDashboardResponse parses an HTTP response from a GetDashboardWithResponse call +func ParseGetDashboardResponse(rsp *http.Response) (*GetDashboardResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetDashboardResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetDashboard400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseDownloadDockerConfigResponse parses an HTTP response from a DownloadDockerConfigWithResponse call +func ParseDownloadDockerConfigResponse(rsp *http.Response) (*DownloadDockerConfigResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadDockerConfigResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadDockerConfig400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest + + } + + return response, nil +} + +// ParseGetHelmChartContentResponse parses an HTTP response from a GetHelmChartContentWithResponse call +func ParseGetHelmChartContentResponse(rsp *http.Response) (*GetHelmChartContentResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetHelmChartContentResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Error *string `json:"error,omitempty"` + Values *map[string]interface{} `json:"values,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetHelmChartContent400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetInternalRepoUrlsResponse parses an HTTP response from a GetInternalRepoUrlsWithResponse call +func ParseGetInternalRepoUrlsResponse(rsp *http.Response) (*GetInternalRepoUrlsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetInternalRepoUrlsResponse{ + 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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetInternalRepoUrls400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetK8sVersionResponse parses an HTTP response from a GetK8sVersionWithResponse call +func ParseGetK8sVersionResponse(rsp *http.Response) (*GetK8sVersionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetK8sVersionResponse{ + 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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetK8sVersion400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDownloadKubecfgResponse parses an HTTP response from a DownloadKubecfgWithResponse call +func ParseDownloadKubecfgResponse(rsp *http.Response) (*DownloadKubecfgResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadKubecfgResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadKubecfg400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest + + } + + return response, nil +} + +// ParseGetAllNetpolsResponse parses an HTTP response from a GetAllNetpolsWithResponse call +func ParseGetAllNetpolsResponse(rsp *http.Response) (*GetAllNetpolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllNetpolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAllNetpols200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAllNetpols200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAllNetpols200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateObjWizardResponse parses an HTTP response from a CreateObjWizardWithResponse call +func ParseCreateObjWizardResponse(rsp *http.Response) (*CreateObjWizardResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateObjWizardResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateObjWizard400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseGetValuesResponse parses an HTTP response from a GetValuesWithResponse call +func ParseGetValuesResponse(rsp *http.Response) (*GetValuesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetValuesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "yaml") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := yaml.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.YAML200 = &dest + + } + + return response, nil +} + +// ParseGetAllPoliciesResponse parses an HTTP response from a GetAllPoliciesWithResponse call +func ParseGetAllPoliciesResponse(rsp *http.Response) (*GetAllPoliciesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AllowedImageRepositories In addition to restricting the image registry from which images are pulled, in some cases and environments it may be required to also restrict which image repositories are used, for example in some restricted Namespaces. This policy ensures that the only allowed image repositories present in a given Pod, across any container type, come from the designated list. + AllowedImageRepositories *struct { + Action *GetAllPolicies200AllowedImageRepositoriesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200AllowedImageRepositoriesSeverity `json:"severity,omitempty"` + } `json:"allowed-image-repositories,omitempty"` + + // DisallowCapabilities Container capabilities beyond those listed in the policy must be disallowed. + DisallowCapabilities *struct { + Action *GetAllPolicies200DisallowCapabilitiesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200DisallowCapabilitiesSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities,omitempty"` + + // DisallowCapabilitiesStrict Adding capabilities other than `NET_BIND_SERVICE` is disallowed. In addition, all containers must explicitly drop `ALL` capabilities. + DisallowCapabilitiesStrict *struct { + Action *GetAllPolicies200DisallowCapabilitiesStrictAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowCapabilitiesStrictSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities-strict,omitempty"` + + // DisallowHostNamespaces Host namespaces (Process ID namespace, Inter-Process Communication namespace, and network namespace) allow access to shared information and can be used to elevate privileges. Pods should not be allowed access to host namespaces. This policy ensures fields which make use of these host namespaces are unset or set to `false`. + DisallowHostNamespaces *struct { + Action *GetAllPolicies200DisallowHostNamespacesAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostNamespacesSeverity `json:"severity,omitempty"` + } `json:"disallow-host-namespaces,omitempty"` + + // DisallowHostPath HostPath volumes let Pods use host directories and volumes in containers. Using host resources can be used to access shared data or escalate privilegesand should not be allowed. This policy ensures no hostPath volumes are in use. + DisallowHostPath *struct { + Action *GetAllPolicies200DisallowHostPathAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostPathSeverity `json:"severity,omitempty"` + } `json:"disallow-host-path,omitempty"` + + // DisallowHostPorts Access to host ports allows potential snooping of network traffic and should not be allowed, or at minimum restricted to a known list. This policy ensures the `hostPort` field is unset or set to `0`. + DisallowHostPorts *struct { + Action *GetAllPolicies200DisallowHostPortsAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostPortsSeverity `json:"severity,omitempty"` + } `json:"disallow-host-ports,omitempty"` + + // DisallowHostProcess Windows pods offer the ability to run HostProcess containers which enables privileged access to the Windows node. Privileged access to the host is disallowed in the baseline policy. HostProcess pods are an alpha feature as of Kubernetes v1.22. This policy ensures the `hostProcess` field, if present, is set to `false`. + DisallowHostProcess *struct { + Action *GetAllPolicies200DisallowHostProcessAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowHostProcessSeverity `json:"severity,omitempty"` + } `json:"disallow-host-process,omitempty"` + + // DisallowLatestTag The `latest` tag is mutable and can lead to unexpected errors if the image changes. A best practice is to use an immutable tag that maps to a specific version of an application Pod. This policy validates that the image specifies a tag and that it is not called `latest`. + DisallowLatestTag *struct { + Action *GetAllPolicies200DisallowLatestTagAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowLatestTagSeverity `json:"severity,omitempty"` + } `json:"disallow-latest-tag,omitempty"` + + // DisallowPrivilegeEscalation Privilege escalation, such as via set-user-ID or set-group-ID file mode, should not be allowed. This policy ensures the `allowPrivilegeEscalation` field is set to `false`. + DisallowPrivilegeEscalation *struct { + Action *GetAllPolicies200DisallowPrivilegeEscalationAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowPrivilegeEscalationSeverity `json:"severity,omitempty"` + } `json:"disallow-privilege-escalation,omitempty"` + + // DisallowPrivilegedContainers Privileged mode disables most security mechanisms and must not be allowed. This policy ensures Pods do not call for privileged mode. + DisallowPrivilegedContainers *struct { + Action *GetAllPolicies200DisallowPrivilegedContainersAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowPrivilegedContainersSeverity `json:"severity,omitempty"` + } `json:"disallow-privileged-containers,omitempty"` + + // DisallowProcMount The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server. + DisallowProcMount *struct { + Action *GetAllPolicies200DisallowProcMountAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowProcMountSeverity `json:"severity,omitempty"` + } `json:"disallow-proc-mount,omitempty"` + + // DisallowSelinux SELinux options can be used to escalate privileges and should not be allowed. This policy ensures that the `seLinuxOptions` field is undefined. + DisallowSelinux *struct { + Action *GetAllPolicies200DisallowSelinuxAction `json:"action,omitempty"` + Severity *GetAllPolicies200DisallowSelinuxSeverity `json:"severity,omitempty"` + } `json:"disallow-selinux,omitempty"` + + // RequireLabels Define and use labels that identify your application or Deployment, for example `otomi.io/app`. + RequireLabels *struct { + Action *GetAllPolicies200RequireLabelsAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200RequireLabelsSeverity `json:"severity,omitempty"` + } `json:"require-labels,omitempty"` + + // RequireLimits As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource limits per Pod, especially for memory and CPU. If a Namespace level limit is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU limits specified. + RequireLimits *struct { + Action *GetAllPolicies200RequireLimitsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireLimitsSeverity `json:"severity,omitempty"` + } `json:"require-limits,omitempty"` + + // RequireLivenessProbe Liveness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. For each Pod, a periodic `livenessProbe` is performed by the kubelet to determine if the Pod`s containers are running or need to be restarted. This policy validates that all containers have a livenessProbe defined. + RequireLivenessProbe *struct { + Action *GetAllPolicies200RequireLivenessProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireLivenessProbeSeverity `json:"severity,omitempty"` + } `json:"require-liveness-probe,omitempty"` + + // RequireNonRootGroups Containers should be forbidden from running with a root primary or supplementary GID. This policy ensures the `runAsGroup`, `supplementalGroups`, and `fsGroup` fields are set to a number greater than zero (i.e., non root). A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireNonRootGroups *struct { + Action *GetAllPolicies200RequireNonRootGroupsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireNonRootGroupsSeverity `json:"severity,omitempty"` + } `json:"require-non-root-groups,omitempty"` + + // RequireReadinessProbe Readiness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. A `readinessProbe` is used by Service and Deployments to determine if the Pod is ready to receive network traffic. This policy validates that all containers have a readinessProbe defined. + RequireReadinessProbe *struct { + Action *GetAllPolicies200RequireReadinessProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireReadinessProbeSeverity `json:"severity,omitempty"` + } `json:"require-readiness-probe,omitempty"` + + // RequireRequests As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource requests per Pod, especially for memory and CPU. If a Namespace level request is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU requests specified. + RequireRequests *struct { + Action *GetAllPolicies200RequireRequestsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRequestsSeverity `json:"severity,omitempty"` + } `json:"require-requests,omitempty"` + + // RequireRunAsNonRootUser Containers must be required to run as non-root users. This policy ensures `runAsUser` is either unset or set to a number greater than zero. + RequireRunAsNonRootUser *struct { + Action *GetAllPolicies200RequireRunAsNonRootUserAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRunAsNonRootUserSeverity `json:"severity,omitempty"` + } `json:"require-run-as-non-root-user,omitempty"` + + // RequireRunAsNonroot Containers must be required to run as non-root users. This policy ensures `runAsNonRoot` is set to `true`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireRunAsNonroot *struct { + Action *GetAllPolicies200RequireRunAsNonrootAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireRunAsNonrootSeverity `json:"severity,omitempty"` + } `json:"require-run-as-nonroot,omitempty"` + + // RequireStartupProbe Startup probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. Sometimes, applications are temporarily unable to serve traffic. For example, an application might need to load large data or configuration files during startup, or depend on external services after startup. In such cases, you don`t want to kill the application, but you don`t want to send it requests either. Kubernetes provides readiness probes to detect and mitigate these situations. A pod with containers reporting that they are not ready does not receive traffic through Kubernetes Services. This policy validates that all containers have a livenessProbe defined. + RequireStartupProbe *struct { + Action *GetAllPolicies200RequireStartupProbeAction `json:"action,omitempty"` + Severity *GetAllPolicies200RequireStartupProbeSeverity `json:"severity,omitempty"` + } `json:"require-startup-probe,omitempty"` + + // RestrictApparmorProfiles On supported hosts, the `runtime/default` AppArmor profile is applied by default. The default policy should prevent overriding or disabling the policy, or restrict overrides to an allowed set of profiles. This policy ensures Pods do not specify any other AppArmor profiles than `runtime/default` or `localhost/*`. + RestrictApparmorProfiles *struct { + Action *GetAllPolicies200RestrictApparmorProfilesAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictApparmorProfilesSeverity `json:"severity,omitempty"` + } `json:"restrict-apparmor-profiles,omitempty"` + + // RestrictSeccomp The seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`. + RestrictSeccomp *struct { + Action *GetAllPolicies200RestrictSeccompAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSeccompSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp,omitempty"` + + // RestrictSeccompStrict The seccomp profile in the Restricted group must not be explicitly set to Unconfined but additionally must also not allow an unset value. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is set to `RuntimeDefault` or `Localhost`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RestrictSeccompStrict *struct { + Action *GetAllPolicies200RestrictSeccompStrictAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSeccompStrictSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp-strict,omitempty"` + + // RestrictSysctls Sysctls can disable security mechanisms or affect all containers on a host, and should be disallowed except for an allowed "safe" subset. A sysctl is considered safe if it is namespaced in the container or the Pod, and it is isolated from other Pods or processes on the same Node. This policy ensures that only those "safe" subsets can be specified in a Pod. + RestrictSysctls *struct { + Action *GetAllPolicies200RestrictSysctlsAction `json:"action,omitempty"` + Severity *GetAllPolicies200RestrictSysctlsSeverity `json:"severity,omitempty"` + } `json:"restrict-sysctls,omitempty"` + + // RestrictVolumeTypes In addition to restricting HostPath volumes, the restricted pod security profile limits usage of non-core volume types to those defined through PersistentVolumes. This policy blocks any other type of volume other than those in the allow list. + RestrictVolumeTypes *struct { + Action *GetAllPolicies200RestrictVolumeTypesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetAllPolicies200RestrictVolumeTypesSeverity `json:"severity,omitempty"` + } `json:"restrict-volume-types,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetRepoBranchesResponse parses an HTTP response from a GetRepoBranchesWithResponse call +func ParseGetRepoBranchesResponse(rsp *http.Response) (*GetRepoBranchesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetRepoBranchesResponse{ + 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 +} + +// ParseGetAllSealedSecretsResponse parses an HTTP response from a GetAllSealedSecretsWithResponse call +func ParseGetAllSealedSecretsResponse(rsp *http.Response) (*GetAllSealedSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllSealedSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAllSealedSecrets200Type `json:"type"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseDownloadSealedSecretKeysResponse parses an HTTP response from a DownloadSealedSecretKeysWithResponse call +func ParseDownloadSealedSecretKeysResponse(rsp *http.Response) (*DownloadSealedSecretKeysResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DownloadSealedSecretKeysResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DownloadSealedSecretKeys400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseGetAllServicesResponse parses an HTTP response from a GetAllServicesWithResponse call +func ParseGetAllServicesResponse(rsp *http.Response) (*GetAllServicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllServicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetAllServices_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetSessionResponse parses an HTTP response from a GetSessionWithResponse call +func ParseGetSessionResponse(rsp *http.Response) (*GetSessionResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSessionResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Ca *string `json:"ca,omitempty"` + Core *map[string]interface{} `json:"core,omitempty"` + Corrupt *bool `json:"corrupt,omitempty"` + DefaultPlatformAdminEmail *string `json:"defaultPlatformAdminEmail,omitempty"` + Editor *string `json:"editor,omitempty"` + InactivityTimeout *int `json:"inactivityTimeout,omitempty"` + ObjectStorage *struct { + ObjStorageApps *[]struct { + AppId *string `json:"appId,omitempty"` + Required *bool `json:"required,omitempty"` + } `json:"objStorageApps,omitempty"` + ObjStorageRegions *[]struct { + Id *string `json:"id,omitempty"` + Label *string `json:"label,omitempty"` + } `json:"objStorageRegions,omitempty"` + ShowWizard *bool `json:"showWizard,omitempty"` + } `json:"objectStorage,omitempty"` + SealedSecretsPEM *string `json:"sealedSecretsPEM,omitempty"` + User *struct { + Authz map[string]struct { + // DeniedAttributes Attribute paths that are not allowed to be modified by a user + DeniedAttributes map[string][]string `json:"deniedAttributes"` + } `json:"authz"` + Email string `json:"email"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin bool `json:"isPlatformAdmin"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin bool `json:"isTeamAdmin"` + + // Name A user name + Name string `json:"name"` + + // Roles A list of roles that the user has. + Roles []string `json:"roles"` + + // Sub A user subject. + Sub *string `json:"sub,omitempty"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams []string `json:"teams"` + } `json:"user,omitempty"` + ValuesSchema *map[string]interface{} `json:"valuesSchema,omitempty"` + Versions *struct { + Api *string `json:"api,omitempty"` + Console *string `json:"console,omitempty"` + Core *string `json:"core,omitempty"` + Values *string `json:"values,omitempty"` + } `json:"versions,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetSettingsResponse parses an HTTP response from a GetSettingsWithResponse call +func ParseGetSettingsResponse(rsp *http.Response) (*GetSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Alerts Configure alerting endpoints to receive notifications from Alertmanager. + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetSettings200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // Cluster The Kubernetes cluster running APL. + Cluster *struct { + // ApiServer URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. + ApiServer *string `json:"apiServer,omitempty"` + + // DefaultStorageClass Default storage class for platform components. Use '' for relying on the cluster's default storage class. + DefaultStorageClass *string `json:"defaultStorageClass,omitempty"` + + // DomainSuffix The domain suffix for the cluster. + DomainSuffix *string `json:"domainSuffix,omitempty"` + K8sContext *string `json:"k8sContext,omitempty"` + Name string `json:"name"` + + // Owner The name of the organization owning the cluster. + Owner *string `json:"owner,omitempty"` + + // Provider The cloud provider of this cluster. + Provider GetSettings200ClusterProvider `json:"provider"` + } `json:"cluster,omitempty"` + + // Dns Domain name server settings. + Dns *struct { + // DomainFilters Limit possible target zones by domain suffixes. + DomainFilters *[]string `json:"domainFilters,omitempty"` + + // Provider The DNS provider managing the domains. + Provider *GetSettings_200_Dns_Provider `json:"provider,omitempty"` + + // ZoneIdFilters Limit possible target zones by zone id. + ZoneIdFilters *[]string `json:"zoneIdFilters,omitempty"` + + // Zones Extra DNS zones the cluster can administer (see DNS). Teams can use this domain for Service exposure. + Zones *[]string `json:"zones,omitempty"` + } `json:"dns,omitempty"` + Ingress *struct { + Classes *[]struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName An arbitrary name that will be used to assign an ingress class to a team service. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"classes,omitempty"` + PlatformClass *struct { + // Annotations Annotations for the Load Balancer service resource. + Annotations *[]struct { + Key *string `json:"key,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"annotations,omitempty"` + + // ClassName The platform ingress class is used for all platform services. + ClassName *string `json:"className,omitempty"` + + // Entrypoint Optional: An IP address that will be used for DNS records. + Entrypoint *string `json:"entrypoint,omitempty"` + + // LoadBalancerIP Optional: A static IP address assigned to a load balancer. + LoadBalancerIP *string `json:"loadBalancerIP,omitempty"` + } `json:"platformClass,omitempty"` + } `json:"ingress,omitempty"` + + // Kms Manage settings for retrieving encryption/decryption keys. + Kms *struct { + // Sops Select encryption engine for SOPS to encrypt the platform secrets. + Sops *GetSettings_200_Kms_Sops `json:"sops,omitempty"` + } `json:"kms,omitempty"` + Obj *struct { + // Provider Select the preferred Object Storage provider. + Provider *GetSettings_200_Obj_Provider `json:"provider,omitempty"` + + // ShowWizard Show the Object Storage wizard. + ShowWizard *bool `json:"showWizard,omitempty"` + } `json:"obj,omitempty"` + Oidc *struct { + AllTeamsAdminGroupID *string `json:"allTeamsAdminGroupID,omitempty"` + ClientID string `json:"clientID"` + ClientSecret string `json:"clientSecret"` + Issuer string `json:"issuer"` + PlatformAdminGroupID *string `json:"platformAdminGroupID,omitempty"` + + // SubClaimMapper Set OIDC claim to be passed by Keycloak as a unique user identifier. It is advised to not change the default. + SubClaimMapper *string `json:"subClaimMapper,omitempty"` + TeamAdminGroupID *string `json:"teamAdminGroupID,omitempty"` + + // UsernameClaimMapper Claim name used by Keycloak to identify incoming users from the identity provider. + UsernameClaimMapper *string `json:"usernameClaimMapper,omitempty"` + } `json:"oidc,omitempty"` + Otomi *struct { + // AdminPassword Master admin password that will be used for all apps that are not configured to use their own password. + AdminPassword *string `json:"adminPassword,omitempty"` + + // AiEnabled Defines if APL enables AI/ML components + AiEnabled *bool `json:"aiEnabled,omitempty"` + + // GlobalPullSecret Will be connected to each "default" service account in all Team namespaces to avoid rate limiting. + GlobalPullSecret *struct { + Email *string `json:"email,omitempty"` + Password *string `json:"password,omitempty"` + Server *string `json:"server,omitempty"` + Username *string `json:"username,omitempty"` + } `json:"globalPullSecret,omitempty"` + + // HasExternalDNS Set this to true when an external DNS zone is available to manage DNS records (Expects required DNS fields to be set). + HasExternalDNS *bool `json:"hasExternalDNS,omitempty"` + + // HasExternalIDP Set this to true when bringing your own external IDP such as Azure Entra ID (Expects required OIDC fields to be set). + HasExternalIDP *bool `json:"hasExternalIDP,omitempty"` + + // IsMultitenant Will separate team metrics and logs. Disabling this effectively gives all users admin role and lets them see everything. + IsMultitenant *bool `json:"isMultitenant,omitempty"` + + // IsPreInstalled Defines if platform is installed through Akamai Connected Cloud. + IsPreInstalled *bool `json:"isPreInstalled,omitempty"` + + // NodeSelector One or more label/value pairs of one or more nodes. This will enforce scheduling of all platform services on these nodes. + NodeSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"nodeSelector,omitempty"` + + // UseORCS Defines if the OCI Registry Cache Service (ORCS) is used to cache images from the public registry. + UseORCS *bool `json:"useORCS,omitempty"` + + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"otomi,omitempty"` + PlatformBackups *struct { + Database *struct { + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + Harbor *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"harbor,omitempty"` + Keycloak *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"keycloak,omitempty"` + } `json:"database,omitempty"` + + // Gitea Enable application-level backup of Gitea repositories. + Gitea *struct { + Enabled *bool `json:"enabled,omitempty"` + + // RetentionPolicy Delete backups according to retention policy. In DAYS|WEEKS|MONTHS + RetentionPolicy *string `json:"retentionPolicy,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule *string `json:"schedule,omitempty"` + } `json:"gitea,omitempty"` + + // PersistentVolumes Add a Linode API token and enable the Velero App to create backups of PVs. + PersistentVolumes *struct { + LinodeApiToken *string `json:"linodeApiToken,omitempty"` + } `json:"persistentVolumes,omitempty"` + } `json:"platformBackups,omitempty"` + Smtp *struct { + AuthIdentity *string `json:"auth_identity,omitempty"` + AuthPassword *string `json:"auth_password,omitempty"` + AuthSecret *string `json:"auth_secret,omitempty"` + AuthUsername *string `json:"auth_username,omitempty"` + + // From The from address. Defaults to alerts@$clusterDomain. + From *string `json:"from,omitempty"` + + // Hello The hostname to identify to the SMTP server. + Hello *string `json:"hello,omitempty"` + + // Smarthost The smtp host:port combination. + Smarthost string `json:"smarthost"` + } `json:"smtp,omitempty"` + Versions *struct { + // Version Set the version to a valid release found in the linode/apl-core Github repository. + Version string `json:"version"` + } `json:"versions,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseEditSettingsResponse parses an HTTP response from a EditSettingsWithResponse call +func ParseEditSettingsResponse(rsp *http.Response) (*EditSettingsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditSettingsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditSettings400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSettingsInfoResponse parses an HTTP response from a GetSettingsInfoWithResponse call +func ParseGetSettingsInfoResponse(rsp *http.Response) (*GetSettingsInfoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSettingsInfoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Cluster *struct { + // ApiServer URL to the Kubernetes API. Used to generate the KUBECONFIG for download, for direct access to the cluster. + ApiServer *string `json:"apiServer,omitempty"` + + // DomainSuffix The domain suffix for the cluster. + DomainSuffix *string `json:"domainSuffix,omitempty"` + + // Name Name of the cluster. + Name *string `json:"name,omitempty"` + + // Provider The cloud provider of this cluster. + Provider *GetSettingsInfo200ClusterProvider `json:"provider,omitempty"` + } `json:"cluster,omitempty"` + Dns *struct { + // Zones Extra DNS zones that the cluster can administer. Team services can use this to publish their URLs on. + Zones *[]string `json:"zones,omitempty"` + } `json:"dns,omitempty"` + + // IngressClassNames Ingress class names that are used by the cluster. + IngressClassNames *[]string `json:"ingressClassNames,omitempty"` + Otomi *struct { + AiEnabled *bool `json:"aiEnabled,omitempty"` + HasExternalDNS *bool `json:"hasExternalDNS,omitempty"` + HasExternalIDP *bool `json:"hasExternalIDP,omitempty"` + IsPreInstalled *bool `json:"isPreInstalled,omitempty"` + } `json:"otomi,omitempty"` + Smtp *struct { + Smarthost *string `json:"smarthost,omitempty"` + } `json:"smtp,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetTeamsResponse parses an HTTP response from a GetTeamsWithResponse call +func ParseGetTeamsResponse(rsp *http.Response) (*GetTeamsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetTeams200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateTeamResponse parses an HTTP response from a CreateTeamWithResponse call +func ParseCreateTeamResponse(rsp *http.Response) (*CreateTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteTeamResponse parses an HTTP response from a DeleteTeamWithResponse call +func ParseDeleteTeamResponse(rsp *http.Response) (*DeleteTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamResponse parses an HTTP response from a GetTeamWithResponse call +func ParseGetTeamResponse(rsp *http.Response) (*GetTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditTeamResponse parses an HTTP response from a EditTeamWithResponse call +func ParseEditTeamResponse(rsp *http.Response) (*EditTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditTeam200AlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + Id *string `json:"id,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + + // Name A team name + Name string `json:"name"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamBackupsResponse parses an HTTP response from a GetTeamBackupsWithResponse call +func ParseGetTeamBackupsResponse(rsp *http.Response) (*GetTeamBackupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamBackupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateBackupResponse parses an HTTP response from a CreateBackupWithResponse call +func ParseCreateBackupResponse(rsp *http.Response) (*CreateBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteBackupResponse parses an HTTP response from a DeleteBackupWithResponse call +func ParseDeleteBackupResponse(rsp *http.Response) (*DeleteBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetBackupResponse parses an HTTP response from a GetBackupWithResponse call +func ParseGetBackupResponse(rsp *http.Response) (*GetBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditBackupResponse parses an HTTP response from a EditBackupWithResponse call +func ParseEditBackupResponse(rsp *http.Response) (*EditBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + Name string `json:"name"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamBuildsResponse parses an HTTP response from a GetTeamBuildsWithResponse call +func ParseGetTeamBuildsResponse(rsp *http.Response) (*GetTeamBuildsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamBuildsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetTeamBuilds_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateBuildResponse parses an HTTP response from a CreateBuildWithResponse call +func ParseCreateBuildResponse(rsp *http.Response) (*CreateBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteBuildResponse parses an HTTP response from a DeleteBuildWithResponse call +func ParseDeleteBuildResponse(rsp *http.Response) (*DeleteBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetBuildResponse parses an HTTP response from a GetBuildWithResponse call +func ParseGetBuildResponse(rsp *http.Response) (*GetBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditBuildResponse parses an HTTP response from a EditBuildWithResponse call +func ParseEditBuildResponse(rsp *http.Response) (*EditBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + Id *string `json:"id,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditBuild_200_Mode `json:"mode,omitempty"` + + // Name Results in image name harbor.//name. + Name string `json:"name"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamCodeReposResponse parses an HTTP response from a GetTeamCodeReposWithResponse call +func ParseGetTeamCodeReposResponse(rsp *http.Response) (*GetTeamCodeReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamCodeReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + GitService GetTeamCodeRepos200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateCodeRepoResponse parses an HTTP response from a CreateCodeRepoWithResponse call +func ParseCreateCodeRepoResponse(rsp *http.Response) (*CreateCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + GitService CreateCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteCodeRepoResponse parses an HTTP response from a DeleteCodeRepoWithResponse call +func ParseDeleteCodeRepoResponse(rsp *http.Response) (*DeleteCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetCodeRepoResponse parses an HTTP response from a GetCodeRepoWithResponse call +func ParseGetCodeRepoResponse(rsp *http.Response) (*GetCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + GitService GetCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditCodeRepoResponse parses an HTTP response from a EditCodeRepoWithResponse call +func ParseEditCodeRepoResponse(rsp *http.Response) (*EditCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + GitService EditCodeRepo200GitService `json:"gitService"` + Id *string `json:"id,omitempty"` + Name string `json:"name"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSecretsFromK8sResponse parses an HTTP response from a GetSecretsFromK8sWithResponse call +func ParseGetSecretsFromK8sResponse(rsp *http.Response) (*GetSecretsFromK8sResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSecretsFromK8sResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Name *string `json:"name,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSecretsFromK8s400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseListUniquePodNamesByLabelResponse parses an HTTP response from a ListUniquePodNamesByLabelWithResponse call +func ParseListUniquePodNamesByLabelResponse(rsp *http.Response) (*ListUniquePodNamesByLabelResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ListUniquePodNamesByLabelResponse{ + 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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ListUniquePodNamesByLabel400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetK8SWorkloadPodLabelsResponse parses an HTTP response from a GetK8SWorkloadPodLabelsWithResponse call +func ParseGetK8SWorkloadPodLabelsResponse(rsp *http.Response) (*GetK8SWorkloadPodLabelsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetK8SWorkloadPodLabelsResponse{ + 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 + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetK8SWorkloadPodLabels400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetTeamK8sServicesResponse parses an HTTP response from a GetTeamK8sServicesWithResponse call +func ParseGetTeamK8sServicesResponse(rsp *http.Response) (*GetTeamK8sServicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamK8sServicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + ManagedByKnative *bool `json:"managedByKnative,omitempty"` + Name string `json:"name"` + Ports *[]int `json:"ports,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamK8sServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetTeamNetpolsResponse parses an HTTP response from a GetTeamNetpolsWithResponse call +func ParseGetTeamNetpolsResponse(rsp *http.Response) (*GetTeamNetpolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamNetpolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetTeamNetpols200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetTeamNetpols200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetTeamNetpols200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateNetpolResponse parses an HTTP response from a CreateNetpolWithResponse call +func ParseCreateNetpolResponse(rsp *http.Response) (*CreateNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteNetpolResponse parses an HTTP response from a DeleteNetpolWithResponse call +func ParseDeleteNetpolResponse(rsp *http.Response) (*DeleteNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetNetpolResponse parses an HTTP response from a GetNetpolWithResponse call +func ParseGetNetpolResponse(rsp *http.Response) (*GetNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditNetpolResponse parses an HTTP response from a EditNetpolWithResponse call +func ParseEditNetpolResponse(rsp *http.Response) (*EditNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + Name string `json:"name"` + + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditNetpol200RuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditNetpol200RuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditNetpol200RuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + TeamId *string `json:"teamId,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamPoliciesResponse parses an HTTP response from a GetTeamPoliciesWithResponse call +func ParseGetTeamPoliciesResponse(rsp *http.Response) (*GetTeamPoliciesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // AllowedImageRepositories In addition to restricting the image registry from which images are pulled, in some cases and environments it may be required to also restrict which image repositories are used, for example in some restricted Namespaces. This policy ensures that the only allowed image repositories present in a given Pod, across any container type, come from the designated list. + AllowedImageRepositories *struct { + Action *GetTeamPolicies200AllowedImageRepositoriesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200AllowedImageRepositoriesSeverity `json:"severity,omitempty"` + } `json:"allowed-image-repositories,omitempty"` + + // DisallowCapabilities Container capabilities beyond those listed in the policy must be disallowed. + DisallowCapabilities *struct { + Action *GetTeamPolicies200DisallowCapabilitiesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200DisallowCapabilitiesSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities,omitempty"` + + // DisallowCapabilitiesStrict Adding capabilities other than `NET_BIND_SERVICE` is disallowed. In addition, all containers must explicitly drop `ALL` capabilities. + DisallowCapabilitiesStrict *struct { + Action *GetTeamPolicies200DisallowCapabilitiesStrictAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowCapabilitiesStrictSeverity `json:"severity,omitempty"` + } `json:"disallow-capabilities-strict,omitempty"` + + // DisallowHostNamespaces Host namespaces (Process ID namespace, Inter-Process Communication namespace, and network namespace) allow access to shared information and can be used to elevate privileges. Pods should not be allowed access to host namespaces. This policy ensures fields which make use of these host namespaces are unset or set to `false`. + DisallowHostNamespaces *struct { + Action *GetTeamPolicies200DisallowHostNamespacesAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostNamespacesSeverity `json:"severity,omitempty"` + } `json:"disallow-host-namespaces,omitempty"` + + // DisallowHostPath HostPath volumes let Pods use host directories and volumes in containers. Using host resources can be used to access shared data or escalate privilegesand should not be allowed. This policy ensures no hostPath volumes are in use. + DisallowHostPath *struct { + Action *GetTeamPolicies200DisallowHostPathAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostPathSeverity `json:"severity,omitempty"` + } `json:"disallow-host-path,omitempty"` + + // DisallowHostPorts Access to host ports allows potential snooping of network traffic and should not be allowed, or at minimum restricted to a known list. This policy ensures the `hostPort` field is unset or set to `0`. + DisallowHostPorts *struct { + Action *GetTeamPolicies200DisallowHostPortsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostPortsSeverity `json:"severity,omitempty"` + } `json:"disallow-host-ports,omitempty"` + + // DisallowHostProcess Windows pods offer the ability to run HostProcess containers which enables privileged access to the Windows node. Privileged access to the host is disallowed in the baseline policy. HostProcess pods are an alpha feature as of Kubernetes v1.22. This policy ensures the `hostProcess` field, if present, is set to `false`. + DisallowHostProcess *struct { + Action *GetTeamPolicies200DisallowHostProcessAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowHostProcessSeverity `json:"severity,omitempty"` + } `json:"disallow-host-process,omitempty"` + + // DisallowLatestTag The `latest` tag is mutable and can lead to unexpected errors if the image changes. A best practice is to use an immutable tag that maps to a specific version of an application Pod. This policy validates that the image specifies a tag and that it is not called `latest`. + DisallowLatestTag *struct { + Action *GetTeamPolicies200DisallowLatestTagAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowLatestTagSeverity `json:"severity,omitempty"` + } `json:"disallow-latest-tag,omitempty"` + + // DisallowPrivilegeEscalation Privilege escalation, such as via set-user-ID or set-group-ID file mode, should not be allowed. This policy ensures the `allowPrivilegeEscalation` field is set to `false`. + DisallowPrivilegeEscalation *struct { + Action *GetTeamPolicies200DisallowPrivilegeEscalationAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowPrivilegeEscalationSeverity `json:"severity,omitempty"` + } `json:"disallow-privilege-escalation,omitempty"` + + // DisallowPrivilegedContainers Privileged mode disables most security mechanisms and must not be allowed. This policy ensures Pods do not call for privileged mode. + DisallowPrivilegedContainers *struct { + Action *GetTeamPolicies200DisallowPrivilegedContainersAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowPrivilegedContainersSeverity `json:"severity,omitempty"` + } `json:"disallow-privileged-containers,omitempty"` + + // DisallowProcMount The default /proc masks are set up to reduce attack surface and should be required. This policy ensures nothing but the default procMount can be specified. Note that in order for users to deviate from the `Default` procMount requires setting a feature gate at the API server. + DisallowProcMount *struct { + Action *GetTeamPolicies200DisallowProcMountAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowProcMountSeverity `json:"severity,omitempty"` + } `json:"disallow-proc-mount,omitempty"` + + // DisallowSelinux SELinux options can be used to escalate privileges and should not be allowed. This policy ensures that the `seLinuxOptions` field is undefined. + DisallowSelinux *struct { + Action *GetTeamPolicies200DisallowSelinuxAction `json:"action,omitempty"` + Severity *GetTeamPolicies200DisallowSelinuxSeverity `json:"severity,omitempty"` + } `json:"disallow-selinux,omitempty"` + + // RequireLabels Define and use labels that identify your application or Deployment, for example `otomi.io/app`. + RequireLabels *struct { + Action *GetTeamPolicies200RequireLabelsAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200RequireLabelsSeverity `json:"severity,omitempty"` + } `json:"require-labels,omitempty"` + + // RequireLimits As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource limits per Pod, especially for memory and CPU. If a Namespace level limit is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU limits specified. + RequireLimits *struct { + Action *GetTeamPolicies200RequireLimitsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireLimitsSeverity `json:"severity,omitempty"` + } `json:"require-limits,omitempty"` + + // RequireLivenessProbe Liveness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. For each Pod, a periodic `livenessProbe` is performed by the kubelet to determine if the Pod`s containers are running or need to be restarted. This policy validates that all containers have a livenessProbe defined. + RequireLivenessProbe *struct { + Action *GetTeamPolicies200RequireLivenessProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireLivenessProbeSeverity `json:"severity,omitempty"` + } `json:"require-liveness-probe,omitempty"` + + // RequireNonRootGroups Containers should be forbidden from running with a root primary or supplementary GID. This policy ensures the `runAsGroup`, `supplementalGroups`, and `fsGroup` fields are set to a number greater than zero (i.e., non root). A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireNonRootGroups *struct { + Action *GetTeamPolicies200RequireNonRootGroupsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireNonRootGroupsSeverity `json:"severity,omitempty"` + } `json:"require-non-root-groups,omitempty"` + + // RequireReadinessProbe Readiness probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. A `readinessProbe` is used by Service and Deployments to determine if the Pod is ready to receive network traffic. This policy validates that all containers have a readinessProbe defined. + RequireReadinessProbe *struct { + Action *GetTeamPolicies200RequireReadinessProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireReadinessProbeSeverity `json:"severity,omitempty"` + } `json:"require-readiness-probe,omitempty"` + + // RequireRequests As application workloads share cluster resources, it is important to limit resources requested and consumed by each Pod. It is recommended to require resource requests per Pod, especially for memory and CPU. If a Namespace level request is specified, defaults will automatically be applied to each Pod based on the LimitRange configuration. This policy validates that all containers have memory and CPU requests specified. + RequireRequests *struct { + Action *GetTeamPolicies200RequireRequestsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRequestsSeverity `json:"severity,omitempty"` + } `json:"require-requests,omitempty"` + + // RequireRunAsNonRootUser Containers must be required to run as non-root users. This policy ensures `runAsUser` is either unset or set to a number greater than zero. + RequireRunAsNonRootUser *struct { + Action *GetTeamPolicies200RequireRunAsNonRootUserAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRunAsNonRootUserSeverity `json:"severity,omitempty"` + } `json:"require-run-as-non-root-user,omitempty"` + + // RequireRunAsNonroot Containers must be required to run as non-root users. This policy ensures `runAsNonRoot` is set to `true`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RequireRunAsNonroot *struct { + Action *GetTeamPolicies200RequireRunAsNonrootAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireRunAsNonrootSeverity `json:"severity,omitempty"` + } `json:"require-run-as-nonroot,omitempty"` + + // RequireStartupProbe Startup probes need to be configured to correctly manage a Pod`s lifecycle during deployments, restarts, and upgrades. Sometimes, applications are temporarily unable to serve traffic. For example, an application might need to load large data or configuration files during startup, or depend on external services after startup. In such cases, you don`t want to kill the application, but you don`t want to send it requests either. Kubernetes provides readiness probes to detect and mitigate these situations. A pod with containers reporting that they are not ready does not receive traffic through Kubernetes Services. This policy validates that all containers have a livenessProbe defined. + RequireStartupProbe *struct { + Action *GetTeamPolicies200RequireStartupProbeAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RequireStartupProbeSeverity `json:"severity,omitempty"` + } `json:"require-startup-probe,omitempty"` + + // RestrictApparmorProfiles On supported hosts, the `runtime/default` AppArmor profile is applied by default. The default policy should prevent overriding or disabling the policy, or restrict overrides to an allowed set of profiles. This policy ensures Pods do not specify any other AppArmor profiles than `runtime/default` or `localhost/*`. + RestrictApparmorProfiles *struct { + Action *GetTeamPolicies200RestrictApparmorProfilesAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictApparmorProfilesSeverity `json:"severity,omitempty"` + } `json:"restrict-apparmor-profiles,omitempty"` + + // RestrictSeccomp The seccomp profile must not be explicitly set to Unconfined. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is unset or set to `RuntimeDefault` or `Localhost`. + RestrictSeccomp *struct { + Action *GetTeamPolicies200RestrictSeccompAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSeccompSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp,omitempty"` + + // RestrictSeccompStrict The seccomp profile in the Restricted group must not be explicitly set to Unconfined but additionally must also not allow an unset value. This policy, requiring Kubernetes v1.19 or later, ensures that seccomp is set to `RuntimeDefault` or `Localhost`. A known issue prevents a policy such as this using `anyPattern` from being persisted properly in Kubernetes 1.23.0-1.23.2. + RestrictSeccompStrict *struct { + Action *GetTeamPolicies200RestrictSeccompStrictAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSeccompStrictSeverity `json:"severity,omitempty"` + } `json:"restrict-seccomp-strict,omitempty"` + + // RestrictSysctls Sysctls can disable security mechanisms or affect all containers on a host, and should be disallowed except for an allowed "safe" subset. A sysctl is considered safe if it is namespaced in the container or the Pod, and it is isolated from other Pods or processes on the same Node. This policy ensures that only those "safe" subsets can be specified in a Pod. + RestrictSysctls *struct { + Action *GetTeamPolicies200RestrictSysctlsAction `json:"action,omitempty"` + Severity *GetTeamPolicies200RestrictSysctlsSeverity `json:"severity,omitempty"` + } `json:"restrict-sysctls,omitempty"` + + // RestrictVolumeTypes In addition to restricting HostPath volumes, the restricted pod security profile limits usage of non-core volume types to those defined through PersistentVolumes. This policy blocks any other type of volume other than those in the allow list. + RestrictVolumeTypes *struct { + Action *GetTeamPolicies200RestrictVolumeTypesAction `json:"action,omitempty"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity *GetTeamPolicies200RestrictVolumeTypesSeverity `json:"severity,omitempty"` + } `json:"restrict-volume-types,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call +func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Action GetPolicy200Action `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetPolicy200Severity `json:"severity"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditPolicyResponse parses an HTTP response from a EditPolicyWithResponse call +func ParseEditPolicyResponse(rsp *http.Response) (*EditPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Action EditPolicy200Action `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditPolicy200Severity `json:"severity"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSealedSecretsResponse parses an HTTP response from a GetSealedSecretsWithResponse call +func ParseGetSealedSecretsResponse(rsp *http.Response) (*GetSealedSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSealedSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetSealedSecrets200Type `json:"type"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateSealedSecretResponse parses an HTTP response from a CreateSealedSecretWithResponse call +func ParseCreateSealedSecretResponse(rsp *http.Response) (*CreateSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateSealedSecret200Type `json:"type"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteSealedSecretResponse parses an HTTP response from a DeleteSealedSecretWithResponse call +func ParseDeleteSealedSecretResponse(rsp *http.Response) (*DeleteSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetSealedSecretResponse parses an HTTP response from a GetSealedSecretWithResponse call +func ParseGetSealedSecretResponse(rsp *http.Response) (*GetSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetSealedSecret200Type `json:"type"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditSealedSecretResponse parses an HTTP response from a EditSealedSecretWithResponse call +func ParseEditSealedSecretResponse(rsp *http.Response) (*EditSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + EncryptedData struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"encryptedData"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *struct { + AdditionalProperties *string `json:"additionalProperties,omitempty"` + } `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Name string `json:"name"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditSealedSecret200Type `json:"type"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamServicesResponse parses an HTTP response from a GetTeamServicesWithResponse call +func ParseGetTeamServicesResponse(rsp *http.Response) (*GetTeamServicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamServicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetTeamServices_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateServiceResponse parses an HTTP response from a CreateServiceWithResponse call +func ParseCreateServiceResponse(rsp *http.Response) (*CreateServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress CreateService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteServiceResponse parses an HTTP response from a DeleteServiceWithResponse call +func ParseDeleteServiceResponse(rsp *http.Response) (*DeleteServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetServiceResponse parses an HTTP response from a GetServiceWithResponse call +func ParseGetServiceResponse(rsp *http.Response) (*GetServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress GetService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditServiceResponse parses an HTTP response from a EditServiceWithResponse call +func ParseEditServiceResponse(rsp *http.Response) (*EditServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + + // Ingress Determines loadbalancer related configuration for handling the service ingress. + Ingress EditService_200_Ingress `json:"ingress"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + Name string `json:"name"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + Port *int `json:"port,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditTeamUsersResponse parses an HTTP response from a EditTeamUsersWithResponse call +func ParseEditTeamUsersResponse(rsp *http.Response) (*EditTeamUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditTeamUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Id *string `json:"id,omitempty"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditTeamUsers400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamWorkloadsResponse parses an HTTP response from a GetTeamWorkloadsWithResponse call +func ParseGetTeamWorkloadsResponse(rsp *http.Response) (*GetTeamWorkloadsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetTeamWorkloads200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetTeamWorkloads_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateWorkloadResponse parses an HTTP response from a CreateWorkloadWithResponse call +func ParseCreateWorkloadResponse(rsp *http.Response) (*CreateWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteWorkloadResponse parses an HTTP response from a DeleteWorkloadWithResponse call +func ParseDeleteWorkloadResponse(rsp *http.Response) (*DeleteWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetWorkloadResponse parses an HTTP response from a GetWorkloadWithResponse call +func ParseGetWorkloadResponse(rsp *http.Response) (*GetWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditWorkloadResponse parses an HTTP response from a EditWorkloadWithResponse call +func ParseEditWorkloadResponse(rsp *http.Response) (*EditWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditWorkload200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditWorkload_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetWorkloadValuesResponse parses an HTTP response from a GetWorkloadValuesWithResponse call +func ParseGetWorkloadValuesResponse(rsp *http.Response) (*GetWorkloadValuesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetWorkloadValuesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TeamId *string `json:"teamId,omitempty"` + Values GetWorkloadValues_200_Values `json:"values"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetWorkloadValues400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseEditWorkloadValuesResponse parses an HTTP response from a EditWorkloadValuesWithResponse call +func ParseEditWorkloadValuesResponse(rsp *http.Response) (*EditWorkloadValuesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditWorkloadValuesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + TeamId *string `json:"teamId,omitempty"` + Values EditWorkloadValues_200_Values `json:"values"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditWorkloadValues400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTestRepoConnectResponse parses an HTTP response from a GetTestRepoConnectWithResponse call +func ParseGetTestRepoConnectResponse(rsp *http.Response) (*GetTestRepoConnectResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTestRepoConnectResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Status *GetTestRepoConnect200Status `json:"status,omitempty"` + Url *string `json:"url,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseGetAllUsersResponse parses an HTTP response from a GetAllUsersWithResponse call +func ParseGetAllUsersResponse(rsp *http.Response) (*GetAllUsersResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllUsersResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllUsers400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call +func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call +func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + 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 struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditUserResponse parses an HTTP response from a EditUserWithResponse call +func ParseEditUserResponse(rsp *http.Response) (*EditUserResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditUserResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + // Email A unique email address. + Email string `json:"email"` + + // FirstName The first name of the user. + FirstName string `json:"firstName"` + Id *string `json:"id,omitempty"` + + // InitialPassword The initial password of the user + InitialPassword *string `json:"initialPassword,omitempty"` + + // IsPlatformAdmin Select to assign the user the platform-admin role. + IsPlatformAdmin *bool `json:"isPlatformAdmin,omitempty"` + + // IsTeamAdmin Select to assign the user the team-admin role. + IsTeamAdmin *bool `json:"isTeamAdmin,omitempty"` + + // LastName The last name of the user. + LastName string `json:"lastName"` + + // Teams Select the team(s) to assign the user the team-member role. + Teams *[]string `json:"teams,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditUser400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseWorkloadCatalogResponse parses an HTTP response from a WorkloadCatalogWithResponse call +func ParseWorkloadCatalogResponse(rsp *http.Response) (*WorkloadCatalogResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &WorkloadCatalogResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest map[string]interface{} + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *WorkloadCatalog400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllWorkloadsResponse parses an HTTP response from a GetAllWorkloadsWithResponse call +func ParseGetAllWorkloadsResponse(rsp *http.Response) (*GetAllWorkloadsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAllWorkloads200ChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAllWorkloads_200_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + Name string `json:"name"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + TeamId *string `json:"teamId,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplBackupsResponse parses an HTTP response from a GetAllAplBackupsWithResponse call +func ParseGetAllAplBackupsResponse(rsp *http.Response) (*GetAllAplBackupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplBackupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplBackups200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplBuildsResponse parses an HTTP response from a GetAllAplBuildsWithResponse call +func ParseGetAllAplBuildsResponse(rsp *http.Response) (*GetAllAplBuildsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplBuildsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplBuilds200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAllAplBuilds_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseDeleteAplCloudttyResponse parses an HTTP response from a DeleteAplCloudttyWithResponse call +func ParseDeleteAplCloudttyResponse(rsp *http.Response) (*DeleteAplCloudttyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplCloudttyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + return response, nil +} + +// ParseConnectAplCloudttyResponse parses an HTTP response from a ConnectAplCloudttyWithResponse call +func ParseConnectAplCloudttyResponse(rsp *http.Response) (*ConnectAplCloudttyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &ConnectAplCloudttyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + IFrameUrl *string `json:"iFrameUrl,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *ConnectAplCloudtty400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseGetAllAplCodeReposResponse parses an HTTP response from a GetAllAplCodeReposWithResponse call +func ParseGetAllAplCodeReposResponse(rsp *http.Response) (*GetAllAplCodeReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplCodeReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplCodeRepos200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetAllAplCodeRepos200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetAllAplNetpolsResponse parses an HTTP response from a GetAllAplNetpolsWithResponse call +func ParseGetAllAplNetpolsResponse(rsp *http.Response) (*GetAllAplNetpolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplNetpolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplNetpols200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAllAplNetpols200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAllAplNetpols200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAllAplNetpols200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplPoliciesResponse parses an HTTP response from a GetAllAplPoliciesWithResponse call +func ParseGetAllAplPoliciesResponse(rsp *http.Response) (*GetAllAplPoliciesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplPolicies200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetAllAplPolicies200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetAllAplPolicies200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplSecretsResponse parses an HTTP response from a GetAllAplSecretsWithResponse call +func ParseGetAllAplSecretsResponse(rsp *http.Response) (*GetAllAplSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplSecrets200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAllAplSecrets200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetAllAplServicesResponse parses an HTTP response from a GetAllAplServicesWithResponse call +func ParseGetAllAplServicesResponse(rsp *http.Response) (*GetAllAplServicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplServicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplServices200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseGetAplTeamsResponse parses an HTTP response from a GetAplTeamsWithResponse call +func ParseGetAplTeamsResponse(rsp *http.Response) (*GetAplTeamsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplTeamsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAplTeams200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetAplTeams200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + + return response, nil +} + +// ParseCreateAplTeamResponse parses an HTTP response from a CreateAplTeamWithResponse call +func ParseCreateAplTeamResponse(rsp *http.Response) (*CreateAplTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]CreateAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplTeamResponse parses an HTTP response from a DeleteAplTeamWithResponse call +func ParseDeleteAplTeamResponse(rsp *http.Response) (*DeleteAplTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplTeamResponse parses an HTTP response from a GetAplTeamWithResponse call +func ParseGetAplTeamResponse(rsp *http.Response) (*GetAplTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]GetAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplTeamResponse parses an HTTP response from a EditAplTeamWithResponse call +func ParseEditAplTeamResponse(rsp *http.Response) (*EditAplTeamResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplTeamResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplTeam200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Alerts *struct { + // GroupInterval Waiting time before sending a notification about new alerts that are added to a group of alerts. + GroupInterval *string `json:"groupInterval,omitempty"` + + // Msteams Configure Microsoft Teams endpoints for alerts. + Msteams *struct { + HighPrio *string `json:"highPrio,omitempty"` + LowPrio *string `json:"lowPrio,omitempty"` + } `json:"msteams,omitempty"` + + // Receivers Select notification channel(s) for receiving alerts. Use 'none' if no channel available. + Receivers *[]EditAplTeam200SpecAlertsReceivers `json:"receivers,omitempty"` + + // RepeatInterval Waiting time before sending a notification again after it was sent successfully for an alert. + RepeatInterval *string `json:"repeatInterval,omitempty"` + + // Slack Configure Slack endpoints for alerts. + Slack *struct { + // Channel The Slack channel for non-critical notifications. + Channel *string `json:"channel,omitempty"` + + // ChannelCrit The Slack channel for critical notifications. + ChannelCrit *string `json:"channelCrit,omitempty"` + + // Url A Slack webhook URL. + Url *string `json:"url,omitempty"` + } `json:"slack,omitempty"` + } `json:"alerts,omitempty"` + + // ManagedMonitoring Activate a platform managed Grafana or Alertmanager instance. + ManagedMonitoring *struct { + Alertmanager *bool `json:"alertmanager,omitempty"` + Grafana *bool `json:"grafana,omitempty"` + } `json:"managedMonitoring,omitempty"` + NetworkPolicy *struct { + // EgressPublic When enabled all egress traffic will be limited to pre-defined endpoints. Turning this off introduces a security risk! + EgressPublic *bool `json:"egressPublic,omitempty"` + + // IngressPrivate When enabled Team Workloads will be bound by ingress network policies. Turning this off introduces a security risk! + IngressPrivate *bool `json:"ingressPrivate,omitempty"` + } `json:"networkPolicy,omitempty"` + Oidc *struct { + // GroupMapping An OIDC group (name/id) granting access to this Team. + GroupMapping *string `json:"groupMapping,omitempty"` + } `json:"oidc,omitempty"` + Password *string `json:"password,omitempty"` + + // ResourceQuota Kubernetes resource quota. Should adhere to format as described here: https://kubernetes.io/docs/concepts/policy/resource-quotas/. + ResourceQuota *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"resourceQuota,omitempty"` + + // SelfService Grant team permissions to modify certain configuration parameters. + SelfService *struct { + TeamMembers *struct { + // CreateServices Permission to create services. + CreateServices bool `json:"createServices"` + + // DownloadDockerLogin Permission to download the docker login configuration. + DownloadDockerLogin bool `json:"downloadDockerLogin"` + + // DownloadKubeconfig Permission to download the kubeconfig. + DownloadKubeconfig bool `json:"downloadKubeconfig"` + + // EditSecurityPolicies Permission to edit security policies. + EditSecurityPolicies bool `json:"editSecurityPolicies"` + + // UseCloudShell Permission to use the cloud shell. + UseCloudShell bool `json:"useCloudShell"` + } `json:"teamMembers,omitempty"` + } `json:"selfService,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplTeam400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplBackupsResponse parses an HTTP response from a GetTeamAplBackupsWithResponse call +func ParseGetTeamAplBackupsResponse(rsp *http.Response) (*GetTeamAplBackupsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplBackupsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplBackups200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplBackups400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateAplBackupResponse parses an HTTP response from a CreateAplBackupWithResponse call +func ParseCreateAplBackupResponse(rsp *http.Response) (*CreateAplBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplBackupResponse parses an HTTP response from a DeleteAplBackupWithResponse call +func ParseDeleteAplBackupResponse(rsp *http.Response) (*DeleteAplBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplBackupResponse parses an HTTP response from a GetAplBackupWithResponse call +func ParseGetAplBackupResponse(rsp *http.Response) (*GetAplBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplBackupResponse parses an HTTP response from a EditAplBackupWithResponse call +func ParseEditAplBackupResponse(rsp *http.Response) (*EditAplBackupResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplBackupResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplBackup200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // LabelSelector (Optional) Individual objects must match this label selector to be included in the backup. + LabelSelector *[]struct { + Name *string `json:"name,omitempty"` + Value *string `json:"value,omitempty"` + } `json:"labelSelector,omitempty"` + + // Schedule Cron-type expression to schedule the backup. Defaults to once a day at 00:00. + Schedule string `json:"schedule"` + + // SnapshotVolumes Whether or not to snapshot volumes. This only applies to Persistent Volumes in Azure, GCE, and AWS. + SnapshotVolumes *bool `json:"snapshotVolumes,omitempty"` + + // Ttl Expiration of the backup. Defaults to 7 days. + Ttl string `json:"ttl"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplBackup400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplBuildsResponse parses an HTTP response from a GetTeamAplBuildsWithResponse call +func ParseGetTeamAplBuildsResponse(rsp *http.Response) (*GetTeamAplBuildsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplBuildsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplBuilds200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetTeamAplBuilds_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplBuilds400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateAplBuildResponse parses an HTTP response from a CreateAplBuildWithResponse call +func ParseCreateAplBuildResponse(rsp *http.Response) (*CreateAplBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *CreateAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplBuildResponse parses an HTTP response from a DeleteAplBuildWithResponse call +func ParseDeleteAplBuildResponse(rsp *http.Response) (*DeleteAplBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplBuildResponse parses an HTTP response from a GetAplBuildWithResponse call +func ParseGetAplBuildResponse(rsp *http.Response) (*GetAplBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *GetAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplBuildResponse parses an HTTP response from a EditAplBuildWithResponse call +func ParseEditAplBuildResponse(rsp *http.Response) (*EditAplBuildResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplBuildResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplBuild200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // ExternalRepo Select when using an external private Git repository. + ExternalRepo *bool `json:"externalRepo,omitempty"` + ImageName *string `json:"imageName,omitempty"` + + // Mode Choose between Docker or Buildpacks. + Mode *EditAplBuild_200_Spec_Mode `json:"mode,omitempty"` + + // ScanSource Select to scan source code. + ScanSource *bool `json:"scanSource,omitempty"` + + // SecretName The name of the secret with the credentials of the external private Git repository. + SecretName *string `json:"secretName,omitempty"` + + // Tag Image tag + Tag *string `json:"tag,omitempty"` + + // Trigger Trigger the build based on a Gitea webhook. Use this URL for the webhook: http://el-gitea-webhook-.team-.svc.cluster.local:8080. + Trigger *bool `json:"trigger,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplBuild400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplCodeReposResponse parses an HTTP response from a GetTeamAplCodeReposWithResponse call +func ParseGetTeamAplCodeReposResponse(rsp *http.Response) (*GetTeamAplCodeReposResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplCodeReposResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplCodeRepos200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetTeamAplCodeRepos200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplCodeRepos400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateAplCodeRepoResponse parses an HTTP response from a CreateAplCodeRepoWithResponse call +func ParseCreateAplCodeRepoResponse(rsp *http.Response) (*CreateAplCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService CreateAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplCodeRepoResponse parses an HTTP response from a DeleteAplCodeRepoWithResponse call +func ParseDeleteAplCodeRepoResponse(rsp *http.Response) (*DeleteAplCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplCodeRepoResponse parses an HTTP response from a GetAplCodeRepoWithResponse call +func ParseGetAplCodeRepoResponse(rsp *http.Response) (*GetAplCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService GetAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplCodeRepoResponse parses an HTTP response from a EditAplCodeRepoWithResponse call +func ParseEditAplCodeRepoResponse(rsp *http.Response) (*EditAplCodeRepoResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplCodeRepoResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplCodeRepo200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + GitService EditAplCodeRepo200SpecGitService `json:"gitService"` + Private *bool `json:"private,omitempty"` + + // RepositoryUrl Path to a remote git repo without protocol. Will use https to access. + RepositoryUrl string `json:"repositoryUrl"` + Secret *string `json:"secret,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplCodeRepo400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplNetpolsResponse parses an HTTP response from a GetTeamAplNetpolsWithResponse call +func ParseGetTeamAplNetpolsResponse(rsp *http.Response) (*GetTeamAplNetpolsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplNetpolsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplNetpols200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetTeamAplNetpols200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetTeamAplNetpols200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetTeamAplNetpols200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplNetpols400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateAplNetpolResponse parses an HTTP response from a CreateAplNetpolWithResponse call +func ParseCreateAplNetpolResponse(rsp *http.Response) (*CreateAplNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol CreateAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode CreateAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *CreateAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplNetpolResponse parses an HTTP response from a DeleteAplNetpolWithResponse call +func ParseDeleteAplNetpolResponse(rsp *http.Response) (*DeleteAplNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplNetpolResponse parses an HTTP response from a GetAplNetpolWithResponse call +func ParseGetAplNetpolResponse(rsp *http.Response) (*GetAplNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol GetAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode GetAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *GetAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplNetpolResponse parses an HTTP response from a EditAplNetpolWithResponse call +func ParseEditAplNetpolResponse(rsp *http.Response) (*EditAplNetpolResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplNetpolResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplNetpol200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // RuleType Choose between Ingress or Egress. + RuleType *struct { + Egress *struct { + Domain string `json:"domain"` + Ports *[]struct { + Number int `json:"number"` + Protocol EditAplNetpol200SpecRuleTypeEgressPortsProtocol `json:"protocol"` + } `json:"ports,omitempty"` + } `json:"egress,omitempty"` + Ingress *struct { + Allow *[]struct { + // FromLabelName The name of the Pod selector label. + FromLabelName *string `json:"fromLabelName,omitempty"` + + // FromLabelValue The value of the Pod selector label. + FromLabelValue *string `json:"fromLabelValue,omitempty"` + + // FromNamespace The name of the namespace. + FromNamespace string `json:"fromNamespace"` + } `json:"allow,omitempty"` + Mode EditAplNetpol200SpecRuleTypeIngressMode `json:"mode"` + + // ToLabelName The name of the Pod selector label. + ToLabelName *string `json:"toLabelName,omitempty"` + + // ToLabelValue The value of the Pod selector label. + ToLabelValue *string `json:"toLabelValue,omitempty"` + } `json:"ingress,omitempty"` + Type *EditAplNetpol200SpecRuleTypeType `json:"type,omitempty"` + } `json:"ruleType,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplNetpol400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplPoliciesResponse parses an HTTP response from a GetTeamAplPoliciesWithResponse call +func ParseGetTeamAplPoliciesResponse(rsp *http.Response) (*GetTeamAplPoliciesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplPoliciesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplPolicies200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetTeamAplPolicies200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetTeamAplPolicies200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplPolicies400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplPolicyResponse parses an HTTP response from a GetAplPolicyWithResponse call +func ParseGetAplPolicyResponse(rsp *http.Response) (*GetAplPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplPolicy200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action GetAplPolicy200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity GetAplPolicy200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplPolicyResponse parses an HTTP response from a EditAplPolicyWithResponse call +func ParseEditAplPolicyResponse(rsp *http.Response) (*EditAplPolicyResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplPolicyResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplPolicy200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + Action EditAplPolicy200SpecAction `json:"action"` + CustomValues *[]string `json:"customValues,omitempty"` + Severity EditAplPolicy200SpecSeverity `json:"severity"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplPolicy400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplSealedSecretsResponse parses an HTTP response from a GetAplSealedSecretsWithResponse call +func ParseGetAplSealedSecretsResponse(rsp *http.Response) (*GetAplSealedSecretsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplSealedSecretsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAplSealedSecrets200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAplSealedSecrets200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplSealedSecrets400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateAplSealedSecretResponse parses an HTTP response from a CreateAplSealedSecretWithResponse call +func ParseCreateAplSealedSecretResponse(rsp *http.Response) (*CreateAplSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type CreateAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplSealedSecretResponse parses an HTTP response from a DeleteAplSealedSecretWithResponse call +func ParseDeleteAplSealedSecretResponse(rsp *http.Response) (*DeleteAplSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplSealedSecretResponse parses an HTTP response from a GetAplSealedSecretWithResponse call +func ParseGetAplSealedSecretResponse(rsp *http.Response) (*GetAplSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type GetAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplSealedSecretResponse parses an HTTP response from a EditAplSealedSecretWithResponse call +func ParseEditAplSealedSecretResponse(rsp *http.Response) (*EditAplSealedSecretResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplSealedSecretResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplSealedSecret200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + EncryptedData *map[string]string `json:"encryptedData,omitempty"` + + // Immutable Immutable, if set to true, ensures that data stored in the Secret cannot be updated (only object metadata can be modified). + Immutable *bool `json:"immutable,omitempty"` + + // Metadata Standard objects metadata. + Metadata *struct { + Annotations *map[string]string `json:"annotations,omitempty"` + Finalizers *[]string `json:"finalizers,omitempty"` + Labels *map[string]string `json:"labels,omitempty"` + } `json:"metadata,omitempty"` + Namespace *string `json:"namespace,omitempty"` + + // Type Used to facilitate programmatic handling of secret data. + Type EditAplSealedSecret200SpecType `json:"type"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplSealedSecret400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplServicesResponse parses an HTTP response from a GetTeamAplServicesWithResponse call +func ParseGetTeamAplServicesResponse(rsp *http.Response) (*GetTeamAplServicesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplServicesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplServices200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplServices400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + } + + return response, nil +} + +// ParseCreateAplServiceResponse parses an HTTP response from a CreateAplServiceWithResponse call +func ParseCreateAplServiceResponse(rsp *http.Response) (*CreateAplServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplServiceResponse parses an HTTP response from a DeleteAplServiceWithResponse call +func ParseDeleteAplServiceResponse(rsp *http.Response) (*DeleteAplServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplServiceResponse parses an HTTP response from a GetAplServiceWithResponse call +func ParseGetAplServiceResponse(rsp *http.Response) (*GetAplServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplServiceResponse parses an HTTP response from a EditAplServiceWithResponse call +func ParseEditAplServiceResponse(rsp *http.Response) (*EditAplServiceResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplServiceResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplService200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + Spec struct { + // CertName The name of a TLS secret known to exist in the Team namespace. + CertName *string `json:"certName,omitempty"` + Cname *struct { + // Domain A domain name (an alias). + Domain *string `json:"domain,omitempty"` + + // TlsSecretName Name of a Kubernetes secret of type TLS. + TlsSecretName *string `json:"tlsSecretName,omitempty"` + } `json:"cname,omitempty"` + + // Domain A managed DNS zone + Domain *string `json:"domain,omitempty"` + + // ForwardPath Forward the URL path into the service (don't rewrite to /). + ForwardPath *bool `json:"forwardPath,omitempty"` + + // HasCert Select when a certificate exists and should not be generated. + HasCert *bool `json:"hasCert,omitempty"` + Headers *struct { + // Response The following HTTP response headers will be set. Adjust, remove or add more if needed. + Response *struct { + Set *[]struct { + Name string `json:"name"` + Value string `json:"value"` + } `json:"set,omitempty"` + } `json:"response,omitempty"` + } `json:"headers,omitempty"` + + // IngressClassName Assign service to a paricular Load Balancer by selecting ingress class name. + IngressClassName *string `json:"ingressClassName,omitempty"` + Ksvc *struct { + // Predeployed Set this flag it the service is managed by Knative service. + Predeployed *bool `json:"predeployed,omitempty"` + } `json:"ksvc,omitempty"` + + // Namespace A Kubernetes namespace. + Namespace *string `json:"namespace,omitempty"` + + // OwnHost Use the team domain so that the URL reveals the owner. + OwnHost *bool `json:"ownHost,omitempty"` + + // Paths The paths in the URL that the service should be mapped to (e.g. for microservices on one app/domain). + Paths *[]string `json:"paths,omitempty"` + Port *int `json:"port,omitempty"` + + // TlsPass Pass through the request as is to the backing service. Only available for pre-deployed regular (non-Knative) services. + TlsPass *bool `json:"tlsPass,omitempty"` + + // TrafficControl Split traffic between multiple versions (blue-green, canary). + TrafficControl *struct { + Enabled *bool `json:"enabled,omitempty"` + + // WeightV1 Percentage of traffic to version 1. + WeightV1 *int `json:"weightV1,omitempty"` + + // WeightV2 Percentage of traffic to version 2. + WeightV2 *int `json:"weightV2,omitempty"` + } `json:"trafficControl,omitempty"` + + // UseCname Define a CNAME for the service. + UseCname *bool `json:"useCname,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplService400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetTeamAplWorkloadsResponse parses an HTTP response from a GetTeamAplWorkloadsWithResponse call +func ParseGetTeamAplWorkloadsResponse(rsp *http.Response) (*GetTeamAplWorkloadsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetTeamAplWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetTeamAplWorkloads200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetTeamAplWorkloads200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetTeamAplWorkloads_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetTeamAplWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseCreateAplWorkloadResponse parses an HTTP response from a CreateAplWorkloadWithResponse call +func ParseCreateAplWorkloadResponse(rsp *http.Response) (*CreateAplWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &CreateAplWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind CreateAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *CreateAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *CreateAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *CreateAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 409: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON409 = &dest + + } + + return response, nil +} + +// ParseDeleteAplWorkloadResponse parses an HTTP response from a DeleteAplWorkloadWithResponse call +func ParseDeleteAplWorkloadResponse(rsp *http.Response) (*DeleteAplWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &DeleteAplWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *DeleteAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAplWorkloadResponse parses an HTTP response from a GetAplWorkloadWithResponse call +func ParseGetAplWorkloadResponse(rsp *http.Response) (*GetAplWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAplWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind GetAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseEditAplWorkloadResponse parses an HTTP response from a EditAplWorkloadWithResponse call +func ParseEditAplWorkloadResponse(rsp *http.Response) (*EditAplWorkloadResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &EditAplWorkloadResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest struct { + Kind EditAplWorkload200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *EditAplWorkload200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *EditAplWorkload_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *EditAplWorkload400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplWorkloadNamesResponse parses an HTTP response from a GetAllAplWorkloadNamesWithResponse call +func ParseGetAllAplWorkloadNamesResponse(rsp *http.Response) (*GetAllAplWorkloadNamesResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplWorkloadNamesResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Metadata *struct { + // Name Name of the workload. + Name *string `json:"name,omitempty"` + + // Namespace Namespace of the workload, including teamId. + Namespace *string `json:"namespace,omitempty"` + } `json:"metadata,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplWorkloadNames400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +} + +// ParseGetAllAplWorkloadsResponse parses an HTTP response from a GetAllAplWorkloadsWithResponse call +func ParseGetAllAplWorkloadsResponse(rsp *http.Response) (*GetAllAplWorkloadsResponse, error) { + bodyBytes, err := io.ReadAll(rsp.Body) + defer func() { _ = rsp.Body.Close() }() + if err != nil { + return nil, err + } + + response := &GetAllAplWorkloadsResponse{ + Body: bodyBytes, + HTTPResponse: rsp, + } + + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest []struct { + Kind GetAllAplWorkloads200Kind `json:"kind"` + Metadata struct { + Labels struct { + AplIoteamId string `json:"apl.io/teamId"` + } `json:"labels"` + Name string `json:"name"` + } `json:"metadata"` + + // Spec Define the location of the Workloads's manifests or Helm chart. + Spec struct { + // Chart Chart is a Helm chart name, and must be specified for applications sourced from a Helm repo. + Chart *string `json:"chart,omitempty"` + ChartMetadata *struct { + HelmChartDescription *string `json:"helmChartDescription,omitempty"` + HelmChartVersion *string `json:"helmChartVersion,omitempty"` + } `json:"chartMetadata,omitempty"` + ChartProvider *GetAllAplWorkloads200SpecChartProvider `json:"chartProvider,omitempty"` + CreateNamespace *bool `json:"createNamespace,omitempty"` + Icon *string `json:"icon,omitempty"` + + // ImageUpdateStrategy Automatically update the image. Only supported when the image is stored in Harbor. + ImageUpdateStrategy *GetAllAplWorkloads_200_Spec_ImageUpdateStrategy `json:"imageUpdateStrategy,omitempty"` + + // Namespace Workload namespace. Applicable only for team-admin. Default value is 'team-'. + Namespace *string `json:"namespace,omitempty"` + + // Path A relative directory path within the Git repository. Absolute paths cause errors. (only valid for applications sourced from Git). + Path *string `json:"path,omitempty"` + + // Revision In case of Git, this can be commit, tag, or branch. If omitted, will equal to HEAD. In case of Helm, this is a semver tag for the Chart's version. + Revision *string `json:"revision,omitempty"` + SidecarInject *bool `json:"sidecarInject,omitempty"` + + // Url URL to either Helm or Git repository + Url string `json:"url"` + Values *string `json:"values,omitempty"` + } `json:"spec"` + Status struct { + Conditions *[]struct { + LastTransitionTime *time.Time `json:"lastTransitionTime,omitempty"` + Message *string `json:"message,omitempty"` + Reason *string `json:"reason,omitempty"` + Status *bool `json:"status,omitempty"` + Type *string `json:"type,omitempty"` + } `json:"conditions,omitempty"` + Phase *string `json:"phase,omitempty"` + } `json:"status"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 400: + var dest struct { + Errors *[]struct { + ErrorCode *string `json:"errorCode,omitempty"` + Location *GetAllAplWorkloads400ErrorsLocation `json:"location,omitempty"` + Message *string `json:"message,omitempty"` + Path *string `json:"path,omitempty"` + } `json:"errors,omitempty"` + Status *int `json:"status,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON400 = &dest + + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 404: + var dest struct { + Message *string `json:"message,omitempty"` + } + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON404 = &dest + + } + + return response, nil +}