diff --git a/go.mod b/go.mod index dace542..f8b7826 100644 --- a/go.mod +++ b/go.mod @@ -5,45 +5,49 @@ module github.com/zededa/zedcloud-api go 1.19 require ( - github.com/go-openapi/errors v0.20.1 - github.com/go-openapi/runtime v0.19.31 - github.com/go-openapi/strfmt v0.20.2 - github.com/go-openapi/swag v0.19.15 - github.com/go-openapi/validate v0.20.2 + github.com/go-openapi/errors v0.20.4 + github.com/go-openapi/runtime v0.26.0 + github.com/go-openapi/strfmt v0.21.7 + github.com/go-openapi/swag v0.22.4 + github.com/go-openapi/validate v0.22.1 github.com/go-test/deep v1.0.7 github.com/spf13/cobra v0.0.3 github.com/spf13/viper v1.8.1 - golang.org/x/net v0.7.0 + golang.org/x/net v0.15.0 ) require ( - github.com/PuerkitoBio/purell v1.1.1 // indirect - github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 // indirect - github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect + github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect github.com/fsnotify/fsnotify v1.4.9 // indirect - github.com/go-openapi/analysis v0.20.0 // indirect - github.com/go-openapi/jsonpointer v0.19.5 // indirect - github.com/go-openapi/jsonreference v0.19.5 // indirect - github.com/go-openapi/loads v0.20.2 // indirect - github.com/go-openapi/spec v0.20.3 // indirect - github.com/go-stack/stack v1.8.0 // indirect + github.com/go-logr/logr v1.2.4 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/go-openapi/analysis v0.21.4 // indirect + github.com/go-openapi/jsonpointer v0.20.0 // indirect + github.com/go-openapi/jsonreference v0.20.2 // indirect + github.com/go-openapi/loads v0.21.2 // indirect + github.com/go-openapi/spec v0.20.9 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/inconshreveable/mousetrap v1.0.0 // indirect github.com/josharian/intern v1.0.0 // indirect github.com/magiconair/properties v1.8.5 // indirect - github.com/mailru/easyjson v0.7.6 // indirect - github.com/mitchellh/mapstructure v1.4.1 // indirect + github.com/mailru/easyjson v0.7.7 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect github.com/oklog/ulid v1.3.1 // indirect github.com/opentracing/opentracing-go v1.2.0 // indirect github.com/pelletier/go-toml v1.9.3 // indirect + github.com/rogpeppe/go-internal v1.11.0 // indirect github.com/spf13/afero v1.6.0 // indirect github.com/spf13/cast v1.3.1 // indirect github.com/spf13/jwalterweatherman v1.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect github.com/subosito/gotenv v1.2.0 // indirect - go.mongodb.org/mongo-driver v1.5.1 // indirect - golang.org/x/sys v0.5.0 // indirect - golang.org/x/text v0.7.0 // indirect + go.mongodb.org/mongo-driver v1.12.1 // indirect + go.opentelemetry.io/otel v1.18.0 // indirect + go.opentelemetry.io/otel/metric v1.18.0 // indirect + go.opentelemetry.io/otel/trace v1.18.0 // indirect + golang.org/x/sys v0.12.0 // indirect + golang.org/x/text v0.13.0 // indirect gopkg.in/ini.v1 v1.62.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect ) diff --git a/go.sum b/go.sum index 13de1cb..1223045 100644 --- a/go.sum +++ b/go.sum @@ -39,24 +39,15 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= -github.com/PuerkitoBio/purell v1.1.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= -github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M= github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= -github.com/agnivade/levenshtein v1.0.1/go.mod h1:CURSv5d9Uaml+FovSIICkLbAUZ9S4RqaHDIsdSBg7lM= -github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883/go.mod h1:rCTlJbsFo29Kk6CurOXKm700vrz8f0KW0JNfpkRJY/8= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= -github.com/asaskevich/govalidator v0.0.0-20180720115003-f9ffefc3facf/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= -github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200428143746-21a406dcc535/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg= -github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef h1:46PFijGLmAjMPwCCCo7Jf0W6f9slllCkkv7vyc1yOSg= github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= -github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so= +github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= @@ -73,8 +64,6 @@ github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ3 github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= @@ -86,106 +75,53 @@ github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5Kwzbycv github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= -github.com/globalsign/mgo v0.0.0-20180905125535-1ca0a4f7cbcb/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= -github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= -github.com/go-openapi/analysis v0.0.0-20180825180245-b006789cd277/go.mod h1:k70tL6pCuVxPJOHXQ+wIac1FUrvNkHolPie/cLEU6hI= -github.com/go-openapi/analysis v0.17.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.18.0/go.mod h1:IowGgpVeD0vNm45So8nr+IcQ3pxVtpRoBWb8PVZO0ik= -github.com/go-openapi/analysis v0.19.2/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.4/go.mod h1:3P1osvZa9jKjb8ed2TPng3f0i/UY9snX6gxi44djMjk= -github.com/go-openapi/analysis v0.19.5/go.mod h1:hkEAkxagaIvIP7VTn8ygJNkd4kAYON2rCu0v0ObL0AU= -github.com/go-openapi/analysis v0.19.10/go.mod h1:qmhS3VNFxBlquFJ0RGoDtylO9y4pgTAUNE9AEEMdlJQ= -github.com/go-openapi/analysis v0.19.16/go.mod h1:GLInF007N83Ad3m8a/CbQ5TPzdnGT7workfHwuVjNVk= -github.com/go-openapi/analysis v0.20.0 h1:UN09o0kNhleunxW7LR+KnltD0YrJ8FF03pSqvAN3Vro= -github.com/go-openapi/analysis v0.20.0/go.mod h1:BMchjvaHDykmRMsK40iPtvyOfFdMMxlOmQr9FBZk+Og= -github.com/go-openapi/errors v0.17.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.18.0/go.mod h1:LcZQpmvG4wyF5j4IhA73wkLFQg+QJXOQHVjmcZxhka0= -github.com/go-openapi/errors v0.19.2/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.3/go.mod h1:qX0BLWsyaKfvhluLejVpVNwNRdXZhEbTA4kxxpKBC94= -github.com/go-openapi/errors v0.19.6/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.19.7/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-openapi/analysis v0.21.2/go.mod h1:HZwRk4RRisyG8vx2Oe6aqeSQcoxRp47Xkp3+K6q+LdY= +github.com/go-openapi/analysis v0.21.4 h1:ZDFLvSNxpDaomuCueM0BlSXxpANBlFYiBvr+GXrvIHc= +github.com/go-openapi/analysis v0.21.4/go.mod h1:4zQ35W4neeZTqh3ol0rv/O8JBbka9QyAgQRPp9y3pfo= github.com/go-openapi/errors v0.19.8/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= github.com/go-openapi/errors v0.19.9/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/errors v0.20.1 h1:j23mMDtRxMwIobkpId7sWh7Ddcx4ivaoqUbfXx5P+a8= -github.com/go-openapi/errors v0.20.1/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= -github.com/go-openapi/jsonpointer v0.17.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.18.0/go.mod h1:cOnomiV+CVVwFLk0A/MExoFMjwdsUdVpsRhURCKh+3M= -github.com/go-openapi/jsonpointer v0.19.2/go.mod h1:3akKfEdA7DF1sugOqz1dVQHBcuDBPKZGEoHC/NkiQRg= +github.com/go-openapi/errors v0.20.2/go.mod h1:cM//ZKUKyO06HSwqAelJ5NsEMMcpa6VpXe8DOa1Mi1M= +github.com/go-openapi/errors v0.20.4 h1:unTcVm6PispJsMECE3zWgvG4xTiKda1LIR5rCRWLG6M= +github.com/go-openapi/errors v0.20.4/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonpointer v0.19.5 h1:gZr+CIYByUqjcgeLXnQu2gHYQC9o73G2XUeOFYEICuY= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= -github.com/go-openapi/jsonreference v0.17.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.18.0/go.mod h1:g4xxGn04lDIRh0GJb5QlpE3HfopLOL6uZrK/VgnsK9I= -github.com/go-openapi/jsonreference v0.19.2/go.mod h1:jMjeRr2HHw6nAVajTXJ4eiUwohSTlpa0o73RUL1owJc= -github.com/go-openapi/jsonreference v0.19.3/go.mod h1:rjx6GuL8TTa9VaixXglHmQmIL98+wF9xc8zWvFonSJ8= -github.com/go-openapi/jsonreference v0.19.5 h1:1WJP/wi4OjB4iV8KVbH73rQaoialJrqv8gitZLxGLtM= -github.com/go-openapi/jsonreference v0.19.5/go.mod h1:RdybgQwPxbL4UEjuAruzK1x3nE69AqPYEJeo/TWfEeg= -github.com/go-openapi/loads v0.17.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.18.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.0/go.mod h1:72tmFy5wsWx89uEVddd0RjRWPZm92WRLhf7AC+0+OOU= -github.com/go-openapi/loads v0.19.2/go.mod h1:QAskZPMX5V0C2gvfkGZzJlINuP7Hx/4+ix5jWFxsNPs= -github.com/go-openapi/loads v0.19.3/go.mod h1:YVfqhUCdahYwR3f3iiwQLhicVRvLlU/WO5WPaZvcvSI= -github.com/go-openapi/loads v0.19.5/go.mod h1:dswLCAdonkRufe/gSUC3gN8nTSaB9uaS2es0x5/IbjY= -github.com/go-openapi/loads v0.19.6/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= -github.com/go-openapi/loads v0.19.7/go.mod h1:brCsvE6j8mnbmGBh103PT/QLHfbyDxA4hsKvYBNEGVc= -github.com/go-openapi/loads v0.20.0/go.mod h1:2LhKquiE513rN5xC6Aan6lYOSddlL8Mp20AW9kpviM4= -github.com/go-openapi/loads v0.20.2 h1:z5p5Xf5wujMxS1y8aP+vxwW5qYT2zdJBbXKmQUG3lcc= -github.com/go-openapi/loads v0.20.2/go.mod h1:hTVUotJ+UonAMMZsvakEgmWKgtulweO9vYP2bQYKA/o= -github.com/go-openapi/runtime v0.0.0-20180920151709-4f900dc2ade9/go.mod h1:6v9a6LTXWQCdL8k1AO3cvqx5OtZY/Y9wKTgaoP6YRfA= -github.com/go-openapi/runtime v0.19.0/go.mod h1:OwNfisksmmaZse4+gpV3Ne9AyMOlP1lt4sK4FXt0O64= -github.com/go-openapi/runtime v0.19.4/go.mod h1:X277bwSUBxVlCYR3r7xgZZGKVvBd/29gLDlFGtJ8NL4= -github.com/go-openapi/runtime v0.19.15/go.mod h1:dhGWCTKRXlAfGnQG0ONViOZpjfg0m2gUt9nTQPQZuoo= -github.com/go-openapi/runtime v0.19.16/go.mod h1:5P9104EJgYcizotuXhEuUrzVc+j1RiSjahULvYmlv98= -github.com/go-openapi/runtime v0.19.24/go.mod h1:Lm9YGCeecBnUUkFTxPC4s1+lwrkJ0pthx8YvyjCfkgk= -github.com/go-openapi/runtime v0.19.31 h1:GX+MgBxN12s/tQiHNJpvHDIoZiEXAz6j6Rqg0oJcnpg= -github.com/go-openapi/runtime v0.19.31/go.mod h1:BvrQtn6iVb2QmiVXRsFAm6ZCAZBpbVKFfN6QWCp582M= -github.com/go-openapi/spec v0.17.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.18.0/go.mod h1:XkF/MOi14NmjsfZ8VtAKf8pIlbZzyoTvZsdfssdxcBI= -github.com/go-openapi/spec v0.19.2/go.mod h1:sCxk3jxKgioEJikev4fgkNmwS+3kuYdJtcsZsD5zxMY= -github.com/go-openapi/spec v0.19.3/go.mod h1:FpwSN1ksY1eteniUU7X0N/BgJ7a4WvBFVA8Lj9mJglo= -github.com/go-openapi/spec v0.19.6/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.8/go.mod h1:Hm2Jr4jv8G1ciIAo+frC/Ft+rR2kQDh8JHKHb3gWUSk= -github.com/go-openapi/spec v0.19.15/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= -github.com/go-openapi/spec v0.20.0/go.mod h1:+81FIL1JwC5P3/Iuuozq3pPE9dXdIEGxFutcFKaVbmU= -github.com/go-openapi/spec v0.20.1/go.mod h1:93x7oh+d+FQsmsieroS4cmR3u0p/ywH649a3qwC9OsQ= -github.com/go-openapi/spec v0.20.3 h1:uH9RQ6vdyPSs2pSy9fL8QPspDF2AMIMPtmK5coSSjtQ= -github.com/go-openapi/spec v0.20.3/go.mod h1:gG4F8wdEDN+YPBMVnzE85Rbhf+Th2DTvA9nFPQ5AYEg= -github.com/go-openapi/strfmt v0.17.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.18.0/go.mod h1:P82hnJI0CXkErkXi8IKjPbNBM6lV6+5pLP5l494TcyU= -github.com/go-openapi/strfmt v0.19.0/go.mod h1:+uW+93UVvGGq2qGaZxdDeJqSAqBqBdl+ZPMF/cC8nDY= -github.com/go-openapi/strfmt v0.19.2/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.3/go.mod h1:0yX7dbo8mKIvc3XSKp7MNfxw4JytCfCD6+bY1AVL9LU= -github.com/go-openapi/strfmt v0.19.4/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.19.5/go.mod h1:eftuHTlB/dI8Uq8JJOyRlieZf+WkkxUuk0dgdHXr2Qk= -github.com/go-openapi/strfmt v0.19.11/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= -github.com/go-openapi/strfmt v0.20.0/go.mod h1:UukAYgTaQfqJuAFlNxxMWNvMYiwiXtLsF2VwmoFtbtc= -github.com/go-openapi/strfmt v0.20.2 h1:6XZL+fF4VZYFxKQGLAUB358hOrRh/wS51uWEtlONADE= -github.com/go-openapi/strfmt v0.20.2/go.mod h1:43urheQI9dNtE5lTZQfuFJvjYJKPrxicATpEfZwHUNk= -github.com/go-openapi/swag v0.17.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.18.0/go.mod h1:AByQ+nYG6gQg71GINrmuDXCPWdL640yX49/kXLo40Tg= -github.com/go-openapi/swag v0.19.2/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= +github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs= +github.com/go-openapi/jsonpointer v0.20.0 h1:ESKJdU9ASRfaPNOPRx12IUyA1vn3R9GiE3KYD14BXdQ= +github.com/go-openapi/jsonpointer v0.20.0/go.mod h1:6PGzBjjIIumbLYysB73Klnms1mwnU4G3YHOECG3CedA= +github.com/go-openapi/jsonreference v0.19.6/go.mod h1:diGHMEHg2IqXZGKxqyvWdfWU/aim5Dprw5bqpKkTvns= +github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= +github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE= +github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k= +github.com/go-openapi/loads v0.21.1/go.mod h1:/DtAMXXneXFjbQMGEtbamCZb+4x7eGwkvZCvBmwUG+g= +github.com/go-openapi/loads v0.21.2 h1:r2a/xFIYeZ4Qd2TnGpWDIQNcP80dIaZgf704za8enro= +github.com/go-openapi/loads v0.21.2/go.mod h1:Jq58Os6SSGz0rzh62ptiu8Z31I+OTHqmULx5e/gJbNw= +github.com/go-openapi/runtime v0.26.0 h1:HYOFtG00FM1UvqrcxbEJg/SwvDRvYLQKGhw2zaQjTcc= +github.com/go-openapi/runtime v0.26.0/go.mod h1:QgRGeZwrUcSHdeh4Ka9Glvo0ug1LC5WyE+EV88plZrQ= +github.com/go-openapi/spec v0.20.4/go.mod h1:faYFR1CvsJZ0mNsmsphTMSoRrNV3TEDoAM7FOEWeq8I= +github.com/go-openapi/spec v0.20.6/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8= +github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= +github.com/go-openapi/strfmt v0.21.0/go.mod h1:ZRQ409bWMj+SOgXofQAGTIo2Ebu72Gs+WaRADcS5iNg= +github.com/go-openapi/strfmt v0.21.1/go.mod h1:I/XVKeLc5+MM5oPNN7P6urMOpuLXEcNrCX/rPGuWb0k= +github.com/go-openapi/strfmt v0.21.3/go.mod h1:k+RzNO0Da+k3FrrynSNN8F7n/peCmQQqbbXjtDfvmGg= +github.com/go-openapi/strfmt v0.21.7 h1:rspiXgNWgeUzhjo1YU01do6qsahtJNByjLVbPLNHb8k= +github.com/go-openapi/strfmt v0.21.7/go.mod h1:adeGTkxE44sPyLk0JV235VQAO/ZXUr8KAzYjclFs3ew= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= -github.com/go-openapi/swag v0.19.7/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.9/go.mod h1:ao+8BpOPyKdpQz3AOJfbeEVpLmWAvlT1IfTe5McPyhY= -github.com/go-openapi/swag v0.19.12/go.mod h1:eFdyEBkTdoAf/9RXBvj4cr1nH7GD8Kzo5HTt47gr72M= -github.com/go-openapi/swag v0.19.13/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.19.14/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/swag v0.19.15 h1:D2NRCBzS9/pEY3gP9Nl8aDqGUcPFrwG2p+CNFrLyrCM= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= -github.com/go-openapi/validate v0.18.0/go.mod h1:Uh4HdOzKt19xGIGm1qHf/ofbX1YQ4Y+MYsct2VUrAJ4= -github.com/go-openapi/validate v0.19.2/go.mod h1:1tRCw7m3jtI8eNWEEliiAqUIcBztB2KDnRCRMUi7GTA= -github.com/go-openapi/validate v0.19.3/go.mod h1:90Vh6jjkTn+OT1Eefm0ZixWNFjhtOH7vS9k0lo6zwJo= -github.com/go-openapi/validate v0.19.10/go.mod h1:RKEZTUWDkxKQxN2jDT7ZnZi2bhZlbNMAuKvKB+IaGx8= -github.com/go-openapi/validate v0.19.12/go.mod h1:Rzou8hA/CBw8donlS6WNEUQupNvUZ0waH08tGe6kAQ4= -github.com/go-openapi/validate v0.19.15/go.mod h1:tbn/fdOwYHgrhPBzidZfJC2MIVvs9GA7monOmWBbeCI= -github.com/go-openapi/validate v0.20.1/go.mod h1:b60iJT+xNNLfaQJUqLI7946tYiFEOuE9E4k54HpKcJ0= -github.com/go-openapi/validate v0.20.2 h1:AhqDegYV3J3iQkMPJSXkvzymHKMTw0BST3RK3hTT4ts= -github.com/go-openapi/validate v0.20.2/go.mod h1:e7OJoKNgd0twXZwIn0A43tHbvIcr/rZIVCbJBpTUoY0= -github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= -github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= +github.com/go-openapi/swag v0.21.1/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= +github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/swag v0.22.4 h1:QLMzNJnMGPRNDCbySlcj1x01tzU8/9LTTL9hZZZogBU= +github.com/go-openapi/swag v0.22.4/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= +github.com/go-openapi/validate v0.22.1 h1:G+c2ub6q47kfX1sOBLwIQwzBVt8qmOAARyo/9Fqs9NU= +github.com/go-openapi/validate v0.22.1/go.mod h1:rjnrwK57VJ7A8xqfpAOEKRH8yQSGUriMu5/zuPSQ1hg= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= github.com/go-test/deep v1.0.7 h1:/VSMRlnY/JSyqxQUzQLKVMAskpY/NZKFA5j2P+0pP2M= github.com/go-test/deep v1.0.7/go.mod h1:QV8Hv/iy04NyLBxAdO9njL0iVPN1S4d/A3NVv1V36o8= @@ -257,8 +193,8 @@ github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU= github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= @@ -275,10 +211,9 @@ github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= -github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/google/uuid v1.1.2 h1:EVhdT+1Kseyi1/pUmXKaFxYsDNy9RQYkMWRH68J/W7Y= github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I= github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 h1:EGx4pi6eqNxGaHF6qqu48+N2wcFQ5qg5FXgOdqsJ5d8= @@ -309,8 +244,6 @@ github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1: github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= -github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= -github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg= github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= @@ -321,28 +254,26 @@ 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/karrick/godirwalk v1.8.0/go.mod h1:H5KPZjojv4lE+QYImBI8xVtrBRgYrIVsaRPx4tDPEn4= github.com/karrick/godirwalk v1.10.3/go.mod h1:RoGL9dQei4vP9ilrpETWE8CLOZ1kiN0LhBygSwrAsHA= -github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= -github.com/klauspost/compress v1.9.5/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/magiconair/properties v1.8.5 h1:b6kJs+EmPFMYGkow9GiUyCyOvIwYetYJ3fSaWak/Gls= github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= -github.com/mailru/easyjson v0.0.0-20180823135443-60711f1a8329/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.0.0-20190312143242-1de009706dbe/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190614124828-94de47d64c63/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= github.com/mailru/easyjson v0.0.0-20190626092158-b2ccc519800e/go.mod h1:C1wdFJiN94OJF2b5HbByQZoLdCWB1Yqtg26g4irojpc= -github.com/mailru/easyjson v0.7.1/go.mod h1:KAzv3t3aY1NaHWoQz1+4F1ccyAH66Jk7yos7ldAVICs= -github.com/mailru/easyjson v0.7.6 h1:8yTIVnZgCoiM1TgqoeTl+LfU5Jg6/xL3QhGQnimLYnA= github.com/mailru/easyjson v0.7.6/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= +github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= +github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= github.com/markbates/oncer v0.0.0-20181203154359-bf2de49a0be2/go.mod h1:Ld9puTsIW75CHf65OeIOkyKbteujpZVXDpWK6YGZbxE= github.com/markbates/safe v1.0.1/go.mod h1:nAqgmRi7cY2nqMc92/bSEeQA+R4OheNU2T1kNSCBdG0= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -355,24 +286,20 @@ github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS4 github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= -github.com/mitchellh/mapstructure v1.3.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/mitchellh/mapstructure v1.3.3/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= -github.com/mitchellh/mapstructure v1.4.1 h1:CpVNEelQCZBooIPDn+AR3NpivK/TIKU8bDxdASFVQag= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4= github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U= github.com/opentracing/opentracing-go v1.2.0 h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs= github.com/opentracing/opentracing-go v1.2.0/go.mod h1:GxEUsuufX4nBwe+T+Wl9TAgYrxe9dPLANfrWvHYVTgc= github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= -github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= -github.com/pelletier/go-toml v1.4.0/go.mod h1:PN7xzY2wHTK0K9p34ErDQMlFxa51Fk0OUruD3k1mMwo= github.com/pelletier/go-toml v1.7.0/go.mod h1:vwGMzjaWMwyfHwgIBhI2YUM4fB6nL6lVAvS1LBMMhTE= github.com/pelletier/go-toml v1.9.3 h1:zeC5b1GviRUyKYd6OJPvBU/mcVDVoL1OhT17FCt5dSQ= github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= @@ -388,9 +315,10 @@ github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6L github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.2.2/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= +github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= -github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= github.com/sirupsen/logrus v1.4.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= @@ -413,42 +341,43 @@ github.com/spf13/viper v1.8.1 h1:Kq1fyeebqsBfbjZj4EL7gj2IO0mMaiyjYUWcUsl2O44= github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +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= github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= -github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4= github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk= -github.com/vektah/gqlparser v1.1.2/go.mod h1:1ycwN7Ij5njmMkPPAOaRFY4rET2Enx7IkVv3vaXspKw= github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI= github.com/xdg-go/scram v1.0.2/go.mod h1:1WAq6h33pAW+iRreB34OORO2Nf7qel3VV3fjBj+hCSs= +github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g= +github.com/xdg-go/scram v1.1.2/go.mod h1:RT/sEzTbU5y00aCK8UOx6R7YryM0iF1N2MOmC3kKLN4= github.com/xdg-go/stringprep v1.0.2/go.mod h1:8F9zXuvzgwmyT5DUm4GUfZGDdT3W+LCvS6+da4O5kxM= -github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c/go.mod h1:lB8K/P019DLNhemzwFU4jHLhdvlE6uDZjXFejJXr49I= -github.com/xdg/stringprep v0.0.0-20180714160509-73f8eece6fdc/go.mod h1:Jhud4/sHMO4oL310DaZAKk9ZaJ08SJfe+sJh0HrGL1Y= +github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8= +github.com/xdg-go/stringprep v1.0.4/go.mod h1:mPGuuIYwz7CmR2bT9j4GbQqutWS1zV24gijq1dTyGkM= github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= -go.mongodb.org/mongo-driver v1.0.3/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.1.1/go.mod h1:u7ryQJ+DOzQmeO7zB6MHyr8jkEQvC8vH7qLUO4lqsUM= -go.mongodb.org/mongo-driver v1.3.0/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.3.4/go.mod h1:MSWZXKOynuguX+JSvwP8i+58jYCXxbia8HS3gZBapIE= -go.mongodb.org/mongo-driver v1.4.3/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.4.4/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.4.6/go.mod h1:WcMNYLx/IlOxLe6JRJiv2uXuCz6zBLndR4SoGjYphSc= -go.mongodb.org/mongo-driver v1.5.1 h1:9nOVLGDfOaZ9R0tBumx/BcuqkbFpyTCU2r/Po7A2azI= -go.mongodb.org/mongo-driver v1.5.1/go.mod h1:gRXCHX4Jo7J0IJ1oDQyUxF7jfy19UfxniMS4xxMmUqw= +go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= +go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= +go.mongodb.org/mongo-driver v1.10.0/go.mod h1:wsihk0Kdgv8Kqu1Anit4sfK+22vSFbUrAVEYRhCXrA8= +go.mongodb.org/mongo-driver v1.12.1 h1:nLkghSU8fQNaK7oUmDhQFsnrtcoNy7Z6LVFKsEecqgE= +go.mongodb.org/mongo-driver v1.12.1/go.mod h1:/rGBTebI3XYboVmgz+Wv3Bcbl3aD0QF9zl6kDDw18rQ= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= @@ -456,23 +385,28 @@ go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opentelemetry.io/otel v1.18.0 h1:TgVozPGZ01nHyDZxK5WGPFB9QexeTMXEH7+tIClWfzs= +go.opentelemetry.io/otel v1.18.0/go.mod h1:9lWqYO0Db579XzVuCKFNPDl4s73Voa+zEck3wHaAYQI= +go.opentelemetry.io/otel/metric v1.18.0 h1:JwVzw94UYmbx3ej++CwLUQZxEODDj/pOuTCvzhtRrSQ= +go.opentelemetry.io/otel/metric v1.18.0/go.mod h1:nNSpsVDjWGfb7chbRLUNW+PBNdcSTHD4Uu5pfFMOI0k= +go.opentelemetry.io/otel/sdk v1.14.0 h1:PDCppFRDq8A1jL9v6KMI6dYesaq+DFcDZvjsoGvxGzY= +go.opentelemetry.io/otel/trace v1.18.0 h1:NY+czwbHbmndxojTEKiSMHkG2ClNH2PwmcHrdo0JY10= +go.opentelemetry.io/otel/trace v1.18.0/go.mod h1:T2+SGJGuYZY3bjj5rgh/hN7KIrlpWC5nS8Mjvzckz+0= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190320223903-b7391e95e576/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/crypto v0.0.0-20190422162423-af44ce270edf/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190530122614-20be4c3c3ed5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190611184440-5c40567a22f8/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190617133340-57b3e21c3d56/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -508,24 +442,21 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20181005035420-146acd28ed58/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20190827160401-ba9fcec4b297/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= @@ -537,22 +468,22 @@ golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/ golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= -golang.org/x/net v0.7.0 h1:rJrUqqhjsgNp7KqAIc25s9pZnjU7TUcSY7HcVZjdn1g= -golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.0.0-20210421230115-4e50805a0758/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= +golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.15.0 h1:ugBLEUaxABaB5AJqW9enI0ACdci2RUd4eP51NTBvuJ8= +golang.org/x/net v0.15.0/go.mod h1:idbUs1IY1+zTqbi8yxTbhexhEEk5ur9LInksu6HrEpk= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -577,13 +508,13 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190321052220-f7bb7a8bee54/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190419153524-e8e3143a4f4a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -592,7 +523,6 @@ golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190531175056-4c3a928424d2/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190616124812-15dcb6c0061f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -624,10 +554,16 @@ golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210420072515-93ed5bcd2bfe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0 h1:MUK/U/4lj1t1oPg0HfuXDN/Z1wv31ZJ/YcPiGccS4DU= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0 h1:CM0HF96J0hcLAwsHPJZjfdNzs0gftsLfgKt57wWHJ0o= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -635,15 +571,17 @@ golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.7.0 h1:4BRB4x83lYWy72KwLD/qYDuTu7q9PjSagHvijDw7cLo= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= +golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20190125232054-d66bd3c5d5a6/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= @@ -657,8 +595,6 @@ golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBn golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190531172133-b3315ee88b7d/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190614205625-5aca471b1d59/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= -golang.org/x/tools v0.0.0-20190617190820-da514acc4774/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -699,6 +635,7 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -807,24 +744,23 @@ google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp0 google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/ini.v1 v1.62.0 h1:duBzk771uxoUuOlyRLkHsygud9+5lrlGjdFBb4mSKDU= gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200605160147-a5ece683394c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= diff --git a/swagger_client/.go.bkp b/swagger_client/.go.bkp new file mode 100644 index 0000000..cb5084b --- /dev/null +++ b/swagger_client/.go.bkp @@ -0,0 +1,122 @@ +// Code generated by go-swagger; DO NOT EDIT. + +package swagger_client + +// This file was generated by the swagger tool. +// Editing this file might prove futile when you re-run the swagger generate command + +import ( + "github.com/go-openapi/runtime" + httptransport "github.com/go-openapi/runtime/client" + "github.com/go-openapi/strfmt" + + "github.com/zededa/zedcloud-api/swagger_client/edge_network_configuration" + "github.com/zededa/zedcloud-api/swagger_client/edge_network_instance_configuration" + "github.com/zededa/zedcloud-api/swagger_client/edge_network_instance_status" +) + +// Default zedcloudapi HTTP client. +var Default = NewHTTPClient(nil) + +const ( + // DefaultHost is the default Host + // found in Meta (info) section of spec file + DefaultHost string = "zedcontrol.zededa.net" + // DefaultBasePath is the default BasePath + // found in Meta (info) section of spec file + DefaultBasePath string = "/api" +) + +// DefaultSchemes are the default schemes found in Meta (info) section of spec file +var DefaultSchemes = []string{"https"} + +// NewHTTPClient creates a new zedcloudapi HTTP client. +func NewHTTPClient(formats strfmt.Registry) *Zedcloudapi { + return NewHTTPClientWithConfig(formats, nil) +} + +// NewHTTPClientWithConfig creates a new zedcloudapi HTTP client, +// using a customizable transport config. +func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *Zedcloudapi { + // ensure nullable parameters have default + if cfg == nil { + cfg = DefaultTransportConfig() + } + + // create transport and client + transport := httptransport.New(cfg.Host, cfg.BasePath, cfg.Schemes) + return New(transport, formats) +} + +// New creates a new zedcloudapi client +func New(transport runtime.ClientTransport, formats strfmt.Registry) *Zedcloudapi { + // ensure nullable parameters have default + if formats == nil { + formats = strfmt.Default + } + + cli := new(Zedcloudapi) + cli.Transport = transport + cli.EdgeNetworkConfiguration = edge_network_configuration.New(transport, formats) + cli.EdgeNetworkInstanceConfiguration = edge_network_instance_configuration.New(transport, formats) + cli.EdgeNetworkInstanceStatus = edge_network_instance_status.New(transport, formats) + return cli +} + +// DefaultTransportConfig creates a TransportConfig with the +// default settings taken from the meta section of the spec file. +func DefaultTransportConfig() *TransportConfig { + return &TransportConfig{ + Host: DefaultHost, + BasePath: DefaultBasePath, + Schemes: DefaultSchemes, + } +} + +// TransportConfig contains the transport related info, +// found in the meta section of the spec file. +type TransportConfig struct { + Host string + BasePath string + Schemes []string +} + +// WithHost overrides the default host, +// provided by the meta section of the spec file. +func (cfg *TransportConfig) WithHost(host string) *TransportConfig { + cfg.Host = host + return cfg +} + +// WithBasePath overrides the default basePath, +// provided by the meta section of the spec file. +func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig { + cfg.BasePath = basePath + return cfg +} + +// WithSchemes overrides the default schemes, +// provided by the meta section of the spec file. +func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig { + cfg.Schemes = schemes + return cfg +} + +// Zedcloudapi is a client for zedcloudapi +type Zedcloudapi struct { + EdgeNetworkConfiguration edge_network_configuration.ClientService + + EdgeNetworkInstanceConfiguration edge_network_instance_configuration.ClientService + + EdgeNetworkInstanceStatus edge_network_instance_status.ClientService + + Transport runtime.ClientTransport +} + +// SetTransport changes the transport on the client and all its subresources +func (c *Zedcloudapi) SetTransport(transport runtime.ClientTransport) { + c.Transport = transport + c.EdgeNetworkConfiguration.SetTransport(transport) + c.EdgeNetworkInstanceConfiguration.SetTransport(transport) + c.EdgeNetworkInstanceStatus.SetTransport(transport) +} diff --git a/swagger_client/artifact_manager/artifact_manager_create_artifact_responses.go b/swagger_client/artifact_manager/artifact_manager_create_artifact_responses.go index 00877a2..96f03d3 100644 --- a/swagger_client/artifact_manager/artifact_manager_create_artifact_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_create_artifact_responses.go @@ -111,6 +111,11 @@ func (o *ArtifactManagerCreateArtifactOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager create artifact o k response +func (o *ArtifactManagerCreateArtifactOK) Code() int { + return 200 +} + func (o *ArtifactManagerCreateArtifactOK) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ArtifactManagerCreateArtifactBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the artifact manager create artifact bad request response +func (o *ArtifactManagerCreateArtifactBadRequest) Code() int { + return 400 +} + func (o *ArtifactManagerCreateArtifactBadRequest) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ArtifactManagerCreateArtifactUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the artifact manager create artifact unauthorized response +func (o *ArtifactManagerCreateArtifactUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerCreateArtifactUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ArtifactManagerCreateArtifactForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager create artifact forbidden response +func (o *ArtifactManagerCreateArtifactForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerCreateArtifactForbidden) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ArtifactManagerCreateArtifactInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the artifact manager create artifact internal server error response +func (o *ArtifactManagerCreateArtifactInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerCreateArtifactInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ArtifactManagerCreateArtifactGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the artifact manager create artifact gateway timeout response +func (o *ArtifactManagerCreateArtifactGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerCreateArtifactGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] artifactManagerCreateArtifactGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ArtifactManagerCreateArtifactDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager create artifact default response -func (o *ArtifactManagerCreateArtifactDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager create artifact default response has a 2xx status code func (o *ArtifactManagerCreateArtifactDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ArtifactManagerCreateArtifactDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager create artifact default response +func (o *ArtifactManagerCreateArtifactDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerCreateArtifactDefault) Error() string { return fmt.Sprintf("[POST /v1/artifacts][%d] ArtifactManager_CreateArtifact default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/artifact_manager/artifact_manager_delete_artifact_responses.go b/swagger_client/artifact_manager/artifact_manager_delete_artifact_responses.go index 14e2aa5..0d2def2 100644 --- a/swagger_client/artifact_manager/artifact_manager_delete_artifact_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_delete_artifact_responses.go @@ -111,6 +111,11 @@ func (o *ArtifactManagerDeleteArtifactOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager delete artifact o k response +func (o *ArtifactManagerDeleteArtifactOK) Code() int { + return 200 +} + func (o *ArtifactManagerDeleteArtifactOK) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ArtifactManagerDeleteArtifactUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the artifact manager delete artifact unauthorized response +func (o *ArtifactManagerDeleteArtifactUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerDeleteArtifactUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ArtifactManagerDeleteArtifactForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager delete artifact forbidden response +func (o *ArtifactManagerDeleteArtifactForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerDeleteArtifactForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ArtifactManagerDeleteArtifactNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the artifact manager delete artifact not found response +func (o *ArtifactManagerDeleteArtifactNotFound) Code() int { + return 404 +} + func (o *ArtifactManagerDeleteArtifactNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ArtifactManagerDeleteArtifactInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the artifact manager delete artifact internal server error response +func (o *ArtifactManagerDeleteArtifactInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerDeleteArtifactInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ArtifactManagerDeleteArtifactGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the artifact manager delete artifact gateway timeout response +func (o *ArtifactManagerDeleteArtifactGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerDeleteArtifactGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] artifactManagerDeleteArtifactGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ArtifactManagerDeleteArtifactDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager delete artifact default response -func (o *ArtifactManagerDeleteArtifactDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager delete artifact default response has a 2xx status code func (o *ArtifactManagerDeleteArtifactDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ArtifactManagerDeleteArtifactDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager delete artifact default response +func (o *ArtifactManagerDeleteArtifactDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerDeleteArtifactDefault) Error() string { return fmt.Sprintf("[DELETE /v1/artifacts/id/{id}][%d] ArtifactManager_DeleteArtifact default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/artifact_manager/artifact_manager_get_artifact_signed_url_responses.go b/swagger_client/artifact_manager/artifact_manager_get_artifact_signed_url_responses.go index 8aa2b6e..a4fe5b2 100644 --- a/swagger_client/artifact_manager/artifact_manager_get_artifact_signed_url_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_get_artifact_signed_url_responses.go @@ -117,6 +117,11 @@ func (o *ArtifactManagerGetArtifactSignedURLOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager get artifact signed Url o k response +func (o *ArtifactManagerGetArtifactSignedURLOK) Code() int { + return 200 +} + func (o *ArtifactManagerGetArtifactSignedURLOK) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ArtifactManagerGetArtifactSignedURLTemporaryRedirect) IsCode(code int) return code == 307 } +// Code gets the status code for the artifact manager get artifact signed Url temporary redirect response +func (o *ArtifactManagerGetArtifactSignedURLTemporaryRedirect) Code() int { + return 307 +} + func (o *ArtifactManagerGetArtifactSignedURLTemporaryRedirect) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlTemporaryRedirect %+v", 307, o.Payload) } @@ -243,6 +253,11 @@ func (o *ArtifactManagerGetArtifactSignedURLBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the artifact manager get artifact signed Url bad request response +func (o *ArtifactManagerGetArtifactSignedURLBadRequest) Code() int { + return 400 +} + func (o *ArtifactManagerGetArtifactSignedURLBadRequest) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlBadRequest %+v", 400, o.Payload) } @@ -306,6 +321,11 @@ func (o *ArtifactManagerGetArtifactSignedURLUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the artifact manager get artifact signed Url unauthorized response +func (o *ArtifactManagerGetArtifactSignedURLUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerGetArtifactSignedURLUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlUnauthorized %+v", 401, o.Payload) } @@ -369,6 +389,11 @@ func (o *ArtifactManagerGetArtifactSignedURLForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager get artifact signed Url forbidden response +func (o *ArtifactManagerGetArtifactSignedURLForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerGetArtifactSignedURLForbidden) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlForbidden %+v", 403, o.Payload) } @@ -432,6 +457,11 @@ func (o *ArtifactManagerGetArtifactSignedURLInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the artifact manager get artifact signed Url internal server error response +func (o *ArtifactManagerGetArtifactSignedURLInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerGetArtifactSignedURLInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ArtifactManagerGetArtifactSignedURLGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the artifact manager get artifact signed Url gateway timeout response +func (o *ArtifactManagerGetArtifactSignedURLGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerGetArtifactSignedURLGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] artifactManagerGetArtifactSignedUrlGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ArtifactManagerGetArtifactSignedURLDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager get artifact signed Url default response -func (o *ArtifactManagerGetArtifactSignedURLDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager get artifact signed Url default response has a 2xx status code func (o *ArtifactManagerGetArtifactSignedURLDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ArtifactManagerGetArtifactSignedURLDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager get artifact signed Url default response +func (o *ArtifactManagerGetArtifactSignedURLDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerGetArtifactSignedURLDefault) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}/url][%d] ArtifactManager_GetArtifactSignedUrl default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/artifact_manager/artifact_manager_get_artifact_stream_responses.go b/swagger_client/artifact_manager/artifact_manager_get_artifact_stream_responses.go index 83dedb7..de5e5b5 100644 --- a/swagger_client/artifact_manager/artifact_manager_get_artifact_stream_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_get_artifact_stream_responses.go @@ -126,6 +126,11 @@ func (o *ArtifactManagerGetArtifactStreamOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager get artifact stream o k response +func (o *ArtifactManagerGetArtifactStreamOK) Code() int { + return 200 +} + func (o *ArtifactManagerGetArtifactStreamOK) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamOK %+v", 200, o.Payload) } @@ -189,6 +194,11 @@ func (o *ArtifactManagerGetArtifactStreamPartialContent) IsCode(code int) bool { return code == 206 } +// Code gets the status code for the artifact manager get artifact stream partial content response +func (o *ArtifactManagerGetArtifactStreamPartialContent) Code() int { + return 206 +} + func (o *ArtifactManagerGetArtifactStreamPartialContent) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamPartialContent %+v", 206, o.Payload) } @@ -252,6 +262,11 @@ func (o *ArtifactManagerGetArtifactStreamTemporaryRedirect) IsCode(code int) boo return code == 307 } +// Code gets the status code for the artifact manager get artifact stream temporary redirect response +func (o *ArtifactManagerGetArtifactStreamTemporaryRedirect) Code() int { + return 307 +} + func (o *ArtifactManagerGetArtifactStreamTemporaryRedirect) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamTemporaryRedirect %+v", 307, o.Payload) } @@ -315,6 +330,11 @@ func (o *ArtifactManagerGetArtifactStreamBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the artifact manager get artifact stream bad request response +func (o *ArtifactManagerGetArtifactStreamBadRequest) Code() int { + return 400 +} + func (o *ArtifactManagerGetArtifactStreamBadRequest) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamBadRequest %+v", 400, o.Payload) } @@ -378,6 +398,11 @@ func (o *ArtifactManagerGetArtifactStreamUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the artifact manager get artifact stream unauthorized response +func (o *ArtifactManagerGetArtifactStreamUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerGetArtifactStreamUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamUnauthorized %+v", 401, o.Payload) } @@ -441,6 +466,11 @@ func (o *ArtifactManagerGetArtifactStreamForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager get artifact stream forbidden response +func (o *ArtifactManagerGetArtifactStreamForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerGetArtifactStreamForbidden) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamForbidden %+v", 403, o.Payload) } @@ -504,6 +534,11 @@ func (o *ArtifactManagerGetArtifactStreamInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the artifact manager get artifact stream internal server error response +func (o *ArtifactManagerGetArtifactStreamInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerGetArtifactStreamInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamInternalServerError %+v", 500, o.Payload) } @@ -567,6 +602,11 @@ func (o *ArtifactManagerGetArtifactStreamGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the artifact manager get artifact stream gateway timeout response +func (o *ArtifactManagerGetArtifactStreamGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerGetArtifactStreamGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] artifactManagerGetArtifactStreamGatewayTimeout %+v", 504, o.Payload) } @@ -609,11 +649,6 @@ type ArtifactManagerGetArtifactStreamDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager get artifact stream default response -func (o *ArtifactManagerGetArtifactStreamDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager get artifact stream default response has a 2xx status code func (o *ArtifactManagerGetArtifactStreamDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -639,6 +674,11 @@ func (o *ArtifactManagerGetArtifactStreamDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager get artifact stream default response +func (o *ArtifactManagerGetArtifactStreamDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerGetArtifactStreamDefault) Error() string { return fmt.Sprintf("[GET /v1/artifacts/id/{id}][%d] ArtifactManager_GetArtifactStream default %+v", o._statusCode, o.Payload) } @@ -728,6 +768,11 @@ func (o *ArtifactManagerGetArtifactStreamOKBody) ContextValidate(ctx context.Con func (o *ArtifactManagerGetArtifactStreamOKBody) contextValidateError(ctx context.Context, formats strfmt.Registry) error { if o.Error != nil { + + if swag.IsZero(o.Error) { // not required + return nil + } + if err := o.Error.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("artifactManagerGetArtifactStreamOK" + "." + "error") diff --git a/swagger_client/artifact_manager/artifact_manager_query_artifacts_responses.go b/swagger_client/artifact_manager/artifact_manager_query_artifacts_responses.go index 695a47a..ca7a126 100644 --- a/swagger_client/artifact_manager/artifact_manager_query_artifacts_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_query_artifacts_responses.go @@ -111,6 +111,11 @@ func (o *ArtifactManagerQueryArtifactsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager query artifacts o k response +func (o *ArtifactManagerQueryArtifactsOK) Code() int { + return 200 +} + func (o *ArtifactManagerQueryArtifactsOK) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ArtifactManagerQueryArtifactsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the artifact manager query artifacts bad request response +func (o *ArtifactManagerQueryArtifactsBadRequest) Code() int { + return 400 +} + func (o *ArtifactManagerQueryArtifactsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ArtifactManagerQueryArtifactsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the artifact manager query artifacts unauthorized response +func (o *ArtifactManagerQueryArtifactsUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerQueryArtifactsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ArtifactManagerQueryArtifactsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager query artifacts forbidden response +func (o *ArtifactManagerQueryArtifactsForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerQueryArtifactsForbidden) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ArtifactManagerQueryArtifactsInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the artifact manager query artifacts internal server error response +func (o *ArtifactManagerQueryArtifactsInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerQueryArtifactsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ArtifactManagerQueryArtifactsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the artifact manager query artifacts gateway timeout response +func (o *ArtifactManagerQueryArtifactsGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerQueryArtifactsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] artifactManagerQueryArtifactsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ArtifactManagerQueryArtifactsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager query artifacts default response -func (o *ArtifactManagerQueryArtifactsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager query artifacts default response has a 2xx status code func (o *ArtifactManagerQueryArtifactsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ArtifactManagerQueryArtifactsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager query artifacts default response +func (o *ArtifactManagerQueryArtifactsDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerQueryArtifactsDefault) Error() string { return fmt.Sprintf("[GET /v1/artifacts][%d] ArtifactManager_QueryArtifacts default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/artifact_manager/artifact_manager_upload_artifact_responses.go b/swagger_client/artifact_manager/artifact_manager_upload_artifact_responses.go index 551ecd9..f61dc61 100644 --- a/swagger_client/artifact_manager/artifact_manager_upload_artifact_responses.go +++ b/swagger_client/artifact_manager/artifact_manager_upload_artifact_responses.go @@ -117,6 +117,11 @@ func (o *ArtifactManagerUploadArtifactOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the artifact manager upload artifact o k response +func (o *ArtifactManagerUploadArtifactOK) Code() int { + return 200 +} + func (o *ArtifactManagerUploadArtifactOK) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ArtifactManagerUploadArtifactAccepted) IsCode(code int) bool { return code == 202 } +// Code gets the status code for the artifact manager upload artifact accepted response +func (o *ArtifactManagerUploadArtifactAccepted) Code() int { + return 202 +} + func (o *ArtifactManagerUploadArtifactAccepted) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactAccepted %+v", 202, o.Payload) } @@ -243,6 +253,11 @@ func (o *ArtifactManagerUploadArtifactBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the artifact manager upload artifact bad request response +func (o *ArtifactManagerUploadArtifactBadRequest) Code() int { + return 400 +} + func (o *ArtifactManagerUploadArtifactBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactBadRequest %+v", 400, o.Payload) } @@ -306,6 +321,11 @@ func (o *ArtifactManagerUploadArtifactUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the artifact manager upload artifact unauthorized response +func (o *ArtifactManagerUploadArtifactUnauthorized) Code() int { + return 401 +} + func (o *ArtifactManagerUploadArtifactUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactUnauthorized %+v", 401, o.Payload) } @@ -369,6 +389,11 @@ func (o *ArtifactManagerUploadArtifactForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the artifact manager upload artifact forbidden response +func (o *ArtifactManagerUploadArtifactForbidden) Code() int { + return 403 +} + func (o *ArtifactManagerUploadArtifactForbidden) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactForbidden %+v", 403, o.Payload) } @@ -432,6 +457,11 @@ func (o *ArtifactManagerUploadArtifactInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the artifact manager upload artifact internal server error response +func (o *ArtifactManagerUploadArtifactInternalServerError) Code() int { + return 500 +} + func (o *ArtifactManagerUploadArtifactInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ArtifactManagerUploadArtifactGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the artifact manager upload artifact gateway timeout response +func (o *ArtifactManagerUploadArtifactGatewayTimeout) Code() int { + return 504 +} + func (o *ArtifactManagerUploadArtifactGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] artifactManagerUploadArtifactGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ArtifactManagerUploadArtifactDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the artifact manager upload artifact default response -func (o *ArtifactManagerUploadArtifactDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this artifact manager upload artifact default response has a 2xx status code func (o *ArtifactManagerUploadArtifactDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ArtifactManagerUploadArtifactDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the artifact manager upload artifact default response +func (o *ArtifactManagerUploadArtifactDefault) Code() int { + return o._statusCode +} + func (o *ArtifactManagerUploadArtifactDefault) Error() string { return fmt.Sprintf("[PUT /v1/artifacts/id/{id}/upload/chunked][%d] ArtifactManager_UploadArtifact default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_create_edge_application_instances_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_create_edge_application_instances_responses.go index fb0d396..55660d4 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_create_edge_application_instances_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_create_edge_application_instances_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops bulk create edge application instances o k response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesBadRequest) IsCode(code int return code == 400 } +// Code gets the status code for the bulk job ops bulk create edge application instances bad request response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the bulk job ops bulk create edge application instances unauthorized response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the bulk job ops bulk create edge application instances forbidden response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the bulk job ops bulk create edge application instances not found response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesConflict) IsCode(code int) return code == 409 } +// Code gets the status code for the bulk job ops bulk create edge application instances conflict response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesInternalServerError) IsCode return code == 500 } +// Code gets the status code for the bulk job ops bulk create edge application instances internal server error response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the bulk job ops bulk create edge application instances gateway timeout response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] bulkJobOpsBulkCreateEdgeApplicationInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkCreateEdgeApplicationInstancesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk create edge application instances default response -func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk create edge application instances default response has a 2xx status code func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk create edge application instances default response +func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkCreateEdgeApplicationInstancesDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/create][%d] BulkJobOps_BulkCreateEdgeApplicationInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_edge_applications_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_edge_applications_responses.go index 6780a9d..3d24b90 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_edge_applications_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_edge_applications_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops bulk import edge applications o k response +func (o *BulkJobOpsBulkImportEdgeApplicationsOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops bulk import edge applications bad request response +func (o *BulkJobOpsBulkImportEdgeApplicationsBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the bulk job ops bulk import edge applications unauthorized response +func (o *BulkJobOpsBulkImportEdgeApplicationsUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops bulk import edge applications forbidden response +func (o *BulkJobOpsBulkImportEdgeApplicationsForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops bulk import edge applications not found response +func (o *BulkJobOpsBulkImportEdgeApplicationsNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops bulk import edge applications conflict response +func (o *BulkJobOpsBulkImportEdgeApplicationsConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsInternalServerError) IsCode(code in return code == 500 } +// Code gets the status code for the bulk job ops bulk import edge applications internal server error response +func (o *BulkJobOpsBulkImportEdgeApplicationsInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsGatewayTimeout) IsCode(code int) bo return code == 504 } +// Code gets the status code for the bulk job ops bulk import edge applications gateway timeout response +func (o *BulkJobOpsBulkImportEdgeApplicationsGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkImportEdgeApplicationsGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] bulkJobOpsBulkImportEdgeApplicationsGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkImportEdgeApplicationsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk import edge applications default response -func (o *BulkJobOpsBulkImportEdgeApplicationsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk import edge applications default response has a 2xx status code func (o *BulkJobOpsBulkImportEdgeApplicationsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkImportEdgeApplicationsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk import edge applications default response +func (o *BulkJobOpsBulkImportEdgeApplicationsDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkImportEdgeApplicationsDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/bundles/import][%d] BulkJobOps_BulkImportEdgeApplications default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_hardware_models_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_hardware_models_responses.go index 83fcae7..b5a1e91 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_hardware_models_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_import_hardware_models_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops bulk import hardware models o k response +func (o *BulkJobOpsBulkImportHardwareModelsOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkImportHardwareModelsOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops bulk import hardware models bad request response +func (o *BulkJobOpsBulkImportHardwareModelsBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkImportHardwareModelsBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops bulk import hardware models unauthorized response +func (o *BulkJobOpsBulkImportHardwareModelsUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkImportHardwareModelsUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops bulk import hardware models forbidden response +func (o *BulkJobOpsBulkImportHardwareModelsForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkImportHardwareModelsForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops bulk import hardware models not found response +func (o *BulkJobOpsBulkImportHardwareModelsNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkImportHardwareModelsNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops bulk import hardware models conflict response +func (o *BulkJobOpsBulkImportHardwareModelsConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkImportHardwareModelsConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the bulk job ops bulk import hardware models internal server error response +func (o *BulkJobOpsBulkImportHardwareModelsInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkImportHardwareModelsInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the bulk job ops bulk import hardware models gateway timeout response +func (o *BulkJobOpsBulkImportHardwareModelsGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkImportHardwareModelsGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] bulkJobOpsBulkImportHardwareModelsGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkImportHardwareModelsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk import hardware models default response -func (o *BulkJobOpsBulkImportHardwareModelsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk import hardware models default response has a 2xx status code func (o *BulkJobOpsBulkImportHardwareModelsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkImportHardwareModelsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk import hardware models default response +func (o *BulkJobOpsBulkImportHardwareModelsDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkImportHardwareModelsDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/models/import][%d] BulkJobOps_BulkImportHardwareModels default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_and_purge_edge_application_instances_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_and_purge_edge_application_instances_responses.go index 3d559f9..c859fb2 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_and_purge_edge_application_instances_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_and_purge_edge_application_instances_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesOK) IsCode(code in return code == 200 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances o k response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesBadRequest) IsCode return code == 400 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances bad request response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesUnauthorized) IsCo return code == 401 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances unauthorized response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesForbidden) IsCode( return code == 403 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances forbidden response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesNotFound) IsCode(c return code == 404 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances not found response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesConflict) IsCode(c return code == 409 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances conflict response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesInternalServerErro return code == 500 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances internal server error response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesGatewayTimeout) Is return code == 504 } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances gateway timeout response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] bulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances default response -func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk refresh and purge edge application instances default response has a 2xx status code func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault) IsCode(co return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk refresh and purge edge application instances default response +func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkRefreshAndPurgeEdgeApplicationInstancesDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh/purge][%d] BulkJobOps_BulkRefreshAndPurgeEdgeApplicationInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_edge_application_instances_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_edge_application_instances_responses.go index ef62f60..68860b3 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_edge_application_instances_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_refresh_edge_application_instances_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances o k response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesBadRequest) IsCode(code in return code == 400 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances bad request response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances unauthorized response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances forbidden response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances not found response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesConflict) IsCode(code int) return code == 409 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances conflict response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesInternalServerError) IsCod return code == 500 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances internal server error response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the bulk job ops bulk refresh edge application instances gateway timeout response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] bulkJobOpsBulkRefreshEdgeApplicationInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk refresh edge application instances default response -func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk refresh edge application instances default response has a 2xx status code func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk refresh edge application instances default response +func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkRefreshEdgeApplicationInstancesDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/apps/instances/refresh][%d] BulkJobOps_BulkRefreshEdgeApplicationInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_responses.go index 305afa6..5cf8ec0 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops bulk update edge node base o s o k response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops bulk update edge node base o s bad request response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops bulk update edge node base o s unauthorized response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops bulk update edge node base o s forbidden response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops bulk update edge node base o s not found response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops bulk update edge node base o s conflict response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the bulk job ops bulk update edge node base o s internal server error response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the bulk job ops bulk update edge node base o s gateway timeout response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk update edge node base o s default response -func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk update edge node base o s default response has a 2xx status code func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk update edge node base o s default response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade][%d] BulkJobOps_BulkUpdateEdgeNodeBaseOS default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_retry_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_retry_responses.go index 72a5d0c..4482b27 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_retry_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_bulk_update_edge_node_base_o_s_retry_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry o k response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryOK) Code() int { + return 200 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryBadRequest) IsCode(code int) boo return code == 400 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry bad request response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry unauthorized response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry forbidden response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry not found response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry conflict response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryConflict) Code() int { + return 409 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry internal server error response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry gateway timeout response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] bulkJobOpsBulkUpdateEdgeNodeBaseOSRetryGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops bulk update edge node base o s retry default response -func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops bulk update edge node base o s retry default response has a 2xx status code func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops bulk update edge node base o s retry default response +func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsBulkUpdateEdgeNodeBaseOSRetryDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/devices/baseos/upgrade/retry][%d] BulkJobOps_BulkUpdateEdgeNodeBaseOSRetry default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_create_job_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_create_job_responses.go index 4300039..a3ade58 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_create_job_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_create_job_responses.go @@ -117,6 +117,11 @@ func (o *BulkJobOpsCreateJobOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops create job o k response +func (o *BulkJobOpsCreateJobOK) Code() int { + return 200 +} + func (o *BulkJobOpsCreateJobOK) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *BulkJobOpsCreateJobBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops create job bad request response +func (o *BulkJobOpsCreateJobBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsCreateJobBadRequest) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *BulkJobOpsCreateJobUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops create job unauthorized response +func (o *BulkJobOpsCreateJobUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsCreateJobUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *BulkJobOpsCreateJobForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops create job forbidden response +func (o *BulkJobOpsCreateJobForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsCreateJobForbidden) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *BulkJobOpsCreateJobConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops create job conflict response +func (o *BulkJobOpsCreateJobConflict) Code() int { + return 409 +} + func (o *BulkJobOpsCreateJobConflict) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *BulkJobOpsCreateJobInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops create job internal server error response +func (o *BulkJobOpsCreateJobInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsCreateJobInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *BulkJobOpsCreateJobGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops create job gateway timeout response +func (o *BulkJobOpsCreateJobGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsCreateJobGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] bulkJobOpsCreateJobGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type BulkJobOpsCreateJobDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops create job default response -func (o *BulkJobOpsCreateJobDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops create job default response has a 2xx status code func (o *BulkJobOpsCreateJobDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *BulkJobOpsCreateJobDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops create job default response +func (o *BulkJobOpsCreateJobDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsCreateJobDefault) Error() string { return fmt.Sprintf("[POST /v1/jobs][%d] BulkJobOps_CreateJob default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_delete_job_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_delete_job_responses.go index 380b13d..3c3019a 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_delete_job_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_delete_job_responses.go @@ -123,6 +123,11 @@ func (o *BulkJobOpsDeleteJobOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops delete job o k response +func (o *BulkJobOpsDeleteJobOK) Code() int { + return 200 +} + func (o *BulkJobOpsDeleteJobOK) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *BulkJobOpsDeleteJobBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops delete job bad request response +func (o *BulkJobOpsDeleteJobBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsDeleteJobBadRequest) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *BulkJobOpsDeleteJobUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops delete job unauthorized response +func (o *BulkJobOpsDeleteJobUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsDeleteJobUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *BulkJobOpsDeleteJobForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops delete job forbidden response +func (o *BulkJobOpsDeleteJobForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsDeleteJobForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *BulkJobOpsDeleteJobNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops delete job not found response +func (o *BulkJobOpsDeleteJobNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsDeleteJobNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *BulkJobOpsDeleteJobConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops delete job conflict response +func (o *BulkJobOpsDeleteJobConflict) Code() int { + return 409 +} + func (o *BulkJobOpsDeleteJobConflict) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobConflict %+v", 409, o.Payload) } @@ -501,6 +531,11 @@ func (o *BulkJobOpsDeleteJobInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops delete job internal server error response +func (o *BulkJobOpsDeleteJobInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsDeleteJobInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *BulkJobOpsDeleteJobGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops delete job gateway timeout response +func (o *BulkJobOpsDeleteJobGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsDeleteJobGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsDeleteJobGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type BulkJobOpsDeleteJobDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops delete job default response -func (o *BulkJobOpsDeleteJobDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops delete job default response has a 2xx status code func (o *BulkJobOpsDeleteJobDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *BulkJobOpsDeleteJobDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops delete job default response +func (o *BulkJobOpsDeleteJobDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsDeleteJobDefault) Error() string { return fmt.Sprintf("[DELETE /v1/jobs/id/{id}/objectType/{objectType}][%d] BulkJobOps_DeleteJob default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_get_job_by_name_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_get_job_by_name_responses.go index 3e19980..efa087f 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_get_job_by_name_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_get_job_by_name_responses.go @@ -117,6 +117,11 @@ func (o *BulkJobOpsGetJobByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops get job by name o k response +func (o *BulkJobOpsGetJobByNameOK) Code() int { + return 200 +} + func (o *BulkJobOpsGetJobByNameOK) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *BulkJobOpsGetJobByNameBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops get job by name bad request response +func (o *BulkJobOpsGetJobByNameBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsGetJobByNameBadRequest) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *BulkJobOpsGetJobByNameUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops get job by name unauthorized response +func (o *BulkJobOpsGetJobByNameUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsGetJobByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *BulkJobOpsGetJobByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops get job by name forbidden response +func (o *BulkJobOpsGetJobByNameForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsGetJobByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *BulkJobOpsGetJobByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops get job by name not found response +func (o *BulkJobOpsGetJobByNameNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsGetJobByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *BulkJobOpsGetJobByNameInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops get job by name internal server error response +func (o *BulkJobOpsGetJobByNameInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsGetJobByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *BulkJobOpsGetJobByNameGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops get job by name gateway timeout response +func (o *BulkJobOpsGetJobByNameGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsGetJobByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] bulkJobOpsGetJobByNameGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type BulkJobOpsGetJobByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops get job by name default response -func (o *BulkJobOpsGetJobByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops get job by name default response has a 2xx status code func (o *BulkJobOpsGetJobByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *BulkJobOpsGetJobByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops get job by name default response +func (o *BulkJobOpsGetJobByNameDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsGetJobByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/jobs/name/{name}/objectType/{objectType}][%d] BulkJobOps_GetJobByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_get_job_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_get_job_responses.go index a5248ee..bdf52c6 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_get_job_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_get_job_responses.go @@ -117,6 +117,11 @@ func (o *BulkJobOpsGetJobOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops get job o k response +func (o *BulkJobOpsGetJobOK) Code() int { + return 200 +} + func (o *BulkJobOpsGetJobOK) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *BulkJobOpsGetJobBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops get job bad request response +func (o *BulkJobOpsGetJobBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsGetJobBadRequest) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *BulkJobOpsGetJobUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops get job unauthorized response +func (o *BulkJobOpsGetJobUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsGetJobUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *BulkJobOpsGetJobForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops get job forbidden response +func (o *BulkJobOpsGetJobForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsGetJobForbidden) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *BulkJobOpsGetJobNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops get job not found response +func (o *BulkJobOpsGetJobNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsGetJobNotFound) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *BulkJobOpsGetJobInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops get job internal server error response +func (o *BulkJobOpsGetJobInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsGetJobInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *BulkJobOpsGetJobGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops get job gateway timeout response +func (o *BulkJobOpsGetJobGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsGetJobGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] bulkJobOpsGetJobGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type BulkJobOpsGetJobDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops get job default response -func (o *BulkJobOpsGetJobDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops get job default response has a 2xx status code func (o *BulkJobOpsGetJobDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *BulkJobOpsGetJobDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops get job default response +func (o *BulkJobOpsGetJobDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsGetJobDefault) Error() string { return fmt.Sprintf("[GET /v1/jobs/id/{id}/objectType/{objectType}][%d] BulkJobOps_GetJob default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_query_jobs_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_query_jobs_responses.go index a40d350..ae88149 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_query_jobs_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_query_jobs_responses.go @@ -111,6 +111,11 @@ func (o *BulkJobOpsQueryJobsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops query jobs o k response +func (o *BulkJobOpsQueryJobsOK) Code() int { + return 200 +} + func (o *BulkJobOpsQueryJobsOK) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *BulkJobOpsQueryJobsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops query jobs bad request response +func (o *BulkJobOpsQueryJobsBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsQueryJobsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *BulkJobOpsQueryJobsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops query jobs unauthorized response +func (o *BulkJobOpsQueryJobsUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsQueryJobsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *BulkJobOpsQueryJobsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops query jobs forbidden response +func (o *BulkJobOpsQueryJobsForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsQueryJobsForbidden) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *BulkJobOpsQueryJobsInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops query jobs internal server error response +func (o *BulkJobOpsQueryJobsInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsQueryJobsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *BulkJobOpsQueryJobsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops query jobs gateway timeout response +func (o *BulkJobOpsQueryJobsGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsQueryJobsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] bulkJobOpsQueryJobsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type BulkJobOpsQueryJobsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops query jobs default response -func (o *BulkJobOpsQueryJobsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops query jobs default response has a 2xx status code func (o *BulkJobOpsQueryJobsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *BulkJobOpsQueryJobsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops query jobs default response +func (o *BulkJobOpsQueryJobsDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsQueryJobsDefault) Error() string { return fmt.Sprintf("[GET /v1/jobs][%d] BulkJobOps_QueryJobs default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/bulk_job_ops/bulk_job_ops_update_job_responses.go b/swagger_client/bulk_job_ops/bulk_job_ops_update_job_responses.go index 5fd6ee6..f84c0f6 100644 --- a/swagger_client/bulk_job_ops/bulk_job_ops_update_job_responses.go +++ b/swagger_client/bulk_job_ops/bulk_job_ops_update_job_responses.go @@ -127,6 +127,11 @@ func (o *BulkJobOpsUpdateJobOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the bulk job ops update job o k response +func (o *BulkJobOpsUpdateJobOK) Code() int { + return 200 +} + func (o *BulkJobOpsUpdateJobOK) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobOK %+v", 200, o.Payload) } @@ -190,6 +195,11 @@ func (o *BulkJobOpsUpdateJobBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the bulk job ops update job bad request response +func (o *BulkJobOpsUpdateJobBadRequest) Code() int { + return 400 +} + func (o *BulkJobOpsUpdateJobBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobBadRequest %+v", 400, o.Payload) } @@ -253,6 +263,11 @@ func (o *BulkJobOpsUpdateJobUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the bulk job ops update job unauthorized response +func (o *BulkJobOpsUpdateJobUnauthorized) Code() int { + return 401 +} + func (o *BulkJobOpsUpdateJobUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobUnauthorized %+v", 401, o.Payload) } @@ -316,6 +331,11 @@ func (o *BulkJobOpsUpdateJobForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the bulk job ops update job forbidden response +func (o *BulkJobOpsUpdateJobForbidden) Code() int { + return 403 +} + func (o *BulkJobOpsUpdateJobForbidden) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobForbidden %+v", 403, o.Payload) } @@ -379,6 +399,11 @@ func (o *BulkJobOpsUpdateJobNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the bulk job ops update job not found response +func (o *BulkJobOpsUpdateJobNotFound) Code() int { + return 404 +} + func (o *BulkJobOpsUpdateJobNotFound) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobNotFound %+v", 404, o.Payload) } @@ -442,6 +467,11 @@ func (o *BulkJobOpsUpdateJobConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the bulk job ops update job conflict response +func (o *BulkJobOpsUpdateJobConflict) Code() int { + return 409 +} + func (o *BulkJobOpsUpdateJobConflict) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobConflict %+v", 409, o.Payload) } @@ -505,6 +535,11 @@ func (o *BulkJobOpsUpdateJobInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the bulk job ops update job internal server error response +func (o *BulkJobOpsUpdateJobInternalServerError) Code() int { + return 500 +} + func (o *BulkJobOpsUpdateJobInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobInternalServerError %+v", 500, o.Payload) } @@ -568,6 +603,11 @@ func (o *BulkJobOpsUpdateJobGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the bulk job ops update job gateway timeout response +func (o *BulkJobOpsUpdateJobGatewayTimeout) Code() int { + return 504 +} + func (o *BulkJobOpsUpdateJobGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] bulkJobOpsUpdateJobGatewayTimeout %+v", 504, o.Payload) } @@ -610,11 +650,6 @@ type BulkJobOpsUpdateJobDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the bulk job ops update job default response -func (o *BulkJobOpsUpdateJobDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this bulk job ops update job default response has a 2xx status code func (o *BulkJobOpsUpdateJobDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -640,6 +675,11 @@ func (o *BulkJobOpsUpdateJobDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the bulk job ops update job default response +func (o *BulkJobOpsUpdateJobDefault) Code() int { + return o._statusCode +} + func (o *BulkJobOpsUpdateJobDefault) Error() string { return fmt.Sprintf("[PUT /v1/jobs/id/{id}][%d] BulkJobOps_UpdateJob default %+v", o._statusCode, o.Payload) } @@ -989,6 +1029,7 @@ func (o *BulkJobOpsUpdateJobBody) contextValidateIndividualOpStatus(ctx context. func (o *BulkJobOpsUpdateJobBody) contextValidateObjectType(ctx context.Context, formats strfmt.Registry) error { if o.ObjectType != nil { + if err := o.ObjectType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "objectType") @@ -1005,6 +1046,11 @@ func (o *BulkJobOpsUpdateJobBody) contextValidateObjectType(ctx context.Context, func (o *BulkJobOpsUpdateJobBody) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { if o.OperationType != nil { + + if swag.IsZero(o.OperationType) { // not required + return nil + } + if err := o.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "operationType") @@ -1021,6 +1067,11 @@ func (o *BulkJobOpsUpdateJobBody) contextValidateOperationType(ctx context.Conte func (o *BulkJobOpsUpdateJobBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1037,6 +1088,11 @@ func (o *BulkJobOpsUpdateJobBody) contextValidateRevision(ctx context.Context, f func (o *BulkJobOpsUpdateJobBody) contextValidateSelectionCriteria(ctx context.Context, formats strfmt.Registry) error { if o.SelectionCriteria != nil { + + if swag.IsZero(o.SelectionCriteria) { // not required + return nil + } + if err := o.SelectionCriteria.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "selectionCriteria") @@ -1062,6 +1118,11 @@ func (o *BulkJobOpsUpdateJobBody) contextValidateStartTime(ctx context.Context, func (o *BulkJobOpsUpdateJobBody) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if o.Status != nil { + + if swag.IsZero(o.Status) { // not required + return nil + } + if err := o.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "status") diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health2_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health2_responses.go index 70bb738..b734904 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health2_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health2_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsCheckClusterHealth2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics check cluster health2 o k response +func (o *CloudDiagnosticsCheckClusterHealth2OK) Code() int { + return 200 +} + func (o *CloudDiagnosticsCheckClusterHealth2OK) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping/id/{pingId}][%d] cloudDiagnosticsCheckClusterHealth2OK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsCheckClusterHealth2InternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the cloud diagnostics check cluster health2 internal server error response +func (o *CloudDiagnosticsCheckClusterHealth2InternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsCheckClusterHealth2InternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping/id/{pingId}][%d] cloudDiagnosticsCheckClusterHealth2InternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsCheckClusterHealth2GatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the cloud diagnostics check cluster health2 gateway timeout response +func (o *CloudDiagnosticsCheckClusterHealth2GatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsCheckClusterHealth2GatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping/id/{pingId}][%d] cloudDiagnosticsCheckClusterHealth2GatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsCheckClusterHealth2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics check cluster health2 default response -func (o *CloudDiagnosticsCheckClusterHealth2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics check cluster health2 default response has a 2xx status code func (o *CloudDiagnosticsCheckClusterHealth2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsCheckClusterHealth2Default) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics check cluster health2 default response +func (o *CloudDiagnosticsCheckClusterHealth2Default) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsCheckClusterHealth2Default) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping/id/{pingId}][%d] CloudDiagnostics_checkClusterHealth2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health_responses.go index 87c57c5..becbcd9 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_cluster_health_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsCheckClusterHealthOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics check cluster health o k response +func (o *CloudDiagnosticsCheckClusterHealthOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsCheckClusterHealthOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping][%d] cloudDiagnosticsCheckClusterHealthOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsCheckClusterHealthInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the cloud diagnostics check cluster health internal server error response +func (o *CloudDiagnosticsCheckClusterHealthInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsCheckClusterHealthInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping][%d] cloudDiagnosticsCheckClusterHealthInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsCheckClusterHealthGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the cloud diagnostics check cluster health gateway timeout response +func (o *CloudDiagnosticsCheckClusterHealthGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsCheckClusterHealthGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping][%d] cloudDiagnosticsCheckClusterHealthGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsCheckClusterHealthDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics check cluster health default response -func (o *CloudDiagnosticsCheckClusterHealthDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics check cluster health default response has a 2xx status code func (o *CloudDiagnosticsCheckClusterHealthDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsCheckClusterHealthDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics check cluster health default response +func (o *CloudDiagnosticsCheckClusterHealthDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsCheckClusterHealthDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/ping][%d] CloudDiagnostics_checkClusterHealth default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_microservice_health_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_microservice_health_responses.go index 50b48df..ece10d9 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_check_microservice_health_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_check_microservice_health_responses.go @@ -99,6 +99,11 @@ func (o *CloudDiagnosticsCheckMicroserviceHealthOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics check microservice health o k response +func (o *CloudDiagnosticsCheckMicroserviceHealthOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsCheckMicroserviceHealthOK) Error() string { return fmt.Sprintf("[POST /v1/hello][%d] cloudDiagnosticsCheckMicroserviceHealthOK %+v", 200, o.Payload) } @@ -162,6 +167,11 @@ func (o *CloudDiagnosticsCheckMicroserviceHealthBadRequest) IsCode(code int) boo return code == 400 } +// Code gets the status code for the cloud diagnostics check microservice health bad request response +func (o *CloudDiagnosticsCheckMicroserviceHealthBadRequest) Code() int { + return 400 +} + func (o *CloudDiagnosticsCheckMicroserviceHealthBadRequest) Error() string { return fmt.Sprintf("[POST /v1/hello][%d] cloudDiagnosticsCheckMicroserviceHealthBadRequest %+v", 400, o.Payload) } @@ -225,6 +235,11 @@ func (o *CloudDiagnosticsCheckMicroserviceHealthInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the cloud diagnostics check microservice health internal server error response +func (o *CloudDiagnosticsCheckMicroserviceHealthInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsCheckMicroserviceHealthInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/hello][%d] cloudDiagnosticsCheckMicroserviceHealthInternalServerError %+v", 500, o.Payload) } @@ -288,6 +303,11 @@ func (o *CloudDiagnosticsCheckMicroserviceHealthGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the cloud diagnostics check microservice health gateway timeout response +func (o *CloudDiagnosticsCheckMicroserviceHealthGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsCheckMicroserviceHealthGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/hello][%d] cloudDiagnosticsCheckMicroserviceHealthGatewayTimeout %+v", 504, o.Payload) } @@ -330,11 +350,6 @@ type CloudDiagnosticsCheckMicroserviceHealthDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics check microservice health default response -func (o *CloudDiagnosticsCheckMicroserviceHealthDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics check microservice health default response has a 2xx status code func (o *CloudDiagnosticsCheckMicroserviceHealthDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -360,6 +375,11 @@ func (o *CloudDiagnosticsCheckMicroserviceHealthDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics check microservice health default response +func (o *CloudDiagnosticsCheckMicroserviceHealthDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsCheckMicroserviceHealthDefault) Error() string { return fmt.Sprintf("[POST /v1/hello][%d] CloudDiagnostics_checkMicroserviceHealth default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_create_cloud_policy_document_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_create_cloud_policy_document_responses.go index 3028d4a..62f2b73 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_create_cloud_policy_document_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_create_cloud_policy_document_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsCreateCloudPolicyDocumentOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics create cloud policy document o k response +func (o *CloudDiagnosticsCreateCloudPolicyDocumentOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsCreateCloudPolicyDocumentOK) Error() string { return fmt.Sprintf("[POST /v1/cloud/policies][%d] cloudDiagnosticsCreateCloudPolicyDocumentOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsCreateCloudPolicyDocumentInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the cloud diagnostics create cloud policy document internal server error response +func (o *CloudDiagnosticsCreateCloudPolicyDocumentInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsCreateCloudPolicyDocumentInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/cloud/policies][%d] cloudDiagnosticsCreateCloudPolicyDocumentInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsCreateCloudPolicyDocumentGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the cloud diagnostics create cloud policy document gateway timeout response +func (o *CloudDiagnosticsCreateCloudPolicyDocumentGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsCreateCloudPolicyDocumentGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/cloud/policies][%d] cloudDiagnosticsCreateCloudPolicyDocumentGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsCreateCloudPolicyDocumentDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics create cloud policy document default response -func (o *CloudDiagnosticsCreateCloudPolicyDocumentDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics create cloud policy document default response has a 2xx status code func (o *CloudDiagnosticsCreateCloudPolicyDocumentDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsCreateCloudPolicyDocumentDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the cloud diagnostics create cloud policy document default response +func (o *CloudDiagnosticsCreateCloudPolicyDocumentDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsCreateCloudPolicyDocumentDefault) Error() string { return fmt.Sprintf("[POST /v1/cloud/policies][%d] CloudDiagnostics_CreateCloudPolicyDocument default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_delete_cloud_policy_document_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_delete_cloud_policy_document_responses.go index 6361c02..e07d179 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_delete_cloud_policy_document_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_delete_cloud_policy_document_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsDeleteCloudPolicyDocumentOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics delete cloud policy document o k response +func (o *CloudDiagnosticsDeleteCloudPolicyDocumentOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsDeleteCloudPolicyDocumentOK) Error() string { return fmt.Sprintf("[DELETE /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsDeleteCloudPolicyDocumentOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsDeleteCloudPolicyDocumentInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the cloud diagnostics delete cloud policy document internal server error response +func (o *CloudDiagnosticsDeleteCloudPolicyDocumentInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsDeleteCloudPolicyDocumentInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsDeleteCloudPolicyDocumentInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsDeleteCloudPolicyDocumentGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the cloud diagnostics delete cloud policy document gateway timeout response +func (o *CloudDiagnosticsDeleteCloudPolicyDocumentGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsDeleteCloudPolicyDocumentGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsDeleteCloudPolicyDocumentGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsDeleteCloudPolicyDocumentDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics delete cloud policy document default response -func (o *CloudDiagnosticsDeleteCloudPolicyDocumentDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics delete cloud policy document default response has a 2xx status code func (o *CloudDiagnosticsDeleteCloudPolicyDocumentDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsDeleteCloudPolicyDocumentDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the cloud diagnostics delete cloud policy document default response +func (o *CloudDiagnosticsDeleteCloudPolicyDocumentDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsDeleteCloudPolicyDocumentDefault) Error() string { return fmt.Sprintf("[DELETE /v1/cloud/policies/id/{fileURL}][%d] CloudDiagnostics_DeleteCloudPolicyDocument default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_document_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_document_responses.go index 6e0a490..0823c8d 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_document_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_document_responses.go @@ -99,6 +99,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDocumentOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics get cloud policy document o k response +func (o *CloudDiagnosticsGetCloudPolicyDocumentOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsGetCloudPolicyDocumentOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsGetCloudPolicyDocumentOK %+v", 200, o.Payload) } @@ -162,6 +167,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDocumentNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the cloud diagnostics get cloud policy document not found response +func (o *CloudDiagnosticsGetCloudPolicyDocumentNotFound) Code() int { + return 404 +} + func (o *CloudDiagnosticsGetCloudPolicyDocumentNotFound) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsGetCloudPolicyDocumentNotFound %+v", 404, o.Payload) } @@ -225,6 +235,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDocumentInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the cloud diagnostics get cloud policy document internal server error response +func (o *CloudDiagnosticsGetCloudPolicyDocumentInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsGetCloudPolicyDocumentInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsGetCloudPolicyDocumentInternalServerError %+v", 500, o.Payload) } @@ -288,6 +303,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDocumentGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the cloud diagnostics get cloud policy document gateway timeout response +func (o *CloudDiagnosticsGetCloudPolicyDocumentGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsGetCloudPolicyDocumentGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/id/{fileURL}][%d] cloudDiagnosticsGetCloudPolicyDocumentGatewayTimeout %+v", 504, o.Payload) } @@ -330,11 +350,6 @@ type CloudDiagnosticsGetCloudPolicyDocumentDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics get cloud policy document default response -func (o *CloudDiagnosticsGetCloudPolicyDocumentDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics get cloud policy document default response has a 2xx status code func (o *CloudDiagnosticsGetCloudPolicyDocumentDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -360,6 +375,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDocumentDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics get cloud policy document default response +func (o *CloudDiagnosticsGetCloudPolicyDocumentDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsGetCloudPolicyDocumentDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/id/{fileURL}][%d] CloudDiagnostics_GetCloudPolicyDocument default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_responses.go index 85b167d..53fe755 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_responses.go @@ -99,6 +99,11 @@ func (o *CloudDiagnosticsGetCloudPolicyOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics get cloud policy o k response +func (o *CloudDiagnosticsGetCloudPolicyOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsGetCloudPolicyOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}][%d] cloudDiagnosticsGetCloudPolicyOK %+v", 200, o.Payload) } @@ -162,6 +167,11 @@ func (o *CloudDiagnosticsGetCloudPolicyNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the cloud diagnostics get cloud policy not found response +func (o *CloudDiagnosticsGetCloudPolicyNotFound) Code() int { + return 404 +} + func (o *CloudDiagnosticsGetCloudPolicyNotFound) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}][%d] cloudDiagnosticsGetCloudPolicyNotFound %+v", 404, o.Payload) } @@ -225,6 +235,11 @@ func (o *CloudDiagnosticsGetCloudPolicyInternalServerError) IsCode(code int) boo return code == 500 } +// Code gets the status code for the cloud diagnostics get cloud policy internal server error response +func (o *CloudDiagnosticsGetCloudPolicyInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsGetCloudPolicyInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}][%d] cloudDiagnosticsGetCloudPolicyInternalServerError %+v", 500, o.Payload) } @@ -288,6 +303,11 @@ func (o *CloudDiagnosticsGetCloudPolicyGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the cloud diagnostics get cloud policy gateway timeout response +func (o *CloudDiagnosticsGetCloudPolicyGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsGetCloudPolicyGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}][%d] cloudDiagnosticsGetCloudPolicyGatewayTimeout %+v", 504, o.Payload) } @@ -330,11 +350,6 @@ type CloudDiagnosticsGetCloudPolicyDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics get cloud policy default response -func (o *CloudDiagnosticsGetCloudPolicyDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics get cloud policy default response has a 2xx status code func (o *CloudDiagnosticsGetCloudPolicyDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -360,6 +375,11 @@ func (o *CloudDiagnosticsGetCloudPolicyDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics get cloud policy default response +func (o *CloudDiagnosticsGetCloudPolicyDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsGetCloudPolicyDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}][%d] CloudDiagnostics_GetCloudPolicy default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_version_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_version_responses.go index d4c0b94..40f57c9 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_version_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cloud_policy_version_responses.go @@ -99,6 +99,11 @@ func (o *CloudDiagnosticsGetCloudPolicyVersionOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics get cloud policy version o k response +func (o *CloudDiagnosticsGetCloudPolicyVersionOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsGetCloudPolicyVersionOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}/{version}][%d] cloudDiagnosticsGetCloudPolicyVersionOK %+v", 200, o.Payload) } @@ -162,6 +167,11 @@ func (o *CloudDiagnosticsGetCloudPolicyVersionNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the cloud diagnostics get cloud policy version not found response +func (o *CloudDiagnosticsGetCloudPolicyVersionNotFound) Code() int { + return 404 +} + func (o *CloudDiagnosticsGetCloudPolicyVersionNotFound) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}/{version}][%d] cloudDiagnosticsGetCloudPolicyVersionNotFound %+v", 404, o.Payload) } @@ -225,6 +235,11 @@ func (o *CloudDiagnosticsGetCloudPolicyVersionInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the cloud diagnostics get cloud policy version internal server error response +func (o *CloudDiagnosticsGetCloudPolicyVersionInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsGetCloudPolicyVersionInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}/{version}][%d] cloudDiagnosticsGetCloudPolicyVersionInternalServerError %+v", 500, o.Payload) } @@ -288,6 +303,11 @@ func (o *CloudDiagnosticsGetCloudPolicyVersionGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the cloud diagnostics get cloud policy version gateway timeout response +func (o *CloudDiagnosticsGetCloudPolicyVersionGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsGetCloudPolicyVersionGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}/{version}][%d] cloudDiagnosticsGetCloudPolicyVersionGatewayTimeout %+v", 504, o.Payload) } @@ -330,11 +350,6 @@ type CloudDiagnosticsGetCloudPolicyVersionDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics get cloud policy version default response -func (o *CloudDiagnosticsGetCloudPolicyVersionDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics get cloud policy version default response has a 2xx status code func (o *CloudDiagnosticsGetCloudPolicyVersionDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -360,6 +375,11 @@ func (o *CloudDiagnosticsGetCloudPolicyVersionDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics get cloud policy version default response +func (o *CloudDiagnosticsGetCloudPolicyVersionDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsGetCloudPolicyVersionDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies/name/{policy}/{version}][%d] CloudDiagnostics_GetCloudPolicyVersion default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_health_report_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_health_report_responses.go index 85826f0..31bb558 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_health_report_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_health_report_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsGetClusterHealthReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics get cluster health report o k response +func (o *CloudDiagnosticsGetClusterHealthReportOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsGetClusterHealthReportOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/healthreport][%d] cloudDiagnosticsGetClusterHealthReportOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsGetClusterHealthReportInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the cloud diagnostics get cluster health report internal server error response +func (o *CloudDiagnosticsGetClusterHealthReportInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsGetClusterHealthReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/healthreport][%d] cloudDiagnosticsGetClusterHealthReportInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsGetClusterHealthReportGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the cloud diagnostics get cluster health report gateway timeout response +func (o *CloudDiagnosticsGetClusterHealthReportGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsGetClusterHealthReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/healthreport][%d] cloudDiagnosticsGetClusterHealthReportGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsGetClusterHealthReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics get cluster health report default response -func (o *CloudDiagnosticsGetClusterHealthReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics get cluster health report default response has a 2xx status code func (o *CloudDiagnosticsGetClusterHealthReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsGetClusterHealthReportDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics get cluster health report default response +func (o *CloudDiagnosticsGetClusterHealthReportDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsGetClusterHealthReportDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/healthreport][%d] CloudDiagnostics_GetClusterHealthReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_version_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_version_responses.go index 5d0ba26..66ea368 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_version_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_get_cluster_version_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsGetClusterVersionOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics get cluster version o k response +func (o *CloudDiagnosticsGetClusterVersionOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsGetClusterVersionOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/version][%d] cloudDiagnosticsGetClusterVersionOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsGetClusterVersionInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the cloud diagnostics get cluster version internal server error response +func (o *CloudDiagnosticsGetClusterVersionInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsGetClusterVersionInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/version][%d] cloudDiagnosticsGetClusterVersionInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsGetClusterVersionGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the cloud diagnostics get cluster version gateway timeout response +func (o *CloudDiagnosticsGetClusterVersionGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsGetClusterVersionGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/version][%d] cloudDiagnosticsGetClusterVersionGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsGetClusterVersionDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics get cluster version default response -func (o *CloudDiagnosticsGetClusterVersionDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics get cluster version default response has a 2xx status code func (o *CloudDiagnosticsGetClusterVersionDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsGetClusterVersionDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics get cluster version default response +func (o *CloudDiagnosticsGetClusterVersionDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsGetClusterVersionDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/version][%d] CloudDiagnostics_GetClusterVersion default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_mark_cloud_policy_latest_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_mark_cloud_policy_latest_responses.go index b366fcd..f8e4106 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_mark_cloud_policy_latest_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_mark_cloud_policy_latest_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsMarkCloudPolicyLatestOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics mark cloud policy latest o k response +func (o *CloudDiagnosticsMarkCloudPolicyLatestOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsMarkCloudPolicyLatestOK) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies][%d] cloudDiagnosticsMarkCloudPolicyLatestOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsMarkCloudPolicyLatestInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the cloud diagnostics mark cloud policy latest internal server error response +func (o *CloudDiagnosticsMarkCloudPolicyLatestInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsMarkCloudPolicyLatestInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies][%d] cloudDiagnosticsMarkCloudPolicyLatestInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsMarkCloudPolicyLatestGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the cloud diagnostics mark cloud policy latest gateway timeout response +func (o *CloudDiagnosticsMarkCloudPolicyLatestGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsMarkCloudPolicyLatestGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies][%d] cloudDiagnosticsMarkCloudPolicyLatestGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsMarkCloudPolicyLatestDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics mark cloud policy latest default response -func (o *CloudDiagnosticsMarkCloudPolicyLatestDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics mark cloud policy latest default response has a 2xx status code func (o *CloudDiagnosticsMarkCloudPolicyLatestDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsMarkCloudPolicyLatestDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics mark cloud policy latest default response +func (o *CloudDiagnosticsMarkCloudPolicyLatestDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsMarkCloudPolicyLatestDefault) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies][%d] CloudDiagnostics_MarkCloudPolicyLatest default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/cloud_diagnostics/cloud_diagnostics_query_cloud_policies_responses.go b/swagger_client/cloud_diagnostics/cloud_diagnostics_query_cloud_policies_responses.go index 26e3200..943756a 100644 --- a/swagger_client/cloud_diagnostics/cloud_diagnostics_query_cloud_policies_responses.go +++ b/swagger_client/cloud_diagnostics/cloud_diagnostics_query_cloud_policies_responses.go @@ -93,6 +93,11 @@ func (o *CloudDiagnosticsQueryCloudPoliciesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the cloud diagnostics query cloud policies o k response +func (o *CloudDiagnosticsQueryCloudPoliciesOK) Code() int { + return 200 +} + func (o *CloudDiagnosticsQueryCloudPoliciesOK) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies][%d] cloudDiagnosticsQueryCloudPoliciesOK %+v", 200, o.Payload) } @@ -156,6 +161,11 @@ func (o *CloudDiagnosticsQueryCloudPoliciesInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the cloud diagnostics query cloud policies internal server error response +func (o *CloudDiagnosticsQueryCloudPoliciesInternalServerError) Code() int { + return 500 +} + func (o *CloudDiagnosticsQueryCloudPoliciesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies][%d] cloudDiagnosticsQueryCloudPoliciesInternalServerError %+v", 500, o.Payload) } @@ -219,6 +229,11 @@ func (o *CloudDiagnosticsQueryCloudPoliciesGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the cloud diagnostics query cloud policies gateway timeout response +func (o *CloudDiagnosticsQueryCloudPoliciesGatewayTimeout) Code() int { + return 504 +} + func (o *CloudDiagnosticsQueryCloudPoliciesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies][%d] cloudDiagnosticsQueryCloudPoliciesGatewayTimeout %+v", 504, o.Payload) } @@ -261,11 +276,6 @@ type CloudDiagnosticsQueryCloudPoliciesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the cloud diagnostics query cloud policies default response -func (o *CloudDiagnosticsQueryCloudPoliciesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this cloud diagnostics query cloud policies default response has a 2xx status code func (o *CloudDiagnosticsQueryCloudPoliciesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -291,6 +301,11 @@ func (o *CloudDiagnosticsQueryCloudPoliciesDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the cloud diagnostics query cloud policies default response +func (o *CloudDiagnosticsQueryCloudPoliciesDefault) Code() int { + return o._statusCode +} + func (o *CloudDiagnosticsQueryCloudPoliciesDefault) Error() string { return fmt.Sprintf("[GET /v1/cloud/policies][%d] CloudDiagnostics_QueryCloudPolicies default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_create_datastore_responses.go b/swagger_client/datastore_configuration/datastore_configuration_create_datastore_responses.go index 455ab8e..ee021fc 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_create_datastore_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_create_datastore_responses.go @@ -117,6 +117,11 @@ func (o *DatastoreConfigurationCreateDatastoreOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration create datastore o k response +func (o *DatastoreConfigurationCreateDatastoreOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationCreateDatastoreOK) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *DatastoreConfigurationCreateDatastoreBadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the datastore configuration create datastore bad request response +func (o *DatastoreConfigurationCreateDatastoreBadRequest) Code() int { + return 400 +} + func (o *DatastoreConfigurationCreateDatastoreBadRequest) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *DatastoreConfigurationCreateDatastoreUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the datastore configuration create datastore unauthorized response +func (o *DatastoreConfigurationCreateDatastoreUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationCreateDatastoreUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *DatastoreConfigurationCreateDatastoreForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the datastore configuration create datastore forbidden response +func (o *DatastoreConfigurationCreateDatastoreForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationCreateDatastoreForbidden) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *DatastoreConfigurationCreateDatastoreConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the datastore configuration create datastore conflict response +func (o *DatastoreConfigurationCreateDatastoreConflict) Code() int { + return 409 +} + func (o *DatastoreConfigurationCreateDatastoreConflict) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *DatastoreConfigurationCreateDatastoreInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the datastore configuration create datastore internal server error response +func (o *DatastoreConfigurationCreateDatastoreInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationCreateDatastoreInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *DatastoreConfigurationCreateDatastoreGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the datastore configuration create datastore gateway timeout response +func (o *DatastoreConfigurationCreateDatastoreGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationCreateDatastoreGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] datastoreConfigurationCreateDatastoreGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type DatastoreConfigurationCreateDatastoreDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration create datastore default response -func (o *DatastoreConfigurationCreateDatastoreDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration create datastore default response has a 2xx status code func (o *DatastoreConfigurationCreateDatastoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *DatastoreConfigurationCreateDatastoreDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the datastore configuration create datastore default response +func (o *DatastoreConfigurationCreateDatastoreDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationCreateDatastoreDefault) Error() string { return fmt.Sprintf("[POST /v1/datastores][%d] DatastoreConfiguration_CreateDatastore default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_delete_datastore_responses.go b/swagger_client/datastore_configuration/datastore_configuration_delete_datastore_responses.go index d087f79..1a303ba 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_delete_datastore_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_delete_datastore_responses.go @@ -117,6 +117,11 @@ func (o *DatastoreConfigurationDeleteDatastoreOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration delete datastore o k response +func (o *DatastoreConfigurationDeleteDatastoreOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationDeleteDatastoreOK) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *DatastoreConfigurationDeleteDatastoreUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the datastore configuration delete datastore unauthorized response +func (o *DatastoreConfigurationDeleteDatastoreUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationDeleteDatastoreUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *DatastoreConfigurationDeleteDatastoreForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the datastore configuration delete datastore forbidden response +func (o *DatastoreConfigurationDeleteDatastoreForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationDeleteDatastoreForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *DatastoreConfigurationDeleteDatastoreNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the datastore configuration delete datastore not found response +func (o *DatastoreConfigurationDeleteDatastoreNotFound) Code() int { + return 404 +} + func (o *DatastoreConfigurationDeleteDatastoreNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *DatastoreConfigurationDeleteDatastoreConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the datastore configuration delete datastore conflict response +func (o *DatastoreConfigurationDeleteDatastoreConflict) Code() int { + return 409 +} + func (o *DatastoreConfigurationDeleteDatastoreConflict) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *DatastoreConfigurationDeleteDatastoreInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the datastore configuration delete datastore internal server error response +func (o *DatastoreConfigurationDeleteDatastoreInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationDeleteDatastoreInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *DatastoreConfigurationDeleteDatastoreGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the datastore configuration delete datastore gateway timeout response +func (o *DatastoreConfigurationDeleteDatastoreGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationDeleteDatastoreGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] datastoreConfigurationDeleteDatastoreGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type DatastoreConfigurationDeleteDatastoreDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration delete datastore default response -func (o *DatastoreConfigurationDeleteDatastoreDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration delete datastore default response has a 2xx status code func (o *DatastoreConfigurationDeleteDatastoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *DatastoreConfigurationDeleteDatastoreDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the datastore configuration delete datastore default response +func (o *DatastoreConfigurationDeleteDatastoreDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationDeleteDatastoreDefault) Error() string { return fmt.Sprintf("[DELETE /v1/datastores/id/{id}][%d] DatastoreConfiguration_DeleteDatastore default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_get_datastore_by_name_responses.go b/swagger_client/datastore_configuration/datastore_configuration_get_datastore_by_name_responses.go index 990a974..293d2c3 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_get_datastore_by_name_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_get_datastore_by_name_responses.go @@ -111,6 +111,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration get datastore by name o k response +func (o *DatastoreConfigurationGetDatastoreByNameOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationGetDatastoreByNameOK) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the datastore configuration get datastore by name unauthorized response +func (o *DatastoreConfigurationGetDatastoreByNameUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationGetDatastoreByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the datastore configuration get datastore by name forbidden response +func (o *DatastoreConfigurationGetDatastoreByNameForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationGetDatastoreByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the datastore configuration get datastore by name not found response +func (o *DatastoreConfigurationGetDatastoreByNameNotFound) Code() int { + return 404 +} + func (o *DatastoreConfigurationGetDatastoreByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the datastore configuration get datastore by name internal server error response +func (o *DatastoreConfigurationGetDatastoreByNameInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationGetDatastoreByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the datastore configuration get datastore by name gateway timeout response +func (o *DatastoreConfigurationGetDatastoreByNameGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationGetDatastoreByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] datastoreConfigurationGetDatastoreByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type DatastoreConfigurationGetDatastoreByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration get datastore by name default response -func (o *DatastoreConfigurationGetDatastoreByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration get datastore by name default response has a 2xx status code func (o *DatastoreConfigurationGetDatastoreByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *DatastoreConfigurationGetDatastoreByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the datastore configuration get datastore by name default response +func (o *DatastoreConfigurationGetDatastoreByNameDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationGetDatastoreByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/datastores/name/{name}][%d] DatastoreConfiguration_GetDatastoreByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_get_datastore_responses.go b/swagger_client/datastore_configuration/datastore_configuration_get_datastore_responses.go index b18b899..68dc832 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_get_datastore_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_get_datastore_responses.go @@ -111,6 +111,11 @@ func (o *DatastoreConfigurationGetDatastoreOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration get datastore o k response +func (o *DatastoreConfigurationGetDatastoreOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationGetDatastoreOK) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *DatastoreConfigurationGetDatastoreUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the datastore configuration get datastore unauthorized response +func (o *DatastoreConfigurationGetDatastoreUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationGetDatastoreUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *DatastoreConfigurationGetDatastoreForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the datastore configuration get datastore forbidden response +func (o *DatastoreConfigurationGetDatastoreForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationGetDatastoreForbidden) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *DatastoreConfigurationGetDatastoreNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the datastore configuration get datastore not found response +func (o *DatastoreConfigurationGetDatastoreNotFound) Code() int { + return 404 +} + func (o *DatastoreConfigurationGetDatastoreNotFound) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *DatastoreConfigurationGetDatastoreInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the datastore configuration get datastore internal server error response +func (o *DatastoreConfigurationGetDatastoreInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationGetDatastoreInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *DatastoreConfigurationGetDatastoreGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the datastore configuration get datastore gateway timeout response +func (o *DatastoreConfigurationGetDatastoreGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationGetDatastoreGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] datastoreConfigurationGetDatastoreGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type DatastoreConfigurationGetDatastoreDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration get datastore default response -func (o *DatastoreConfigurationGetDatastoreDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration get datastore default response has a 2xx status code func (o *DatastoreConfigurationGetDatastoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *DatastoreConfigurationGetDatastoreDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the datastore configuration get datastore default response +func (o *DatastoreConfigurationGetDatastoreDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationGetDatastoreDefault) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}][%d] DatastoreConfiguration_GetDatastore default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_query_datastore_project_list_responses.go b/swagger_client/datastore_configuration/datastore_configuration_query_datastore_project_list_responses.go index b5505d9..cb6e235 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_query_datastore_project_list_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_query_datastore_project_list_responses.go @@ -111,6 +111,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the datastore configuration query datastore project list o k response +func (o *DatastoreConfigurationQueryDatastoreProjectListOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListOK) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListBadRequest) IsCode(code return code == 400 } +// Code gets the status code for the datastore configuration query datastore project list bad request response +func (o *DatastoreConfigurationQueryDatastoreProjectListBadRequest) Code() int { + return 400 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListBadRequest) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the datastore configuration query datastore project list unauthorized response +func (o *DatastoreConfigurationQueryDatastoreProjectListUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the datastore configuration query datastore project list forbidden response +func (o *DatastoreConfigurationQueryDatastoreProjectListForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListForbidden) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListInternalServerError) IsC return code == 500 } +// Code gets the status code for the datastore configuration query datastore project list internal server error response +func (o *DatastoreConfigurationQueryDatastoreProjectListInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the datastore configuration query datastore project list gateway timeout response +func (o *DatastoreConfigurationQueryDatastoreProjectListGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationQueryDatastoreProjectListGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] datastoreConfigurationQueryDatastoreProjectListGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type DatastoreConfigurationQueryDatastoreProjectListDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration query datastore project list default response -func (o *DatastoreConfigurationQueryDatastoreProjectListDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration query datastore project list default response has a 2xx status code func (o *DatastoreConfigurationQueryDatastoreProjectListDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *DatastoreConfigurationQueryDatastoreProjectListDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the datastore configuration query datastore project list default response +func (o *DatastoreConfigurationQueryDatastoreProjectListDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationQueryDatastoreProjectListDefault) Error() string { return fmt.Sprintf("[GET /v1/datastores/id/{id}/projects][%d] DatastoreConfiguration_QueryDatastoreProjectList default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_query_datastores_responses.go b/swagger_client/datastore_configuration/datastore_configuration_query_datastores_responses.go index 927375c..a60e7c0 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_query_datastores_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_query_datastores_responses.go @@ -111,6 +111,11 @@ func (o *DatastoreConfigurationQueryDatastoresOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration query datastores o k response +func (o *DatastoreConfigurationQueryDatastoresOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationQueryDatastoresOK) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *DatastoreConfigurationQueryDatastoresBadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the datastore configuration query datastores bad request response +func (o *DatastoreConfigurationQueryDatastoresBadRequest) Code() int { + return 400 +} + func (o *DatastoreConfigurationQueryDatastoresBadRequest) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *DatastoreConfigurationQueryDatastoresUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the datastore configuration query datastores unauthorized response +func (o *DatastoreConfigurationQueryDatastoresUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationQueryDatastoresUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *DatastoreConfigurationQueryDatastoresForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the datastore configuration query datastores forbidden response +func (o *DatastoreConfigurationQueryDatastoresForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationQueryDatastoresForbidden) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *DatastoreConfigurationQueryDatastoresInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the datastore configuration query datastores internal server error response +func (o *DatastoreConfigurationQueryDatastoresInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationQueryDatastoresInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *DatastoreConfigurationQueryDatastoresGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the datastore configuration query datastores gateway timeout response +func (o *DatastoreConfigurationQueryDatastoresGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationQueryDatastoresGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] datastoreConfigurationQueryDatastoresGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type DatastoreConfigurationQueryDatastoresDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration query datastores default response -func (o *DatastoreConfigurationQueryDatastoresDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration query datastores default response has a 2xx status code func (o *DatastoreConfigurationQueryDatastoresDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *DatastoreConfigurationQueryDatastoresDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the datastore configuration query datastores default response +func (o *DatastoreConfigurationQueryDatastoresDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationQueryDatastoresDefault) Error() string { return fmt.Sprintf("[GET /v1/datastores][%d] DatastoreConfiguration_QueryDatastores default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/datastore_configuration/datastore_configuration_update_datastore_responses.go b/swagger_client/datastore_configuration/datastore_configuration_update_datastore_responses.go index a3c9649..fd8e1e4 100644 --- a/swagger_client/datastore_configuration/datastore_configuration_update_datastore_responses.go +++ b/swagger_client/datastore_configuration/datastore_configuration_update_datastore_responses.go @@ -121,6 +121,11 @@ func (o *DatastoreConfigurationUpdateDatastoreOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the datastore configuration update datastore o k response +func (o *DatastoreConfigurationUpdateDatastoreOK) Code() int { + return 200 +} + func (o *DatastoreConfigurationUpdateDatastoreOK) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *DatastoreConfigurationUpdateDatastoreUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the datastore configuration update datastore unauthorized response +func (o *DatastoreConfigurationUpdateDatastoreUnauthorized) Code() int { + return 401 +} + func (o *DatastoreConfigurationUpdateDatastoreUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *DatastoreConfigurationUpdateDatastoreForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the datastore configuration update datastore forbidden response +func (o *DatastoreConfigurationUpdateDatastoreForbidden) Code() int { + return 403 +} + func (o *DatastoreConfigurationUpdateDatastoreForbidden) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *DatastoreConfigurationUpdateDatastoreNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the datastore configuration update datastore not found response +func (o *DatastoreConfigurationUpdateDatastoreNotFound) Code() int { + return 404 +} + func (o *DatastoreConfigurationUpdateDatastoreNotFound) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *DatastoreConfigurationUpdateDatastoreConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the datastore configuration update datastore conflict response +func (o *DatastoreConfigurationUpdateDatastoreConflict) Code() int { + return 409 +} + func (o *DatastoreConfigurationUpdateDatastoreConflict) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *DatastoreConfigurationUpdateDatastoreInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the datastore configuration update datastore internal server error response +func (o *DatastoreConfigurationUpdateDatastoreInternalServerError) Code() int { + return 500 +} + func (o *DatastoreConfigurationUpdateDatastoreInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *DatastoreConfigurationUpdateDatastoreGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the datastore configuration update datastore gateway timeout response +func (o *DatastoreConfigurationUpdateDatastoreGatewayTimeout) Code() int { + return 504 +} + func (o *DatastoreConfigurationUpdateDatastoreGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] datastoreConfigurationUpdateDatastoreGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type DatastoreConfigurationUpdateDatastoreDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the datastore configuration update datastore default response -func (o *DatastoreConfigurationUpdateDatastoreDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this datastore configuration update datastore default response has a 2xx status code func (o *DatastoreConfigurationUpdateDatastoreDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *DatastoreConfigurationUpdateDatastoreDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the datastore configuration update datastore default response +func (o *DatastoreConfigurationUpdateDatastoreDefault) Code() int { + return o._statusCode +} + func (o *DatastoreConfigurationUpdateDatastoreDefault) Error() string { return fmt.Sprintf("[PUT /v1/datastores/id/{id}][%d] DatastoreConfiguration_UpdateDatastore default %+v", o._statusCode, o.Payload) } @@ -973,6 +1008,11 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) ContextValidate(ctx context. func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateCertificateChain(ctx context.Context, formats strfmt.Registry) error { if o.CertificateChain != nil { + + if swag.IsZero(o.CertificateChain) { // not required + return nil + } + if err := o.CertificateChain.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "certificateChain") @@ -1007,6 +1047,11 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateDsErr(ctx con func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateDsStatus(ctx context.Context, formats strfmt.Registry) error { if o.DsStatus != nil { + + if swag.IsZero(o.DsStatus) { // not required + return nil + } + if err := o.DsStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "dsStatus") @@ -1023,6 +1068,7 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateDsStatus(ctx func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateDsType(ctx context.Context, formats strfmt.Registry) error { if o.DsType != nil { + if err := o.DsType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "dsType") @@ -1044,6 +1090,11 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateEncryptedSecr func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + + if swag.IsZero(o.OriginType) { // not required + return nil + } + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -1060,6 +1111,11 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateOriginType(ct func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1076,6 +1132,11 @@ func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateRevision(ctx func (o *DatastoreConfigurationUpdateDatastoreBody) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { if o.Secret != nil { + + if swag.IsZero(o.Secret) { // not required + return nil + } + if err := o.Secret.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "secret") diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_create_edge_application_bundle_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_create_edge_application_bundle_responses.go index d23fbad..e93c1a3 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_create_edge_application_bundle_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_create_edge_application_bundle_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleOK) IsCode(code return code == 200 } +// Code gets the status code for the edge application configuration create edge application bundle o k response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleOK) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleBadRequest) IsCo return code == 400 } +// Code gets the status code for the edge application configuration create edge application bundle bad request response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleBadRequest) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleUnauthorized) Is return code == 401 } +// Code gets the status code for the edge application configuration create edge application bundle unauthorized response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleForbidden) IsCod return code == 403 } +// Code gets the status code for the edge application configuration create edge application bundle forbidden response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleForbidden) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleConflict) IsCode return code == 409 } +// Code gets the status code for the edge application configuration create edge application bundle conflict response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleConflict) Code() int { + return 409 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleConflict) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleInternalServerEr return code == 500 } +// Code gets the status code for the edge application configuration create edge application bundle internal server error response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleGatewayTimeout) return code == 504 } +// Code gets the status code for the edge application configuration create edge application bundle gateway timeout response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] edgeApplicationConfigurationCreateEdgeApplicationBundleGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration create edge application bundle default response -func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration create edge application bundle default response has a 2xx status code func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault) IsCode( return o._statusCode == code } +// Code gets the status code for the edge application configuration create edge application bundle default response +func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationCreateEdgeApplicationBundleDefault) Error() string { return fmt.Sprintf("[POST /v1/apps][%d] EdgeApplicationConfiguration_CreateEdgeApplicationBundle default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_delete_edge_application_bundle_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_delete_edge_application_bundle_responses.go index 9ec9930..9610050 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_delete_edge_application_bundle_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_delete_edge_application_bundle_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleOK) IsCode(code return code == 200 } +// Code gets the status code for the edge application configuration delete edge application bundle o k response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleOK) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleUnauthorized) Is return code == 401 } +// Code gets the status code for the edge application configuration delete edge application bundle unauthorized response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleForbidden) IsCod return code == 403 } +// Code gets the status code for the edge application configuration delete edge application bundle forbidden response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleNotFound) IsCode return code == 404 } +// Code gets the status code for the edge application configuration delete edge application bundle not found response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleConflict) IsCode return code == 409 } +// Code gets the status code for the edge application configuration delete edge application bundle conflict response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleConflict) Code() int { + return 409 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleConflict) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleInternalServerEr return code == 500 } +// Code gets the status code for the edge application configuration delete edge application bundle internal server error response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleGatewayTimeout) return code == 504 } +// Code gets the status code for the edge application configuration delete edge application bundle gateway timeout response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] edgeApplicationConfigurationDeleteEdgeApplicationBundleGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration delete edge application bundle default response -func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration delete edge application bundle default response has a 2xx status code func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault) IsCode( return o._statusCode == code } +// Code gets the status code for the edge application configuration delete edge application bundle default response +func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationDeleteEdgeApplicationBundleDefault) Error() string { return fmt.Sprintf("[DELETE /v1/apps/id/{id}][%d] EdgeApplicationConfiguration_DeleteEdgeApplicationBundle default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_by_name_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_by_name_responses.go index 618fd41..6fc215b 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_by_name_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameOK) IsCode(co return code == 200 } +// Code gets the status code for the edge application configuration get edge application bundle by name o k response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameUnauthorized) return code == 401 } +// Code gets the status code for the edge application configuration get edge application bundle by name unauthorized response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameForbidden) Is return code == 403 } +// Code gets the status code for the edge application configuration get edge application bundle by name forbidden response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameNotFound) IsC return code == 404 } +// Code gets the status code for the edge application configuration get edge application bundle by name not found response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameInternalServe return code == 500 } +// Code gets the status code for the edge application configuration get edge application bundle by name internal server error response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameGatewayTimeou return code == 504 } +// Code gets the status code for the edge application configuration get edge application bundle by name gateway timeout response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration get edge application bundle by name default response -func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration get edge application bundle by name default response has a 2xx status code func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault) IsCo return o._statusCode == code } +// Code gets the status code for the edge application configuration get edge application bundle by name default response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/name/{name}][%d] EdgeApplicationConfiguration_GetEdgeApplicationBundleByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_responses.go index 8df25ed..ef6d1a6 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_get_edge_application_bundle_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleOK) IsCode(code int return code == 200 } +// Code gets the status code for the edge application configuration get edge application bundle o k response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleOK) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleUnauthorized) IsCod return code == 401 } +// Code gets the status code for the edge application configuration get edge application bundle unauthorized response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleForbidden) IsCode(c return code == 403 } +// Code gets the status code for the edge application configuration get edge application bundle forbidden response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleNotFound) IsCode(co return code == 404 } +// Code gets the status code for the edge application configuration get edge application bundle not found response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleInternalServerError return code == 500 } +// Code gets the status code for the edge application configuration get edge application bundle internal server error response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleGatewayTimeout) IsC return code == 504 } +// Code gets the status code for the edge application configuration get edge application bundle gateway timeout response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] edgeApplicationConfigurationGetEdgeApplicationBundleGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationGetEdgeApplicationBundleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration get edge application bundle default response -func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration get edge application bundle default response has a 2xx status code func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleDefault) IsCode(cod return o._statusCode == code } +// Code gets the status code for the edge application configuration get edge application bundle default response +func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationGetEdgeApplicationBundleDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}][%d] EdgeApplicationConfiguration_GetEdgeApplicationBundle default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_by_name_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_by_name_responses.go index 21f992a..bf017ac 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_by_name_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameOK) IsC return code == 200 } +// Code gets the status code for the edge application configuration get global edge application bundle by name o k response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameUnautho return code == 401 } +// Code gets the status code for the edge application configuration get global edge application bundle by name unauthorized response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameForbidd return code == 403 } +// Code gets the status code for the edge application configuration get global edge application bundle by name forbidden response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameNotFoun return code == 404 } +// Code gets the status code for the edge application configuration get global edge application bundle by name not found response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameInterna return code == 500 } +// Code gets the status code for the edge application configuration get global edge application bundle by name internal server error response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameGateway return code == 504 } +// Code gets the status code for the edge application configuration get global edge application bundle by name gateway timeout response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault str Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration get global edge application bundle by name default response -func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration get global edge application bundle by name default response has a 2xx status code func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault return o._statusCode == code } +// Code gets the status code for the edge application configuration get global edge application bundle by name default response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/global/name/{name}][%d] EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundleByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_responses.go index 0b9f686..7fc1519 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_get_global_edge_application_bundle_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleOK) IsCode(co return code == 200 } +// Code gets the status code for the edge application configuration get global edge application bundle o k response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleOK) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleUnauthorized) return code == 401 } +// Code gets the status code for the edge application configuration get global edge application bundle unauthorized response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleForbidden) Is return code == 403 } +// Code gets the status code for the edge application configuration get global edge application bundle forbidden response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleNotFound) IsC return code == 404 } +// Code gets the status code for the edge application configuration get global edge application bundle not found response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleInternalServe return code == 500 } +// Code gets the status code for the edge application configuration get global edge application bundle internal server error response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleGatewayTimeou return code == 504 } +// Code gets the status code for the edge application configuration get global edge application bundle gateway timeout response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] edgeApplicationConfigurationGetGlobalEdgeApplicationBundleGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration get global edge application bundle default response -func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration get global edge application bundle default response has a 2xx status code func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault) IsCo return o._statusCode == code } +// Code gets the status code for the edge application configuration get global edge application bundle default response +func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationGetGlobalEdgeApplicationBundleDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/global/id/{id}][%d] EdgeApplicationConfiguration_GetGlobalEdgeApplicationBundle default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundle_project_list_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundle_project_list_responses.go index abfb2ce..347ece8 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundle_project_list_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundle_project_list_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListOK) Is return code == 200 } +// Code gets the status code for the edge application configuration query edge application bundle project list o k response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListOK) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListBadReq return code == 400 } +// Code gets the status code for the edge application configuration query edge application bundle project list bad request response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListUnauth return code == 401 } +// Code gets the status code for the edge application configuration query edge application bundle project list unauthorized response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListForbid return code == 403 } +// Code gets the status code for the edge application configuration query edge application bundle project list forbidden response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListIntern return code == 500 } +// Code gets the status code for the edge application configuration query edge application bundle project list internal server error response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListGatewa return code == 504 } +// Code gets the status code for the edge application configuration query edge application bundle project list gateway timeout response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] edgeApplicationConfigurationQueryEdgeApplicationBundleProjectListGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration query edge application bundle project list default response -func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration query edge application bundle project list default response has a 2xx status code func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefaul return o._statusCode == code } +// Code gets the status code for the edge application configuration query edge application bundle project list default response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundleProjectListDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/id/{id}/projects][%d] EdgeApplicationConfiguration_QueryEdgeApplicationBundleProjectList default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundles_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundles_responses.go index b6abab0..4e6be53 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundles_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_query_edge_application_bundles_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesOK) IsCode(code return code == 200 } +// Code gets the status code for the edge application configuration query edge application bundles o k response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesOK) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesBadRequest) IsCo return code == 400 } +// Code gets the status code for the edge application configuration query edge application bundles bad request response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesUnauthorized) Is return code == 401 } +// Code gets the status code for the edge application configuration query edge application bundles unauthorized response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesForbidden) IsCod return code == 403 } +// Code gets the status code for the edge application configuration query edge application bundles forbidden response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesInternalServerEr return code == 500 } +// Code gets the status code for the edge application configuration query edge application bundles internal server error response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesGatewayTimeout) return code == 504 } +// Code gets the status code for the edge application configuration query edge application bundles gateway timeout response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] edgeApplicationConfigurationQueryEdgeApplicationBundlesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration query edge application bundles default response -func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration query edge application bundles default response has a 2xx status code func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault) IsCode( return o._statusCode == code } +// Code gets the status code for the edge application configuration query edge application bundles default response +func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationQueryEdgeApplicationBundlesDefault) Error() string { return fmt.Sprintf("[GET /v1/apps][%d] EdgeApplicationConfiguration_QueryEdgeApplicationBundles default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_query_global_edge_application_bundles_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_query_global_edge_application_bundles_responses.go index d3958aa..36597a2 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_query_global_edge_application_bundles_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_query_global_edge_application_bundles_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesOK) IsCode return code == 200 } +// Code gets the status code for the edge application configuration query global edge application bundles o k response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesOK) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesBadRequest return code == 400 } +// Code gets the status code for the edge application configuration query global edge application bundles bad request response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesUnauthoriz return code == 401 } +// Code gets the status code for the edge application configuration query global edge application bundles unauthorized response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesForbidden) return code == 403 } +// Code gets the status code for the edge application configuration query global edge application bundles forbidden response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesInternalSe return code == 500 } +// Code gets the status code for the edge application configuration query global edge application bundles internal server error response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesGatewayTim return code == 504 } +// Code gets the status code for the edge application configuration query global edge application bundles gateway timeout response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] edgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault struct Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration query global edge application bundles default response -func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration query global edge application bundles default response has a 2xx status code func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault) I return o._statusCode == code } +// Code gets the status code for the edge application configuration query global edge application bundles default response +func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationQueryGlobalEdgeApplicationBundlesDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/global][%d] EdgeApplicationConfiguration_QueryGlobalEdgeApplicationBundles default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_configuration/edge_application_configuration_update_edge_application_bundle_responses.go b/swagger_client/edge_application_configuration/edge_application_configuration_update_edge_application_bundle_responses.go index 5db8545..3c85914 100644 --- a/swagger_client/edge_application_configuration/edge_application_configuration_update_edge_application_bundle_responses.go +++ b/swagger_client/edge_application_configuration/edge_application_configuration_update_edge_application_bundle_responses.go @@ -121,6 +121,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleOK) IsCode(code return code == 200 } +// Code gets the status code for the edge application configuration update edge application bundle o k response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleOK) Code() int { + return 200 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleUnauthorized) Is return code == 401 } +// Code gets the status code for the edge application configuration update edge application bundle unauthorized response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleForbidden) IsCod return code == 403 } +// Code gets the status code for the edge application configuration update edge application bundle forbidden response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleNotFound) IsCode return code == 404 } +// Code gets the status code for the edge application configuration update edge application bundle not found response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleConflict) IsCode return code == 409 } +// Code gets the status code for the edge application configuration update edge application bundle conflict response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleConflict) Code() int { + return 409 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleInternalServerEr return code == 500 } +// Code gets the status code for the edge application configuration update edge application bundle internal server error response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleGatewayTimeout) return code == 504 } +// Code gets the status code for the edge application configuration update edge application bundle gateway timeout response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] edgeApplicationConfigurationUpdateEdgeApplicationBundleGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application configuration update edge application bundle default response -func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application configuration update edge application bundle default response has a 2xx status code func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault) IsCode( return o._statusCode == code } +// Code gets the status code for the edge application configuration update edge application bundle default response +func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/id/{id}][%d] EdgeApplicationConfiguration_UpdateEdgeApplicationBundle default %+v", o._statusCode, o.Payload) } @@ -876,6 +911,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextVal func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextValidateManifestJSON(ctx context.Context, formats strfmt.Registry) error { if o.ManifestJSON != nil { + + if swag.IsZero(o.ManifestJSON) { // not required + return nil + } + if err := o.ManifestJSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "manifestJSON") @@ -892,6 +932,7 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextVal func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -908,6 +949,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextVal func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if o.ParentDetail != nil { + + if swag.IsZero(o.ParentDetail) { // not required + return nil + } + if err := o.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "parentDetail") @@ -924,6 +970,11 @@ func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextVal func (o *EdgeApplicationConfigurationUpdateEdgeApplicationBundleBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_activate_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_activate_edge_application_instance_responses.go index 5692897..1c6f15e 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_activate_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_activate_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceOK) return code == 200 } +// Code gets the status code for the edge application instance configuration activate edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceUnau return code == 401 } +// Code gets the status code for the edge application instance configuration activate edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceForb return code == 403 } +// Code gets the status code for the edge application instance configuration activate edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceNotF return code == 404 } +// Code gets the status code for the edge application instance configuration activate edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceConf return code == 409 } +// Code gets the status code for the edge application instance configuration activate edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceInte return code == 500 } +// Code gets the status code for the edge application instance configuration activate edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceGate return code == 504 } +// Code gets the status code for the edge application instance configuration activate edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] edgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration activate edge application instance default response -func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration activate edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefa return o._statusCode == code } +// Code gets the status code for the edge application instance configuration activate edge application instance default response +func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationActivateEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/activate][%d] EdgeApplicationInstanceConfiguration_ActivateEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_connect_to_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_connect_to_edge_application_instance_responses.go index c52afb7..9b62cde 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_connect_to_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_connect_to_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceOK) return code == 200 } +// Code gets the status code for the edge application instance configuration connect to edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceUna return code == 401 } +// Code gets the status code for the edge application instance configuration connect to edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceFor return code == 403 } +// Code gets the status code for the edge application instance configuration connect to edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceNot return code == 404 } +// Code gets the status code for the edge application instance configuration connect to edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceCon return code == 409 } +// Code gets the status code for the edge application instance configuration connect to edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceInt return code == 500 } +// Code gets the status code for the edge application instance configuration connect to edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceGat return code == 504 } +// Code gets the status code for the edge application instance configuration connect to edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] edgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration connect to edge application instance default response -func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration connect to edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDef return o._statusCode == code } +// Code gets the status code for the edge application instance configuration connect to edge application instance default response +func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationConnectToEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/console/remote][%d] EdgeApplicationInstanceConfiguration_ConnectToEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_create_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_create_edge_application_instance_responses.go index af94e95..5dccbf3 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_create_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_create_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceOK) Is return code == 200 } +// Code gets the status code for the edge application instance configuration create edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceBadReq return code == 400 } +// Code gets the status code for the edge application instance configuration create edge application instance bad request response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceBadRequest) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceUnauth return code == 401 } +// Code gets the status code for the edge application instance configuration create edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceForbid return code == 403 } +// Code gets the status code for the edge application instance configuration create edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceConfli return code == 409 } +// Code gets the status code for the edge application instance configuration create edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceIntern return code == 500 } +// Code gets the status code for the edge application instance configuration create edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceGatewa return code == 504 } +// Code gets the status code for the edge application instance configuration create edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] edgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration create edge application instance default response -func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration create edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefaul return o._statusCode == code } +// Code gets the status code for the edge application instance configuration create edge application instance default response +func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationCreateEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[POST /v1/apps/instances][%d] EdgeApplicationInstanceConfiguration_CreateEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_de_activate_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_de_activate_edge_application_instance_responses.go index 79f9af9..a22dffa 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_de_activate_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_de_activate_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceOK return code == 200 } +// Code gets the status code for the edge application instance configuration de activate edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceUn return code == 401 } +// Code gets the status code for the edge application instance configuration de activate edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceFo return code == 403 } +// Code gets the status code for the edge application instance configuration de activate edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceNo return code == 404 } +// Code gets the status code for the edge application instance configuration de activate edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceCo return code == 409 } +// Code gets the status code for the edge application instance configuration de activate edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceIn return code == 500 } +// Code gets the status code for the edge application instance configuration de activate edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceGa return code == 504 } +// Code gets the status code for the edge application instance configuration de activate edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] edgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDefaul Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration de activate edge application instance default response -func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration de activate edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDe return o._statusCode == code } +// Code gets the status code for the edge application instance configuration de activate edge application instance default response +func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationDeActivateEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/deactivate][%d] EdgeApplicationInstanceConfiguration_DeActivateEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_delete_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_delete_edge_application_instance_responses.go index 025418a..bca5f21 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_delete_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_delete_edge_application_instance_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceOK) Is return code == 200 } +// Code gets the status code for the edge application instance configuration delete edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceUnauth return code == 401 } +// Code gets the status code for the edge application instance configuration delete edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceForbid return code == 403 } +// Code gets the status code for the edge application instance configuration delete edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceNotFou return code == 404 } +// Code gets the status code for the edge application instance configuration delete edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceIntern return code == 500 } +// Code gets the status code for the edge application instance configuration delete edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceGatewa return code == 504 } +// Code gets the status code for the edge application instance configuration delete edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration delete edge application instance default response -func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration delete edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefaul return o._statusCode == code } +// Code gets the status code for the edge application instance configuration delete edge application instance default response +func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationDeleteEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[DELETE /v1/apps/instances/id/{id}][%d] EdgeApplicationInstanceConfiguration_DeleteEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_by_name_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_by_name_responses.go index dabb27a..42fe8d6 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_by_name_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameOK) return code == 200 } +// Code gets the status code for the edge application instance configuration get edge application instance by name o k response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameUna return code == 401 } +// Code gets the status code for the edge application instance configuration get edge application instance by name unauthorized response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameFor return code == 403 } +// Code gets the status code for the edge application instance configuration get edge application instance by name forbidden response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameNot return code == 404 } +// Code gets the status code for the edge application instance configuration get edge application instance by name not found response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameInt return code == 500 } +// Code gets the status code for the edge application instance configuration get edge application instance by name internal server error response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameGat return code == 504 } +// Code gets the status code for the edge application instance configuration get edge application instance by name gateway timeout response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration get edge application instance by name default response -func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration get edge application instance by name default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDef return o._statusCode == code } +// Code gets the status code for the edge application instance configuration get edge application instance by name default response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}][%d] EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstanceByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_responses.go index b612fcb..5c8a8fb 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_get_edge_application_instance_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceOK) IsCod return code == 200 } +// Code gets the status code for the edge application instance configuration get edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceUnauthori return code == 401 } +// Code gets the status code for the edge application instance configuration get edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceForbidden return code == 403 } +// Code gets the status code for the edge application instance configuration get edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceNotFound) return code == 404 } +// Code gets the status code for the edge application instance configuration get edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceInternalS return code == 500 } +// Code gets the status code for the edge application instance configuration get edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceGatewayTi return code == 504 } +// Code gets the status code for the edge application instance configuration get edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationGetEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault struc Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration get edge application instance default response -func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration get edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault) return o._statusCode == code } +// Code gets the status code for the edge application instance configuration get edge application instance default response +func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationGetEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}][%d] EdgeApplicationInstanceConfiguration_GetEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_query_edge_application_instances_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_query_edge_application_instances_responses.go index d348aca..743d65e 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_query_edge_application_instances_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_query_edge_application_instances_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesOK) Is return code == 200 } +// Code gets the status code for the edge application instance configuration query edge application instances o k response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesBadReq return code == 400 } +// Code gets the status code for the edge application instance configuration query edge application instances bad request response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesUnauth return code == 401 } +// Code gets the status code for the edge application instance configuration query edge application instances unauthorized response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesForbid return code == 403 } +// Code gets the status code for the edge application instance configuration query edge application instances forbidden response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesIntern return code == 500 } +// Code gets the status code for the edge application instance configuration query edge application instances internal server error response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesGatewa return code == 504 } +// Code gets the status code for the edge application instance configuration query edge application instances gateway timeout response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] edgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration query edge application instances default response -func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration query edge application instances default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefaul return o._statusCode == code } +// Code gets the status code for the edge application instance configuration query edge application instances default response +func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationQueryEdgeApplicationInstancesDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances][%d] EdgeApplicationInstanceConfiguration_QueryEdgeApplicationInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_edge_application_instance_responses.go index 6ec6a0a..cae93ff 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceOK) I return code == 200 } +// Code gets the status code for the edge application instance configuration refresh edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceUnaut return code == 401 } +// Code gets the status code for the edge application instance configuration refresh edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceForbi return code == 403 } +// Code gets the status code for the edge application instance configuration refresh edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceNotFo return code == 404 } +// Code gets the status code for the edge application instance configuration refresh edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceConfl return code == 409 } +// Code gets the status code for the edge application instance configuration refresh edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceInter return code == 500 } +// Code gets the status code for the edge application instance configuration refresh edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceGatew return code == 504 } +// Code gets the status code for the edge application instance configuration refresh edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] edgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefault s Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration refresh edge application instance default response -func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration refresh edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefau return o._statusCode == code } +// Code gets the status code for the edge application instance configuration refresh edge application instance default response +func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationRefreshEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh][%d] EdgeApplicationInstanceConfiguration_RefreshEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_purge_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_purge_edge_application_instance_responses.go index 6858d96..9df21a7 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_purge_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_refresh_purge_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 200 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 401 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 403 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 404 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 409 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 500 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return code == 504 } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] edgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceDefa Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration refresh purge edge application instance default response -func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration refresh purge edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstance return o._statusCode == code } +// Code gets the status code for the edge application instance configuration refresh purge edge application instance default response +func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationRefreshPurgeEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/refresh/purge][%d] EdgeApplicationInstanceConfiguration_RefreshPurgeEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_restart_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_restart_edge_application_instance_responses.go index 99d3250..686b429 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_restart_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_restart_edge_application_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceOK) I return code == 200 } +// Code gets the status code for the edge application instance configuration restart edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceUnaut return code == 401 } +// Code gets the status code for the edge application instance configuration restart edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceForbi return code == 403 } +// Code gets the status code for the edge application instance configuration restart edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceNotFo return code == 404 } +// Code gets the status code for the edge application instance configuration restart edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceConfl return code == 409 } +// Code gets the status code for the edge application instance configuration restart edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceInter return code == 500 } +// Code gets the status code for the edge application instance configuration restart edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceGatew return code == 504 } +// Code gets the status code for the edge application instance configuration restart edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] edgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefault s Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration restart edge application instance default response -func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration restart edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefau return o._statusCode == code } +// Code gets the status code for the edge application instance configuration restart edge application instance default response +func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationRestartEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}/restart][%d] EdgeApplicationInstanceConfiguration_RestartEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_update_edge_application_instance_responses.go b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_update_edge_application_instance_responses.go index 54ef4b4..acf1337 100644 --- a/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_update_edge_application_instance_responses.go +++ b/swagger_client/edge_application_instance_configuration/edge_application_instance_configuration_update_edge_application_instance_responses.go @@ -122,6 +122,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceOK) Is return code == 200 } +// Code gets the status code for the edge application instance configuration update edge application instance o k response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceUnauth return code == 401 } +// Code gets the status code for the edge application instance configuration update edge application instance unauthorized response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceForbid return code == 403 } +// Code gets the status code for the edge application instance configuration update edge application instance forbidden response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceNotFou return code == 404 } +// Code gets the status code for the edge application instance configuration update edge application instance not found response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceConfli return code == 409 } +// Code gets the status code for the edge application instance configuration update edge application instance conflict response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceConflict) Code() int { + return 409 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceIntern return code == 500 } +// Code gets the status code for the edge application instance configuration update edge application instance internal server error response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceGatewa return code == 504 } +// Code gets the status code for the edge application instance configuration update edge application instance gateway timeout response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] edgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance configuration update edge application instance default response -func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance configuration update edge application instance default response has a 2xx status code func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefaul return o._statusCode == code } +// Code gets the status code for the edge application instance configuration update edge application instance default response +func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/instances/id/{id}][%d] EdgeApplicationInstanceConfiguration_UpdateEdgeApplicationInstance default %+v", o._statusCode, o.Payload) } @@ -1251,6 +1286,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if o.AppType != nil { + + if swag.IsZero(o.AppType) { // not required + return nil + } + if err := o.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "appType") @@ -1267,6 +1307,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateCustomConfig(ctx context.Context, formats strfmt.Registry) error { if o.CustomConfig != nil { + + if swag.IsZero(o.CustomConfig) { // not required + return nil + } + if err := o.CustomConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "customConfig") @@ -1283,6 +1328,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if o.DeploymentType != nil { + + if swag.IsZero(o.DeploymentType) { // not required + return nil + } + if err := o.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "deploymentType") @@ -1301,6 +1351,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) for i := 0; i < len(o.Drives); i++ { if o.Drives[i] != nil { + + if swag.IsZero(o.Drives[i]) { // not required + return nil + } + if err := o.Drives[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "drives" + "." + strconv.Itoa(i)) @@ -1321,6 +1376,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) for i := 0; i < len(o.Interfaces); i++ { if o.Interfaces[i] != nil { + + if swag.IsZero(o.Interfaces[i]) { // not required + return nil + } + if err := o.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "interfaces" + "." + strconv.Itoa(i)) @@ -1339,6 +1399,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { if o.Logs != nil { + + if swag.IsZero(o.Logs) { // not required + return nil + } + if err := o.Logs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "logs") @@ -1355,6 +1420,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateManifestInfo(ctx context.Context, formats strfmt.Registry) error { if o.ManifestInfo != nil { + + if swag.IsZero(o.ManifestInfo) { // not required + return nil + } + if err := o.ManifestInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "manifestInfo") @@ -1371,6 +1441,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if o.Purge != nil { + + if swag.IsZero(o.Purge) { // not required + return nil + } + if err := o.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "purge") @@ -1387,6 +1462,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateRefresh(ctx context.Context, formats strfmt.Registry) error { if o.Refresh != nil { + + if swag.IsZero(o.Refresh) { // not required + return nil + } + if err := o.Refresh.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "refresh") @@ -1403,6 +1483,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateRestart(ctx context.Context, formats strfmt.Registry) error { if o.Restart != nil { + + if swag.IsZero(o.Restart) { // not required + return nil + } + if err := o.Restart.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "restart") @@ -1419,6 +1504,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1435,6 +1525,11 @@ func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) func (o *EdgeApplicationInstanceConfigurationUpdateEdgeApplicationInstanceBody) contextValidateVminfo(ctx context.Context, formats strfmt.Registry) error { if o.Vminfo != nil { + + if swag.IsZero(o.Vminfo) { // not required + return nil + } + if err := o.Vminfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "vminfo") diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_application_interface_tags_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_application_interface_tags_responses.go index a1bfc01..c95aa33 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_application_interface_tags_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_application_interface_tags_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsOK) IsCode(code return code == 200 } +// Code gets the status code for the edge application instance status get application interface tags o k response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsBadRequest) IsC return code == 400 } +// Code gets the status code for the edge application instance status get application interface tags bad request response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsUnauthorized) I return code == 401 } +// Code gets the status code for the edge application instance status get application interface tags unauthorized response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsForbidden) IsCo return code == 403 } +// Code gets the status code for the edge application instance status get application interface tags forbidden response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsInternalServerE return code == 500 } +// Code gets the status code for the edge application instance status get application interface tags internal server error response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsGatewayTimeout) return code == 504 } +// Code gets the status code for the edge application instance status get application interface tags gateway timeout response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] edgeApplicationInstanceStatusGetApplicationInterfaceTagsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get application interface tags default response -func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get application interface tags default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault) IsCode return o._statusCode == code } +// Code gets the status code for the edge application instance status get application interface tags default response +func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetApplicationInterfaceTagsDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/tags][%d] EdgeApplicationInstanceStatus_GetApplicationInterfaceTags default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_by_name_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_by_name_responses.go index 77a3d8a..ac03a4c 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_by_name_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameOK) return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance events by name o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameUnau return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance events by name unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameForb return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance events by name forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameNotF return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance events by name not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameInte return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance events by name internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameGate return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance events by name gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance events by name default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance events by name default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefa return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance events by name default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/events][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEventsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_responses.go index a1fad9c..abd981a 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_events_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsOK) IsCode return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance events o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsUnauthoriz return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance events unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsForbidden) return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance events forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsNotFound) return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance events not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsInternalSe return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance events internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsGatewayTim return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance events gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault struct Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance events default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance events default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault) I return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance events default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceEventsDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/events][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceEvents default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_logs_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_logs_responses.go index 6be2ea2..d19d5ec 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_logs_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_logs_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsOK) IsCode(c return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance logs o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsUnauthorized return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance logs unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsForbidden) I return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance logs forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsNotFound) Is return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance logs not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsInternalServ return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance logs internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsGatewayTimeo return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance logs gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance logs default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance logs default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault) IsC return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance logs default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceLogsDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/logs][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceLogs default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_id_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_id_responses.go index 7a4eec5..7f3c6ba 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_id_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_id_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIdGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDD Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance resource metrics by Id default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by Id default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByIDDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{objid}/timeSeries/{mType}][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsById default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_name_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_name_responses.go index 60ee62a..0cf45a1 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_name_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_resource_metrics_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNam Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance resource metrics by name default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance resource metrics by name default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsB return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance resource metrics by name default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceResourceMetricsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{objname}/timeSeries/{mType}][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceResourceMetricsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_by_name_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_by_name_responses.go index e3829b2..4605a21 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_by_name_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameOK) return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance status by name o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameUnau return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance status by name unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameForb return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance status by name forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameNotF return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance status by name not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameInte return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance status by name internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameGate return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance status by name gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance status by name default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance status by name default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefa return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance status by name default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/status][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_responses.go index 44414c0..13b33c3 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusOK) IsCode return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance status o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusUnauthoriz return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance status unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusForbidden) return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance status forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusNotFound) return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance status not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusInternalSe return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance status internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusGatewayTim return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance status gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault struct Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance status default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance status default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault) I return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance status default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/status][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers2_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers2_responses.go index b96f7d7..2039489 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers2_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers2_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2OK) I return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2OK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2OK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2OK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Unaut return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Unauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Unauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Unauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Forbi return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Forbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Forbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Forbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2NotFo return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2NotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2NotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2NotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Inter return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2InternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2InternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2InternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Gatew return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2GatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2GatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Default s Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance top talkers2 default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance top talkers2 default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Defau return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance top talkers2 default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Default) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkers2Default) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/toptalkers][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers_responses.go index d1bf0fe..59f407b 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_top_talkers_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersOK) Is return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance top talkers o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersUnauth return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance top talkers unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersForbid return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance top talkers forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersNotFou return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance top talkers not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersIntern return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance top talkers internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersGatewa return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance top talkers gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefault st Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance top talkers default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance top talkers default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefaul return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance top talkers default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTopTalkersDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/toptalkers][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTopTalkers default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows2_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows2_responses.go index 1f10fca..3732304 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows2_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows2_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2OK) return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2OK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2OK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2OK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Una return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Unauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Unauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Unauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2For return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Forbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Forbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Forbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Not return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2NotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2NotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2NotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Int return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2InternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2InternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2InternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Gat return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2GatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2GatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Default Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance traffic flows2 default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance traffic flows2 default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Def return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance traffic flows2 default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Default) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlows2Default) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/name/{name}/flowlog/classification][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows_responses.go index a9359ab..b6965ba 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_get_edge_application_instance_traffic_flows_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsOK) return code == 200 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows o k response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsUnau return code == 401 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows unauthorized response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsForb return code == 403 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows forbidden response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsNotF return code == 404 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows not found response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsNotFound) Code() int { + return 404 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsInte return code == 500 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows internal server error response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsGate return code == 504 } +// Code gets the status code for the edge application instance status get edge application instance traffic flows gateway timeout response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] edgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefault Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status get edge application instance traffic flows default response -func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status get edge application instance traffic flows default response has a 2xx status code func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefa return o._statusCode == code } +// Code gets the status code for the edge application instance status get edge application instance traffic flows default response +func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusGetEdgeApplicationInstanceTrafficFlowsDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/id/{id}/flowlog/classification][%d] EdgeApplicationInstanceStatus_GetEdgeApplicationInstanceTrafficFlows default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_config_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_config_responses.go index f9b96bf..51c184a 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_config_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_config_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigOK return code == 200 } +// Code gets the status code for the edge application instance status query edge application instance status config o k response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigBa return code == 400 } +// Code gets the status code for the edge application instance status query edge application instance status config bad request response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigUn return code == 401 } +// Code gets the status code for the edge application instance status query edge application instance status config unauthorized response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigFo return code == 403 } +// Code gets the status code for the edge application instance status query edge application instance status config forbidden response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigIn return code == 500 } +// Code gets the status code for the edge application instance status query edge application instance status config internal server error response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigGa return code == 504 } +// Code gets the status code for the edge application instance status query edge application instance status config gateway timeout response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDefaul Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status query edge application instance status config default response -func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status query edge application instance status config default response has a 2xx status code func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDe return o._statusCode == code } +// Code gets the status code for the edge application instance status query edge application instance status config default response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status-config][%d] EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatusConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_responses.go b/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_responses.go index d536149..cdeea52 100644 --- a/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_responses.go +++ b/swagger_client/edge_application_instance_status/edge_application_instance_status_query_edge_application_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusOK) IsCo return code == 200 } +// Code gets the status code for the edge application instance status query edge application instance status o k response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusOK) Code() int { + return 200 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusBadReque return code == 400 } +// Code gets the status code for the edge application instance status query edge application instance status bad request response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusBadRequest) Code() int { + return 400 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusUnauthor return code == 401 } +// Code gets the status code for the edge application instance status query edge application instance status unauthorized response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusForbidde return code == 403 } +// Code gets the status code for the edge application instance status query edge application instance status forbidden response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusForbidden) Code() int { + return 403 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusInternal return code == 500 } +// Code gets the status code for the edge application instance status query edge application instance status internal server error response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusGatewayT return code == 504 } +// Code gets the status code for the edge application instance status query edge application instance status gateway timeout response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] edgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault stru Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge application instance status query edge application instance status default response -func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge application instance status query edge application instance status default response has a 2xx status code func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault) return o._statusCode == code } +// Code gets the status code for the edge application instance status query edge application instance status default response +func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeApplicationInstanceStatusQueryEdgeApplicationInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/instances/status][%d] EdgeApplicationInstanceStatus_QueryEdgeApplicationInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_by_name_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_by_name_responses.go index 08a3f7d..755ccb9 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_by_name_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_by_name_responses.go @@ -123,6 +123,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameOK) IsCode(code int) b return code == 200 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name o k response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameBadRequest) IsCode(cod return code == 400 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name bad request response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameUnauthorized) IsCode(c return code == 401 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameForbidden) IsCode(code return code == 403 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameNotFound) IsCode(code return code == 404 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name not found response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameMethodNotAllowed) IsCo return code == 405 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name method not allowed response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameMethodNotAllowed) Code() int { + return 405 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameMethodNotAllowed) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameMethodNotAllowed %+v", 405, o.Payload) } @@ -501,6 +531,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameInternalServerError) I return code == 500 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameGatewayTimeout) IsCode return code == 504 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigByNameGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin bootstrap config by name default response -func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin bootstrap config by name default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault) IsCode(code i return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin bootstrap config by name default response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/bootstrap][%d] EdgeDiagnostics_GetDeviceTwinBootstrapConfigByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_responses.go index 57f4157..b02a73d 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_bootstrap_config_responses.go @@ -123,6 +123,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config o k response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigOK %+v", 200, o.Payload) } @@ -186,6 +191,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigBadRequest) IsCode(code int) return code == 400 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config bad request response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigBadRequest %+v", 400, o.Payload) } @@ -249,6 +259,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigUnauthorized %+v", 401, o.Payload) } @@ -312,6 +327,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigForbidden %+v", 403, o.Payload) } @@ -375,6 +395,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config not found response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigNotFound %+v", 404, o.Payload) } @@ -438,6 +463,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigMethodNotAllowed) IsCode(cod return code == 405 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config method not allowed response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigMethodNotAllowed) Code() int { + return 405 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigMethodNotAllowed) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigMethodNotAllowed %+v", 405, o.Payload) } @@ -501,6 +531,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigInternalServerError %+v", 500, o.Payload) } @@ -564,6 +599,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge diagnostics get device twin bootstrap config gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] edgeDiagnosticsGetDeviceTwinBootstrapConfigGatewayTimeout %+v", 504, o.Payload) } @@ -606,11 +646,6 @@ type EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin bootstrap config default response -func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin bootstrap config default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -636,6 +671,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin bootstrap config default response +func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinBootstrapConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/bootstrap][%d] EdgeDiagnostics_GetDeviceTwinBootstrapConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_by_name_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_by_name_responses.go index 741d88d..209a747 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_by_name_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_by_name_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get device twin config by name o k response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameBadRequest) IsCode(code int) bo return code == 400 } +// Code gets the status code for the edge diagnostics get device twin config by name bad request response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge diagnostics get device twin config by name unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the edge diagnostics get device twin config by name forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge diagnostics get device twin config by name not found response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the edge diagnostics get device twin config by name internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the edge diagnostics get device twin config by name gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] edgeDiagnosticsGetDeviceTwinConfigByNameGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinConfigByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin config by name default response -func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin config by name default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin config by name default response +func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config][%d] EdgeDiagnostics_GetDeviceTwinConfigByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_responses.go index aadbd5b..a53bc0b 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_config_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get device twin config o k response +func (o *EdgeDiagnosticsGetDeviceTwinConfigOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge diagnostics get device twin config bad request response +func (o *EdgeDiagnosticsGetDeviceTwinConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge diagnostics get device twin config unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge diagnostics get device twin config forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinConfigForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge diagnostics get device twin config not found response +func (o *EdgeDiagnosticsGetDeviceTwinConfigNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the edge diagnostics get device twin config internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the edge diagnostics get device twin config gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] edgeDiagnosticsGetDeviceTwinConfigGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin config default response -func (o *EdgeDiagnosticsGetDeviceTwinConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin config default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinConfigDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin config default response +func (o *EdgeDiagnosticsGetDeviceTwinConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config][%d] EdgeDiagnostics_GetDeviceTwinConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_by_name_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_by_name_responses.go index 073665f..826f000 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_by_name_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_by_name_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get device twin next config by name o k response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameBadRequest) IsCode(code int return code == 400 } +// Code gets the status code for the edge diagnostics get device twin next config by name bad request response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the edge diagnostics get device twin next config by name unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge diagnostics get device twin next config by name forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge diagnostics get device twin next config by name not found response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameInternalServerError) IsCode return code == 500 } +// Code gets the status code for the edge diagnostics get device twin next config by name internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge diagnostics get device twin next config by name gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigByNameGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin next config by name default response -func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin next config by name default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin next config by name default response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/next][%d] EdgeDiagnostics_GetDeviceTwinNextConfigByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_responses.go index 053351c..7694c8b 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_next_config_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get device twin next config o k response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigBadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the edge diagnostics get device twin next config bad request response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the edge diagnostics get device twin next config unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge diagnostics get device twin next config forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge diagnostics get device twin next config not found response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge diagnostics get device twin next config internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge diagnostics get device twin next config gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] edgeDiagnosticsGetDeviceTwinNextConfigGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinNextConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin next config default response -func (o *EdgeDiagnosticsGetDeviceTwinNextConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin next config default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinNextConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinNextConfigDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin next config default response +func (o *EdgeDiagnosticsGetDeviceTwinNextConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinNextConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/next][%d] EdgeDiagnostics_GetDeviceTwinNextConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_config_by_name_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_config_by_name_responses.go index 2464e08..6d687d0 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_config_by_name_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_config_by_name_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the edge diagnostics get device twin offline config by name o k response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameBadRequest) IsCode(code return code == 400 } +// Code gets the status code for the edge diagnostics get device twin offline config by name bad request response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the edge diagnostics get device twin offline config by name unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the edge diagnostics get device twin offline config by name forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameNotFound) IsCode(code in return code == 404 } +// Code gets the status code for the edge diagnostics get device twin offline config by name not found response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameInternalServerError) IsC return code == 500 } +// Code gets the status code for the edge diagnostics get device twin offline config by name internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the edge diagnostics get device twin offline config by name gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineConfigByNameGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin offline config by name default response -func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin offline config by name default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin offline config by name default response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineConfigByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/config/offline][%d] EdgeDiagnostics_GetDeviceTwinOfflineConfigByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_next_config_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_next_config_responses.go index 6167bb4..888e224 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_next_config_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_device_twin_offline_next_config_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the edge diagnostics get device twin offline next config o k response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigBadRequest) IsCode(code in return code == 400 } +// Code gets the status code for the edge diagnostics get device twin offline next config bad request response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the edge diagnostics get device twin offline next config unauthorized response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the edge diagnostics get device twin offline next config forbidden response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge diagnostics get device twin offline next config not found response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigInternalServerError) IsCod return code == 500 } +// Code gets the status code for the edge diagnostics get device twin offline next config internal server error response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the edge diagnostics get device twin offline next config gateway timeout response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] edgeDiagnosticsGetDeviceTwinOfflineNextConfigGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get device twin offline next config default response -func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get device twin offline next config default response has a 2xx status code func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the edge diagnostics get device twin offline next config default response +func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetDeviceTwinOfflineNextConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/config/offline][%d] EdgeDiagnostics_GetDeviceTwinOfflineNextConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_events_timeline_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_events_timeline_responses.go index 7b36c3a..242fc26 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_events_timeline_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_events_timeline_responses.go @@ -111,6 +111,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get events timeline o k response +func (o *EdgeDiagnosticsGetEventsTimelineOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetEventsTimelineOK) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge diagnostics get events timeline bad request response +func (o *EdgeDiagnosticsGetEventsTimelineBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetEventsTimelineBadRequest) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge diagnostics get events timeline unauthorized response +func (o *EdgeDiagnosticsGetEventsTimelineUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetEventsTimelineUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge diagnostics get events timeline forbidden response +func (o *EdgeDiagnosticsGetEventsTimelineForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetEventsTimelineForbidden) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the edge diagnostics get events timeline internal server error response +func (o *EdgeDiagnosticsGetEventsTimelineInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetEventsTimelineInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge diagnostics get events timeline gateway timeout response +func (o *EdgeDiagnosticsGetEventsTimelineGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetEventsTimelineGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/events][%d] edgeDiagnosticsGetEventsTimelineGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeDiagnosticsGetEventsTimelineDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get events timeline default response -func (o *EdgeDiagnosticsGetEventsTimelineDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get events timeline default response has a 2xx status code func (o *EdgeDiagnosticsGetEventsTimelineDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeDiagnosticsGetEventsTimelineDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge diagnostics get events timeline default response +func (o *EdgeDiagnosticsGetEventsTimelineDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetEventsTimelineDefault) Error() string { return fmt.Sprintf("[GET /v1/events][%d] EdgeDiagnostics_GetEventsTimeline default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline2_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline2_responses.go index d37aac4..662a90c 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline2_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline2_responses.go @@ -111,6 +111,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 o k response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2OK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2OK) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2OK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2BadRequest) IsCode(code int) return code == 400 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 bad request response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2BadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2BadRequest) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2BadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Unauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 unauthorized response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Unauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Unauthorized) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2Unauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Forbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 forbidden response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Forbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Forbidden) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2Forbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2InternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 internal server error response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2InternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2InternalServerError) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2InternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2GatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 gateway timeout response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2GatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimeline2GatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeDiagnosticsGetResourceMetricsTimeline2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get resource metrics timeline2 default response -func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get resource metrics timeline2 default response has a 2xx status code func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Default) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the edge diagnostics get resource metrics timeline2 default response +func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Default) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetResourceMetricsTimeline2Default) Error() string { return fmt.Sprintf("[GET /v1/timeSeries/{mType}][%d] EdgeDiagnostics_GetResourceMetricsTimeline2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline_responses.go index 394f98f..c9731ad 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_resource_metrics_timeline_responses.go @@ -111,6 +111,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get resource metrics timeline o k response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineOK) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineBadRequest) IsCode(code int) b return code == 400 } +// Code gets the status code for the edge diagnostics get resource metrics timeline bad request response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineBadRequest) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge diagnostics get resource metrics timeline unauthorized response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge diagnostics get resource metrics timeline forbidden response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineForbidden) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge diagnostics get resource metrics timeline internal server error response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge diagnostics get resource metrics timeline gateway timeout response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] edgeDiagnosticsGetResourceMetricsTimelineGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeDiagnosticsGetResourceMetricsTimelineDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get resource metrics timeline default response -func (o *EdgeDiagnosticsGetResourceMetricsTimelineDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get resource metrics timeline default response has a 2xx status code func (o *EdgeDiagnosticsGetResourceMetricsTimelineDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeDiagnosticsGetResourceMetricsTimelineDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge diagnostics get resource metrics timeline default response +func (o *EdgeDiagnosticsGetResourceMetricsTimelineDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetResourceMetricsTimelineDefault) Error() string { return fmt.Sprintf("[GET /v1/events/timeSeries/{mType}][%d] EdgeDiagnostics_GetResourceMetricsTimeline default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_get_top_users2_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_get_top_users2_responses.go index 7239244..a596bde 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_get_top_users2_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_get_top_users2_responses.go @@ -111,6 +111,11 @@ func (o *EdgeDiagnosticsGetTopUsers2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics get top users2 o k response +func (o *EdgeDiagnosticsGetTopUsers2OK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsGetTopUsers2OK) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2OK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeDiagnosticsGetTopUsers2BadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge diagnostics get top users2 bad request response +func (o *EdgeDiagnosticsGetTopUsers2BadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsGetTopUsers2BadRequest) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2BadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeDiagnosticsGetTopUsers2Unauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge diagnostics get top users2 unauthorized response +func (o *EdgeDiagnosticsGetTopUsers2Unauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsGetTopUsers2Unauthorized) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2Unauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeDiagnosticsGetTopUsers2Forbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge diagnostics get top users2 forbidden response +func (o *EdgeDiagnosticsGetTopUsers2Forbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsGetTopUsers2Forbidden) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2Forbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeDiagnosticsGetTopUsers2InternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the edge diagnostics get top users2 internal server error response +func (o *EdgeDiagnosticsGetTopUsers2InternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsGetTopUsers2InternalServerError) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2InternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeDiagnosticsGetTopUsers2GatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge diagnostics get top users2 gateway timeout response +func (o *EdgeDiagnosticsGetTopUsers2GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsGetTopUsers2GatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] edgeDiagnosticsGetTopUsers2GatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeDiagnosticsGetTopUsers2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics get top users2 default response -func (o *EdgeDiagnosticsGetTopUsers2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics get top users2 default response has a 2xx status code func (o *EdgeDiagnosticsGetTopUsers2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeDiagnosticsGetTopUsers2Default) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge diagnostics get top users2 default response +func (o *EdgeDiagnosticsGetTopUsers2Default) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsGetTopUsers2Default) Error() string { return fmt.Sprintf("[GET /v1/events/topUsers][%d] EdgeDiagnostics_GetTopUsers2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_diagnostics/edge_diagnostics_regen_device_config_responses.go b/swagger_client/edge_diagnostics/edge_diagnostics_regen_device_config_responses.go index 4edc4ba..14883e6 100644 --- a/swagger_client/edge_diagnostics/edge_diagnostics_regen_device_config_responses.go +++ b/swagger_client/edge_diagnostics/edge_diagnostics_regen_device_config_responses.go @@ -117,6 +117,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge diagnostics regen device config o k response +func (o *EdgeDiagnosticsRegenDeviceConfigOK) Code() int { + return 200 +} + func (o *EdgeDiagnosticsRegenDeviceConfigOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge diagnostics regen device config bad request response +func (o *EdgeDiagnosticsRegenDeviceConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeDiagnosticsRegenDeviceConfigBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge diagnostics regen device config unauthorized response +func (o *EdgeDiagnosticsRegenDeviceConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeDiagnosticsRegenDeviceConfigUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge diagnostics regen device config forbidden response +func (o *EdgeDiagnosticsRegenDeviceConfigForbidden) Code() int { + return 403 +} + func (o *EdgeDiagnosticsRegenDeviceConfigForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge diagnostics regen device config not found response +func (o *EdgeDiagnosticsRegenDeviceConfigNotFound) Code() int { + return 404 +} + func (o *EdgeDiagnosticsRegenDeviceConfigNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the edge diagnostics regen device config internal server error response +func (o *EdgeDiagnosticsRegenDeviceConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeDiagnosticsRegenDeviceConfigInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge diagnostics regen device config gateway timeout response +func (o *EdgeDiagnosticsRegenDeviceConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeDiagnosticsRegenDeviceConfigGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] edgeDiagnosticsRegenDeviceConfigGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeDiagnosticsRegenDeviceConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge diagnostics regen device config default response -func (o *EdgeDiagnosticsRegenDeviceConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge diagnostics regen device config default response has a 2xx status code func (o *EdgeDiagnosticsRegenDeviceConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeDiagnosticsRegenDeviceConfigDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge diagnostics regen device config default response +func (o *EdgeDiagnosticsRegenDeviceConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeDiagnosticsRegenDeviceConfigDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/config][%d] EdgeDiagnostics_RegenDeviceConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_create_edge_network_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_create_edge_network_responses.go index 0c616f7..d7dc866 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_create_edge_network_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_create_edge_network_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration create edge network o k response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkOK) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkBadRequest) IsCode(code int) b return code == 400 } +// Code gets the status code for the edge network configuration create edge network bad request response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkBadRequest) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge network configuration create edge network unauthorized response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge network configuration create edge network forbidden response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkForbidden) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the edge network configuration create edge network conflict response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkConflict) Code() int { + return 409 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkConflict) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge network configuration create edge network internal server error response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge network configuration create edge network gateway timeout response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] edgeNetworkConfigurationCreateEdgeNetworkGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNetworkConfigurationCreateEdgeNetworkDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration create edge network default response -func (o *EdgeNetworkConfigurationCreateEdgeNetworkDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration create edge network default response has a 2xx status code func (o *EdgeNetworkConfigurationCreateEdgeNetworkDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNetworkConfigurationCreateEdgeNetworkDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge network configuration create edge network default response +func (o *EdgeNetworkConfigurationCreateEdgeNetworkDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationCreateEdgeNetworkDefault) Error() string { return fmt.Sprintf("[POST /v1/networks][%d] EdgeNetworkConfiguration_CreateEdgeNetwork default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_delete_edge_network_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_delete_edge_network_responses.go index 32c3ce4..472ca6a 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_delete_edge_network_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_delete_edge_network_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration delete edge network o k response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkOK) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge network configuration delete edge network unauthorized response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge network configuration delete edge network forbidden response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the edge network configuration delete edge network not found response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge network configuration delete edge network internal server error response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge network configuration delete edge network gateway timeout response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] edgeNetworkConfigurationDeleteEdgeNetworkGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkConfigurationDeleteEdgeNetworkDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration delete edge network default response -func (o *EdgeNetworkConfigurationDeleteEdgeNetworkDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration delete edge network default response has a 2xx status code func (o *EdgeNetworkConfigurationDeleteEdgeNetworkDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkConfigurationDeleteEdgeNetworkDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge network configuration delete edge network default response +func (o *EdgeNetworkConfigurationDeleteEdgeNetworkDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationDeleteEdgeNetworkDefault) Error() string { return fmt.Sprintf("[DELETE /v1/networks/id/{id}][%d] EdgeNetworkConfiguration_DeleteEdgeNetwork default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_by_name_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_by_name_responses.go index 68c22c1..323092d 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_by_name_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration get edge network by name o k response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameOK) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the edge network configuration get edge network by name unauthorized response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge network configuration get edge network by name forbidden response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge network configuration get edge network by name not found response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameInternalServerError) IsCode return code == 500 } +// Code gets the status code for the edge network configuration get edge network by name internal server error response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge network configuration get edge network by name gateway timeout response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] edgeNetworkConfigurationGetEdgeNetworkByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkConfigurationGetEdgeNetworkByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration get edge network by name default response -func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration get edge network by name default response has a 2xx status code func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the edge network configuration get edge network by name default response +func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/networks/name/{name}][%d] EdgeNetworkConfiguration_GetEdgeNetworkByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_responses.go index b47eb2e..8a29cbe 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_get_edge_network_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration get edge network o k response +func (o *EdgeNetworkConfigurationGetEdgeNetworkOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkOK) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the edge network configuration get edge network unauthorized response +func (o *EdgeNetworkConfigurationGetEdgeNetworkUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge network configuration get edge network forbidden response +func (o *EdgeNetworkConfigurationGetEdgeNetworkForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkForbidden) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge network configuration get edge network not found response +func (o *EdgeNetworkConfigurationGetEdgeNetworkNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkNotFound) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge network configuration get edge network internal server error response +func (o *EdgeNetworkConfigurationGetEdgeNetworkInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge network configuration get edge network gateway timeout response +func (o *EdgeNetworkConfigurationGetEdgeNetworkGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] edgeNetworkConfigurationGetEdgeNetworkGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkConfigurationGetEdgeNetworkDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration get edge network default response -func (o *EdgeNetworkConfigurationGetEdgeNetworkDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration get edge network default response has a 2xx status code func (o *EdgeNetworkConfigurationGetEdgeNetworkDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkConfigurationGetEdgeNetworkDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge network configuration get edge network default response +func (o *EdgeNetworkConfigurationGetEdgeNetworkDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationGetEdgeNetworkDefault) Error() string { return fmt.Sprintf("[GET /v1/networks/id/{id}][%d] EdgeNetworkConfiguration_GetEdgeNetwork default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_query_edge_networks_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_query_edge_networks_responses.go index cfdab5e..5865ef2 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_query_edge_networks_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_query_edge_networks_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration query edge networks o k response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksOK) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksBadRequest) IsCode(code int) b return code == 400 } +// Code gets the status code for the edge network configuration query edge networks bad request response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksBadRequest) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge network configuration query edge networks unauthorized response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge network configuration query edge networks forbidden response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksForbidden) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge network configuration query edge networks internal server error response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge network configuration query edge networks gateway timeout response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] edgeNetworkConfigurationQueryEdgeNetworksGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkConfigurationQueryEdgeNetworksDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration query edge networks default response -func (o *EdgeNetworkConfigurationQueryEdgeNetworksDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration query edge networks default response has a 2xx status code func (o *EdgeNetworkConfigurationQueryEdgeNetworksDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkConfigurationQueryEdgeNetworksDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge network configuration query edge networks default response +func (o *EdgeNetworkConfigurationQueryEdgeNetworksDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationQueryEdgeNetworksDefault) Error() string { return fmt.Sprintf("[GET /v1/networks][%d] EdgeNetworkConfiguration_QueryEdgeNetworks default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_configuration/edge_network_configuration_update_edge_network_responses.go b/swagger_client/edge_network_configuration/edge_network_configuration_update_edge_network_responses.go index 4613ca3..e02f3ef 100644 --- a/swagger_client/edge_network_configuration/edge_network_configuration_update_edge_network_responses.go +++ b/swagger_client/edge_network_configuration/edge_network_configuration_update_edge_network_responses.go @@ -122,6 +122,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge network configuration update edge network o k response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkOK) Code() int { + return 200 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkOK) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge network configuration update edge network unauthorized response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge network configuration update edge network forbidden response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkForbidden) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the edge network configuration update edge network not found response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkNotFound) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the edge network configuration update edge network conflict response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkConflict) Code() int { + return 409 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkConflict) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge network configuration update edge network internal server error response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge network configuration update edge network gateway timeout response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] edgeNetworkConfigurationUpdateEdgeNetworkGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type EdgeNetworkConfigurationUpdateEdgeNetworkDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network configuration update edge network default response -func (o *EdgeNetworkConfigurationUpdateEdgeNetworkDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network configuration update edge network default response has a 2xx status code func (o *EdgeNetworkConfigurationUpdateEdgeNetworkDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge network configuration update edge network default response +func (o *EdgeNetworkConfigurationUpdateEdgeNetworkDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkConfigurationUpdateEdgeNetworkDefault) Error() string { return fmt.Sprintf("[PUT /v1/networks/id/{id}][%d] EdgeNetworkConfiguration_UpdateEdgeNetwork default %+v", o._statusCode, o.Payload) } @@ -930,6 +965,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateDNSList(c for i := 0; i < len(o.DNSList); i++ { if o.DNSList[i] != nil { + + if swag.IsZero(o.DNSList[i]) { // not required + return nil + } + if err := o.DNSList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "dnsList" + "." + strconv.Itoa(i)) @@ -948,6 +988,7 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateDNSList(c func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if o.IP != nil { + if err := o.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "ip") @@ -964,6 +1005,7 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateIP(ctx co func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if o.Kind != nil { + if err := o.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "kind") @@ -980,6 +1022,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateKind(ctx func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateProxy(ctx context.Context, formats strfmt.Registry) error { if o.Proxy != nil { + + if swag.IsZero(o.Proxy) { // not required + return nil + } + if err := o.Proxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "proxy") @@ -996,6 +1043,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateProxy(ctx func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1012,6 +1064,11 @@ func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateRevision( func (o *EdgeNetworkConfigurationUpdateEdgeNetworkBody) contextValidateWireless(ctx context.Context, formats strfmt.Registry) error { if o.Wireless != nil { + + if swag.IsZero(o.Wireless) { // not required + return nil + } + if err := o.Wireless.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "wireless") diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_create_edge_network_instance_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_create_edge_network_instance_responses.go index 16ab9a7..be879c3 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_create_edge_network_instance_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_create_edge_network_instance_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceOK) IsCode(cod return code == 200 } +// Code gets the status code for the edge network instance configuration create edge network instance o k response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceOK) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceBadRequest) Is return code == 400 } +// Code gets the status code for the edge network instance configuration create edge network instance bad request response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceBadRequest) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceUnauthorized) return code == 401 } +// Code gets the status code for the edge network instance configuration create edge network instance unauthorized response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceForbidden) IsC return code == 403 } +// Code gets the status code for the edge network instance configuration create edge network instance forbidden response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceForbidden) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceConflict) IsCo return code == 409 } +// Code gets the status code for the edge network instance configuration create edge network instance conflict response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceConflict) Code() int { + return 409 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceConflict) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceInternalServer return code == 500 } +// Code gets the status code for the edge network instance configuration create edge network instance internal server error response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceGatewayTimeout return code == 504 } +// Code gets the status code for the edge network instance configuration create edge network instance gateway timeout response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] edgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration create edge network instance default response -func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration create edge network instance default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault) IsCod return o._statusCode == code } +// Code gets the status code for the edge network instance configuration create edge network instance default response +func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationCreateEdgeNetworkInstanceDefault) Error() string { return fmt.Sprintf("[POST /v1/netinsts][%d] EdgeNetworkInstanceConfiguration_CreateEdgeNetworkInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_delete_edge_network_instance_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_delete_edge_network_instance_responses.go index f7a11b8..25042ba 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_delete_edge_network_instance_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_delete_edge_network_instance_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceOK) IsCode(cod return code == 200 } +// Code gets the status code for the edge network instance configuration delete edge network instance o k response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceOK) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceUnauthorized) return code == 401 } +// Code gets the status code for the edge network instance configuration delete edge network instance unauthorized response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceForbidden) IsC return code == 403 } +// Code gets the status code for the edge network instance configuration delete edge network instance forbidden response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceNotFound) IsCo return code == 404 } +// Code gets the status code for the edge network instance configuration delete edge network instance not found response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceInternalServer return code == 500 } +// Code gets the status code for the edge network instance configuration delete edge network instance internal server error response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceGatewayTimeout return code == 504 } +// Code gets the status code for the edge network instance configuration delete edge network instance gateway timeout response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration delete edge network instance default response -func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration delete edge network instance default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault) IsCod return o._statusCode == code } +// Code gets the status code for the edge network instance configuration delete edge network instance default response +func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationDeleteEdgeNetworkInstanceDefault) Error() string { return fmt.Sprintf("[DELETE /v1/netinsts/id/{id}][%d] EdgeNetworkInstanceConfiguration_DeleteEdgeNetworkInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_by_name_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_by_name_responses.go index 0ed1653..7f248c9 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_by_name_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameOK) IsCode( return code == 200 } +// Code gets the status code for the edge network instance configuration get edge network instance by name o k response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameUnauthorize return code == 401 } +// Code gets the status code for the edge network instance configuration get edge network instance by name unauthorized response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameForbidden) return code == 403 } +// Code gets the status code for the edge network instance configuration get edge network instance by name forbidden response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameNotFound) I return code == 404 } +// Code gets the status code for the edge network instance configuration get edge network instance by name not found response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameInternalSer return code == 500 } +// Code gets the status code for the edge network instance configuration get edge network instance by name internal server error response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameGatewayTime return code == 504 } +// Code gets the status code for the edge network instance configuration get edge network instance by name gateway timeout response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault struct Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration get edge network instance by name default response -func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration get edge network instance by name default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault) Is return o._statusCode == code } +// Code gets the status code for the edge network instance configuration get edge network instance by name default response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}][%d] EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstanceByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_responses.go index 4b9a07a..c93a924 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_get_edge_network_instance_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceOK) IsCode(code i return code == 200 } +// Code gets the status code for the edge network instance configuration get edge network instance o k response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceUnauthorized) IsC return code == 401 } +// Code gets the status code for the edge network instance configuration get edge network instance unauthorized response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceForbidden) IsCode return code == 403 } +// Code gets the status code for the edge network instance configuration get edge network instance forbidden response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceNotFound) IsCode( return code == 404 } +// Code gets the status code for the edge network instance configuration get edge network instance not found response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceNotFound) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceInternalServerErr return code == 500 } +// Code gets the status code for the edge network instance configuration get edge network instance internal server error response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceGatewayTimeout) I return code == 504 } +// Code gets the status code for the edge network instance configuration get edge network instance gateway timeout response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationGetEdgeNetworkInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration get edge network instance default response -func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration get edge network instance default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault) IsCode(c return o._statusCode == code } +// Code gets the status code for the edge network instance configuration get edge network instance default response +func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationGetEdgeNetworkInstanceDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}][%d] EdgeNetworkInstanceConfiguration_GetEdgeNetworkInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_query_edge_network_instances_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_query_edge_network_instances_responses.go index b180956..5421d7d 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_query_edge_network_instances_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_query_edge_network_instances_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesOK) IsCode(cod return code == 200 } +// Code gets the status code for the edge network instance configuration query edge network instances o k response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesBadRequest) Is return code == 400 } +// Code gets the status code for the edge network instance configuration query edge network instances bad request response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesUnauthorized) return code == 401 } +// Code gets the status code for the edge network instance configuration query edge network instances unauthorized response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesForbidden) IsC return code == 403 } +// Code gets the status code for the edge network instance configuration query edge network instances forbidden response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesInternalServer return code == 500 } +// Code gets the status code for the edge network instance configuration query edge network instances internal server error response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesGatewayTimeout return code == 504 } +// Code gets the status code for the edge network instance configuration query edge network instances gateway timeout response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] edgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration query edge network instances default response -func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration query edge network instances default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault) IsCod return o._statusCode == code } +// Code gets the status code for the edge network instance configuration query edge network instances default response +func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationQueryEdgeNetworkInstancesDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts][%d] EdgeNetworkInstanceConfiguration_QueryEdgeNetworkInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_update_edge_network_instance_responses.go b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_update_edge_network_instance_responses.go index e79c9d2..f3f888d 100644 --- a/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_update_edge_network_instance_responses.go +++ b/swagger_client/edge_network_instance_configuration/edge_network_instance_configuration_update_edge_network_instance_responses.go @@ -122,6 +122,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceOK) IsCode(cod return code == 200 } +// Code gets the status code for the edge network instance configuration update edge network instance o k response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceUnauthorized) return code == 401 } +// Code gets the status code for the edge network instance configuration update edge network instance unauthorized response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceForbidden) IsC return code == 403 } +// Code gets the status code for the edge network instance configuration update edge network instance forbidden response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceNotFound) IsCo return code == 404 } +// Code gets the status code for the edge network instance configuration update edge network instance not found response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceConflict) IsCo return code == 409 } +// Code gets the status code for the edge network instance configuration update edge network instance conflict response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceConflict) Code() int { + return 409 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceInternalServer return code == 500 } +// Code gets the status code for the edge network instance configuration update edge network instance internal server error response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceGatewayTimeout return code == 504 } +// Code gets the status code for the edge network instance configuration update edge network instance gateway timeout response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] edgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance configuration update edge network instance default response -func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance configuration update edge network instance default response has a 2xx status code func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault) IsCod return o._statusCode == code } +// Code gets the status code for the edge network instance configuration update edge network instance default response +func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/netinsts/id/{id}][%d] EdgeNetworkInstanceConfiguration_UpdateEdgeNetworkInstance default %+v", o._statusCode, o.Payload) } @@ -1031,6 +1066,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV for i := 0; i < len(o.DNSList); i++ { if o.DNSList[i] != nil { + + if swag.IsZero(o.DNSList[i]) { // not required + return nil + } + if err := o.DNSList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "dnsList" + "." + strconv.Itoa(i)) @@ -1049,6 +1089,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if o.IP != nil { + + if swag.IsZero(o.IP) { // not required + return nil + } + if err := o.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "ip") @@ -1065,6 +1110,7 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if o.Kind != nil { + if err := o.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "kind") @@ -1081,6 +1127,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateLisp(ctx context.Context, formats strfmt.Registry) error { if o.Lisp != nil { + + if swag.IsZero(o.Lisp) { // not required + return nil + } + if err := o.Lisp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "lisp") @@ -1097,6 +1148,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateOpaque(ctx context.Context, formats strfmt.Registry) error { if o.Opaque != nil { + + if swag.IsZero(o.Opaque) { // not required + return nil + } + if err := o.Opaque.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "opaque") @@ -1113,6 +1169,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1129,6 +1190,11 @@ func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextV func (o *EdgeNetworkInstanceConfigurationUpdateEdgeNetworkInstanceBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + + if swag.IsZero(o.Type) { // not required + return nil + } + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_by_name_responses.go b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_by_name_responses.go index 41e0794..be252c7 100644 --- a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_by_name_responses.go +++ b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameOK) IsCode(c return code == 200 } +// Code gets the status code for the edge network instance status get edge network instance status by name o k response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameUnauthorized return code == 401 } +// Code gets the status code for the edge network instance status get edge network instance status by name unauthorized response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameForbidden) I return code == 403 } +// Code gets the status code for the edge network instance status get edge network instance status by name forbidden response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameNotFound) Is return code == 404 } +// Code gets the status code for the edge network instance status get edge network instance status by name not found response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameInternalServ return code == 500 } +// Code gets the status code for the edge network instance status get edge network instance status by name internal server error response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameGatewayTimeo return code == 504 } +// Code gets the status code for the edge network instance status get edge network instance status by name gateway timeout response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance status get edge network instance status by name default response -func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance status get edge network instance status by name default response has a 2xx status code func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault) IsC return o._statusCode == code } +// Code gets the status code for the edge network instance status get edge network instance status by name default response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/name/{name}/status][%d] EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_responses.go b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_responses.go index e096ddc..4a9006d 100644 --- a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_responses.go +++ b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_edge_network_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusOK) IsCode(code in return code == 200 } +// Code gets the status code for the edge network instance status get edge network instance status o k response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusUnauthorized) IsCo return code == 401 } +// Code gets the status code for the edge network instance status get edge network instance status unauthorized response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusForbidden) IsCode( return code == 403 } +// Code gets the status code for the edge network instance status get edge network instance status forbidden response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusNotFound) IsCode(c return code == 404 } +// Code gets the status code for the edge network instance status get edge network instance status not found response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusNotFound) Code() int { + return 404 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusInternalServerErro return code == 500 } +// Code gets the status code for the edge network instance status get edge network instance status internal server error response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusGatewayTimeout) Is return code == 504 } +// Code gets the status code for the edge network instance status get edge network instance status gateway timeout response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] edgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance status get edge network instance status default response -func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance status get edge network instance status default response has a 2xx status code func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault) IsCode(co return o._statusCode == code } +// Code gets the status code for the edge network instance status get edge network instance status default response +func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceStatusGetEdgeNetworkInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/id/{id}/status][%d] EdgeNetworkInstanceStatus_GetEdgeNetworkInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_network_instance_interface_tags_responses.go b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_network_instance_interface_tags_responses.go index f3f70d6..ce909c6 100644 --- a/swagger_client/edge_network_instance_status/edge_network_instance_status_get_network_instance_interface_tags_responses.go +++ b/swagger_client/edge_network_instance_status/edge_network_instance_status_get_network_instance_interface_tags_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsOK) IsCode(code return code == 200 } +// Code gets the status code for the edge network instance status get network instance interface tags o k response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsBadRequest) IsC return code == 400 } +// Code gets the status code for the edge network instance status get network instance interface tags bad request response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsUnauthorized) I return code == 401 } +// Code gets the status code for the edge network instance status get network instance interface tags unauthorized response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsForbidden) IsCo return code == 403 } +// Code gets the status code for the edge network instance status get network instance interface tags forbidden response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsInternalServerE return code == 500 } +// Code gets the status code for the edge network instance status get network instance interface tags internal server error response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsGatewayTimeout) return code == 504 } +// Code gets the status code for the edge network instance status get network instance interface tags gateway timeout response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] edgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance status get network instance interface tags default response -func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance status get network instance interface tags default response has a 2xx status code func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault) IsCode return o._statusCode == code } +// Code gets the status code for the edge network instance status get network instance interface tags default response +func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceStatusGetNetworkInstanceInterfaceTagsDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/tags][%d] EdgeNetworkInstanceStatus_GetNetworkInstanceInterfaceTags default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_config_responses.go b/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_config_responses.go index dde2c99..f61748a 100644 --- a/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_config_responses.go +++ b/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_config_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigOK) IsCode return code == 200 } +// Code gets the status code for the edge network instance status query edge network instance status config o k response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigBadRequest return code == 400 } +// Code gets the status code for the edge network instance status query edge network instance status config bad request response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigUnauthoriz return code == 401 } +// Code gets the status code for the edge network instance status query edge network instance status config unauthorized response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigForbidden) return code == 403 } +// Code gets the status code for the edge network instance status query edge network instance status config forbidden response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigInternalSe return code == 500 } +// Code gets the status code for the edge network instance status query edge network instance status config internal server error response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigGatewayTim return code == 504 } +// Code gets the status code for the edge network instance status query edge network instance status config gateway timeout response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault struct Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance status query edge network instance status config default response -func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance status query edge network instance status config default response has a 2xx status code func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault) I return o._statusCode == code } +// Code gets the status code for the edge network instance status query edge network instance status config default response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status-config][%d] EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatusConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_responses.go b/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_responses.go index 1edbabc..bffd741 100644 --- a/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_responses.go +++ b/swagger_client/edge_network_instance_status/edge_network_instance_status_query_edge_network_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusOK) IsCode(code return code == 200 } +// Code gets the status code for the edge network instance status query edge network instance status o k response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusOK) Code() int { + return 200 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusBadRequest) IsCo return code == 400 } +// Code gets the status code for the edge network instance status query edge network instance status bad request response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusBadRequest) Code() int { + return 400 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusBadRequest) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusUnauthorized) Is return code == 401 } +// Code gets the status code for the edge network instance status query edge network instance status unauthorized response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusForbidden) IsCod return code == 403 } +// Code gets the status code for the edge network instance status query edge network instance status forbidden response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusInternalServerEr return code == 500 } +// Code gets the status code for the edge network instance status query edge network instance status internal server error response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusGatewayTimeout) return code == 504 } +// Code gets the status code for the edge network instance status query edge network instance status gateway timeout response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] edgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge network instance status query edge network instance status default response -func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge network instance status query edge network instance status default response has a 2xx status code func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault) IsCode( return o._statusCode == code } +// Code gets the status code for the edge network instance status query edge network instance status default response +func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNetworkInstanceStatusQueryEdgeNetworkInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/netinsts/status][%d] EdgeNetworkInstanceStatus_QueryEdgeNetworkInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_activate_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_activate_edge_node_responses.go index 013c8f3..081a9c1 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_activate_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_activate_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration activate edge node o k response +func (o *EdgeNodeConfigurationActivateEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the edge node configuration activate edge node unauthorized response +func (o *EdgeNodeConfigurationActivateEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration activate edge node forbidden response +func (o *EdgeNodeConfigurationActivateEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration activate edge node not found response +func (o *EdgeNodeConfigurationActivateEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration activate edge node conflict response +func (o *EdgeNodeConfigurationActivateEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the edge node configuration activate edge node internal server error response +func (o *EdgeNodeConfigurationActivateEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the edge node configuration activate edge node gateway timeout response +func (o *EdgeNodeConfigurationActivateEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationActivateEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] edgeNodeConfigurationActivateEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationActivateEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration activate edge node default response -func (o *EdgeNodeConfigurationActivateEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration activate edge node default response has a 2xx status code func (o *EdgeNodeConfigurationActivateEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationActivateEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration activate edge node default response +func (o *EdgeNodeConfigurationActivateEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationActivateEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/activate][%d] EdgeNodeConfiguration_ActivateEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_base_os_upgrade_retry_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_base_os_upgrade_retry_edge_node_responses.go index 528c6b8..e4392df 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_base_os_upgrade_retry_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_base_os_upgrade_retry_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node o k response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node unauthorized response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node forbidden response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeNotFound) IsCode(code in return code == 404 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node not found response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeConflict) IsCode(code in return code == 409 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node conflict response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeInternalServerError) IsC return code == 500 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node internal server error response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the edge node configuration base os upgrade retry edge node gateway timeout response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] edgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration base os upgrade retry edge node default response -func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration base os upgrade retry edge node default response has a 2xx status code func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the edge node configuration base os upgrade retry edge node default response +func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationBaseOsUpgradeRetryEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/baseos/upgrade/retry][%d] EdgeNodeConfiguration_BaseOsUpgradeRetryEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_create_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_create_edge_node_responses.go index 058c4db..5adabe5 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_create_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_create_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration create edge node o k response +func (o *EdgeNodeConfigurationCreateEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeOK) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge node configuration create edge node bad request response +func (o *EdgeNodeConfigurationCreateEdgeNodeBadRequest) Code() int { + return 400 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeBadRequest) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node configuration create edge node unauthorized response +func (o *EdgeNodeConfigurationCreateEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration create edge node forbidden response +func (o *EdgeNodeConfigurationCreateEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeForbidden) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration create edge node conflict response +func (o *EdgeNodeConfigurationCreateEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeConflict) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the edge node configuration create edge node internal server error response +func (o *EdgeNodeConfigurationCreateEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the edge node configuration create edge node gateway timeout response +func (o *EdgeNodeConfigurationCreateEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationCreateEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] edgeNodeConfigurationCreateEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationCreateEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration create edge node default response -func (o *EdgeNodeConfigurationCreateEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration create edge node default response has a 2xx status code func (o *EdgeNodeConfigurationCreateEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationCreateEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration create edge node default response +func (o *EdgeNodeConfigurationCreateEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationCreateEdgeNodeDefault) Error() string { return fmt.Sprintf("[POST /v1/devices][%d] EdgeNodeConfiguration_CreateEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_de_activate_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_de_activate_edge_node_responses.go index b864548..98b8d4b 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_de_activate_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_de_activate_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration de activate edge node o k response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the edge node configuration de activate edge node unauthorized response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge node configuration de activate edge node forbidden response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge node configuration de activate edge node not found response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the edge node configuration de activate edge node conflict response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge node configuration de activate edge node internal server error response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge node configuration de activate edge node gateway timeout response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] edgeNodeConfigurationDeActivateEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationDeActivateEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration de activate edge node default response -func (o *EdgeNodeConfigurationDeActivateEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration de activate edge node default response has a 2xx status code func (o *EdgeNodeConfigurationDeActivateEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationDeActivateEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration de activate edge node default response +func (o *EdgeNodeConfigurationDeActivateEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationDeActivateEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/deactivate][%d] EdgeNodeConfiguration_DeActivateEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_delete_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_delete_edge_node_responses.go index 31175e6..292671a 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_delete_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_delete_edge_node_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration delete edge node o k response +func (o *EdgeNodeConfigurationDeleteEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeOK) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node configuration delete edge node unauthorized response +func (o *EdgeNodeConfigurationDeleteEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration delete edge node forbidden response +func (o *EdgeNodeConfigurationDeleteEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration delete edge node not found response +func (o *EdgeNodeConfigurationDeleteEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the edge node configuration delete edge node internal server error response +func (o *EdgeNodeConfigurationDeleteEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the edge node configuration delete edge node gateway timeout response +func (o *EdgeNodeConfigurationDeleteEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] edgeNodeConfigurationDeleteEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationDeleteEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration delete edge node default response -func (o *EdgeNodeConfigurationDeleteEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration delete edge node default response has a 2xx status code func (o *EdgeNodeConfigurationDeleteEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationDeleteEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration delete edge node default response +func (o *EdgeNodeConfigurationDeleteEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationDeleteEdgeNodeDefault) Error() string { return fmt.Sprintf("[DELETE /v1/devices/id/{id}][%d] EdgeNodeConfiguration_DeleteEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_device_interface_tags_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_device_interface_tags_responses.go index cee9a25..4c3e294 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_device_interface_tags_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_device_interface_tags_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get device interface tags o k response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsOK) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsBadRequest) IsCode(code int) return code == 400 } +// Code gets the status code for the edge node configuration get device interface tags bad request response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsBadRequest) Code() int { + return 400 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the edge node configuration get device interface tags unauthorized response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge node configuration get device interface tags forbidden response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the edge node configuration get device interface tags internal server error response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge node configuration get device interface tags gateway timeout response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] edgeNodeConfigurationGetDeviceInterfaceTagsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetDeviceInterfaceTagsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get device interface tags default response -func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get device interface tags default response has a 2xx status code func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the edge node configuration get device interface tags default response +func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetDeviceInterfaceTagsDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/interfaces/tags][%d] EdgeNodeConfiguration_GetDeviceInterfaceTags default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_attestation_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_attestation_responses.go index 1853921..8df94dd 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_attestation_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_attestation_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edge node attestation o k response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the edge node configuration get edge node attestation unauthorized response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge node configuration get edge node attestation forbidden response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the edge node configuration get edge node attestation not found response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the edge node configuration get edge node attestation internal server error response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge node configuration get edge node attestation gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] edgeNodeConfigurationGetEdgeNodeAttestationGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeNodeAttestationDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edge node attestation default response -func (o *EdgeNodeConfigurationGetEdgeNodeAttestationDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edge node attestation default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeNodeAttestationDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeAttestationDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the edge node configuration get edge node attestation default response +func (o *EdgeNodeConfigurationGetEdgeNodeAttestationDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeNodeAttestationDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/attestation][%d] EdgeNodeConfiguration_GetEdgeNodeAttestation default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_name_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_name_responses.go index 98c5403..22e874c 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_name_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edge node by name o k response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the edge node configuration get edge node by name unauthorized response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge node configuration get edge node by name forbidden response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration get edge node by name not found response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge node configuration get edge node by name internal server error response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge node configuration get edge node by name gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] edgeNodeConfigurationGetEdgeNodeByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeNodeByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edge node by name default response -func (o *EdgeNodeConfigurationGetEdgeNodeByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edge node by name default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeNodeByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration get edge node by name default response +func (o *EdgeNodeConfigurationGetEdgeNodeByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeNodeByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}][%d] EdgeNodeConfiguration_GetEdgeNodeByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_serial_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_serial_responses.go index ec3c397..2d76d8b 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_serial_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_by_serial_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edge node by serial o k response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialOK) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge node configuration get edge node by serial unauthorized response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the edge node configuration get edge node by serial forbidden response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge node configuration get edge node by serial not found response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the edge node configuration get edge node by serial internal server error response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the edge node configuration get edge node by serial gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] edgeNodeConfigurationGetEdgeNodeBySerialGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeNodeBySerialDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edge node by serial default response -func (o *EdgeNodeConfigurationGetEdgeNodeBySerialDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edge node by serial default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeNodeBySerialDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeBySerialDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge node configuration get edge node by serial default response +func (o *EdgeNodeConfigurationGetEdgeNodeBySerialDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeNodeBySerialDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/serial/{serialno}][%d] EdgeNodeConfiguration_GetEdgeNodeBySerial default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_onboarding_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_onboarding_responses.go index 2067c0d..7220887 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_onboarding_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_onboarding_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edge node onboarding o k response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingUnauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the edge node configuration get edge node onboarding unauthorized response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingForbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the edge node configuration get edge node onboarding forbidden response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingNotFound) IsCode(code int) bo return code == 404 } +// Code gets the status code for the edge node configuration get edge node onboarding not found response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingInternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the edge node configuration get edge node onboarding internal server error response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingGatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the edge node configuration get edge node onboarding gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] edgeNodeConfigurationGetEdgeNodeOnboardingGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeNodeOnboardingDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edge node onboarding default response -func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edge node onboarding default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingDefault) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the edge node configuration get edge node onboarding default response +func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeNodeOnboardingDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/onboarding][%d] EdgeNodeConfiguration_GetEdgeNodeOnboarding default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_responses.go index 6f08d83..b23372c 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edge_node_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edge node o k response +func (o *EdgeNodeConfigurationGetEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeNodeOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node configuration get edge node unauthorized response +func (o *EdgeNodeConfigurationGetEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration get edge node forbidden response +func (o *EdgeNodeConfigurationGetEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeNodeForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration get edge node not found response +func (o *EdgeNodeConfigurationGetEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeNodeNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the edge node configuration get edge node internal server error response +func (o *EdgeNodeConfigurationGetEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node configuration get edge node gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] edgeNodeConfigurationGetEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edge node default response -func (o *EdgeNodeConfigurationGetEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edge node default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration get edge node default response +func (o *EdgeNodeConfigurationGetEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeNodeDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}][%d] EdgeNodeConfiguration_GetEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_get_edgeview_client_script_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_get_edgeview_client_script_responses.go index 78e46d7..8d15b58 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_get_edgeview_client_script_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_get_edgeview_client_script_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration get edgeview client script o k response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the edge node configuration get edgeview client script unauthorized response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge node configuration get edgeview client script forbidden response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge node configuration get edgeview client script not found response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptInternalServerError) IsCode return code == 500 } +// Code gets the status code for the edge node configuration get edgeview client script internal server error response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge node configuration get edgeview client script gateway timeout response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] edgeNodeConfigurationGetEdgeviewClientScriptGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationGetEdgeviewClientScriptDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration get edgeview client script default response -func (o *EdgeNodeConfigurationGetEdgeviewClientScriptDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration get edgeview client script default response has a 2xx status code func (o *EdgeNodeConfigurationGetEdgeviewClientScriptDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationGetEdgeviewClientScriptDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the edge node configuration get edgeview client script default response +func (o *EdgeNodeConfigurationGetEdgeviewClientScriptDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationGetEdgeviewClientScriptDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/edgeview/clientscript][%d] EdgeNodeConfiguration_GetEdgeviewClientScript default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_offboard_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_offboard_responses.go index db61250..5b4f745 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_offboard_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_offboard_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationOffboardOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration offboard o k response +func (o *EdgeNodeConfigurationOffboardOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationOffboardOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationOffboardUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node configuration offboard unauthorized response +func (o *EdgeNodeConfigurationOffboardUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationOffboardUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationOffboardForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration offboard forbidden response +func (o *EdgeNodeConfigurationOffboardForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationOffboardForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationOffboardNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration offboard not found response +func (o *EdgeNodeConfigurationOffboardNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationOffboardNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationOffboardInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the edge node configuration offboard internal server error response +func (o *EdgeNodeConfigurationOffboardInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationOffboardInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationOffboardGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node configuration offboard gateway timeout response +func (o *EdgeNodeConfigurationOffboardGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationOffboardGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] edgeNodeConfigurationOffboardGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationOffboardDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration offboard default response -func (o *EdgeNodeConfigurationOffboardDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration offboard default response has a 2xx status code func (o *EdgeNodeConfigurationOffboardDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationOffboardDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration offboard default response +func (o *EdgeNodeConfigurationOffboardDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationOffboardDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/Offboard][%d] EdgeNodeConfiguration_Offboard default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_prepare_power_off_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_prepare_power_off_responses.go index 37372ce..50b992d 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_prepare_power_off_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_prepare_power_off_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration prepare power off o k response +func (o *EdgeNodeConfigurationPreparePowerOffOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationPreparePowerOffOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node configuration prepare power off unauthorized response +func (o *EdgeNodeConfigurationPreparePowerOffUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationPreparePowerOffUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration prepare power off forbidden response +func (o *EdgeNodeConfigurationPreparePowerOffForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationPreparePowerOffForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration prepare power off not found response +func (o *EdgeNodeConfigurationPreparePowerOffNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationPreparePowerOffNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration prepare power off conflict response +func (o *EdgeNodeConfigurationPreparePowerOffConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationPreparePowerOffConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffInternalServerError) IsCode(code in return code == 500 } +// Code gets the status code for the edge node configuration prepare power off internal server error response +func (o *EdgeNodeConfigurationPreparePowerOffInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationPreparePowerOffInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffGatewayTimeout) IsCode(code int) bo return code == 504 } +// Code gets the status code for the edge node configuration prepare power off gateway timeout response +func (o *EdgeNodeConfigurationPreparePowerOffGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationPreparePowerOffGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] edgeNodeConfigurationPreparePowerOffGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationPreparePowerOffDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration prepare power off default response -func (o *EdgeNodeConfigurationPreparePowerOffDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration prepare power off default response has a 2xx status code func (o *EdgeNodeConfigurationPreparePowerOffDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationPreparePowerOffDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration prepare power off default response +func (o *EdgeNodeConfigurationPreparePowerOffDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationPreparePowerOffDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/preparepoweroff][%d] EdgeNodeConfiguration_PreparePowerOff default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_query_edge_nodes_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_query_edge_nodes_responses.go index e5c14a7..6ee929d 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_query_edge_nodes_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_query_edge_nodes_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration query edge nodes o k response +func (o *EdgeNodeConfigurationQueryEdgeNodesOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesOK) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge node configuration query edge nodes bad request response +func (o *EdgeNodeConfigurationQueryEdgeNodesBadRequest) Code() int { + return 400 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node configuration query edge nodes unauthorized response +func (o *EdgeNodeConfigurationQueryEdgeNodesUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration query edge nodes forbidden response +func (o *EdgeNodeConfigurationQueryEdgeNodesForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the edge node configuration query edge nodes internal server error response +func (o *EdgeNodeConfigurationQueryEdgeNodesInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the edge node configuration query edge nodes gateway timeout response +func (o *EdgeNodeConfigurationQueryEdgeNodesGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationQueryEdgeNodesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] edgeNodeConfigurationQueryEdgeNodesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeConfigurationQueryEdgeNodesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration query edge nodes default response -func (o *EdgeNodeConfigurationQueryEdgeNodesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration query edge nodes default response has a 2xx status code func (o *EdgeNodeConfigurationQueryEdgeNodesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeConfigurationQueryEdgeNodesDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration query edge nodes default response +func (o *EdgeNodeConfigurationQueryEdgeNodesDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationQueryEdgeNodesDefault) Error() string { return fmt.Sprintf("[GET /v1/devices][%d] EdgeNodeConfiguration_QueryEdgeNodes default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_reboot_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_reboot_responses.go index e8a86d2..9af951a 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_reboot_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_reboot_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationRebootOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration reboot o k response +func (o *EdgeNodeConfigurationRebootOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationRebootOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationRebootUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node configuration reboot unauthorized response +func (o *EdgeNodeConfigurationRebootUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationRebootUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationRebootForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration reboot forbidden response +func (o *EdgeNodeConfigurationRebootForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationRebootForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationRebootNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration reboot not found response +func (o *EdgeNodeConfigurationRebootNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationRebootNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationRebootConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration reboot conflict response +func (o *EdgeNodeConfigurationRebootConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationRebootConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationRebootInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the edge node configuration reboot internal server error response +func (o *EdgeNodeConfigurationRebootInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationRebootInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationRebootGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node configuration reboot gateway timeout response +func (o *EdgeNodeConfigurationRebootGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationRebootGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] edgeNodeConfigurationRebootGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationRebootDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration reboot default response -func (o *EdgeNodeConfigurationRebootDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration reboot default response has a 2xx status code func (o *EdgeNodeConfigurationRebootDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationRebootDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration reboot default response +func (o *EdgeNodeConfigurationRebootDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationRebootDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/reboot][%d] EdgeNodeConfiguration_Reboot default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_start_debug_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_start_debug_edge_node_responses.go index 0e33673..090ee66 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_start_debug_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_start_debug_edge_node_responses.go @@ -119,6 +119,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration start debug edge node o k response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeOK %+v", 200, o.Payload) } @@ -182,6 +187,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the edge node configuration start debug edge node unauthorized response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -245,6 +255,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge node configuration start debug edge node forbidden response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeForbidden %+v", 403, o.Payload) } @@ -308,6 +323,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge node configuration start debug edge node not found response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeNotFound %+v", 404, o.Payload) } @@ -371,6 +391,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the edge node configuration start debug edge node conflict response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeConflict %+v", 409, o.Payload) } @@ -434,6 +459,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge node configuration start debug edge node internal server error response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -497,6 +527,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge node configuration start debug edge node gateway timeout response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] edgeNodeConfigurationStartDebugEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -539,11 +574,6 @@ type EdgeNodeConfigurationStartDebugEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration start debug edge node default response -func (o *EdgeNodeConfigurationStartDebugEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration start debug edge node default response has a 2xx status code func (o *EdgeNodeConfigurationStartDebugEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -569,6 +599,11 @@ func (o *EdgeNodeConfigurationStartDebugEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration start debug edge node default response +func (o *EdgeNodeConfigurationStartDebugEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationStartDebugEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/enable][%d] EdgeNodeConfiguration_StartDebugEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_start_edgeview_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_start_edgeview_edge_node_responses.go index 8c3dad2..489636d 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_start_edgeview_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_start_edgeview_edge_node_responses.go @@ -119,6 +119,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration start edgeview edge node o k response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeOK %+v", 200, o.Payload) } @@ -182,6 +187,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeUnauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the edge node configuration start edgeview edge node unauthorized response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -245,6 +255,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeForbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the edge node configuration start edgeview edge node forbidden response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeForbidden %+v", 403, o.Payload) } @@ -308,6 +323,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeNotFound) IsCode(code int) bo return code == 404 } +// Code gets the status code for the edge node configuration start edgeview edge node not found response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeNotFound %+v", 404, o.Payload) } @@ -371,6 +391,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeConflict) IsCode(code int) bo return code == 409 } +// Code gets the status code for the edge node configuration start edgeview edge node conflict response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeConflict %+v", 409, o.Payload) } @@ -434,6 +459,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeInternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the edge node configuration start edgeview edge node internal server error response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -497,6 +527,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeGatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the edge node configuration start edgeview edge node gateway timeout response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] edgeNodeConfigurationStartEdgeviewEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -539,11 +574,6 @@ type EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration start edgeview edge node default response -func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration start edgeview edge node default response has a 2xx status code func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -569,6 +599,11 @@ func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the edge node configuration start edgeview edge node default response +func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationStartEdgeviewEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/enable][%d] EdgeNodeConfiguration_StartEdgeviewEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_stop_debug_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_stop_debug_edge_node_responses.go index 20ad02e..0c25cde 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_stop_debug_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_stop_debug_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration stop debug edge node o k response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the edge node configuration stop debug edge node unauthorized response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge node configuration stop debug edge node forbidden response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration stop debug edge node not found response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration stop debug edge node conflict response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge node configuration stop debug edge node internal server error response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge node configuration stop debug edge node gateway timeout response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] edgeNodeConfigurationStopDebugEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationStopDebugEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration stop debug edge node default response -func (o *EdgeNodeConfigurationStopDebugEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration stop debug edge node default response has a 2xx status code func (o *EdgeNodeConfigurationStopDebugEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationStopDebugEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration stop debug edge node default response +func (o *EdgeNodeConfigurationStopDebugEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationStopDebugEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/debug/disable][%d] EdgeNodeConfiguration_StopDebugEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_stop_edgeview_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_stop_edgeview_edge_node_responses.go index cce7d07..3467452 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_stop_edgeview_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_stop_edgeview_edge_node_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration stop edgeview edge node o k response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge node configuration stop edgeview edge node unauthorized response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge node configuration stop edgeview edge node forbidden response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the edge node configuration stop edgeview edge node not found response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the edge node configuration stop edgeview edge node conflict response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge node configuration stop edgeview edge node internal server error response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge node configuration stop edgeview edge node gateway timeout response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] edgeNodeConfigurationStopEdgeviewEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration stop edgeview edge node default response -func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration stop edgeview edge node default response has a 2xx status code func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge node configuration stop edgeview edge node default response +func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationStopEdgeviewEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/edgeview/disable][%d] EdgeNodeConfiguration_StopEdgeviewEdgeNode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s2_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s2_responses.go index 41f390c..21a0155 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s2_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s2_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration update edge node base o s2 o k response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2OK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2OK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2OK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Unauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the edge node configuration update edge node base o s2 unauthorized response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Unauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Unauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2Unauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Forbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the edge node configuration update edge node base o s2 forbidden response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Forbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Forbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2Forbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2NotFound) IsCode(code int) bo return code == 404 } +// Code gets the status code for the edge node configuration update edge node base o s2 not found response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2NotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2NotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2NotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Conflict) IsCode(code int) bo return code == 409 } +// Code gets the status code for the edge node configuration update edge node base o s2 conflict response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Conflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Conflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2Conflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2InternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the edge node configuration update edge node base o s2 internal server error response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2InternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2InternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2InternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2GatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the edge node configuration update edge node base o s2 gateway timeout response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2GatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS2GatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration update edge node base o s2 default response -func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration update edge node base o s2 default response has a 2xx status code func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the edge node configuration update edge node base o s2 default response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS2Default) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/publish][%d] EdgeNodeConfiguration_UpdateEdgeNodeBaseOS2 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s3_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s3_responses.go index 4349215..39254b4 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s3_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s3_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration update edge node base o s3 o k response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3OK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3OK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3OK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Unauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the edge node configuration update edge node base o s3 unauthorized response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Unauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Unauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3Unauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Forbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the edge node configuration update edge node base o s3 forbidden response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Forbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Forbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3Forbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3NotFound) IsCode(code int) bo return code == 404 } +// Code gets the status code for the edge node configuration update edge node base o s3 not found response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3NotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3NotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3NotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Conflict) IsCode(code int) bo return code == 409 } +// Code gets the status code for the edge node configuration update edge node base o s3 conflict response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Conflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Conflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3Conflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3InternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the edge node configuration update edge node base o s3 internal server error response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3InternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3InternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3InternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3GatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the edge node configuration update edge node base o s3 gateway timeout response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3GatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3GatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOS3GatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration update edge node base o s3 default response -func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration update edge node base o s3 default response has a 2xx status code func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the edge node configuration update edge node base o s3 default response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOS3Default) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/unpublish][%d] EdgeNodeConfiguration_UpdateEdgeNodeBaseOS3 default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s_responses.go index df8d1ef..6d39a99 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_base_o_s_responses.go @@ -117,6 +117,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration update edge node base o s o k response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge node configuration update edge node base o s unauthorized response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the edge node configuration update edge node base o s forbidden response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the edge node configuration update edge node base o s not found response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the edge node configuration update edge node base o s conflict response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the edge node configuration update edge node base o s internal server error response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the edge node configuration update edge node base o s gateway timeout response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] edgeNodeConfigurationUpdateEdgeNodeBaseOSGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration update edge node base o s default response -func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration update edge node base o s default response has a 2xx status code func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge node configuration update edge node base o s default response +func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeBaseOSDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}/apply][%d] EdgeNodeConfiguration_UpdateEdgeNodeBaseOS default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_responses.go b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_responses.go index 58f3742..2dfa0e1 100644 --- a/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_responses.go +++ b/swagger_client/edge_node_configuration/edge_node_configuration_update_edge_node_responses.go @@ -122,6 +122,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node configuration update edge node o k response +func (o *EdgeNodeConfigurationUpdateEdgeNodeOK) Code() int { + return 200 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeOK) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node configuration update edge node unauthorized response +func (o *EdgeNodeConfigurationUpdateEdgeNodeUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node configuration update edge node forbidden response +func (o *EdgeNodeConfigurationUpdateEdgeNodeForbidden) Code() int { + return 403 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeForbidden) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node configuration update edge node not found response +func (o *EdgeNodeConfigurationUpdateEdgeNodeNotFound) Code() int { + return 404 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeNotFound) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the edge node configuration update edge node conflict response +func (o *EdgeNodeConfigurationUpdateEdgeNodeConflict) Code() int { + return 409 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeConflict) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the edge node configuration update edge node internal server error response +func (o *EdgeNodeConfigurationUpdateEdgeNodeInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the edge node configuration update edge node gateway timeout response +func (o *EdgeNodeConfigurationUpdateEdgeNodeGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] edgeNodeConfigurationUpdateEdgeNodeGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type EdgeNodeConfigurationUpdateEdgeNodeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node configuration update edge node default response -func (o *EdgeNodeConfigurationUpdateEdgeNodeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node configuration update edge node default response has a 2xx status code func (o *EdgeNodeConfigurationUpdateEdgeNodeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node configuration update edge node default response +func (o *EdgeNodeConfigurationUpdateEdgeNodeDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeConfigurationUpdateEdgeNodeDefault) Error() string { return fmt.Sprintf("[PUT /v1/devices/id/{id}][%d] EdgeNodeConfiguration_UpdateEdgeNode default %+v", o._statusCode, o.Payload) } @@ -1174,6 +1209,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) ContextValidate(ctx context.Co func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if o.AdminState != nil { + + if swag.IsZero(o.AdminState) { // not required + return nil + } + if err := o.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "adminState") @@ -1192,6 +1232,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateBaseImage(ctx c for i := 0; i < len(o.BaseImage); i++ { if o.BaseImage[i] != nil { + + if swag.IsZero(o.BaseImage[i]) { // not required + return nil + } + if err := o.BaseImage[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "baseImage" + "." + strconv.Itoa(i)) @@ -1212,6 +1257,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateConfigItem(ctx for i := 0; i < len(o.ConfigItem); i++ { if o.ConfigItem[i] != nil { + + if swag.IsZero(o.ConfigItem[i]) { // not required + return nil + } + if err := o.ConfigItem[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "configItem" + "." + strconv.Itoa(i)) @@ -1230,6 +1280,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateConfigItem(ctx func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDebugKnob(ctx context.Context, formats strfmt.Registry) error { if o.DebugKnob != nil { + + if swag.IsZero(o.DebugKnob) { // not required + return nil + } + if err := o.DebugKnob.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "debugKnob") @@ -1246,6 +1301,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDebugKnob(ctx c func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDefaultNetInst(ctx context.Context, formats strfmt.Registry) error { if o.DefaultNetInst != nil { + + if swag.IsZero(o.DefaultNetInst) { // not required + return nil + } + if err := o.DefaultNetInst.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "defaultNetInst") @@ -1262,6 +1322,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDefaultNetInst( func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDevLocation(ctx context.Context, formats strfmt.Registry) error { if o.DevLocation != nil { + + if swag.IsZero(o.DevLocation) { // not required + return nil + } + if err := o.DevLocation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "devLocation") @@ -1278,6 +1343,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDevLocation(ctx func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDlisp(ctx context.Context, formats strfmt.Registry) error { if o.Dlisp != nil { + + if swag.IsZero(o.Dlisp) { // not required + return nil + } + if err := o.Dlisp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "dlisp") @@ -1294,6 +1364,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateDlisp(ctx conte func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateEdgeviewconfig(ctx context.Context, formats strfmt.Registry) error { if o.Edgeviewconfig != nil { + + if swag.IsZero(o.Edgeviewconfig) { // not required + return nil + } + if err := o.Edgeviewconfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "edgeviewconfig") @@ -1312,6 +1387,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateInterfaces(ctx for i := 0; i < len(o.Interfaces); i++ { if o.Interfaces[i] != nil { + + if swag.IsZero(o.Interfaces[i]) { // not required + return nil + } + if err := o.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "interfaces" + "." + strconv.Itoa(i)) @@ -1330,6 +1410,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateInterfaces(ctx func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateOnboarding(ctx context.Context, formats strfmt.Registry) error { if o.Onboarding != nil { + + if swag.IsZero(o.Onboarding) { // not required + return nil + } + if err := o.Onboarding.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "onboarding") @@ -1346,6 +1431,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateOnboarding(ctx func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1362,6 +1452,11 @@ func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateRevision(ctx co func (o *EdgeNodeConfigurationUpdateEdgeNodeBody) contextValidateUtype(ctx context.Context, formats strfmt.Registry) error { if o.Utype != nil { + + if swag.IsZero(o.Utype) { // not required + return nil + } + if err := o.Utype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "utype") diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_by_name_responses.go index adf8b6c..e4bc376 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the edge node status get edge node edgeview status by name o k response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the edge node status get edge node edgeview status by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the edge node status get edge node edgeview status by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge node status get edge node edgeview status by name not found response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameInternalServerError) IsCod return code == 500 } +// Code gets the status code for the edge node status get edge node edgeview status by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the edge node status get edge node edgeview status by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node edgeview status by name default response -func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node edgeview status by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the edge node status get edge node edgeview status by name default response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/edgeview][%d] EdgeNodeStatus_GetEdgeNodeEdgeviewStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_responses.go index 9bd4b4d..4e3e404 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_edgeview_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node edgeview status o k response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the edge node status get edge node edgeview status unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the edge node status get edge node edgeview status forbidden response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge node status get edge node edgeview status not found response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the edge node status get edge node edgeview status internal server error response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the edge node status get edge node edgeview status gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] edgeNodeStatusGetEdgeNodeEdgeviewStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node edgeview status default response -func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node edgeview status default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node edgeview status default response +func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeEdgeviewStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/edgeview][%d] EdgeNodeStatus_GetEdgeNodeEdgeviewStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_by_name_responses.go index b343387..1a91c21 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node events by name o k response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the edge node status get edge node events by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node events by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node events by name not found response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the edge node status get edge node events by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the edge node status get edge node events by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] edgeNodeStatusGetEdgeNodeEventsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeEventsByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node events by name default response -func (o *EdgeNodeStatusGetEdgeNodeEventsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node events by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeEventsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node events by name default response +func (o *EdgeNodeStatusGetEdgeNodeEventsByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeEventsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/events][%d] EdgeNodeStatus_GetEdgeNodeEventsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_responses.go index 46909ae..5dacfde 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_events_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node events o k response +func (o *EdgeNodeStatusGetEdgeNodeEventsOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node status get edge node events unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeEventsUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node events forbidden response +func (o *EdgeNodeStatusGetEdgeNodeEventsForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node events not found response +func (o *EdgeNodeStatusGetEdgeNodeEventsNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsInternalServerError) IsCode(code int) bo return code == 500 } +// Code gets the status code for the edge node status get edge node events internal server error response +func (o *EdgeNodeStatusGetEdgeNodeEventsInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node status get edge node events gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeEventsGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeEventsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] edgeNodeStatusGetEdgeNodeEventsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeEventsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node events default response -func (o *EdgeNodeStatusGetEdgeNodeEventsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node events default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeEventsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeEventsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node events default response +func (o *EdgeNodeStatusGetEdgeNodeEventsDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeEventsDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/events][%d] EdgeNodeStatus_GetEdgeNodeEvents default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_by_name_responses.go index 098e745..14afe9b 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node info by name o k response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the edge node status get edge node info by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node info by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node info by name not found response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the edge node status get edge node info by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the edge node status get edge node info by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeInfoByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node info by name default response -func (o *EdgeNodeStatusGetEdgeNodeInfoByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node info by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeInfoByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node info by name default response +func (o *EdgeNodeStatusGetEdgeNodeInfoByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeInfoByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/info][%d] EdgeNodeStatus_GetEdgeNodeInfoByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_responses.go index beba7cd..7a73929 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_info_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node info o k response +func (o *EdgeNodeStatusGetEdgeNodeInfoOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node status get edge node info unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeInfoUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node info forbidden response +func (o *EdgeNodeStatusGetEdgeNodeInfoForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node info not found response +func (o *EdgeNodeStatusGetEdgeNodeInfoNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the edge node status get edge node info internal server error response +func (o *EdgeNodeStatusGetEdgeNodeInfoInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node status get edge node info gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeInfoGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeInfoGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] edgeNodeStatusGetEdgeNodeInfoGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeInfoDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node info default response -func (o *EdgeNodeStatusGetEdgeNodeInfoDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node info default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeInfoDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeInfoDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node info default response +func (o *EdgeNodeStatusGetEdgeNodeInfoDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeInfoDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/info][%d] EdgeNodeStatus_GetEdgeNodeInfo default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_by_name_responses.go index 59c7798..a299dba 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node raw status by name o k response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the edge node status get edge node raw status by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the edge node status get edge node raw status by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the edge node status get edge node raw status by name not found response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the edge node status get edge node raw status by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the edge node status get edge node raw status by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node raw status by name default response -func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node raw status by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the edge node status get edge node raw status by name default response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status/metrics/raw][%d] EdgeNodeStatus_GetEdgeNodeRawStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_responses.go index afcd3dd..08ce347 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_raw_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node raw status o k response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node status get edge node raw status unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node raw status forbidden response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node raw status not found response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the edge node status get edge node raw status internal server error response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the edge node status get edge node raw status gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] edgeNodeStatusGetEdgeNodeRawStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeRawStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node raw status default response -func (o *EdgeNodeStatusGetEdgeNodeRawStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node raw status default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeRawStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeRawStatusDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node raw status default response +func (o *EdgeNodeStatusGetEdgeNodeRawStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeRawStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status/metrics/raw][%d] EdgeNodeStatus_GetEdgeNodeRawStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_id_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_id_responses.go index 21455fe..1f58bc8 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_id_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_id_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node resource metrics by Id o k response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the edge node status get edge node resource metrics by Id unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the edge node status get edge node resource metrics by Id forbidden response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the edge node status get edge node resource metrics by Id not found response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDInternalServerError) IsCode return code == 500 } +// Code gets the status code for the edge node status get edge node resource metrics by Id internal server error response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the edge node status get edge node resource metrics by Id gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByIdGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node resource metrics by Id default response -func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node resource metrics by Id default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the edge node status get edge node resource metrics by Id default response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByIDDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{objid}/timeSeries/{mType}][%d] EdgeNodeStatus_GetEdgeNodeResourceMetricsById default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_name_responses.go index 808faf9..22948ee 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_resource_metrics_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the edge node status get edge node resource metrics by name o k response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the edge node status get edge node resource metrics by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameForbidden) IsCode(code in return code == 403 } +// Code gets the status code for the edge node status get edge node resource metrics by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameNotFound) IsCode(code int return code == 404 } +// Code gets the status code for the edge node status get edge node resource metrics by name not found response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameInternalServerError) IsCo return code == 500 } +// Code gets the status code for the edge node status get edge node resource metrics by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameGatewayTimeout) IsCode(co return code == 504 } +// Code gets the status code for the edge node status get edge node resource metrics by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] edgeNodeStatusGetEdgeNodeResourceMetricsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node resource metrics by name default response -func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node resource metrics by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the edge node status get edge node resource metrics by name default response +func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeResourceMetricsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{objname}/timeSeries/{mType}][%d] EdgeNodeStatus_GetEdgeNodeResourceMetricsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_by_name_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_by_name_responses.go index 3aa6fbd..f7cc327 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_by_name_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node status by name o k response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the edge node status get edge node status by name unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node status by name forbidden response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node status by name not found response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the edge node status get edge node status by name internal server error response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the edge node status get edge node status by name gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] edgeNodeStatusGetEdgeNodeStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node status by name default response -func (o *EdgeNodeStatusGetEdgeNodeStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node status by name default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node status by name default response +func (o *EdgeNodeStatusGetEdgeNodeStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/name/{name}/status][%d] EdgeNodeStatus_GetEdgeNodeStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_responses.go b/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_responses.go index 7d0ef97..7ebd001 100644 --- a/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_get_edge_node_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status get edge node status o k response +func (o *EdgeNodeStatusGetEdgeNodeStatusOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusOK) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node status get edge node status unauthorized response +func (o *EdgeNodeStatusGetEdgeNodeStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status get edge node status forbidden response +func (o *EdgeNodeStatusGetEdgeNodeStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the edge node status get edge node status not found response +func (o *EdgeNodeStatusGetEdgeNodeStatusNotFound) Code() int { + return 404 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusInternalServerError) IsCode(code int) bo return code == 500 } +// Code gets the status code for the edge node status get edge node status internal server error response +func (o *EdgeNodeStatusGetEdgeNodeStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the edge node status get edge node status gateway timeout response +func (o *EdgeNodeStatusGetEdgeNodeStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusGetEdgeNodeStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] edgeNodeStatusGetEdgeNodeStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusGetEdgeNodeStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status get edge node status default response -func (o *EdgeNodeStatusGetEdgeNodeStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status get edge node status default response has a 2xx status code func (o *EdgeNodeStatusGetEdgeNodeStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusGetEdgeNodeStatusDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status get edge node status default response +func (o *EdgeNodeStatusGetEdgeNodeStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusGetEdgeNodeStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/id/{id}/status][%d] EdgeNodeStatus_GetEdgeNodeStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/edge_node_status/edge_node_status_query_edge_node_status_responses.go b/swagger_client/edge_node_status/edge_node_status_query_edge_node_status_responses.go index f442e13..6aae478 100644 --- a/swagger_client/edge_node_status/edge_node_status_query_edge_node_status_responses.go +++ b/swagger_client/edge_node_status/edge_node_status_query_edge_node_status_responses.go @@ -111,6 +111,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the edge node status query edge node status o k response +func (o *EdgeNodeStatusQueryEdgeNodeStatusOK) Code() int { + return 200 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusOK) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the edge node status query edge node status bad request response +func (o *EdgeNodeStatusQueryEdgeNodeStatusBadRequest) Code() int { + return 400 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the edge node status query edge node status unauthorized response +func (o *EdgeNodeStatusQueryEdgeNodeStatusUnauthorized) Code() int { + return 401 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the edge node status query edge node status forbidden response +func (o *EdgeNodeStatusQueryEdgeNodeStatusForbidden) Code() int { + return 403 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the edge node status query edge node status internal server error response +func (o *EdgeNodeStatusQueryEdgeNodeStatusInternalServerError) Code() int { + return 500 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the edge node status query edge node status gateway timeout response +func (o *EdgeNodeStatusQueryEdgeNodeStatusGatewayTimeout) Code() int { + return 504 +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] edgeNodeStatusQueryEdgeNodeStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EdgeNodeStatusQueryEdgeNodeStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the edge node status query edge node status default response -func (o *EdgeNodeStatusQueryEdgeNodeStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this edge node status query edge node status default response has a 2xx status code func (o *EdgeNodeStatusQueryEdgeNodeStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EdgeNodeStatusQueryEdgeNodeStatusDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the edge node status query edge node status default response +func (o *EdgeNodeStatusQueryEdgeNodeStatusDefault) Code() int { + return o._statusCode +} + func (o *EdgeNodeStatusQueryEdgeNodeStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/status][%d] EdgeNodeStatus_QueryEdgeNodeStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_create_enterprise_entitlement_data_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_create_enterprise_entitlement_data_responses.go index c8a22f2..9adbe1f 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_create_enterprise_entitlement_data_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_create_enterprise_entitlement_data_responses.go @@ -117,6 +117,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataOK) IsCode(c return code == 200 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data o k response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataOK) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataBadRequest) return code == 400 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data bad request response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataBadRequest) Code() int { + return 400 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataUnauthorized return code == 401 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data unauthorized response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataForbidden) I return code == 403 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data forbidden response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataForbidden) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataConflict) Is return code == 409 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data conflict response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataConflict) Code() int { + return 409 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataConflict) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataInternalServ return code == 500 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data internal server error response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataGatewayTimeo return code == 504 } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data gateway timeout response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] enterpriseEntitlementsReportCreateEnterpriseEntitlementDataGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report create enterprise entitlement data default response -func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report create enterprise entitlement data default response has a 2xx status code func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault) IsC return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report create enterprise entitlement data default response +func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportCreateEnterpriseEntitlementDataDefault) Error() string { return fmt.Sprintf("[PUT /v1/entitlements][%d] EnterpriseEntitlementsReport_CreateEnterpriseEntitlementData default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_for_entitlements_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_for_entitlements_responses.go index 7b020d6..bf6b3e5 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_for_entitlements_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_for_entitlements_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsOK) IsC return code == 200 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements o k response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsOK) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsUnautho return code == 401 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements unauthorized response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsForbidd return code == 403 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements forbidden response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsForbidden) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsNotFoun return code == 404 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements not found response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsNotFound) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsInterna return code == 500 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements internal server error response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsGateway return code == 504 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements gateway timeout response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault str Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements default response -func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get allowed enterprises for entitlements default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get allowed enterprises for entitlements default response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForEntitlementsDefault) Error() string { return fmt.Sprintf("[GET /v1/entitlements/allowedenterprises][%d] EnterpriseEntitlementsReport_GetAllowedEnterprisesForEntitlements default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_responses.go index 2837a2d..a1fc614 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_allowed_enterprises_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesOK) IsCode(code int) b return code == 200 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises o k response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesOK) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesUnauthorized) IsCode(c return code == 401 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises unauthorized response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForbidden) IsCode(code return code == 403 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises forbidden response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesNotFound) IsCode(code return code == 404 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises not found response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesInternalServerError) I return code == 500 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises internal server error response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesGatewayTimeout) IsCode return code == 504 } +// Code gets the status code for the enterprise entitlements report get allowed enterprises gateway timeout response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] enterpriseEntitlementsReportGetAllowedEnterprisesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetAllowedEnterprisesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get allowed enterprises default response -func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get allowed enterprises default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesDefault) IsCode(code i return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get allowed enterprises default response +func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetAllowedEnterprisesDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/allowedenterprises][%d] EnterpriseEntitlementsReport_GetAllowedEnterprises default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_app_inst_report_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_app_inst_report_responses.go index 54d3a54..c690df0 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_app_inst_report_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_app_inst_report_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the enterprise entitlements report get app inst report o k response +func (o *EnterpriseEntitlementsReportGetAppInstReportOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportOK) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the enterprise entitlements report get app inst report unauthorized response +func (o *EnterpriseEntitlementsReportGetAppInstReportUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the enterprise entitlements report get app inst report forbidden response +func (o *EnterpriseEntitlementsReportGetAppInstReportForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the enterprise entitlements report get app inst report not found response +func (o *EnterpriseEntitlementsReportGetAppInstReportNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportInternalServerError) IsCode return code == 500 } +// Code gets the status code for the enterprise entitlements report get app inst report internal server error response +func (o *EnterpriseEntitlementsReportGetAppInstReportInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the enterprise entitlements report get app inst report gateway timeout response +func (o *EnterpriseEntitlementsReportGetAppInstReportGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetAppInstReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] enterpriseEntitlementsReportGetAppInstReportGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetAppInstReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get app inst report default response -func (o *EnterpriseEntitlementsReportGetAppInstReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get app inst report default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetAppInstReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetAppInstReportDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get app inst report default response +func (o *EnterpriseEntitlementsReportGetAppInstReportDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetAppInstReportDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/apps/instance][%d] EnterpriseEntitlementsReport_GetAppInstReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_device_report_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_device_report_responses.go index aede8c0..15ac317 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_device_report_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_device_report_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the enterprise entitlements report get device report o k response +func (o *EnterpriseEntitlementsReportGetDeviceReportOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportOK) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the enterprise entitlements report get device report unauthorized response +func (o *EnterpriseEntitlementsReportGetDeviceReportUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the enterprise entitlements report get device report forbidden response +func (o *EnterpriseEntitlementsReportGetDeviceReportForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the enterprise entitlements report get device report not found response +func (o *EnterpriseEntitlementsReportGetDeviceReportNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the enterprise entitlements report get device report internal server error response +func (o *EnterpriseEntitlementsReportGetDeviceReportInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the enterprise entitlements report get device report gateway timeout response +func (o *EnterpriseEntitlementsReportGetDeviceReportGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetDeviceReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] enterpriseEntitlementsReportGetDeviceReportGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetDeviceReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get device report default response -func (o *EnterpriseEntitlementsReportGetDeviceReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get device report default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetDeviceReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetDeviceReportDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get device report default response +func (o *EnterpriseEntitlementsReportGetDeviceReportDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetDeviceReportDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/device][%d] EnterpriseEntitlementsReport_GetDeviceReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_enterprise_entitlement_data_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_enterprise_entitlement_data_responses.go index 27cd975..2f015c6 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_enterprise_entitlement_data_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_enterprise_entitlement_data_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataOK) IsCode(code return code == 200 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data o k response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataOK) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataUnauthorized) I return code == 401 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data unauthorized response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataForbidden) IsCo return code == 403 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data forbidden response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataForbidden) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataNotFound) IsCod return code == 404 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data not found response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataNotFound) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataInternalServerE return code == 500 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data internal server error response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataGatewayTimeout) return code == 504 } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data gateway timeout response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] enterpriseEntitlementsReportGetEnterpriseEntitlementDataGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get enterprise entitlement data default response -func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get enterprise entitlement data default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault) IsCode return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get enterprise entitlement data default response +func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetEnterpriseEntitlementDataDefault) Error() string { return fmt.Sprintf("[GET /v1/entitlements][%d] EnterpriseEntitlementsReport_GetEnterpriseEntitlementData default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_plugin_report_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_plugin_report_responses.go index cb42a4d..911e0b2 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_plugin_report_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_plugin_report_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the enterprise entitlements report get plugin report o k response +func (o *EnterpriseEntitlementsReportGetPluginReportOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetPluginReportOK) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the enterprise entitlements report get plugin report unauthorized response +func (o *EnterpriseEntitlementsReportGetPluginReportUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetPluginReportUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the enterprise entitlements report get plugin report forbidden response +func (o *EnterpriseEntitlementsReportGetPluginReportForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetPluginReportForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the enterprise entitlements report get plugin report not found response +func (o *EnterpriseEntitlementsReportGetPluginReportNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetPluginReportNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the enterprise entitlements report get plugin report internal server error response +func (o *EnterpriseEntitlementsReportGetPluginReportInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetPluginReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the enterprise entitlements report get plugin report gateway timeout response +func (o *EnterpriseEntitlementsReportGetPluginReportGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetPluginReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] enterpriseEntitlementsReportGetPluginReportGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetPluginReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get plugin report default response -func (o *EnterpriseEntitlementsReportGetPluginReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get plugin report default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetPluginReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetPluginReportDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get plugin report default response +func (o *EnterpriseEntitlementsReportGetPluginReportDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetPluginReportDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/plugin][%d] EnterpriseEntitlementsReport_GetPluginReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_project_report_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_project_report_responses.go index 387166e..f1d1da4 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_project_report_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_project_report_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the enterprise entitlements report get project report o k response +func (o *EnterpriseEntitlementsReportGetProjectReportOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetProjectReportOK) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the enterprise entitlements report get project report unauthorized response +func (o *EnterpriseEntitlementsReportGetProjectReportUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetProjectReportUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the enterprise entitlements report get project report forbidden response +func (o *EnterpriseEntitlementsReportGetProjectReportForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetProjectReportForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the enterprise entitlements report get project report not found response +func (o *EnterpriseEntitlementsReportGetProjectReportNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetProjectReportNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportInternalServerError) IsCode return code == 500 } +// Code gets the status code for the enterprise entitlements report get project report internal server error response +func (o *EnterpriseEntitlementsReportGetProjectReportInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetProjectReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the enterprise entitlements report get project report gateway timeout response +func (o *EnterpriseEntitlementsReportGetProjectReportGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetProjectReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] enterpriseEntitlementsReportGetProjectReportGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetProjectReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get project report default response -func (o *EnterpriseEntitlementsReportGetProjectReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get project report default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetProjectReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetProjectReportDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get project report default response +func (o *EnterpriseEntitlementsReportGetProjectReportDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetProjectReportDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/project][%d] EnterpriseEntitlementsReport_GetProjectReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_user_report_responses.go b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_user_report_responses.go index 575de7f..a8fc9d1 100644 --- a/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_user_report_responses.go +++ b/swagger_client/enterprise_entitlements_report/enterprise_entitlements_report_get_user_report_responses.go @@ -111,6 +111,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the enterprise entitlements report get user report o k response +func (o *EnterpriseEntitlementsReportGetUserReportOK) Code() int { + return 200 +} + func (o *EnterpriseEntitlementsReportGetUserReportOK) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the enterprise entitlements report get user report unauthorized response +func (o *EnterpriseEntitlementsReportGetUserReportUnauthorized) Code() int { + return 401 +} + func (o *EnterpriseEntitlementsReportGetUserReportUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the enterprise entitlements report get user report forbidden response +func (o *EnterpriseEntitlementsReportGetUserReportForbidden) Code() int { + return 403 +} + func (o *EnterpriseEntitlementsReportGetUserReportForbidden) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the enterprise entitlements report get user report not found response +func (o *EnterpriseEntitlementsReportGetUserReportNotFound) Code() int { + return 404 +} + func (o *EnterpriseEntitlementsReportGetUserReportNotFound) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the enterprise entitlements report get user report internal server error response +func (o *EnterpriseEntitlementsReportGetUserReportInternalServerError) Code() int { + return 500 +} + func (o *EnterpriseEntitlementsReportGetUserReportInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the enterprise entitlements report get user report gateway timeout response +func (o *EnterpriseEntitlementsReportGetUserReportGatewayTimeout) Code() int { + return 504 +} + func (o *EnterpriseEntitlementsReportGetUserReportGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] enterpriseEntitlementsReportGetUserReportGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type EnterpriseEntitlementsReportGetUserReportDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the enterprise entitlements report get user report default response -func (o *EnterpriseEntitlementsReportGetUserReportDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this enterprise entitlements report get user report default response has a 2xx status code func (o *EnterpriseEntitlementsReportGetUserReportDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *EnterpriseEntitlementsReportGetUserReportDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the enterprise entitlements report get user report default response +func (o *EnterpriseEntitlementsReportGetUserReportDefault) Code() int { + return o._statusCode +} + func (o *EnterpriseEntitlementsReportGetUserReportDefault) Error() string { return fmt.Sprintf("[GET /v1/reports/user][%d] EnterpriseEntitlementsReport_GetUserReport default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_create_hardware_brand_responses.go b/swagger_client/hardware_model/hardware_model_create_hardware_brand_responses.go index 15f624d..062ffe7 100644 --- a/swagger_client/hardware_model/hardware_model_create_hardware_brand_responses.go +++ b/swagger_client/hardware_model/hardware_model_create_hardware_brand_responses.go @@ -117,6 +117,11 @@ func (o *HardwareModelCreateHardwareBrandOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model create hardware brand o k response +func (o *HardwareModelCreateHardwareBrandOK) Code() int { + return 200 +} + func (o *HardwareModelCreateHardwareBrandOK) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *HardwareModelCreateHardwareBrandBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model create hardware brand bad request response +func (o *HardwareModelCreateHardwareBrandBadRequest) Code() int { + return 400 +} + func (o *HardwareModelCreateHardwareBrandBadRequest) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *HardwareModelCreateHardwareBrandUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model create hardware brand unauthorized response +func (o *HardwareModelCreateHardwareBrandUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelCreateHardwareBrandUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *HardwareModelCreateHardwareBrandForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model create hardware brand forbidden response +func (o *HardwareModelCreateHardwareBrandForbidden) Code() int { + return 403 +} + func (o *HardwareModelCreateHardwareBrandForbidden) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *HardwareModelCreateHardwareBrandConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the hardware model create hardware brand conflict response +func (o *HardwareModelCreateHardwareBrandConflict) Code() int { + return 409 +} + func (o *HardwareModelCreateHardwareBrandConflict) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *HardwareModelCreateHardwareBrandInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model create hardware brand internal server error response +func (o *HardwareModelCreateHardwareBrandInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelCreateHardwareBrandInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *HardwareModelCreateHardwareBrandGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model create hardware brand gateway timeout response +func (o *HardwareModelCreateHardwareBrandGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelCreateHardwareBrandGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] hardwareModelCreateHardwareBrandGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type HardwareModelCreateHardwareBrandDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model create hardware brand default response -func (o *HardwareModelCreateHardwareBrandDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model create hardware brand default response has a 2xx status code func (o *HardwareModelCreateHardwareBrandDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *HardwareModelCreateHardwareBrandDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model create hardware brand default response +func (o *HardwareModelCreateHardwareBrandDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelCreateHardwareBrandDefault) Error() string { return fmt.Sprintf("[POST /v1/brands][%d] HardwareModel_CreateHardwareBrand default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_create_hardware_model_responses.go b/swagger_client/hardware_model/hardware_model_create_hardware_model_responses.go index a950d51..8856646 100644 --- a/swagger_client/hardware_model/hardware_model_create_hardware_model_responses.go +++ b/swagger_client/hardware_model/hardware_model_create_hardware_model_responses.go @@ -117,6 +117,11 @@ func (o *HardwareModelCreateHardwareModelOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model create hardware model o k response +func (o *HardwareModelCreateHardwareModelOK) Code() int { + return 200 +} + func (o *HardwareModelCreateHardwareModelOK) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *HardwareModelCreateHardwareModelBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model create hardware model bad request response +func (o *HardwareModelCreateHardwareModelBadRequest) Code() int { + return 400 +} + func (o *HardwareModelCreateHardwareModelBadRequest) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *HardwareModelCreateHardwareModelUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model create hardware model unauthorized response +func (o *HardwareModelCreateHardwareModelUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelCreateHardwareModelUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *HardwareModelCreateHardwareModelForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model create hardware model forbidden response +func (o *HardwareModelCreateHardwareModelForbidden) Code() int { + return 403 +} + func (o *HardwareModelCreateHardwareModelForbidden) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *HardwareModelCreateHardwareModelConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the hardware model create hardware model conflict response +func (o *HardwareModelCreateHardwareModelConflict) Code() int { + return 409 +} + func (o *HardwareModelCreateHardwareModelConflict) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *HardwareModelCreateHardwareModelInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model create hardware model internal server error response +func (o *HardwareModelCreateHardwareModelInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelCreateHardwareModelInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *HardwareModelCreateHardwareModelGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model create hardware model gateway timeout response +func (o *HardwareModelCreateHardwareModelGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelCreateHardwareModelGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] hardwareModelCreateHardwareModelGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type HardwareModelCreateHardwareModelDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model create hardware model default response -func (o *HardwareModelCreateHardwareModelDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model create hardware model default response has a 2xx status code func (o *HardwareModelCreateHardwareModelDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *HardwareModelCreateHardwareModelDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model create hardware model default response +func (o *HardwareModelCreateHardwareModelDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelCreateHardwareModelDefault) Error() string { return fmt.Sprintf("[POST /v1/sysmodels][%d] HardwareModel_CreateHardwareModel default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_delete_hardware_brand_responses.go b/swagger_client/hardware_model/hardware_model_delete_hardware_brand_responses.go index 8bf79dd..d6195b0 100644 --- a/swagger_client/hardware_model/hardware_model_delete_hardware_brand_responses.go +++ b/swagger_client/hardware_model/hardware_model_delete_hardware_brand_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelDeleteHardwareBrandOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model delete hardware brand o k response +func (o *HardwareModelDeleteHardwareBrandOK) Code() int { + return 200 +} + func (o *HardwareModelDeleteHardwareBrandOK) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelDeleteHardwareBrandUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model delete hardware brand unauthorized response +func (o *HardwareModelDeleteHardwareBrandUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelDeleteHardwareBrandUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelDeleteHardwareBrandForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model delete hardware brand forbidden response +func (o *HardwareModelDeleteHardwareBrandForbidden) Code() int { + return 403 +} + func (o *HardwareModelDeleteHardwareBrandForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelDeleteHardwareBrandNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model delete hardware brand not found response +func (o *HardwareModelDeleteHardwareBrandNotFound) Code() int { + return 404 +} + func (o *HardwareModelDeleteHardwareBrandNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelDeleteHardwareBrandInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model delete hardware brand internal server error response +func (o *HardwareModelDeleteHardwareBrandInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelDeleteHardwareBrandInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelDeleteHardwareBrandGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model delete hardware brand gateway timeout response +func (o *HardwareModelDeleteHardwareBrandGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelDeleteHardwareBrandGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] hardwareModelDeleteHardwareBrandGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelDeleteHardwareBrandDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model delete hardware brand default response -func (o *HardwareModelDeleteHardwareBrandDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model delete hardware brand default response has a 2xx status code func (o *HardwareModelDeleteHardwareBrandDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelDeleteHardwareBrandDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model delete hardware brand default response +func (o *HardwareModelDeleteHardwareBrandDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelDeleteHardwareBrandDefault) Error() string { return fmt.Sprintf("[DELETE /v1/brands/id/{id}][%d] HardwareModel_DeleteHardwareBrand default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_delete_hardware_model_responses.go b/swagger_client/hardware_model/hardware_model_delete_hardware_model_responses.go index d0cd063..24a195f 100644 --- a/swagger_client/hardware_model/hardware_model_delete_hardware_model_responses.go +++ b/swagger_client/hardware_model/hardware_model_delete_hardware_model_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelDeleteHardwareModelOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model delete hardware model o k response +func (o *HardwareModelDeleteHardwareModelOK) Code() int { + return 200 +} + func (o *HardwareModelDeleteHardwareModelOK) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelDeleteHardwareModelUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model delete hardware model unauthorized response +func (o *HardwareModelDeleteHardwareModelUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelDeleteHardwareModelUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelDeleteHardwareModelForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model delete hardware model forbidden response +func (o *HardwareModelDeleteHardwareModelForbidden) Code() int { + return 403 +} + func (o *HardwareModelDeleteHardwareModelForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelDeleteHardwareModelNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model delete hardware model not found response +func (o *HardwareModelDeleteHardwareModelNotFound) Code() int { + return 404 +} + func (o *HardwareModelDeleteHardwareModelNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelDeleteHardwareModelInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model delete hardware model internal server error response +func (o *HardwareModelDeleteHardwareModelInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelDeleteHardwareModelInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelDeleteHardwareModelGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model delete hardware model gateway timeout response +func (o *HardwareModelDeleteHardwareModelGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelDeleteHardwareModelGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] hardwareModelDeleteHardwareModelGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelDeleteHardwareModelDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model delete hardware model default response -func (o *HardwareModelDeleteHardwareModelDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model delete hardware model default response has a 2xx status code func (o *HardwareModelDeleteHardwareModelDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelDeleteHardwareModelDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model delete hardware model default response +func (o *HardwareModelDeleteHardwareModelDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelDeleteHardwareModelDefault) Error() string { return fmt.Sprintf("[DELETE /v1/sysmodels/id/{id}][%d] HardwareModel_DeleteHardwareModel default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_device_status_config_responses.go b/swagger_client/hardware_model/hardware_model_get_device_status_config_responses.go index eedb40f..23332a8 100644 --- a/swagger_client/hardware_model/hardware_model_get_device_status_config_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_device_status_config_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetDeviceStatusConfigOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get device status config o k response +func (o *HardwareModelGetDeviceStatusConfigOK) Code() int { + return 200 +} + func (o *HardwareModelGetDeviceStatusConfigOK) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetDeviceStatusConfigBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model get device status config bad request response +func (o *HardwareModelGetDeviceStatusConfigBadRequest) Code() int { + return 400 +} + func (o *HardwareModelGetDeviceStatusConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetDeviceStatusConfigUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model get device status config unauthorized response +func (o *HardwareModelGetDeviceStatusConfigUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetDeviceStatusConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetDeviceStatusConfigForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get device status config forbidden response +func (o *HardwareModelGetDeviceStatusConfigForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetDeviceStatusConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetDeviceStatusConfigInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the hardware model get device status config internal server error response +func (o *HardwareModelGetDeviceStatusConfigInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetDeviceStatusConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetDeviceStatusConfigGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the hardware model get device status config gateway timeout response +func (o *HardwareModelGetDeviceStatusConfigGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetDeviceStatusConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] hardwareModelGetDeviceStatusConfigGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetDeviceStatusConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get device status config default response -func (o *HardwareModelGetDeviceStatusConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get device status config default response has a 2xx status code func (o *HardwareModelGetDeviceStatusConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetDeviceStatusConfigDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get device status config default response +func (o *HardwareModelGetDeviceStatusConfigDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetDeviceStatusConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/status-config][%d] HardwareModel_GetDeviceStatusConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_device_status_location_responses.go b/swagger_client/hardware_model/hardware_model_get_device_status_location_responses.go index fff007e..0162dbb 100644 --- a/swagger_client/hardware_model/hardware_model_get_device_status_location_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_device_status_location_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetDeviceStatusLocationOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get device status location o k response +func (o *HardwareModelGetDeviceStatusLocationOK) Code() int { + return 200 +} + func (o *HardwareModelGetDeviceStatusLocationOK) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetDeviceStatusLocationBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model get device status location bad request response +func (o *HardwareModelGetDeviceStatusLocationBadRequest) Code() int { + return 400 +} + func (o *HardwareModelGetDeviceStatusLocationBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetDeviceStatusLocationUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the hardware model get device status location unauthorized response +func (o *HardwareModelGetDeviceStatusLocationUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetDeviceStatusLocationUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetDeviceStatusLocationForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get device status location forbidden response +func (o *HardwareModelGetDeviceStatusLocationForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetDeviceStatusLocationForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetDeviceStatusLocationInternalServerError) IsCode(code in return code == 500 } +// Code gets the status code for the hardware model get device status location internal server error response +func (o *HardwareModelGetDeviceStatusLocationInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetDeviceStatusLocationInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetDeviceStatusLocationGatewayTimeout) IsCode(code int) bo return code == 504 } +// Code gets the status code for the hardware model get device status location gateway timeout response +func (o *HardwareModelGetDeviceStatusLocationGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetDeviceStatusLocationGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] hardwareModelGetDeviceStatusLocationGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetDeviceStatusLocationDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get device status location default response -func (o *HardwareModelGetDeviceStatusLocationDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get device status location default response has a 2xx status code func (o *HardwareModelGetDeviceStatusLocationDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetDeviceStatusLocationDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get device status location default response +func (o *HardwareModelGetDeviceStatusLocationDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetDeviceStatusLocationDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/status/locations][%d] HardwareModel_GetDeviceStatusLocation default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_device_tags_responses.go b/swagger_client/hardware_model/hardware_model_get_device_tags_responses.go index c49a814..d31a23a 100644 --- a/swagger_client/hardware_model/hardware_model_get_device_tags_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_device_tags_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetDeviceTagsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get device tags o k response +func (o *HardwareModelGetDeviceTagsOK) Code() int { + return 200 +} + func (o *HardwareModelGetDeviceTagsOK) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetDeviceTagsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model get device tags bad request response +func (o *HardwareModelGetDeviceTagsBadRequest) Code() int { + return 400 +} + func (o *HardwareModelGetDeviceTagsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetDeviceTagsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model get device tags unauthorized response +func (o *HardwareModelGetDeviceTagsUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetDeviceTagsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetDeviceTagsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get device tags forbidden response +func (o *HardwareModelGetDeviceTagsForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetDeviceTagsForbidden) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetDeviceTagsInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the hardware model get device tags internal server error response +func (o *HardwareModelGetDeviceTagsInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetDeviceTagsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetDeviceTagsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model get device tags gateway timeout response +func (o *HardwareModelGetDeviceTagsGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetDeviceTagsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] hardwareModelGetDeviceTagsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetDeviceTagsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get device tags default response -func (o *HardwareModelGetDeviceTagsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get device tags default response has a 2xx status code func (o *HardwareModelGetDeviceTagsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetDeviceTagsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get device tags default response +func (o *HardwareModelGetDeviceTagsDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetDeviceTagsDefault) Error() string { return fmt.Sprintf("[GET /v1/devices/tags][%d] HardwareModel_GetDeviceTags default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_by_name_responses.go b/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_by_name_responses.go index ecd12ef..916129d 100644 --- a/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_by_name_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_by_name_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get global hardware brand by name o k response +func (o *HardwareModelGetGlobalHardwareBrandByNameOK) Code() int { + return 200 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameOK) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the hardware model get global hardware brand by name unauthorized response +func (o *HardwareModelGetGlobalHardwareBrandByNameUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the hardware model get global hardware brand by name forbidden response +func (o *HardwareModelGetGlobalHardwareBrandByNameForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the hardware model get global hardware brand by name not found response +func (o *HardwareModelGetGlobalHardwareBrandByNameNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the hardware model get global hardware brand by name internal server error response +func (o *HardwareModelGetGlobalHardwareBrandByNameInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the hardware model get global hardware brand by name gateway timeout response +func (o *HardwareModelGetGlobalHardwareBrandByNameGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetGlobalHardwareBrandByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] hardwareModelGetGlobalHardwareBrandByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetGlobalHardwareBrandByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get global hardware brand by name default response -func (o *HardwareModelGetGlobalHardwareBrandByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get global hardware brand by name default response has a 2xx status code func (o *HardwareModelGetGlobalHardwareBrandByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetGlobalHardwareBrandByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the hardware model get global hardware brand by name default response +func (o *HardwareModelGetGlobalHardwareBrandByNameDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetGlobalHardwareBrandByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/brands/global/name/{name}][%d] HardwareModel_GetGlobalHardwareBrandByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_responses.go b/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_responses.go index 8530cf8..515755a 100644 --- a/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_global_hardware_brand_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetGlobalHardwareBrandOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get global hardware brand o k response +func (o *HardwareModelGetGlobalHardwareBrandOK) Code() int { + return 200 +} + func (o *HardwareModelGetGlobalHardwareBrandOK) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetGlobalHardwareBrandUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the hardware model get global hardware brand unauthorized response +func (o *HardwareModelGetGlobalHardwareBrandUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetGlobalHardwareBrandUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetGlobalHardwareBrandForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get global hardware brand forbidden response +func (o *HardwareModelGetGlobalHardwareBrandForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetGlobalHardwareBrandForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetGlobalHardwareBrandNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get global hardware brand not found response +func (o *HardwareModelGetGlobalHardwareBrandNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetGlobalHardwareBrandNotFound) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetGlobalHardwareBrandInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the hardware model get global hardware brand internal server error response +func (o *HardwareModelGetGlobalHardwareBrandInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetGlobalHardwareBrandInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetGlobalHardwareBrandGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the hardware model get global hardware brand gateway timeout response +func (o *HardwareModelGetGlobalHardwareBrandGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetGlobalHardwareBrandGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] hardwareModelGetGlobalHardwareBrandGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetGlobalHardwareBrandDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get global hardware brand default response -func (o *HardwareModelGetGlobalHardwareBrandDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get global hardware brand default response has a 2xx status code func (o *HardwareModelGetGlobalHardwareBrandDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetGlobalHardwareBrandDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get global hardware brand default response +func (o *HardwareModelGetGlobalHardwareBrandDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetGlobalHardwareBrandDefault) Error() string { return fmt.Sprintf("[GET /v1/brands/global/id/{id}][%d] HardwareModel_GetGlobalHardwareBrand default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_global_hardware_model_by_name_responses.go b/swagger_client/hardware_model/hardware_model_get_global_hardware_model_by_name_responses.go index fd9c635..ea44ca8 100644 --- a/swagger_client/hardware_model/hardware_model_get_global_hardware_model_by_name_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_global_hardware_model_by_name_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get global hardware model by name o k response +func (o *HardwareModelGetGlobalHardwareModelByNameOK) Code() int { + return 200 +} + func (o *HardwareModelGetGlobalHardwareModelByNameOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the hardware model get global hardware model by name unauthorized response +func (o *HardwareModelGetGlobalHardwareModelByNameUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetGlobalHardwareModelByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the hardware model get global hardware model by name forbidden response +func (o *HardwareModelGetGlobalHardwareModelByNameForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetGlobalHardwareModelByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the hardware model get global hardware model by name not found response +func (o *HardwareModelGetGlobalHardwareModelByNameNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetGlobalHardwareModelByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the hardware model get global hardware model by name internal server error response +func (o *HardwareModelGetGlobalHardwareModelByNameInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetGlobalHardwareModelByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the hardware model get global hardware model by name gateway timeout response +func (o *HardwareModelGetGlobalHardwareModelByNameGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetGlobalHardwareModelByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] hardwareModelGetGlobalHardwareModelByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetGlobalHardwareModelByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get global hardware model by name default response -func (o *HardwareModelGetGlobalHardwareModelByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get global hardware model by name default response has a 2xx status code func (o *HardwareModelGetGlobalHardwareModelByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetGlobalHardwareModelByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the hardware model get global hardware model by name default response +func (o *HardwareModelGetGlobalHardwareModelByNameDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetGlobalHardwareModelByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/name/{name}][%d] HardwareModel_GetGlobalHardwareModelByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_global_hardware_model_responses.go b/swagger_client/hardware_model/hardware_model_get_global_hardware_model_responses.go index 68e0438..d323ddd 100644 --- a/swagger_client/hardware_model/hardware_model_get_global_hardware_model_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_global_hardware_model_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetGlobalHardwareModelOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get global hardware model o k response +func (o *HardwareModelGetGlobalHardwareModelOK) Code() int { + return 200 +} + func (o *HardwareModelGetGlobalHardwareModelOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetGlobalHardwareModelUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the hardware model get global hardware model unauthorized response +func (o *HardwareModelGetGlobalHardwareModelUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetGlobalHardwareModelUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetGlobalHardwareModelForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get global hardware model forbidden response +func (o *HardwareModelGetGlobalHardwareModelForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetGlobalHardwareModelForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetGlobalHardwareModelNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get global hardware model not found response +func (o *HardwareModelGetGlobalHardwareModelNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetGlobalHardwareModelNotFound) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetGlobalHardwareModelInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the hardware model get global hardware model internal server error response +func (o *HardwareModelGetGlobalHardwareModelInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetGlobalHardwareModelInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetGlobalHardwareModelGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the hardware model get global hardware model gateway timeout response +func (o *HardwareModelGetGlobalHardwareModelGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetGlobalHardwareModelGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] hardwareModelGetGlobalHardwareModelGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetGlobalHardwareModelDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get global hardware model default response -func (o *HardwareModelGetGlobalHardwareModelDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get global hardware model default response has a 2xx status code func (o *HardwareModelGetGlobalHardwareModelDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetGlobalHardwareModelDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get global hardware model default response +func (o *HardwareModelGetGlobalHardwareModelDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetGlobalHardwareModelDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global/id/{id}][%d] HardwareModel_GetGlobalHardwareModel default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_hardware_brand_by_name_responses.go b/swagger_client/hardware_model/hardware_model_get_hardware_brand_by_name_responses.go index a59896d..f6f1dcb 100644 --- a/swagger_client/hardware_model/hardware_model_get_hardware_brand_by_name_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_hardware_brand_by_name_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetHardwareBrandByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get hardware brand by name o k response +func (o *HardwareModelGetHardwareBrandByNameOK) Code() int { + return 200 +} + func (o *HardwareModelGetHardwareBrandByNameOK) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetHardwareBrandByNameUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the hardware model get hardware brand by name unauthorized response +func (o *HardwareModelGetHardwareBrandByNameUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetHardwareBrandByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetHardwareBrandByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get hardware brand by name forbidden response +func (o *HardwareModelGetHardwareBrandByNameForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetHardwareBrandByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetHardwareBrandByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get hardware brand by name not found response +func (o *HardwareModelGetHardwareBrandByNameNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetHardwareBrandByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetHardwareBrandByNameInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the hardware model get hardware brand by name internal server error response +func (o *HardwareModelGetHardwareBrandByNameInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetHardwareBrandByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetHardwareBrandByNameGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the hardware model get hardware brand by name gateway timeout response +func (o *HardwareModelGetHardwareBrandByNameGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetHardwareBrandByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] hardwareModelGetHardwareBrandByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetHardwareBrandByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get hardware brand by name default response -func (o *HardwareModelGetHardwareBrandByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get hardware brand by name default response has a 2xx status code func (o *HardwareModelGetHardwareBrandByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetHardwareBrandByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get hardware brand by name default response +func (o *HardwareModelGetHardwareBrandByNameDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetHardwareBrandByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/brands/name/{name}][%d] HardwareModel_GetHardwareBrandByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_hardware_brand_responses.go b/swagger_client/hardware_model/hardware_model_get_hardware_brand_responses.go index 8515e34..83169c3 100644 --- a/swagger_client/hardware_model/hardware_model_get_hardware_brand_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_hardware_brand_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetHardwareBrandOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get hardware brand o k response +func (o *HardwareModelGetHardwareBrandOK) Code() int { + return 200 +} + func (o *HardwareModelGetHardwareBrandOK) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetHardwareBrandUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model get hardware brand unauthorized response +func (o *HardwareModelGetHardwareBrandUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetHardwareBrandUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetHardwareBrandForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get hardware brand forbidden response +func (o *HardwareModelGetHardwareBrandForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetHardwareBrandForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetHardwareBrandNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get hardware brand not found response +func (o *HardwareModelGetHardwareBrandNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetHardwareBrandNotFound) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetHardwareBrandInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the hardware model get hardware brand internal server error response +func (o *HardwareModelGetHardwareBrandInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetHardwareBrandInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetHardwareBrandGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model get hardware brand gateway timeout response +func (o *HardwareModelGetHardwareBrandGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetHardwareBrandGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] hardwareModelGetHardwareBrandGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetHardwareBrandDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get hardware brand default response -func (o *HardwareModelGetHardwareBrandDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get hardware brand default response has a 2xx status code func (o *HardwareModelGetHardwareBrandDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetHardwareBrandDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get hardware brand default response +func (o *HardwareModelGetHardwareBrandDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetHardwareBrandDefault) Error() string { return fmt.Sprintf("[GET /v1/brands/id/{id}][%d] HardwareModel_GetHardwareBrand default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_hardware_model_by_name_responses.go b/swagger_client/hardware_model/hardware_model_get_hardware_model_by_name_responses.go index f1342f8..2c9ef85 100644 --- a/swagger_client/hardware_model/hardware_model_get_hardware_model_by_name_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_hardware_model_by_name_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetHardwareModelByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get hardware model by name o k response +func (o *HardwareModelGetHardwareModelByNameOK) Code() int { + return 200 +} + func (o *HardwareModelGetHardwareModelByNameOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetHardwareModelByNameUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the hardware model get hardware model by name unauthorized response +func (o *HardwareModelGetHardwareModelByNameUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetHardwareModelByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetHardwareModelByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get hardware model by name forbidden response +func (o *HardwareModelGetHardwareModelByNameForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetHardwareModelByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetHardwareModelByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get hardware model by name not found response +func (o *HardwareModelGetHardwareModelByNameNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetHardwareModelByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetHardwareModelByNameInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the hardware model get hardware model by name internal server error response +func (o *HardwareModelGetHardwareModelByNameInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetHardwareModelByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetHardwareModelByNameGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the hardware model get hardware model by name gateway timeout response +func (o *HardwareModelGetHardwareModelByNameGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetHardwareModelByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] hardwareModelGetHardwareModelByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetHardwareModelByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get hardware model by name default response -func (o *HardwareModelGetHardwareModelByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get hardware model by name default response has a 2xx status code func (o *HardwareModelGetHardwareModelByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetHardwareModelByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get hardware model by name default response +func (o *HardwareModelGetHardwareModelByNameDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetHardwareModelByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/name/{name}][%d] HardwareModel_GetHardwareModelByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_get_hardware_model_responses.go b/swagger_client/hardware_model/hardware_model_get_hardware_model_responses.go index be6c0e8..382524f 100644 --- a/swagger_client/hardware_model/hardware_model_get_hardware_model_responses.go +++ b/swagger_client/hardware_model/hardware_model_get_hardware_model_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelGetHardwareModelOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model get hardware model o k response +func (o *HardwareModelGetHardwareModelOK) Code() int { + return 200 +} + func (o *HardwareModelGetHardwareModelOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelGetHardwareModelUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model get hardware model unauthorized response +func (o *HardwareModelGetHardwareModelUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelGetHardwareModelUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelGetHardwareModelForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model get hardware model forbidden response +func (o *HardwareModelGetHardwareModelForbidden) Code() int { + return 403 +} + func (o *HardwareModelGetHardwareModelForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelGetHardwareModelNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model get hardware model not found response +func (o *HardwareModelGetHardwareModelNotFound) Code() int { + return 404 +} + func (o *HardwareModelGetHardwareModelNotFound) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelGetHardwareModelInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the hardware model get hardware model internal server error response +func (o *HardwareModelGetHardwareModelInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelGetHardwareModelInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelGetHardwareModelGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model get hardware model gateway timeout response +func (o *HardwareModelGetHardwareModelGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelGetHardwareModelGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] hardwareModelGetHardwareModelGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelGetHardwareModelDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model get hardware model default response -func (o *HardwareModelGetHardwareModelDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model get hardware model default response has a 2xx status code func (o *HardwareModelGetHardwareModelDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelGetHardwareModelDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model get hardware model default response +func (o *HardwareModelGetHardwareModelDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelGetHardwareModelDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/id/{id}][%d] HardwareModel_GetHardwareModel default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_query_global_hardware_brands_responses.go b/swagger_client/hardware_model/hardware_model_query_global_hardware_brands_responses.go index f8696d2..b23e4a0 100644 --- a/swagger_client/hardware_model/hardware_model_query_global_hardware_brands_responses.go +++ b/swagger_client/hardware_model/hardware_model_query_global_hardware_brands_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model query global hardware brands o k response +func (o *HardwareModelQueryGlobalHardwareBrandsOK) Code() int { + return 200 +} + func (o *HardwareModelQueryGlobalHardwareBrandsOK) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsBadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the hardware model query global hardware brands bad request response +func (o *HardwareModelQueryGlobalHardwareBrandsBadRequest) Code() int { + return 400 +} + func (o *HardwareModelQueryGlobalHardwareBrandsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the hardware model query global hardware brands unauthorized response +func (o *HardwareModelQueryGlobalHardwareBrandsUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelQueryGlobalHardwareBrandsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the hardware model query global hardware brands forbidden response +func (o *HardwareModelQueryGlobalHardwareBrandsForbidden) Code() int { + return 403 +} + func (o *HardwareModelQueryGlobalHardwareBrandsForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the hardware model query global hardware brands internal server error response +func (o *HardwareModelQueryGlobalHardwareBrandsInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelQueryGlobalHardwareBrandsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the hardware model query global hardware brands gateway timeout response +func (o *HardwareModelQueryGlobalHardwareBrandsGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelQueryGlobalHardwareBrandsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] hardwareModelQueryGlobalHardwareBrandsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelQueryGlobalHardwareBrandsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model query global hardware brands default response -func (o *HardwareModelQueryGlobalHardwareBrandsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model query global hardware brands default response has a 2xx status code func (o *HardwareModelQueryGlobalHardwareBrandsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelQueryGlobalHardwareBrandsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model query global hardware brands default response +func (o *HardwareModelQueryGlobalHardwareBrandsDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelQueryGlobalHardwareBrandsDefault) Error() string { return fmt.Sprintf("[GET /v1/brands/global][%d] HardwareModel_QueryGlobalHardwareBrands default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_query_global_hardware_models_responses.go b/swagger_client/hardware_model/hardware_model_query_global_hardware_models_responses.go index a2f315d..af48747 100644 --- a/swagger_client/hardware_model/hardware_model_query_global_hardware_models_responses.go +++ b/swagger_client/hardware_model/hardware_model_query_global_hardware_models_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model query global hardware models o k response +func (o *HardwareModelQueryGlobalHardwareModelsOK) Code() int { + return 200 +} + func (o *HardwareModelQueryGlobalHardwareModelsOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsBadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the hardware model query global hardware models bad request response +func (o *HardwareModelQueryGlobalHardwareModelsBadRequest) Code() int { + return 400 +} + func (o *HardwareModelQueryGlobalHardwareModelsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the hardware model query global hardware models unauthorized response +func (o *HardwareModelQueryGlobalHardwareModelsUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelQueryGlobalHardwareModelsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the hardware model query global hardware models forbidden response +func (o *HardwareModelQueryGlobalHardwareModelsForbidden) Code() int { + return 403 +} + func (o *HardwareModelQueryGlobalHardwareModelsForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the hardware model query global hardware models internal server error response +func (o *HardwareModelQueryGlobalHardwareModelsInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelQueryGlobalHardwareModelsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the hardware model query global hardware models gateway timeout response +func (o *HardwareModelQueryGlobalHardwareModelsGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelQueryGlobalHardwareModelsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] hardwareModelQueryGlobalHardwareModelsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelQueryGlobalHardwareModelsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model query global hardware models default response -func (o *HardwareModelQueryGlobalHardwareModelsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model query global hardware models default response has a 2xx status code func (o *HardwareModelQueryGlobalHardwareModelsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelQueryGlobalHardwareModelsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model query global hardware models default response +func (o *HardwareModelQueryGlobalHardwareModelsDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelQueryGlobalHardwareModelsDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels/global][%d] HardwareModel_QueryGlobalHardwareModels default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_query_hardware_brands_responses.go b/swagger_client/hardware_model/hardware_model_query_hardware_brands_responses.go index eebe0fd..451f75b 100644 --- a/swagger_client/hardware_model/hardware_model_query_hardware_brands_responses.go +++ b/swagger_client/hardware_model/hardware_model_query_hardware_brands_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelQueryHardwareBrandsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model query hardware brands o k response +func (o *HardwareModelQueryHardwareBrandsOK) Code() int { + return 200 +} + func (o *HardwareModelQueryHardwareBrandsOK) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelQueryHardwareBrandsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model query hardware brands bad request response +func (o *HardwareModelQueryHardwareBrandsBadRequest) Code() int { + return 400 +} + func (o *HardwareModelQueryHardwareBrandsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelQueryHardwareBrandsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model query hardware brands unauthorized response +func (o *HardwareModelQueryHardwareBrandsUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelQueryHardwareBrandsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelQueryHardwareBrandsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model query hardware brands forbidden response +func (o *HardwareModelQueryHardwareBrandsForbidden) Code() int { + return 403 +} + func (o *HardwareModelQueryHardwareBrandsForbidden) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelQueryHardwareBrandsInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model query hardware brands internal server error response +func (o *HardwareModelQueryHardwareBrandsInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelQueryHardwareBrandsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelQueryHardwareBrandsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model query hardware brands gateway timeout response +func (o *HardwareModelQueryHardwareBrandsGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelQueryHardwareBrandsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] hardwareModelQueryHardwareBrandsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelQueryHardwareBrandsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model query hardware brands default response -func (o *HardwareModelQueryHardwareBrandsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model query hardware brands default response has a 2xx status code func (o *HardwareModelQueryHardwareBrandsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelQueryHardwareBrandsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model query hardware brands default response +func (o *HardwareModelQueryHardwareBrandsDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelQueryHardwareBrandsDefault) Error() string { return fmt.Sprintf("[GET /v1/brands][%d] HardwareModel_QueryHardwareBrands default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_query_hardware_models_responses.go b/swagger_client/hardware_model/hardware_model_query_hardware_models_responses.go index 3fd64a0..793b6be 100644 --- a/swagger_client/hardware_model/hardware_model_query_hardware_models_responses.go +++ b/swagger_client/hardware_model/hardware_model_query_hardware_models_responses.go @@ -111,6 +111,11 @@ func (o *HardwareModelQueryHardwareModelsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model query hardware models o k response +func (o *HardwareModelQueryHardwareModelsOK) Code() int { + return 200 +} + func (o *HardwareModelQueryHardwareModelsOK) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *HardwareModelQueryHardwareModelsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the hardware model query hardware models bad request response +func (o *HardwareModelQueryHardwareModelsBadRequest) Code() int { + return 400 +} + func (o *HardwareModelQueryHardwareModelsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *HardwareModelQueryHardwareModelsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model query hardware models unauthorized response +func (o *HardwareModelQueryHardwareModelsUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelQueryHardwareModelsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *HardwareModelQueryHardwareModelsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model query hardware models forbidden response +func (o *HardwareModelQueryHardwareModelsForbidden) Code() int { + return 403 +} + func (o *HardwareModelQueryHardwareModelsForbidden) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *HardwareModelQueryHardwareModelsInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model query hardware models internal server error response +func (o *HardwareModelQueryHardwareModelsInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelQueryHardwareModelsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *HardwareModelQueryHardwareModelsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model query hardware models gateway timeout response +func (o *HardwareModelQueryHardwareModelsGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelQueryHardwareModelsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] hardwareModelQueryHardwareModelsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type HardwareModelQueryHardwareModelsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model query hardware models default response -func (o *HardwareModelQueryHardwareModelsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model query hardware models default response has a 2xx status code func (o *HardwareModelQueryHardwareModelsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *HardwareModelQueryHardwareModelsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model query hardware models default response +func (o *HardwareModelQueryHardwareModelsDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelQueryHardwareModelsDefault) Error() string { return fmt.Sprintf("[GET /v1/sysmodels][%d] HardwareModel_QueryHardwareModels default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/hardware_model/hardware_model_update_hardware_brand_responses.go b/swagger_client/hardware_model/hardware_model_update_hardware_brand_responses.go index 6038346..a92b7c1 100644 --- a/swagger_client/hardware_model/hardware_model_update_hardware_brand_responses.go +++ b/swagger_client/hardware_model/hardware_model_update_hardware_brand_responses.go @@ -121,6 +121,11 @@ func (o *HardwareModelUpdateHardwareBrandOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model update hardware brand o k response +func (o *HardwareModelUpdateHardwareBrandOK) Code() int { + return 200 +} + func (o *HardwareModelUpdateHardwareBrandOK) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *HardwareModelUpdateHardwareBrandUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model update hardware brand unauthorized response +func (o *HardwareModelUpdateHardwareBrandUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelUpdateHardwareBrandUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *HardwareModelUpdateHardwareBrandForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model update hardware brand forbidden response +func (o *HardwareModelUpdateHardwareBrandForbidden) Code() int { + return 403 +} + func (o *HardwareModelUpdateHardwareBrandForbidden) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *HardwareModelUpdateHardwareBrandNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model update hardware brand not found response +func (o *HardwareModelUpdateHardwareBrandNotFound) Code() int { + return 404 +} + func (o *HardwareModelUpdateHardwareBrandNotFound) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *HardwareModelUpdateHardwareBrandConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the hardware model update hardware brand conflict response +func (o *HardwareModelUpdateHardwareBrandConflict) Code() int { + return 409 +} + func (o *HardwareModelUpdateHardwareBrandConflict) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *HardwareModelUpdateHardwareBrandInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model update hardware brand internal server error response +func (o *HardwareModelUpdateHardwareBrandInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelUpdateHardwareBrandInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *HardwareModelUpdateHardwareBrandGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model update hardware brand gateway timeout response +func (o *HardwareModelUpdateHardwareBrandGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelUpdateHardwareBrandGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] hardwareModelUpdateHardwareBrandGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type HardwareModelUpdateHardwareBrandDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model update hardware brand default response -func (o *HardwareModelUpdateHardwareBrandDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model update hardware brand default response has a 2xx status code func (o *HardwareModelUpdateHardwareBrandDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *HardwareModelUpdateHardwareBrandDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model update hardware brand default response +func (o *HardwareModelUpdateHardwareBrandDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelUpdateHardwareBrandDefault) Error() string { return fmt.Sprintf("[PUT /v1/brands/id/{id}][%d] HardwareModel_UpdateHardwareBrand default %+v", o._statusCode, o.Payload) } @@ -810,6 +845,7 @@ func (o *HardwareModelUpdateHardwareBrandBody) ContextValidate(ctx context.Conte func (o *HardwareModelUpdateHardwareBrandBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -826,6 +862,11 @@ func (o *HardwareModelUpdateHardwareBrandBody) contextValidateOriginType(ctx con func (o *HardwareModelUpdateHardwareBrandBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -842,6 +883,11 @@ func (o *HardwareModelUpdateHardwareBrandBody) contextValidateRevision(ctx conte func (o *HardwareModelUpdateHardwareBrandBody) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if o.State != nil { + + if swag.IsZero(o.State) { // not required + return nil + } + if err := o.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "state") diff --git a/swagger_client/hardware_model/hardware_model_update_hardware_model_responses.go b/swagger_client/hardware_model/hardware_model_update_hardware_model_responses.go index d2aef5d..2dfb184 100644 --- a/swagger_client/hardware_model/hardware_model_update_hardware_model_responses.go +++ b/swagger_client/hardware_model/hardware_model_update_hardware_model_responses.go @@ -122,6 +122,11 @@ func (o *HardwareModelUpdateHardwareModelOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the hardware model update hardware model o k response +func (o *HardwareModelUpdateHardwareModelOK) Code() int { + return 200 +} + func (o *HardwareModelUpdateHardwareModelOK) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *HardwareModelUpdateHardwareModelUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the hardware model update hardware model unauthorized response +func (o *HardwareModelUpdateHardwareModelUnauthorized) Code() int { + return 401 +} + func (o *HardwareModelUpdateHardwareModelUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *HardwareModelUpdateHardwareModelForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the hardware model update hardware model forbidden response +func (o *HardwareModelUpdateHardwareModelForbidden) Code() int { + return 403 +} + func (o *HardwareModelUpdateHardwareModelForbidden) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *HardwareModelUpdateHardwareModelNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the hardware model update hardware model not found response +func (o *HardwareModelUpdateHardwareModelNotFound) Code() int { + return 404 +} + func (o *HardwareModelUpdateHardwareModelNotFound) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *HardwareModelUpdateHardwareModelConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the hardware model update hardware model conflict response +func (o *HardwareModelUpdateHardwareModelConflict) Code() int { + return 409 +} + func (o *HardwareModelUpdateHardwareModelConflict) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *HardwareModelUpdateHardwareModelInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the hardware model update hardware model internal server error response +func (o *HardwareModelUpdateHardwareModelInternalServerError) Code() int { + return 500 +} + func (o *HardwareModelUpdateHardwareModelInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *HardwareModelUpdateHardwareModelGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the hardware model update hardware model gateway timeout response +func (o *HardwareModelUpdateHardwareModelGatewayTimeout) Code() int { + return 504 +} + func (o *HardwareModelUpdateHardwareModelGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] hardwareModelUpdateHardwareModelGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type HardwareModelUpdateHardwareModelDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the hardware model update hardware model default response -func (o *HardwareModelUpdateHardwareModelDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this hardware model update hardware model default response has a 2xx status code func (o *HardwareModelUpdateHardwareModelDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *HardwareModelUpdateHardwareModelDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the hardware model update hardware model default response +func (o *HardwareModelUpdateHardwareModelDefault) Code() int { + return o._statusCode +} + func (o *HardwareModelUpdateHardwareModelDefault) Error() string { return fmt.Sprintf("[PUT /v1/sysmodels/id/{id}][%d] HardwareModel_UpdateHardwareModel default %+v", o._statusCode, o.Payload) } @@ -1009,6 +1044,11 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidatePCRTemplates(ctx c for i := 0; i < len(o.PCRTemplates); i++ { if o.PCRTemplates[i] != nil { + + if swag.IsZero(o.PCRTemplates[i]) { // not required + return nil + } + if err := o.PCRTemplates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "PCRTemplates" + "." + strconv.Itoa(i)) @@ -1029,6 +1069,11 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateIoMemberList(ctx c for i := 0; i < len(o.IoMemberList); i++ { if o.IoMemberList[i] != nil { + + if swag.IsZero(o.IoMemberList[i]) { // not required + return nil + } + if err := o.IoMemberList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "ioMemberList" + "." + strconv.Itoa(i)) @@ -1047,6 +1092,7 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateIoMemberList(ctx c func (o *HardwareModelUpdateHardwareModelBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -1063,6 +1109,11 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateOriginType(ctx con func (o *HardwareModelUpdateHardwareModelBody) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if o.ParentDetail != nil { + + if swag.IsZero(o.ParentDetail) { // not required + return nil + } + if err := o.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "parentDetail") @@ -1079,6 +1130,11 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateParentDetail(ctx c func (o *HardwareModelUpdateHardwareModelBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1095,6 +1151,7 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateRevision(ctx conte func (o *HardwareModelUpdateHardwareModelBody) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if o.State != nil { + if err := o.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "state") @@ -1111,6 +1168,7 @@ func (o *HardwareModelUpdateHardwareModelBody) contextValidateState(ctx context. func (o *HardwareModelUpdateHardwareModelBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/identity_access_management/identity_access_management_create_auth_profile_responses.go b/swagger_client/identity_access_management/identity_access_management_create_auth_profile_responses.go index 3937756..dfa319f 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_auth_profile_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_auth_profile_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateAuthProfileOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create auth profile o k response +func (o *IdentityAccessManagementCreateAuthProfileOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateAuthProfileOK) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateAuthProfileBadRequest) IsCode(code int) b return code == 400 } +// Code gets the status code for the identity access management create auth profile bad request response +func (o *IdentityAccessManagementCreateAuthProfileBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateAuthProfileBadRequest) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateAuthProfileUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management create auth profile unauthorized response +func (o *IdentityAccessManagementCreateAuthProfileUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateAuthProfileUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateAuthProfileForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management create auth profile forbidden response +func (o *IdentityAccessManagementCreateAuthProfileForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateAuthProfileForbidden) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateAuthProfileConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the identity access management create auth profile conflict response +func (o *IdentityAccessManagementCreateAuthProfileConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateAuthProfileConflict) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateAuthProfileInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management create auth profile internal server error response +func (o *IdentityAccessManagementCreateAuthProfileInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateAuthProfileInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateAuthProfileGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management create auth profile gateway timeout response +func (o *IdentityAccessManagementCreateAuthProfileGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateAuthProfileGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] identityAccessManagementCreateAuthProfileGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateAuthProfileDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create auth profile default response -func (o *IdentityAccessManagementCreateAuthProfileDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create auth profile default response has a 2xx status code func (o *IdentityAccessManagementCreateAuthProfileDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateAuthProfileDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management create auth profile default response +func (o *IdentityAccessManagementCreateAuthProfileDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateAuthProfileDefault) Error() string { return fmt.Sprintf("[POST /v1/authorization/profiles][%d] IdentityAccessManagement_CreateAuthProfile default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_credential_responses.go b/swagger_client/identity_access_management/identity_access_management_create_credential_responses.go index 160a2a0..9f326a1 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_credential_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_credential_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateCredentialOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create credential o k response +func (o *IdentityAccessManagementCreateCredentialOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateCredentialOK) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateCredentialBadRequest) IsCode(code int) bo return code == 400 } +// Code gets the status code for the identity access management create credential bad request response +func (o *IdentityAccessManagementCreateCredentialBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateCredentialBadRequest) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateCredentialUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management create credential unauthorized response +func (o *IdentityAccessManagementCreateCredentialUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateCredentialUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateCredentialForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management create credential forbidden response +func (o *IdentityAccessManagementCreateCredentialForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateCredentialForbidden) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateCredentialConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the identity access management create credential conflict response +func (o *IdentityAccessManagementCreateCredentialConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateCredentialConflict) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateCredentialInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management create credential internal server error response +func (o *IdentityAccessManagementCreateCredentialInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateCredentialInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateCredentialGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management create credential gateway timeout response +func (o *IdentityAccessManagementCreateCredentialGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateCredentialGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] identityAccessManagementCreateCredentialGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateCredentialDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create credential default response -func (o *IdentityAccessManagementCreateCredentialDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create credential default response has a 2xx status code func (o *IdentityAccessManagementCreateCredentialDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateCredentialDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management create credential default response +func (o *IdentityAccessManagementCreateCredentialDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateCredentialDefault) Error() string { return fmt.Sprintf("[POST /v1/credentials][%d] IdentityAccessManagement_CreateCredential default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_enterprise_responses.go b/swagger_client/identity_access_management/identity_access_management_create_enterprise_responses.go index d81eea2..6157b96 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_enterprise_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_enterprise_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateEnterpriseOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create enterprise o k response +func (o *IdentityAccessManagementCreateEnterpriseOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateEnterpriseOK) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateEnterpriseBadRequest) IsCode(code int) bo return code == 400 } +// Code gets the status code for the identity access management create enterprise bad request response +func (o *IdentityAccessManagementCreateEnterpriseBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateEnterpriseBadRequest) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateEnterpriseUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management create enterprise unauthorized response +func (o *IdentityAccessManagementCreateEnterpriseUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateEnterpriseUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateEnterpriseForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management create enterprise forbidden response +func (o *IdentityAccessManagementCreateEnterpriseForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateEnterpriseForbidden) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateEnterpriseConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the identity access management create enterprise conflict response +func (o *IdentityAccessManagementCreateEnterpriseConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateEnterpriseConflict) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateEnterpriseInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management create enterprise internal server error response +func (o *IdentityAccessManagementCreateEnterpriseInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateEnterpriseInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateEnterpriseGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management create enterprise gateway timeout response +func (o *IdentityAccessManagementCreateEnterpriseGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateEnterpriseGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] identityAccessManagementCreateEnterpriseGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateEnterpriseDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create enterprise default response -func (o *IdentityAccessManagementCreateEnterpriseDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create enterprise default response has a 2xx status code func (o *IdentityAccessManagementCreateEnterpriseDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateEnterpriseDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management create enterprise default response +func (o *IdentityAccessManagementCreateEnterpriseDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateEnterpriseDefault) Error() string { return fmt.Sprintf("[POST /v1/enterprises][%d] IdentityAccessManagement_CreateEnterprise default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_realm_responses.go b/swagger_client/identity_access_management/identity_access_management_create_realm_responses.go index 66d90d1..eb09cd6 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_realm_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_realm_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateRealmOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create realm o k response +func (o *IdentityAccessManagementCreateRealmOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateRealmOK) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateRealmBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management create realm bad request response +func (o *IdentityAccessManagementCreateRealmBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateRealmBadRequest) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateRealmUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management create realm unauthorized response +func (o *IdentityAccessManagementCreateRealmUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateRealmUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateRealmForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management create realm forbidden response +func (o *IdentityAccessManagementCreateRealmForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateRealmForbidden) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateRealmConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management create realm conflict response +func (o *IdentityAccessManagementCreateRealmConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateRealmConflict) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateRealmInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management create realm internal server error response +func (o *IdentityAccessManagementCreateRealmInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateRealmInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateRealmGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management create realm gateway timeout response +func (o *IdentityAccessManagementCreateRealmGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateRealmGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] identityAccessManagementCreateRealmGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateRealmDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create realm default response -func (o *IdentityAccessManagementCreateRealmDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create realm default response has a 2xx status code func (o *IdentityAccessManagementCreateRealmDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateRealmDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management create realm default response +func (o *IdentityAccessManagementCreateRealmDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateRealmDefault) Error() string { return fmt.Sprintf("[POST /v1/realms][%d] IdentityAccessManagement_CreateRealm default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_role_responses.go b/swagger_client/identity_access_management/identity_access_management_create_role_responses.go index 6186d32..816611b 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_role_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_role_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateRoleOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create role o k response +func (o *IdentityAccessManagementCreateRoleOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateRoleOK) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateRoleBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management create role bad request response +func (o *IdentityAccessManagementCreateRoleBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateRoleBadRequest) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateRoleUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management create role unauthorized response +func (o *IdentityAccessManagementCreateRoleUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateRoleUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateRoleForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management create role forbidden response +func (o *IdentityAccessManagementCreateRoleForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateRoleForbidden) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateRoleConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management create role conflict response +func (o *IdentityAccessManagementCreateRoleConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateRoleConflict) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateRoleInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management create role internal server error response +func (o *IdentityAccessManagementCreateRoleInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateRoleInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateRoleGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management create role gateway timeout response +func (o *IdentityAccessManagementCreateRoleGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateRoleGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] identityAccessManagementCreateRoleGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateRoleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create role default response -func (o *IdentityAccessManagementCreateRoleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create role default response has a 2xx status code func (o *IdentityAccessManagementCreateRoleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateRoleDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management create role default response +func (o *IdentityAccessManagementCreateRoleDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateRoleDefault) Error() string { return fmt.Sprintf("[POST /v1/roles][%d] IdentityAccessManagement_CreateRole default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_user_responses.go b/swagger_client/identity_access_management/identity_access_management_create_user_responses.go index a803f37..fbf015d 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_user_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_user_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementCreateUserOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management create user o k response +func (o *IdentityAccessManagementCreateUserOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateUserOK) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementCreateUserBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management create user bad request response +func (o *IdentityAccessManagementCreateUserBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementCreateUserBadRequest) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementCreateUserUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management create user unauthorized response +func (o *IdentityAccessManagementCreateUserUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateUserUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementCreateUserForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management create user forbidden response +func (o *IdentityAccessManagementCreateUserForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateUserForbidden) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementCreateUserConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management create user conflict response +func (o *IdentityAccessManagementCreateUserConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementCreateUserConflict) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementCreateUserInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management create user internal server error response +func (o *IdentityAccessManagementCreateUserInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateUserInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementCreateUserGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management create user gateway timeout response +func (o *IdentityAccessManagementCreateUserGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateUserGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/users][%d] identityAccessManagementCreateUserGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementCreateUserDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create user default response -func (o *IdentityAccessManagementCreateUserDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create user default response has a 2xx status code func (o *IdentityAccessManagementCreateUserDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementCreateUserDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management create user default response +func (o *IdentityAccessManagementCreateUserDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateUserDefault) Error() string { return fmt.Sprintf("[POST /v1/users][%d] IdentityAccessManagement_CreateUser default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_create_user_session_self_responses.go b/swagger_client/identity_access_management/identity_access_management_create_user_session_self_responses.go index 5f4200a..b4e6861 100644 --- a/swagger_client/identity_access_management/identity_access_management_create_user_session_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_create_user_session_self_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the identity access management create user session self o k response +func (o *IdentityAccessManagementCreateUserSessionSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementCreateUserSessionSelfOK) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] identityAccessManagementCreateUserSessionSelfOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the identity access management create user session self unauthorized response +func (o *IdentityAccessManagementCreateUserSessionSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementCreateUserSessionSelfUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] identityAccessManagementCreateUserSessionSelfUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the identity access management create user session self forbidden response +func (o *IdentityAccessManagementCreateUserSessionSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementCreateUserSessionSelfForbidden) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] identityAccessManagementCreateUserSessionSelfForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfInternalServerError) IsCod return code == 500 } +// Code gets the status code for the identity access management create user session self internal server error response +func (o *IdentityAccessManagementCreateUserSessionSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementCreateUserSessionSelfInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] identityAccessManagementCreateUserSessionSelfInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the identity access management create user session self gateway timeout response +func (o *IdentityAccessManagementCreateUserSessionSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementCreateUserSessionSelfGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] identityAccessManagementCreateUserSessionSelfGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementCreateUserSessionSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management create user session self default response -func (o *IdentityAccessManagementCreateUserSessionSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management create user session self default response has a 2xx status code func (o *IdentityAccessManagementCreateUserSessionSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementCreateUserSessionSelfDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the identity access management create user session self default response +func (o *IdentityAccessManagementCreateUserSessionSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementCreateUserSessionSelfDefault) Error() string { return fmt.Sprintf("[POST /v1/sessions/token/self][%d] IdentityAccessManagement_CreateUserSessionSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_auth_profile_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_auth_profile_responses.go index 5e0affe..45e4ee8 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_auth_profile_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_auth_profile_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete auth profile o k response +func (o *IdentityAccessManagementDeleteAuthProfileOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteAuthProfileOK) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management delete auth profile unauthorized response +func (o *IdentityAccessManagementDeleteAuthProfileUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteAuthProfileUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management delete auth profile forbidden response +func (o *IdentityAccessManagementDeleteAuthProfileForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteAuthProfileForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the identity access management delete auth profile not found response +func (o *IdentityAccessManagementDeleteAuthProfileNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteAuthProfileNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management delete auth profile internal server error response +func (o *IdentityAccessManagementDeleteAuthProfileInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteAuthProfileInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management delete auth profile gateway timeout response +func (o *IdentityAccessManagementDeleteAuthProfileGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteAuthProfileGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] identityAccessManagementDeleteAuthProfileGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementDeleteAuthProfileDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete auth profile default response -func (o *IdentityAccessManagementDeleteAuthProfileDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete auth profile default response has a 2xx status code func (o *IdentityAccessManagementDeleteAuthProfileDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementDeleteAuthProfileDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management delete auth profile default response +func (o *IdentityAccessManagementDeleteAuthProfileDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteAuthProfileDefault) Error() string { return fmt.Sprintf("[DELETE /v1/authorization/profiles/id/{id}][%d] IdentityAccessManagement_DeleteAuthProfile default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_credential_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_credential_responses.go index 2a54706..4895f19 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_credential_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_credential_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementDeleteCredentialOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete credential o k response +func (o *IdentityAccessManagementDeleteCredentialOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteCredentialOK) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementDeleteCredentialUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management delete credential unauthorized response +func (o *IdentityAccessManagementDeleteCredentialUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteCredentialUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementDeleteCredentialForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management delete credential forbidden response +func (o *IdentityAccessManagementDeleteCredentialForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteCredentialForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementDeleteCredentialNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the identity access management delete credential not found response +func (o *IdentityAccessManagementDeleteCredentialNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteCredentialNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementDeleteCredentialInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management delete credential internal server error response +func (o *IdentityAccessManagementDeleteCredentialInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteCredentialInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementDeleteCredentialGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management delete credential gateway timeout response +func (o *IdentityAccessManagementDeleteCredentialGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteCredentialGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] identityAccessManagementDeleteCredentialGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementDeleteCredentialDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete credential default response -func (o *IdentityAccessManagementDeleteCredentialDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete credential default response has a 2xx status code func (o *IdentityAccessManagementDeleteCredentialDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementDeleteCredentialDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management delete credential default response +func (o *IdentityAccessManagementDeleteCredentialDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteCredentialDefault) Error() string { return fmt.Sprintf("[DELETE /v1/credentials/id/{id}][%d] IdentityAccessManagement_DeleteCredential default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_enterprise_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_enterprise_responses.go index d7e4686..e1cceb2 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_enterprise_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_enterprise_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete enterprise o k response +func (o *IdentityAccessManagementDeleteEnterpriseOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteEnterpriseOK) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management delete enterprise unauthorized response +func (o *IdentityAccessManagementDeleteEnterpriseUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteEnterpriseUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management delete enterprise forbidden response +func (o *IdentityAccessManagementDeleteEnterpriseForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteEnterpriseForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the identity access management delete enterprise not found response +func (o *IdentityAccessManagementDeleteEnterpriseNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteEnterpriseNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the identity access management delete enterprise conflict response +func (o *IdentityAccessManagementDeleteEnterpriseConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementDeleteEnterpriseConflict) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management delete enterprise internal server error response +func (o *IdentityAccessManagementDeleteEnterpriseInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteEnterpriseInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management delete enterprise gateway timeout response +func (o *IdentityAccessManagementDeleteEnterpriseGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteEnterpriseGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] identityAccessManagementDeleteEnterpriseGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementDeleteEnterpriseDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete enterprise default response -func (o *IdentityAccessManagementDeleteEnterpriseDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete enterprise default response has a 2xx status code func (o *IdentityAccessManagementDeleteEnterpriseDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementDeleteEnterpriseDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management delete enterprise default response +func (o *IdentityAccessManagementDeleteEnterpriseDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteEnterpriseDefault) Error() string { return fmt.Sprintf("[DELETE /v1/enterprises/id/{id}][%d] IdentityAccessManagement_DeleteEnterprise default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_realm_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_realm_responses.go index b49f019..c4d0238 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_realm_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_realm_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementDeleteRealmOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete realm o k response +func (o *IdentityAccessManagementDeleteRealmOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteRealmOK) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementDeleteRealmUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management delete realm unauthorized response +func (o *IdentityAccessManagementDeleteRealmUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteRealmUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementDeleteRealmForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management delete realm forbidden response +func (o *IdentityAccessManagementDeleteRealmForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteRealmForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementDeleteRealmNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management delete realm not found response +func (o *IdentityAccessManagementDeleteRealmNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteRealmNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementDeleteRealmInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management delete realm internal server error response +func (o *IdentityAccessManagementDeleteRealmInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteRealmInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementDeleteRealmGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management delete realm gateway timeout response +func (o *IdentityAccessManagementDeleteRealmGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteRealmGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] identityAccessManagementDeleteRealmGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementDeleteRealmDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete realm default response -func (o *IdentityAccessManagementDeleteRealmDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete realm default response has a 2xx status code func (o *IdentityAccessManagementDeleteRealmDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementDeleteRealmDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management delete realm default response +func (o *IdentityAccessManagementDeleteRealmDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteRealmDefault) Error() string { return fmt.Sprintf("[DELETE /v1/realms/id/{id}][%d] IdentityAccessManagement_DeleteRealm default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_role_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_role_responses.go index 4d664ed..25bc880 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_role_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_role_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementDeleteRoleOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete role o k response +func (o *IdentityAccessManagementDeleteRoleOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteRoleOK) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementDeleteRoleUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management delete role unauthorized response +func (o *IdentityAccessManagementDeleteRoleUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteRoleUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementDeleteRoleForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management delete role forbidden response +func (o *IdentityAccessManagementDeleteRoleForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteRoleForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementDeleteRoleNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management delete role not found response +func (o *IdentityAccessManagementDeleteRoleNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteRoleNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementDeleteRoleConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management delete role conflict response +func (o *IdentityAccessManagementDeleteRoleConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementDeleteRoleConflict) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementDeleteRoleInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management delete role internal server error response +func (o *IdentityAccessManagementDeleteRoleInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteRoleInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementDeleteRoleGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management delete role gateway timeout response +func (o *IdentityAccessManagementDeleteRoleGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteRoleGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] identityAccessManagementDeleteRoleGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementDeleteRoleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete role default response -func (o *IdentityAccessManagementDeleteRoleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete role default response has a 2xx status code func (o *IdentityAccessManagementDeleteRoleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementDeleteRoleDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management delete role default response +func (o *IdentityAccessManagementDeleteRoleDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteRoleDefault) Error() string { return fmt.Sprintf("[DELETE /v1/roles/id/{id}][%d] IdentityAccessManagement_DeleteRole default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_delete_user_responses.go b/swagger_client/identity_access_management/identity_access_management_delete_user_responses.go index 9b12c43..234969b 100644 --- a/swagger_client/identity_access_management/identity_access_management_delete_user_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_delete_user_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementDeleteUserOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management delete user o k response +func (o *IdentityAccessManagementDeleteUserOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementDeleteUserOK) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementDeleteUserUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management delete user unauthorized response +func (o *IdentityAccessManagementDeleteUserUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementDeleteUserUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementDeleteUserForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management delete user forbidden response +func (o *IdentityAccessManagementDeleteUserForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementDeleteUserForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementDeleteUserNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management delete user not found response +func (o *IdentityAccessManagementDeleteUserNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementDeleteUserNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementDeleteUserInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management delete user internal server error response +func (o *IdentityAccessManagementDeleteUserInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementDeleteUserInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementDeleteUserGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management delete user gateway timeout response +func (o *IdentityAccessManagementDeleteUserGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementDeleteUserGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] identityAccessManagementDeleteUserGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementDeleteUserDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management delete user default response -func (o *IdentityAccessManagementDeleteUserDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management delete user default response has a 2xx status code func (o *IdentityAccessManagementDeleteUserDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementDeleteUserDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management delete user default response +func (o *IdentityAccessManagementDeleteUserDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementDeleteUserDefault) Error() string { return fmt.Sprintf("[DELETE /v1/users/id/{id}][%d] IdentityAccessManagement_DeleteUser default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_auth_profile_by_name_responses.go b/swagger_client/identity_access_management/identity_access_management_get_auth_profile_by_name_responses.go index 346e31a..c4b9f59 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_auth_profile_by_name_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_auth_profile_by_name_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get auth profile by name o k response +func (o *IdentityAccessManagementGetAuthProfileByNameOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetAuthProfileByNameOK) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the identity access management get auth profile by name unauthorized response +func (o *IdentityAccessManagementGetAuthProfileByNameUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetAuthProfileByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the identity access management get auth profile by name forbidden response +func (o *IdentityAccessManagementGetAuthProfileByNameForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetAuthProfileByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the identity access management get auth profile by name not found response +func (o *IdentityAccessManagementGetAuthProfileByNameNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetAuthProfileByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameInternalServerError) IsCode return code == 500 } +// Code gets the status code for the identity access management get auth profile by name internal server error response +func (o *IdentityAccessManagementGetAuthProfileByNameInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetAuthProfileByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the identity access management get auth profile by name gateway timeout response +func (o *IdentityAccessManagementGetAuthProfileByNameGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetAuthProfileByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] identityAccessManagementGetAuthProfileByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetAuthProfileByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get auth profile by name default response -func (o *IdentityAccessManagementGetAuthProfileByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get auth profile by name default response has a 2xx status code func (o *IdentityAccessManagementGetAuthProfileByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetAuthProfileByNameDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the identity access management get auth profile by name default response +func (o *IdentityAccessManagementGetAuthProfileByNameDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetAuthProfileByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/name/{name}][%d] IdentityAccessManagement_GetAuthProfileByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_auth_profile_responses.go b/swagger_client/identity_access_management/identity_access_management_get_auth_profile_responses.go index e959bc9..6a5cf32 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_auth_profile_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_auth_profile_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetAuthProfileOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get auth profile o k response +func (o *IdentityAccessManagementGetAuthProfileOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetAuthProfileOK) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetAuthProfileUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the identity access management get auth profile unauthorized response +func (o *IdentityAccessManagementGetAuthProfileUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetAuthProfileUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetAuthProfileForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the identity access management get auth profile forbidden response +func (o *IdentityAccessManagementGetAuthProfileForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetAuthProfileForbidden) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetAuthProfileNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get auth profile not found response +func (o *IdentityAccessManagementGetAuthProfileNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetAuthProfileNotFound) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetAuthProfileInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the identity access management get auth profile internal server error response +func (o *IdentityAccessManagementGetAuthProfileInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetAuthProfileInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetAuthProfileGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the identity access management get auth profile gateway timeout response +func (o *IdentityAccessManagementGetAuthProfileGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetAuthProfileGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] identityAccessManagementGetAuthProfileGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetAuthProfileDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get auth profile default response -func (o *IdentityAccessManagementGetAuthProfileDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get auth profile default response has a 2xx status code func (o *IdentityAccessManagementGetAuthProfileDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetAuthProfileDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get auth profile default response +func (o *IdentityAccessManagementGetAuthProfileDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetAuthProfileDefault) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles/id/{id}][%d] IdentityAccessManagement_GetAuthProfile default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_enterprise_by_name_responses.go b/swagger_client/identity_access_management/identity_access_management_get_enterprise_by_name_responses.go index b06297b..f9c71e9 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_enterprise_by_name_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_enterprise_by_name_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get enterprise by name o k response +func (o *IdentityAccessManagementGetEnterpriseByNameOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetEnterpriseByNameOK) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the identity access management get enterprise by name unauthorized response +func (o *IdentityAccessManagementGetEnterpriseByNameUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetEnterpriseByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the identity access management get enterprise by name forbidden response +func (o *IdentityAccessManagementGetEnterpriseByNameForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetEnterpriseByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the identity access management get enterprise by name not found response +func (o *IdentityAccessManagementGetEnterpriseByNameNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetEnterpriseByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the identity access management get enterprise by name internal server error response +func (o *IdentityAccessManagementGetEnterpriseByNameInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetEnterpriseByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the identity access management get enterprise by name gateway timeout response +func (o *IdentityAccessManagementGetEnterpriseByNameGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetEnterpriseByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] identityAccessManagementGetEnterpriseByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetEnterpriseByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get enterprise by name default response -func (o *IdentityAccessManagementGetEnterpriseByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get enterprise by name default response has a 2xx status code func (o *IdentityAccessManagementGetEnterpriseByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetEnterpriseByNameDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the identity access management get enterprise by name default response +func (o *IdentityAccessManagementGetEnterpriseByNameDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetEnterpriseByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/enterprises/name/{name}][%d] IdentityAccessManagement_GetEnterpriseByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_enterprise_responses.go b/swagger_client/identity_access_management/identity_access_management_get_enterprise_responses.go index 23ad5ff..fe9d55f 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_enterprise_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_enterprise_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetEnterpriseOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get enterprise o k response +func (o *IdentityAccessManagementGetEnterpriseOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetEnterpriseOK) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetEnterpriseUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the identity access management get enterprise unauthorized response +func (o *IdentityAccessManagementGetEnterpriseUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetEnterpriseUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetEnterpriseForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get enterprise forbidden response +func (o *IdentityAccessManagementGetEnterpriseForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetEnterpriseForbidden) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetEnterpriseNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get enterprise not found response +func (o *IdentityAccessManagementGetEnterpriseNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetEnterpriseNotFound) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetEnterpriseInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the identity access management get enterprise internal server error response +func (o *IdentityAccessManagementGetEnterpriseInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetEnterpriseInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetEnterpriseGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the identity access management get enterprise gateway timeout response +func (o *IdentityAccessManagementGetEnterpriseGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetEnterpriseGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] identityAccessManagementGetEnterpriseGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetEnterpriseDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get enterprise default response -func (o *IdentityAccessManagementGetEnterpriseDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get enterprise default response has a 2xx status code func (o *IdentityAccessManagementGetEnterpriseDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetEnterpriseDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get enterprise default response +func (o *IdentityAccessManagementGetEnterpriseDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetEnterpriseDefault) Error() string { return fmt.Sprintf("[GET /v1/enterprises/id/{id}][%d] IdentityAccessManagement_GetEnterprise default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_enterprise_self_responses.go b/swagger_client/identity_access_management/identity_access_management_get_enterprise_self_responses.go index 86678fc..9dd50b4 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_enterprise_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_enterprise_self_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get enterprise self o k response +func (o *IdentityAccessManagementGetEnterpriseSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetEnterpriseSelfOK) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management get enterprise self unauthorized response +func (o *IdentityAccessManagementGetEnterpriseSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetEnterpriseSelfUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management get enterprise self forbidden response +func (o *IdentityAccessManagementGetEnterpriseSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetEnterpriseSelfForbidden) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the identity access management get enterprise self not found response +func (o *IdentityAccessManagementGetEnterpriseSelfNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetEnterpriseSelfNotFound) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management get enterprise self internal server error response +func (o *IdentityAccessManagementGetEnterpriseSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetEnterpriseSelfInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management get enterprise self gateway timeout response +func (o *IdentityAccessManagementGetEnterpriseSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetEnterpriseSelfGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] identityAccessManagementGetEnterpriseSelfGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetEnterpriseSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get enterprise self default response -func (o *IdentityAccessManagementGetEnterpriseSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get enterprise self default response has a 2xx status code func (o *IdentityAccessManagementGetEnterpriseSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetEnterpriseSelfDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management get enterprise self default response +func (o *IdentityAccessManagementGetEnterpriseSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetEnterpriseSelfDefault) Error() string { return fmt.Sprintf("[GET /v1/enterprises/self][%d] IdentityAccessManagement_GetEnterpriseSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_realm_by_name_responses.go b/swagger_client/identity_access_management/identity_access_management_get_realm_by_name_responses.go index afab8c3..8c2260b 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_realm_by_name_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_realm_by_name_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetRealmByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get realm by name o k response +func (o *IdentityAccessManagementGetRealmByNameOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetRealmByNameOK) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetRealmByNameUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the identity access management get realm by name unauthorized response +func (o *IdentityAccessManagementGetRealmByNameUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetRealmByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetRealmByNameForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the identity access management get realm by name forbidden response +func (o *IdentityAccessManagementGetRealmByNameForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetRealmByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetRealmByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get realm by name not found response +func (o *IdentityAccessManagementGetRealmByNameNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetRealmByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetRealmByNameInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the identity access management get realm by name internal server error response +func (o *IdentityAccessManagementGetRealmByNameInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetRealmByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetRealmByNameGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the identity access management get realm by name gateway timeout response +func (o *IdentityAccessManagementGetRealmByNameGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetRealmByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] identityAccessManagementGetRealmByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetRealmByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get realm by name default response -func (o *IdentityAccessManagementGetRealmByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get realm by name default response has a 2xx status code func (o *IdentityAccessManagementGetRealmByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetRealmByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get realm by name default response +func (o *IdentityAccessManagementGetRealmByNameDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetRealmByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/realms/name/{name}][%d] IdentityAccessManagement_GetRealmByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_realm_responses.go b/swagger_client/identity_access_management/identity_access_management_get_realm_responses.go index 6af801c..4b30db9 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_realm_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_realm_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetRealmOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get realm o k response +func (o *IdentityAccessManagementGetRealmOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetRealmOK) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetRealmUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management get realm unauthorized response +func (o *IdentityAccessManagementGetRealmUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetRealmUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetRealmForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get realm forbidden response +func (o *IdentityAccessManagementGetRealmForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetRealmForbidden) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetRealmNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get realm not found response +func (o *IdentityAccessManagementGetRealmNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetRealmNotFound) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetRealmInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the identity access management get realm internal server error response +func (o *IdentityAccessManagementGetRealmInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetRealmInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetRealmGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the identity access management get realm gateway timeout response +func (o *IdentityAccessManagementGetRealmGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetRealmGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] identityAccessManagementGetRealmGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetRealmDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get realm default response -func (o *IdentityAccessManagementGetRealmDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get realm default response has a 2xx status code func (o *IdentityAccessManagementGetRealmDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetRealmDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get realm default response +func (o *IdentityAccessManagementGetRealmDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetRealmDefault) Error() string { return fmt.Sprintf("[GET /v1/realms/id/{id}][%d] IdentityAccessManagement_GetRealm default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_role_by_name_responses.go b/swagger_client/identity_access_management/identity_access_management_get_role_by_name_responses.go index 247fb0a..a996771 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_role_by_name_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_role_by_name_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetRoleByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get role by name o k response +func (o *IdentityAccessManagementGetRoleByNameOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetRoleByNameOK) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetRoleByNameUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the identity access management get role by name unauthorized response +func (o *IdentityAccessManagementGetRoleByNameUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetRoleByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetRoleByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get role by name forbidden response +func (o *IdentityAccessManagementGetRoleByNameForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetRoleByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetRoleByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get role by name not found response +func (o *IdentityAccessManagementGetRoleByNameNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetRoleByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetRoleByNameInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the identity access management get role by name internal server error response +func (o *IdentityAccessManagementGetRoleByNameInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetRoleByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetRoleByNameGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the identity access management get role by name gateway timeout response +func (o *IdentityAccessManagementGetRoleByNameGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetRoleByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] identityAccessManagementGetRoleByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetRoleByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get role by name default response -func (o *IdentityAccessManagementGetRoleByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get role by name default response has a 2xx status code func (o *IdentityAccessManagementGetRoleByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetRoleByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get role by name default response +func (o *IdentityAccessManagementGetRoleByNameDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetRoleByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/roles/name/{name}][%d] IdentityAccessManagement_GetRoleByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_role_responses.go b/swagger_client/identity_access_management/identity_access_management_get_role_responses.go index c694013..1d71ca3 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_role_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_role_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetRoleOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get role o k response +func (o *IdentityAccessManagementGetRoleOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetRoleOK) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetRoleUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management get role unauthorized response +func (o *IdentityAccessManagementGetRoleUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetRoleUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetRoleForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get role forbidden response +func (o *IdentityAccessManagementGetRoleForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetRoleForbidden) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetRoleNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get role not found response +func (o *IdentityAccessManagementGetRoleNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetRoleNotFound) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetRoleInternalServerError) IsCode(code int) bo return code == 500 } +// Code gets the status code for the identity access management get role internal server error response +func (o *IdentityAccessManagementGetRoleInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetRoleInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetRoleGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the identity access management get role gateway timeout response +func (o *IdentityAccessManagementGetRoleGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetRoleGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] identityAccessManagementGetRoleGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetRoleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get role default response -func (o *IdentityAccessManagementGetRoleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get role default response has a 2xx status code func (o *IdentityAccessManagementGetRoleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetRoleDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get role default response +func (o *IdentityAccessManagementGetRoleDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetRoleDefault) Error() string { return fmt.Sprintf("[GET /v1/roles/id/{id}][%d] IdentityAccessManagement_GetRole default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_role_self_responses.go b/swagger_client/identity_access_management/identity_access_management_get_role_self_responses.go index bcf7f08..9464221 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_role_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_role_self_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetRoleSelfOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get role self o k response +func (o *IdentityAccessManagementGetRoleSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetRoleSelfOK) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetRoleSelfUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management get role self unauthorized response +func (o *IdentityAccessManagementGetRoleSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetRoleSelfUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetRoleSelfForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get role self forbidden response +func (o *IdentityAccessManagementGetRoleSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetRoleSelfForbidden) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetRoleSelfNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get role self not found response +func (o *IdentityAccessManagementGetRoleSelfNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetRoleSelfNotFound) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetRoleSelfInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management get role self internal server error response +func (o *IdentityAccessManagementGetRoleSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetRoleSelfInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetRoleSelfGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management get role self gateway timeout response +func (o *IdentityAccessManagementGetRoleSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetRoleSelfGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] identityAccessManagementGetRoleSelfGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetRoleSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get role self default response -func (o *IdentityAccessManagementGetRoleSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get role self default response has a 2xx status code func (o *IdentityAccessManagementGetRoleSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetRoleSelfDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get role self default response +func (o *IdentityAccessManagementGetRoleSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetRoleSelfDefault) Error() string { return fmt.Sprintf("[GET /v1/roles/self][%d] IdentityAccessManagement_GetRoleSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_user_by_name_responses.go b/swagger_client/identity_access_management/identity_access_management_get_user_by_name_responses.go index 6a9ee7a..94d75eb 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_user_by_name_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_user_by_name_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetUserByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get user by name o k response +func (o *IdentityAccessManagementGetUserByNameOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetUserByNameOK) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetUserByNameUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the identity access management get user by name unauthorized response +func (o *IdentityAccessManagementGetUserByNameUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetUserByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetUserByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get user by name forbidden response +func (o *IdentityAccessManagementGetUserByNameForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetUserByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetUserByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get user by name not found response +func (o *IdentityAccessManagementGetUserByNameNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetUserByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetUserByNameInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the identity access management get user by name internal server error response +func (o *IdentityAccessManagementGetUserByNameInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetUserByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetUserByNameGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the identity access management get user by name gateway timeout response +func (o *IdentityAccessManagementGetUserByNameGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetUserByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] identityAccessManagementGetUserByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetUserByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get user by name default response -func (o *IdentityAccessManagementGetUserByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get user by name default response has a 2xx status code func (o *IdentityAccessManagementGetUserByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetUserByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get user by name default response +func (o *IdentityAccessManagementGetUserByNameDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetUserByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/users/name/{name}][%d] IdentityAccessManagement_GetUserByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_user_responses.go b/swagger_client/identity_access_management/identity_access_management_get_user_responses.go index a9ae7be..a9b1684 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_user_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_user_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetUserOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get user o k response +func (o *IdentityAccessManagementGetUserOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetUserOK) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetUserUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management get user unauthorized response +func (o *IdentityAccessManagementGetUserUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetUserUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetUserForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get user forbidden response +func (o *IdentityAccessManagementGetUserForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetUserForbidden) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetUserNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get user not found response +func (o *IdentityAccessManagementGetUserNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetUserNotFound) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetUserInternalServerError) IsCode(code int) bo return code == 500 } +// Code gets the status code for the identity access management get user internal server error response +func (o *IdentityAccessManagementGetUserInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetUserInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetUserGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the identity access management get user gateway timeout response +func (o *IdentityAccessManagementGetUserGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetUserGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] identityAccessManagementGetUserGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetUserDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get user default response -func (o *IdentityAccessManagementGetUserDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get user default response has a 2xx status code func (o *IdentityAccessManagementGetUserDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetUserDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get user default response +func (o *IdentityAccessManagementGetUserDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetUserDefault) Error() string { return fmt.Sprintf("[GET /v1/users/id/{id}][%d] IdentityAccessManagement_GetUser default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_user_self_responses.go b/swagger_client/identity_access_management/identity_access_management_get_user_self_responses.go index 537047b..26a7b4d 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_user_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_user_self_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementGetUserSelfOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get user self o k response +func (o *IdentityAccessManagementGetUserSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetUserSelfOK) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementGetUserSelfUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management get user self unauthorized response +func (o *IdentityAccessManagementGetUserSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetUserSelfUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementGetUserSelfForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management get user self forbidden response +func (o *IdentityAccessManagementGetUserSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetUserSelfForbidden) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementGetUserSelfNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management get user self not found response +func (o *IdentityAccessManagementGetUserSelfNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementGetUserSelfNotFound) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementGetUserSelfInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management get user self internal server error response +func (o *IdentityAccessManagementGetUserSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetUserSelfInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementGetUserSelfGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management get user self gateway timeout response +func (o *IdentityAccessManagementGetUserSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetUserSelfGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] identityAccessManagementGetUserSelfGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementGetUserSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get user self default response -func (o *IdentityAccessManagementGetUserSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get user self default response has a 2xx status code func (o *IdentityAccessManagementGetUserSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementGetUserSelfDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get user self default response +func (o *IdentityAccessManagementGetUserSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetUserSelfDefault) Error() string { return fmt.Sprintf("[GET /v1/users/self][%d] IdentityAccessManagement_GetUserSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_user_session_responses.go b/swagger_client/identity_access_management/identity_access_management_get_user_session_responses.go index fdb25a7..ef9687a 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_user_session_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_user_session_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementGetUserSessionOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get user session o k response +func (o *IdentityAccessManagementGetUserSessionOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetUserSessionOK) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] identityAccessManagementGetUserSessionOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementGetUserSessionUnauthorized) IsCode(code int) bo return code == 401 } +// Code gets the status code for the identity access management get user session unauthorized response +func (o *IdentityAccessManagementGetUserSessionUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetUserSessionUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] identityAccessManagementGetUserSessionUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementGetUserSessionForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the identity access management get user session forbidden response +func (o *IdentityAccessManagementGetUserSessionForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetUserSessionForbidden) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] identityAccessManagementGetUserSessionForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementGetUserSessionInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the identity access management get user session internal server error response +func (o *IdentityAccessManagementGetUserSessionInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetUserSessionInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] identityAccessManagementGetUserSessionInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementGetUserSessionGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the identity access management get user session gateway timeout response +func (o *IdentityAccessManagementGetUserSessionGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetUserSessionGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] identityAccessManagementGetUserSessionGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementGetUserSessionDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get user session default response -func (o *IdentityAccessManagementGetUserSessionDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get user session default response has a 2xx status code func (o *IdentityAccessManagementGetUserSessionDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementGetUserSessionDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management get user session default response +func (o *IdentityAccessManagementGetUserSessionDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetUserSessionDefault) Error() string { return fmt.Sprintf("[GET /v1/sessions/token/{sessionToken.base64}][%d] IdentityAccessManagement_GetUserSession default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_get_user_session_self_responses.go b/swagger_client/identity_access_management/identity_access_management_get_user_session_self_responses.go index 474d8a8..7197d12 100644 --- a/swagger_client/identity_access_management/identity_access_management_get_user_session_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_get_user_session_self_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management get user session self o k response +func (o *IdentityAccessManagementGetUserSessionSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementGetUserSessionSelfOK) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] identityAccessManagementGetUserSessionSelfOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfUnauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the identity access management get user session self unauthorized response +func (o *IdentityAccessManagementGetUserSessionSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementGetUserSessionSelfUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] identityAccessManagementGetUserSessionSelfUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfForbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the identity access management get user session self forbidden response +func (o *IdentityAccessManagementGetUserSessionSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementGetUserSessionSelfForbidden) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] identityAccessManagementGetUserSessionSelfForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfInternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the identity access management get user session self internal server error response +func (o *IdentityAccessManagementGetUserSessionSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementGetUserSessionSelfInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] identityAccessManagementGetUserSessionSelfInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfGatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the identity access management get user session self gateway timeout response +func (o *IdentityAccessManagementGetUserSessionSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementGetUserSessionSelfGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] identityAccessManagementGetUserSessionSelfGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementGetUserSessionSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management get user session self default response -func (o *IdentityAccessManagementGetUserSessionSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management get user session self default response has a 2xx status code func (o *IdentityAccessManagementGetUserSessionSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementGetUserSessionSelfDefault) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the identity access management get user session self default response +func (o *IdentityAccessManagementGetUserSessionSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementGetUserSessionSelfDefault) Error() string { return fmt.Sprintf("[GET /v1/sessions/self][%d] IdentityAccessManagement_GetUserSessionSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_login_external_o_auth2_callback_responses.go b/swagger_client/identity_access_management/identity_access_management_login_external_o_auth2_callback_responses.go index 57eff5b..739bff2 100644 --- a/swagger_client/identity_access_management/identity_access_management_login_external_o_auth2_callback_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_login_external_o_auth2_callback_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackOK) IsCode(code int) return code == 200 } +// Code gets the status code for the identity access management login external o auth2 callback o k response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackOK) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] identityAccessManagementLoginExternalOAuth2CallbackOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackUnauthorized) IsCode return code == 401 } +// Code gets the status code for the identity access management login external o auth2 callback unauthorized response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] identityAccessManagementLoginExternalOAuth2CallbackUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackForbidden) IsCode(co return code == 403 } +// Code gets the status code for the identity access management login external o auth2 callback forbidden response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] identityAccessManagementLoginExternalOAuth2CallbackForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackInternalServerError) return code == 500 } +// Code gets the status code for the identity access management login external o auth2 callback internal server error response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] identityAccessManagementLoginExternalOAuth2CallbackInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackGatewayTimeout) IsCo return code == 504 } +// Code gets the status code for the identity access management login external o auth2 callback gateway timeout response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] identityAccessManagementLoginExternalOAuth2CallbackGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLoginExternalOAuth2CallbackDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management login external o auth2 callback default response -func (o *IdentityAccessManagementLoginExternalOAuth2CallbackDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management login external o auth2 callback default response has a 2xx status code func (o *IdentityAccessManagementLoginExternalOAuth2CallbackDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLoginExternalOAuth2CallbackDefault) IsCode(code return o._statusCode == code } +// Code gets the status code for the identity access management login external o auth2 callback default response +func (o *IdentityAccessManagementLoginExternalOAuth2CallbackDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLoginExternalOAuth2CallbackDefault) Error() string { return fmt.Sprintf("[POST /v1/login/oauth/callback][%d] IdentityAccessManagement_LoginExternalOAuth2Callback default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_login_external_responses.go b/swagger_client/identity_access_management/identity_access_management_login_external_responses.go index 740f4fd..59702a4 100644 --- a/swagger_client/identity_access_management/identity_access_management_login_external_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_login_external_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLoginExternalOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management login external o k response +func (o *IdentityAccessManagementLoginExternalOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLoginExternalOK) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] identityAccessManagementLoginExternalOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLoginExternalUnauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the identity access management login external unauthorized response +func (o *IdentityAccessManagementLoginExternalUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLoginExternalUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] identityAccessManagementLoginExternalUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLoginExternalForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management login external forbidden response +func (o *IdentityAccessManagementLoginExternalForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLoginExternalForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] identityAccessManagementLoginExternalForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLoginExternalInternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the identity access management login external internal server error response +func (o *IdentityAccessManagementLoginExternalInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLoginExternalInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] identityAccessManagementLoginExternalInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLoginExternalGatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the identity access management login external gateway timeout response +func (o *IdentityAccessManagementLoginExternalGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLoginExternalGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] identityAccessManagementLoginExternalGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLoginExternalDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management login external default response -func (o *IdentityAccessManagementLoginExternalDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management login external default response has a 2xx status code func (o *IdentityAccessManagementLoginExternalDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLoginExternalDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management login external default response +func (o *IdentityAccessManagementLoginExternalDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLoginExternalDefault) Error() string { return fmt.Sprintf("[POST /v1/login/external][%d] IdentityAccessManagement_LoginExternal default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_login_forgot_password_responses.go b/swagger_client/identity_access_management/identity_access_management_login_forgot_password_responses.go index 86a56e8..3c661bc 100644 --- a/swagger_client/identity_access_management/identity_access_management_login_forgot_password_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_login_forgot_password_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management login forgot password o k response +func (o *IdentityAccessManagementLoginForgotPasswordOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLoginForgotPasswordOK) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] identityAccessManagementLoginForgotPasswordOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the identity access management login forgot password unauthorized response +func (o *IdentityAccessManagementLoginForgotPasswordUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLoginForgotPasswordUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] identityAccessManagementLoginForgotPasswordUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the identity access management login forgot password forbidden response +func (o *IdentityAccessManagementLoginForgotPasswordForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLoginForgotPasswordForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] identityAccessManagementLoginForgotPasswordForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the identity access management login forgot password internal server error response +func (o *IdentityAccessManagementLoginForgotPasswordInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLoginForgotPasswordInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] identityAccessManagementLoginForgotPasswordInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the identity access management login forgot password gateway timeout response +func (o *IdentityAccessManagementLoginForgotPasswordGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLoginForgotPasswordGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] identityAccessManagementLoginForgotPasswordGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLoginForgotPasswordDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management login forgot password default response -func (o *IdentityAccessManagementLoginForgotPasswordDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management login forgot password default response has a 2xx status code func (o *IdentityAccessManagementLoginForgotPasswordDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLoginForgotPasswordDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the identity access management login forgot password default response +func (o *IdentityAccessManagementLoginForgotPasswordDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLoginForgotPasswordDefault) Error() string { return fmt.Sprintf("[POST /v1/login/forgot][%d] IdentityAccessManagement_LoginForgotPassword default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_login_mode_responses.go b/swagger_client/identity_access_management/identity_access_management_login_mode_responses.go index e9ab6e0..57f4b20 100644 --- a/swagger_client/identity_access_management/identity_access_management_login_mode_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_login_mode_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLoginModeOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management login mode o k response +func (o *IdentityAccessManagementLoginModeOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLoginModeOK) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] identityAccessManagementLoginModeOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLoginModeUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management login mode unauthorized response +func (o *IdentityAccessManagementLoginModeUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLoginModeUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] identityAccessManagementLoginModeUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLoginModeForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management login mode forbidden response +func (o *IdentityAccessManagementLoginModeForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLoginModeForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] identityAccessManagementLoginModeForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLoginModeInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management login mode internal server error response +func (o *IdentityAccessManagementLoginModeInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLoginModeInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] identityAccessManagementLoginModeInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLoginModeGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management login mode gateway timeout response +func (o *IdentityAccessManagementLoginModeGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLoginModeGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] identityAccessManagementLoginModeGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLoginModeDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management login mode default response -func (o *IdentityAccessManagementLoginModeDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management login mode default response has a 2xx status code func (o *IdentityAccessManagementLoginModeDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLoginModeDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management login mode default response +func (o *IdentityAccessManagementLoginModeDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLoginModeDefault) Error() string { return fmt.Sprintf("[POST /v1/login/mode][%d] IdentityAccessManagement_LoginMode default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_login_responses.go b/swagger_client/identity_access_management/identity_access_management_login_responses.go index 3079768..ef02efd 100644 --- a/swagger_client/identity_access_management/identity_access_management_login_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_login_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLoginOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management login o k response +func (o *IdentityAccessManagementLoginOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLoginOK) Error() string { return fmt.Sprintf("[POST /v1/login][%d] identityAccessManagementLoginOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLoginUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management login unauthorized response +func (o *IdentityAccessManagementLoginUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLoginUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login][%d] identityAccessManagementLoginUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLoginForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management login forbidden response +func (o *IdentityAccessManagementLoginForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLoginForbidden) Error() string { return fmt.Sprintf("[POST /v1/login][%d] identityAccessManagementLoginForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLoginInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the identity access management login internal server error response +func (o *IdentityAccessManagementLoginInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLoginInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login][%d] identityAccessManagementLoginInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLoginGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the identity access management login gateway timeout response +func (o *IdentityAccessManagementLoginGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLoginGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login][%d] identityAccessManagementLoginGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLoginDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management login default response -func (o *IdentityAccessManagementLoginDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management login default response has a 2xx status code func (o *IdentityAccessManagementLoginDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLoginDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management login default response +func (o *IdentityAccessManagementLoginDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLoginDefault) Error() string { return fmt.Sprintf("[POST /v1/login][%d] IdentityAccessManagement_Login default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_logout_responses.go b/swagger_client/identity_access_management/identity_access_management_logout_responses.go index a26df38..a6b528c 100644 --- a/swagger_client/identity_access_management/identity_access_management_logout_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_logout_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementLogoutOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management logout o k response +func (o *IdentityAccessManagementLogoutOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementLogoutOK) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] identityAccessManagementLogoutOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementLogoutUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management logout unauthorized response +func (o *IdentityAccessManagementLogoutUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementLogoutUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] identityAccessManagementLogoutUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementLogoutForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management logout forbidden response +func (o *IdentityAccessManagementLogoutForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementLogoutForbidden) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] identityAccessManagementLogoutForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementLogoutInternalServerError) IsCode(code int) boo return code == 500 } +// Code gets the status code for the identity access management logout internal server error response +func (o *IdentityAccessManagementLogoutInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementLogoutInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] identityAccessManagementLogoutInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementLogoutGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the identity access management logout gateway timeout response +func (o *IdentityAccessManagementLogoutGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementLogoutGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] identityAccessManagementLogoutGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementLogoutDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management logout default response -func (o *IdentityAccessManagementLogoutDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management logout default response has a 2xx status code func (o *IdentityAccessManagementLogoutDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementLogoutDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management logout default response +func (o *IdentityAccessManagementLogoutDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementLogoutDefault) Error() string { return fmt.Sprintf("[POST /v1/logout][%d] IdentityAccessManagement_Logout default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_auth_profiles_responses.go b/swagger_client/identity_access_management/identity_access_management_query_auth_profiles_responses.go index 36cc7ac..de37eff 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_auth_profiles_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_auth_profiles_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query auth profiles o k response +func (o *IdentityAccessManagementQueryAuthProfilesOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryAuthProfilesOK) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesBadRequest) IsCode(code int) b return code == 400 } +// Code gets the status code for the identity access management query auth profiles bad request response +func (o *IdentityAccessManagementQueryAuthProfilesBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementQueryAuthProfilesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management query auth profiles unauthorized response +func (o *IdentityAccessManagementQueryAuthProfilesUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryAuthProfilesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management query auth profiles forbidden response +func (o *IdentityAccessManagementQueryAuthProfilesForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryAuthProfilesForbidden) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management query auth profiles internal server error response +func (o *IdentityAccessManagementQueryAuthProfilesInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryAuthProfilesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management query auth profiles gateway timeout response +func (o *IdentityAccessManagementQueryAuthProfilesGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryAuthProfilesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] identityAccessManagementQueryAuthProfilesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementQueryAuthProfilesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query auth profiles default response -func (o *IdentityAccessManagementQueryAuthProfilesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query auth profiles default response has a 2xx status code func (o *IdentityAccessManagementQueryAuthProfilesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementQueryAuthProfilesDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management query auth profiles default response +func (o *IdentityAccessManagementQueryAuthProfilesDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryAuthProfilesDefault) Error() string { return fmt.Sprintf("[GET /v1/authorization/profiles][%d] IdentityAccessManagement_QueryAuthProfiles default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_enterprises_responses.go b/swagger_client/identity_access_management/identity_access_management_query_enterprises_responses.go index e7fbf74..bfe21a8 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_enterprises_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_enterprises_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementQueryEnterprisesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query enterprises o k response +func (o *IdentityAccessManagementQueryEnterprisesOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryEnterprisesOK) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementQueryEnterprisesBadRequest) IsCode(code int) bo return code == 400 } +// Code gets the status code for the identity access management query enterprises bad request response +func (o *IdentityAccessManagementQueryEnterprisesBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementQueryEnterprisesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementQueryEnterprisesUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management query enterprises unauthorized response +func (o *IdentityAccessManagementQueryEnterprisesUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryEnterprisesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementQueryEnterprisesForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management query enterprises forbidden response +func (o *IdentityAccessManagementQueryEnterprisesForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryEnterprisesForbidden) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementQueryEnterprisesInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management query enterprises internal server error response +func (o *IdentityAccessManagementQueryEnterprisesInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryEnterprisesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementQueryEnterprisesGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management query enterprises gateway timeout response +func (o *IdentityAccessManagementQueryEnterprisesGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryEnterprisesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] identityAccessManagementQueryEnterprisesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementQueryEnterprisesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query enterprises default response -func (o *IdentityAccessManagementQueryEnterprisesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query enterprises default response has a 2xx status code func (o *IdentityAccessManagementQueryEnterprisesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementQueryEnterprisesDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management query enterprises default response +func (o *IdentityAccessManagementQueryEnterprisesDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryEnterprisesDefault) Error() string { return fmt.Sprintf("[GET /v1/enterprises][%d] IdentityAccessManagement_QueryEnterprises default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_realms_responses.go b/swagger_client/identity_access_management/identity_access_management_query_realms_responses.go index f23d1a8..18de660 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_realms_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_realms_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementQueryRealmsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query realms o k response +func (o *IdentityAccessManagementQueryRealmsOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryRealmsOK) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementQueryRealmsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management query realms bad request response +func (o *IdentityAccessManagementQueryRealmsBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementQueryRealmsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementQueryRealmsUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management query realms unauthorized response +func (o *IdentityAccessManagementQueryRealmsUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryRealmsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementQueryRealmsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management query realms forbidden response +func (o *IdentityAccessManagementQueryRealmsForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryRealmsForbidden) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementQueryRealmsInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management query realms internal server error response +func (o *IdentityAccessManagementQueryRealmsInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryRealmsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementQueryRealmsGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management query realms gateway timeout response +func (o *IdentityAccessManagementQueryRealmsGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryRealmsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] identityAccessManagementQueryRealmsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementQueryRealmsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query realms default response -func (o *IdentityAccessManagementQueryRealmsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query realms default response has a 2xx status code func (o *IdentityAccessManagementQueryRealmsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementQueryRealmsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management query realms default response +func (o *IdentityAccessManagementQueryRealmsDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryRealmsDefault) Error() string { return fmt.Sprintf("[GET /v1/realms][%d] IdentityAccessManagement_QueryRealms default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_roles_responses.go b/swagger_client/identity_access_management/identity_access_management_query_roles_responses.go index 3983020..d2cd2e3 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_roles_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_roles_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementQueryRolesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query roles o k response +func (o *IdentityAccessManagementQueryRolesOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryRolesOK) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementQueryRolesBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management query roles bad request response +func (o *IdentityAccessManagementQueryRolesBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementQueryRolesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementQueryRolesUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management query roles unauthorized response +func (o *IdentityAccessManagementQueryRolesUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryRolesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementQueryRolesForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management query roles forbidden response +func (o *IdentityAccessManagementQueryRolesForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryRolesForbidden) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementQueryRolesInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management query roles internal server error response +func (o *IdentityAccessManagementQueryRolesInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryRolesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementQueryRolesGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management query roles gateway timeout response +func (o *IdentityAccessManagementQueryRolesGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryRolesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] identityAccessManagementQueryRolesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementQueryRolesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query roles default response -func (o *IdentityAccessManagementQueryRolesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query roles default response has a 2xx status code func (o *IdentityAccessManagementQueryRolesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementQueryRolesDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management query roles default response +func (o *IdentityAccessManagementQueryRolesDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryRolesDefault) Error() string { return fmt.Sprintf("[GET /v1/roles][%d] IdentityAccessManagement_QueryRoles default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_user_sessions_responses.go b/swagger_client/identity_access_management/identity_access_management_query_user_sessions_responses.go index 4218c8d..63c7e28 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_user_sessions_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_user_sessions_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementQueryUserSessionsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query user sessions o k response +func (o *IdentityAccessManagementQueryUserSessionsOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryUserSessionsOK) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] identityAccessManagementQueryUserSessionsOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementQueryUserSessionsUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management query user sessions unauthorized response +func (o *IdentityAccessManagementQueryUserSessionsUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryUserSessionsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] identityAccessManagementQueryUserSessionsUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementQueryUserSessionsForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management query user sessions forbidden response +func (o *IdentityAccessManagementQueryUserSessionsForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryUserSessionsForbidden) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] identityAccessManagementQueryUserSessionsForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementQueryUserSessionsInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management query user sessions internal server error response +func (o *IdentityAccessManagementQueryUserSessionsInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryUserSessionsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] identityAccessManagementQueryUserSessionsInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementQueryUserSessionsGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management query user sessions gateway timeout response +func (o *IdentityAccessManagementQueryUserSessionsGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryUserSessionsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] identityAccessManagementQueryUserSessionsGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementQueryUserSessionsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query user sessions default response -func (o *IdentityAccessManagementQueryUserSessionsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query user sessions default response has a 2xx status code func (o *IdentityAccessManagementQueryUserSessionsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementQueryUserSessionsDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management query user sessions default response +func (o *IdentityAccessManagementQueryUserSessionsDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryUserSessionsDefault) Error() string { return fmt.Sprintf("[GET /v1/sessions][%d] IdentityAccessManagement_QueryUserSessions default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_query_users_responses.go b/swagger_client/identity_access_management/identity_access_management_query_users_responses.go index 6f1dd20..7c7b186 100644 --- a/swagger_client/identity_access_management/identity_access_management_query_users_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_query_users_responses.go @@ -111,6 +111,11 @@ func (o *IdentityAccessManagementQueryUsersOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management query users o k response +func (o *IdentityAccessManagementQueryUsersOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementQueryUsersOK) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *IdentityAccessManagementQueryUsersBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the identity access management query users bad request response +func (o *IdentityAccessManagementQueryUsersBadRequest) Code() int { + return 400 +} + func (o *IdentityAccessManagementQueryUsersBadRequest) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *IdentityAccessManagementQueryUsersUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management query users unauthorized response +func (o *IdentityAccessManagementQueryUsersUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementQueryUsersUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *IdentityAccessManagementQueryUsersForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management query users forbidden response +func (o *IdentityAccessManagementQueryUsersForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementQueryUsersForbidden) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *IdentityAccessManagementQueryUsersInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management query users internal server error response +func (o *IdentityAccessManagementQueryUsersInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementQueryUsersInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *IdentityAccessManagementQueryUsersGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management query users gateway timeout response +func (o *IdentityAccessManagementQueryUsersGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementQueryUsersGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/users][%d] identityAccessManagementQueryUsersGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type IdentityAccessManagementQueryUsersDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management query users default response -func (o *IdentityAccessManagementQueryUsersDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management query users default response has a 2xx status code func (o *IdentityAccessManagementQueryUsersDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *IdentityAccessManagementQueryUsersDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management query users default response +func (o *IdentityAccessManagementQueryUsersDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementQueryUsersDefault) Error() string { return fmt.Sprintf("[GET /v1/users][%d] IdentityAccessManagement_QueryUsers default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_refresh_user_session_responses.go b/swagger_client/identity_access_management/identity_access_management_refresh_user_session_responses.go index b022172..e2e0ccf 100644 --- a/swagger_client/identity_access_management/identity_access_management_refresh_user_session_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_refresh_user_session_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementRefreshUserSessionOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management refresh user session o k response +func (o *IdentityAccessManagementRefreshUserSessionOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementRefreshUserSessionOK) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] identityAccessManagementRefreshUserSessionOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementRefreshUserSessionUnauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the identity access management refresh user session unauthorized response +func (o *IdentityAccessManagementRefreshUserSessionUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementRefreshUserSessionUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] identityAccessManagementRefreshUserSessionUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementRefreshUserSessionForbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the identity access management refresh user session forbidden response +func (o *IdentityAccessManagementRefreshUserSessionForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementRefreshUserSessionForbidden) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] identityAccessManagementRefreshUserSessionForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementRefreshUserSessionInternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the identity access management refresh user session internal server error response +func (o *IdentityAccessManagementRefreshUserSessionInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementRefreshUserSessionInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] identityAccessManagementRefreshUserSessionInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementRefreshUserSessionGatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the identity access management refresh user session gateway timeout response +func (o *IdentityAccessManagementRefreshUserSessionGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementRefreshUserSessionGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] identityAccessManagementRefreshUserSessionGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementRefreshUserSessionDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management refresh user session default response -func (o *IdentityAccessManagementRefreshUserSessionDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management refresh user session default response has a 2xx status code func (o *IdentityAccessManagementRefreshUserSessionDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementRefreshUserSessionDefault) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the identity access management refresh user session default response +func (o *IdentityAccessManagementRefreshUserSessionDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementRefreshUserSessionDefault) Error() string { return fmt.Sprintf("[PUT /v1/sessions/refresh][%d] IdentityAccessManagement_RefreshUserSession default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_signup_enterprise_responses.go b/swagger_client/identity_access_management/identity_access_management_signup_enterprise_responses.go index 8950426..d8421e5 100644 --- a/swagger_client/identity_access_management/identity_access_management_signup_enterprise_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_signup_enterprise_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementSignupEnterpriseOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management signup enterprise o k response +func (o *IdentityAccessManagementSignupEnterpriseOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementSignupEnterpriseOK) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] identityAccessManagementSignupEnterpriseOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementSignupEnterpriseUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management signup enterprise unauthorized response +func (o *IdentityAccessManagementSignupEnterpriseUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementSignupEnterpriseUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] identityAccessManagementSignupEnterpriseUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementSignupEnterpriseForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management signup enterprise forbidden response +func (o *IdentityAccessManagementSignupEnterpriseForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementSignupEnterpriseForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] identityAccessManagementSignupEnterpriseForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementSignupEnterpriseInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management signup enterprise internal server error response +func (o *IdentityAccessManagementSignupEnterpriseInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementSignupEnterpriseInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] identityAccessManagementSignupEnterpriseInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementSignupEnterpriseGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management signup enterprise gateway timeout response +func (o *IdentityAccessManagementSignupEnterpriseGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementSignupEnterpriseGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] identityAccessManagementSignupEnterpriseGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementSignupEnterpriseDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management signup enterprise default response -func (o *IdentityAccessManagementSignupEnterpriseDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management signup enterprise default response has a 2xx status code func (o *IdentityAccessManagementSignupEnterpriseDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementSignupEnterpriseDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management signup enterprise default response +func (o *IdentityAccessManagementSignupEnterpriseDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementSignupEnterpriseDefault) Error() string { return fmt.Sprintf("[POST /v1/login/signup/enterprise][%d] IdentityAccessManagement_SignupEnterprise default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_signup_user_responses.go b/swagger_client/identity_access_management/identity_access_management_signup_user_responses.go index 205a36f..ba086cd 100644 --- a/swagger_client/identity_access_management/identity_access_management_signup_user_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_signup_user_responses.go @@ -105,6 +105,11 @@ func (o *IdentityAccessManagementSignupUserOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management signup user o k response +func (o *IdentityAccessManagementSignupUserOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementSignupUserOK) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] identityAccessManagementSignupUserOK %+v", 200, o.Payload) } @@ -168,6 +173,11 @@ func (o *IdentityAccessManagementSignupUserUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management signup user unauthorized response +func (o *IdentityAccessManagementSignupUserUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementSignupUserUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] identityAccessManagementSignupUserUnauthorized %+v", 401, o.Payload) } @@ -231,6 +241,11 @@ func (o *IdentityAccessManagementSignupUserForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management signup user forbidden response +func (o *IdentityAccessManagementSignupUserForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementSignupUserForbidden) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] identityAccessManagementSignupUserForbidden %+v", 403, o.Payload) } @@ -294,6 +309,11 @@ func (o *IdentityAccessManagementSignupUserInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management signup user internal server error response +func (o *IdentityAccessManagementSignupUserInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementSignupUserInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] identityAccessManagementSignupUserInternalServerError %+v", 500, o.Payload) } @@ -357,6 +377,11 @@ func (o *IdentityAccessManagementSignupUserGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management signup user gateway timeout response +func (o *IdentityAccessManagementSignupUserGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementSignupUserGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] identityAccessManagementSignupUserGatewayTimeout %+v", 504, o.Payload) } @@ -399,11 +424,6 @@ type IdentityAccessManagementSignupUserDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management signup user default response -func (o *IdentityAccessManagementSignupUserDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management signup user default response has a 2xx status code func (o *IdentityAccessManagementSignupUserDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -429,6 +449,11 @@ func (o *IdentityAccessManagementSignupUserDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management signup user default response +func (o *IdentityAccessManagementSignupUserDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementSignupUserDefault) Error() string { return fmt.Sprintf("[POST /v1/login/signup/user][%d] IdentityAccessManagement_SignupUser default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_update_auth_profile_responses.go b/swagger_client/identity_access_management/identity_access_management_update_auth_profile_responses.go index ad60ad0..f4d34aa 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_auth_profile_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_auth_profile_responses.go @@ -121,6 +121,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update auth profile o k response +func (o *IdentityAccessManagementUpdateAuthProfileOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateAuthProfileOK) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management update auth profile unauthorized response +func (o *IdentityAccessManagementUpdateAuthProfileUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateAuthProfileUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management update auth profile forbidden response +func (o *IdentityAccessManagementUpdateAuthProfileForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateAuthProfileForbidden) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the identity access management update auth profile not found response +func (o *IdentityAccessManagementUpdateAuthProfileNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateAuthProfileNotFound) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileConflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the identity access management update auth profile conflict response +func (o *IdentityAccessManagementUpdateAuthProfileConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateAuthProfileConflict) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management update auth profile internal server error response +func (o *IdentityAccessManagementUpdateAuthProfileInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateAuthProfileInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management update auth profile gateway timeout response +func (o *IdentityAccessManagementUpdateAuthProfileGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateAuthProfileGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] identityAccessManagementUpdateAuthProfileGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type IdentityAccessManagementUpdateAuthProfileDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update auth profile default response -func (o *IdentityAccessManagementUpdateAuthProfileDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update auth profile default response has a 2xx status code func (o *IdentityAccessManagementUpdateAuthProfileDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management update auth profile default response +func (o *IdentityAccessManagementUpdateAuthProfileDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateAuthProfileDefault) Error() string { return fmt.Sprintf("[PUT /v1/authorization/profiles/id/{id}][%d] IdentityAccessManagement_UpdateAuthProfile default %+v", o._statusCode, o.Payload) } @@ -914,6 +949,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileBody) ContextValidate(ctx cont func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateOauthProfile(ctx context.Context, formats strfmt.Registry) error { if o.OauthProfile != nil { + + if swag.IsZero(o.OauthProfile) { // not required + return nil + } + if err := o.OauthProfile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "oauthProfile") @@ -930,6 +970,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateOauthProf func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidatePasswordProfile(ctx context.Context, formats strfmt.Registry) error { if o.PasswordProfile != nil { + + if swag.IsZero(o.PasswordProfile) { // not required + return nil + } + if err := o.PasswordProfile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "passwordProfile") @@ -946,6 +991,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidatePasswordP func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateProfileType(ctx context.Context, formats strfmt.Registry) error { if o.ProfileType != nil { + + if swag.IsZero(o.ProfileType) { // not required + return nil + } + if err := o.ProfileType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "profileType") @@ -962,6 +1012,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateProfileTy func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -978,6 +1033,11 @@ func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateRevision( func (o *IdentityAccessManagementUpdateAuthProfileBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + + if swag.IsZero(o.Type) { // not required + return nil + } + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/identity_access_management/identity_access_management_update_credential_responses.go b/swagger_client/identity_access_management/identity_access_management_update_credential_responses.go index 5f20344..af3a55b 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_credential_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_credential_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementUpdateCredentialOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update credential o k response +func (o *IdentityAccessManagementUpdateCredentialOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateCredentialOK) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementUpdateCredentialUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management update credential unauthorized response +func (o *IdentityAccessManagementUpdateCredentialUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateCredentialUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementUpdateCredentialForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management update credential forbidden response +func (o *IdentityAccessManagementUpdateCredentialForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateCredentialForbidden) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementUpdateCredentialNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the identity access management update credential not found response +func (o *IdentityAccessManagementUpdateCredentialNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateCredentialNotFound) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementUpdateCredentialConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the identity access management update credential conflict response +func (o *IdentityAccessManagementUpdateCredentialConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateCredentialConflict) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementUpdateCredentialInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management update credential internal server error response +func (o *IdentityAccessManagementUpdateCredentialInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateCredentialInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementUpdateCredentialGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management update credential gateway timeout response +func (o *IdentityAccessManagementUpdateCredentialGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateCredentialGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] identityAccessManagementUpdateCredentialGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementUpdateCredentialDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update credential default response -func (o *IdentityAccessManagementUpdateCredentialDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update credential default response has a 2xx status code func (o *IdentityAccessManagementUpdateCredentialDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementUpdateCredentialDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management update credential default response +func (o *IdentityAccessManagementUpdateCredentialDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateCredentialDefault) Error() string { return fmt.Sprintf("[PUT /v1/credentials][%d] IdentityAccessManagement_UpdateCredential default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_update_credential_self_responses.go b/swagger_client/identity_access_management/identity_access_management_update_credential_self_responses.go index a9351f2..ebd2e2a 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_credential_self_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_credential_self_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update credential self o k response +func (o *IdentityAccessManagementUpdateCredentialSelfOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateCredentialSelfOK) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the identity access management update credential self unauthorized response +func (o *IdentityAccessManagementUpdateCredentialSelfUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateCredentialSelfUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the identity access management update credential self forbidden response +func (o *IdentityAccessManagementUpdateCredentialSelfForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateCredentialSelfForbidden) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the identity access management update credential self not found response +func (o *IdentityAccessManagementUpdateCredentialSelfNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateCredentialSelfNotFound) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfConflict) IsCode(code int) return code == 409 } +// Code gets the status code for the identity access management update credential self conflict response +func (o *IdentityAccessManagementUpdateCredentialSelfConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateCredentialSelfConflict) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfInternalServerError) IsCode return code == 500 } +// Code gets the status code for the identity access management update credential self internal server error response +func (o *IdentityAccessManagementUpdateCredentialSelfInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateCredentialSelfInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the identity access management update credential self gateway timeout response +func (o *IdentityAccessManagementUpdateCredentialSelfGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateCredentialSelfGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] identityAccessManagementUpdateCredentialSelfGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementUpdateCredentialSelfDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update credential self default response -func (o *IdentityAccessManagementUpdateCredentialSelfDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update credential self default response has a 2xx status code func (o *IdentityAccessManagementUpdateCredentialSelfDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementUpdateCredentialSelfDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the identity access management update credential self default response +func (o *IdentityAccessManagementUpdateCredentialSelfDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateCredentialSelfDefault) Error() string { return fmt.Sprintf("[PUT /v1/credentials/self][%d] IdentityAccessManagement_UpdateCredentialSelf default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_update_doc_policy_latest_responses.go b/swagger_client/identity_access_management/identity_access_management_update_doc_policy_latest_responses.go index 51fb0c9..a37cc60 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_doc_policy_latest_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_doc_policy_latest_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the identity access management update doc policy latest o k response +func (o *IdentityAccessManagementUpdateDocPolicyLatestOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestOK) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the identity access management update doc policy latest unauthorized response +func (o *IdentityAccessManagementUpdateDocPolicyLatestUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the identity access management update doc policy latest forbidden response +func (o *IdentityAccessManagementUpdateDocPolicyLatestForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestForbidden) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the identity access management update doc policy latest not found response +func (o *IdentityAccessManagementUpdateDocPolicyLatestNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestNotFound) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestConflict) IsCode(code int) return code == 409 } +// Code gets the status code for the identity access management update doc policy latest conflict response +func (o *IdentityAccessManagementUpdateDocPolicyLatestConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestConflict) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestInternalServerError) IsCod return code == 500 } +// Code gets the status code for the identity access management update doc policy latest internal server error response +func (o *IdentityAccessManagementUpdateDocPolicyLatestInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the identity access management update doc policy latest gateway timeout response +func (o *IdentityAccessManagementUpdateDocPolicyLatestGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] identityAccessManagementUpdateDocPolicyLatestGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementUpdateDocPolicyLatestDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update doc policy latest default response -func (o *IdentityAccessManagementUpdateDocPolicyLatestDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update doc policy latest default response has a 2xx status code func (o *IdentityAccessManagementUpdateDocPolicyLatestDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementUpdateDocPolicyLatestDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the identity access management update doc policy latest default response +func (o *IdentityAccessManagementUpdateDocPolicyLatestDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateDocPolicyLatestDefault) Error() string { return fmt.Sprintf("[PUT /v1/cloud/policies/latest][%d] IdentityAccessManagement_UpdateDocPolicyLatest default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_update_enterprise2_responses.go b/swagger_client/identity_access_management/identity_access_management_update_enterprise2_responses.go index e0b084b..b442166 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_enterprise2_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_enterprise2_responses.go @@ -122,6 +122,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update enterprise2 o k response +func (o *IdentityAccessManagementUpdateEnterprise2OK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateEnterprise2OK) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2OK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Unauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management update enterprise2 unauthorized response +func (o *IdentityAccessManagementUpdateEnterprise2Unauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateEnterprise2Unauthorized) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2Unauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Forbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the identity access management update enterprise2 forbidden response +func (o *IdentityAccessManagementUpdateEnterprise2Forbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateEnterprise2Forbidden) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2Forbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2NotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the identity access management update enterprise2 not found response +func (o *IdentityAccessManagementUpdateEnterprise2NotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateEnterprise2NotFound) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2NotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Conflict) IsCode(code int) boo return code == 409 } +// Code gets the status code for the identity access management update enterprise2 conflict response +func (o *IdentityAccessManagementUpdateEnterprise2Conflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateEnterprise2Conflict) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2Conflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2InternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the identity access management update enterprise2 internal server error response +func (o *IdentityAccessManagementUpdateEnterprise2InternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateEnterprise2InternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2InternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2GatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the identity access management update enterprise2 gateway timeout response +func (o *IdentityAccessManagementUpdateEnterprise2GatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateEnterprise2GatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] identityAccessManagementUpdateEnterprise2GatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type IdentityAccessManagementUpdateEnterprise2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update enterprise2 default response -func (o *IdentityAccessManagementUpdateEnterprise2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update enterprise2 default response has a 2xx status code func (o *IdentityAccessManagementUpdateEnterprise2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Default) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management update enterprise2 default response +func (o *IdentityAccessManagementUpdateEnterprise2Default) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateEnterprise2Default) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/id/{id}][%d] IdentityAccessManagement_UpdateEnterprise2 default %+v", o._statusCode, o.Payload) } @@ -947,6 +982,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateChildEnte for i := 0; i < len(o.ChildEnterprises); i++ { if o.ChildEnterprises[i] != nil { + + if swag.IsZero(o.ChildEnterprises[i]) { // not required + return nil + } + if err := o.ChildEnterprises[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "childEnterprises" + "." + strconv.Itoa(i)) @@ -965,6 +1005,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateChildEnte func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidatePolicyList(ctx context.Context, formats strfmt.Registry) error { if o.PolicyList != nil { + + if swag.IsZero(o.PolicyList) { // not required + return nil + } + if err := o.PolicyList.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "policyList") @@ -981,6 +1026,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidatePolicyLis func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -997,6 +1047,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateRevision( func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if o.State != nil { + + if swag.IsZero(o.State) { // not required + return nil + } + if err := o.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "state") @@ -1013,6 +1068,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateState(ctx func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateStreamEvents(ctx context.Context, formats strfmt.Registry) error { if o.StreamEvents != nil { + + if swag.IsZero(o.StreamEvents) { // not required + return nil + } + if err := o.StreamEvents.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "streamEvents") @@ -1029,6 +1089,11 @@ func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateStreamEve func (o *IdentityAccessManagementUpdateEnterprise2Body) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + + if swag.IsZero(o.Type) { // not required + return nil + } + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/identity_access_management/identity_access_management_update_enterprise_responses.go b/swagger_client/identity_access_management/identity_access_management_update_enterprise_responses.go index 50e933c..fdb7f96 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_enterprise_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_enterprise_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update enterprise o k response +func (o *IdentityAccessManagementUpdateEnterpriseOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateEnterpriseOK) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the identity access management update enterprise unauthorized response +func (o *IdentityAccessManagementUpdateEnterpriseUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateEnterpriseUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseForbidden) IsCode(code int) boo return code == 403 } +// Code gets the status code for the identity access management update enterprise forbidden response +func (o *IdentityAccessManagementUpdateEnterpriseForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateEnterpriseForbidden) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the identity access management update enterprise not found response +func (o *IdentityAccessManagementUpdateEnterpriseNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateEnterpriseNotFound) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseConflict) IsCode(code int) bool return code == 409 } +// Code gets the status code for the identity access management update enterprise conflict response +func (o *IdentityAccessManagementUpdateEnterpriseConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateEnterpriseConflict) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseInternalServerError) IsCode(cod return code == 500 } +// Code gets the status code for the identity access management update enterprise internal server error response +func (o *IdentityAccessManagementUpdateEnterpriseInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateEnterpriseInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseGatewayTimeout) IsCode(code int return code == 504 } +// Code gets the status code for the identity access management update enterprise gateway timeout response +func (o *IdentityAccessManagementUpdateEnterpriseGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateEnterpriseGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] identityAccessManagementUpdateEnterpriseGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementUpdateEnterpriseDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update enterprise default response -func (o *IdentityAccessManagementUpdateEnterpriseDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update enterprise default response has a 2xx status code func (o *IdentityAccessManagementUpdateEnterpriseDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementUpdateEnterpriseDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the identity access management update enterprise default response +func (o *IdentityAccessManagementUpdateEnterpriseDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateEnterpriseDefault) Error() string { return fmt.Sprintf("[PUT /v1/enterprises/self][%d] IdentityAccessManagement_UpdateEnterprise default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/identity_access_management/identity_access_management_update_realm_responses.go b/swagger_client/identity_access_management/identity_access_management_update_realm_responses.go index 5d6832e..b4fb0c3 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_realm_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_realm_responses.go @@ -121,6 +121,11 @@ func (o *IdentityAccessManagementUpdateRealmOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update realm o k response +func (o *IdentityAccessManagementUpdateRealmOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateRealmOK) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *IdentityAccessManagementUpdateRealmUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management update realm unauthorized response +func (o *IdentityAccessManagementUpdateRealmUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateRealmUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *IdentityAccessManagementUpdateRealmForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management update realm forbidden response +func (o *IdentityAccessManagementUpdateRealmForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateRealmForbidden) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *IdentityAccessManagementUpdateRealmNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management update realm not found response +func (o *IdentityAccessManagementUpdateRealmNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateRealmNotFound) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *IdentityAccessManagementUpdateRealmConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management update realm conflict response +func (o *IdentityAccessManagementUpdateRealmConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateRealmConflict) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *IdentityAccessManagementUpdateRealmInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management update realm internal server error response +func (o *IdentityAccessManagementUpdateRealmInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateRealmInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *IdentityAccessManagementUpdateRealmGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management update realm gateway timeout response +func (o *IdentityAccessManagementUpdateRealmGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateRealmGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] identityAccessManagementUpdateRealmGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type IdentityAccessManagementUpdateRealmDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update realm default response -func (o *IdentityAccessManagementUpdateRealmDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update realm default response has a 2xx status code func (o *IdentityAccessManagementUpdateRealmDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *IdentityAccessManagementUpdateRealmDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management update realm default response +func (o *IdentityAccessManagementUpdateRealmDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateRealmDefault) Error() string { return fmt.Sprintf("[PUT /v1/realms/id/{id}][%d] IdentityAccessManagement_UpdateRealm default %+v", o._statusCode, o.Payload) } @@ -765,6 +800,11 @@ func (o *IdentityAccessManagementUpdateRealmBody) ContextValidate(ctx context.Co func (o *IdentityAccessManagementUpdateRealmBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") diff --git a/swagger_client/identity_access_management/identity_access_management_update_role_responses.go b/swagger_client/identity_access_management/identity_access_management_update_role_responses.go index 3196d97..872213b 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_role_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_role_responses.go @@ -122,6 +122,11 @@ func (o *IdentityAccessManagementUpdateRoleOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update role o k response +func (o *IdentityAccessManagementUpdateRoleOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateRoleOK) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *IdentityAccessManagementUpdateRoleUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management update role unauthorized response +func (o *IdentityAccessManagementUpdateRoleUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateRoleUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *IdentityAccessManagementUpdateRoleForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management update role forbidden response +func (o *IdentityAccessManagementUpdateRoleForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateRoleForbidden) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *IdentityAccessManagementUpdateRoleNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management update role not found response +func (o *IdentityAccessManagementUpdateRoleNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateRoleNotFound) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *IdentityAccessManagementUpdateRoleConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management update role conflict response +func (o *IdentityAccessManagementUpdateRoleConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateRoleConflict) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *IdentityAccessManagementUpdateRoleInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management update role internal server error response +func (o *IdentityAccessManagementUpdateRoleInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateRoleInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *IdentityAccessManagementUpdateRoleGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management update role gateway timeout response +func (o *IdentityAccessManagementUpdateRoleGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateRoleGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] identityAccessManagementUpdateRoleGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type IdentityAccessManagementUpdateRoleDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update role default response -func (o *IdentityAccessManagementUpdateRoleDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update role default response has a 2xx status code func (o *IdentityAccessManagementUpdateRoleDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *IdentityAccessManagementUpdateRoleDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management update role default response +func (o *IdentityAccessManagementUpdateRoleDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateRoleDefault) Error() string { return fmt.Sprintf("[PUT /v1/roles/id/{id}][%d] IdentityAccessManagement_UpdateRole default %+v", o._statusCode, o.Payload) } @@ -849,6 +884,11 @@ func (o *IdentityAccessManagementUpdateRoleBody) ContextValidate(ctx context.Con func (o *IdentityAccessManagementUpdateRoleBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -867,6 +907,11 @@ func (o *IdentityAccessManagementUpdateRoleBody) contextValidateScopes(ctx conte for i := 0; i < len(o.Scopes); i++ { if o.Scopes[i] != nil { + + if swag.IsZero(o.Scopes[i]) { // not required + return nil + } + if err := o.Scopes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "scopes" + "." + strconv.Itoa(i)) @@ -885,6 +930,11 @@ func (o *IdentityAccessManagementUpdateRoleBody) contextValidateScopes(ctx conte func (o *IdentityAccessManagementUpdateRoleBody) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if o.State != nil { + + if swag.IsZero(o.State) { // not required + return nil + } + if err := o.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "state") @@ -901,6 +951,7 @@ func (o *IdentityAccessManagementUpdateRoleBody) contextValidateState(ctx contex func (o *IdentityAccessManagementUpdateRoleBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/identity_access_management/identity_access_management_update_user2_responses.go b/swagger_client/identity_access_management/identity_access_management_update_user2_responses.go index 02d1ba3..57d4636 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_user2_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_user2_responses.go @@ -122,6 +122,11 @@ func (o *IdentityAccessManagementUpdateUser2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update user2 o k response +func (o *IdentityAccessManagementUpdateUser2OK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateUser2OK) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2OK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *IdentityAccessManagementUpdateUser2Unauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the identity access management update user2 unauthorized response +func (o *IdentityAccessManagementUpdateUser2Unauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateUser2Unauthorized) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2Unauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *IdentityAccessManagementUpdateUser2Forbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management update user2 forbidden response +func (o *IdentityAccessManagementUpdateUser2Forbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateUser2Forbidden) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2Forbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *IdentityAccessManagementUpdateUser2NotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management update user2 not found response +func (o *IdentityAccessManagementUpdateUser2NotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateUser2NotFound) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2NotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *IdentityAccessManagementUpdateUser2Conflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management update user2 conflict response +func (o *IdentityAccessManagementUpdateUser2Conflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateUser2Conflict) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2Conflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *IdentityAccessManagementUpdateUser2InternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the identity access management update user2 internal server error response +func (o *IdentityAccessManagementUpdateUser2InternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateUser2InternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2InternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *IdentityAccessManagementUpdateUser2GatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the identity access management update user2 gateway timeout response +func (o *IdentityAccessManagementUpdateUser2GatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateUser2GatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] identityAccessManagementUpdateUser2GatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type IdentityAccessManagementUpdateUser2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update user2 default response -func (o *IdentityAccessManagementUpdateUser2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update user2 default response has a 2xx status code func (o *IdentityAccessManagementUpdateUser2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *IdentityAccessManagementUpdateUser2Default) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management update user2 default response +func (o *IdentityAccessManagementUpdateUser2Default) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateUser2Default) Error() string { return fmt.Sprintf("[PUT /v1/users/id/{id}][%d] IdentityAccessManagement_UpdateUser2 default %+v", o._statusCode, o.Payload) } @@ -970,6 +1005,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidateAllowedEnterpri for i := 0; i < len(o.AllowedEnterprises); i++ { if o.AllowedEnterprises[i] != nil { + + if swag.IsZero(o.AllowedEnterprises[i]) { // not required + return nil + } + if err := o.AllowedEnterprises[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "allowedEnterprises" + "." + strconv.Itoa(i)) @@ -988,6 +1028,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidateAllowedEnterpri func (o *IdentityAccessManagementUpdateUser2Body) contextValidateEmailState(ctx context.Context, formats strfmt.Registry) error { if o.EmailState != nil { + + if swag.IsZero(o.EmailState) { // not required + return nil + } + if err := o.EmailState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "emailState") @@ -1013,6 +1058,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidateEnterpriseID(ct func (o *IdentityAccessManagementUpdateUser2Body) contextValidatePhoneState(ctx context.Context, formats strfmt.Registry) error { if o.PhoneState != nil { + + if swag.IsZero(o.PhoneState) { // not required + return nil + } + if err := o.PhoneState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "phoneState") @@ -1029,6 +1079,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidatePhoneState(ctx func (o *IdentityAccessManagementUpdateUser2Body) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1045,6 +1100,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidateRevision(ctx co func (o *IdentityAccessManagementUpdateUser2Body) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if o.State != nil { + + if swag.IsZero(o.State) { // not required + return nil + } + if err := o.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "state") @@ -1061,6 +1121,11 @@ func (o *IdentityAccessManagementUpdateUser2Body) contextValidateState(ctx conte func (o *IdentityAccessManagementUpdateUser2Body) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + + if swag.IsZero(o.Type) { // not required + return nil + } + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/identity_access_management/identity_access_management_update_user_responses.go b/swagger_client/identity_access_management/identity_access_management_update_user_responses.go index d6c9b25..c37df39 100644 --- a/swagger_client/identity_access_management/identity_access_management_update_user_responses.go +++ b/swagger_client/identity_access_management/identity_access_management_update_user_responses.go @@ -117,6 +117,11 @@ func (o *IdentityAccessManagementUpdateUserOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the identity access management update user o k response +func (o *IdentityAccessManagementUpdateUserOK) Code() int { + return 200 +} + func (o *IdentityAccessManagementUpdateUserOK) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *IdentityAccessManagementUpdateUserUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the identity access management update user unauthorized response +func (o *IdentityAccessManagementUpdateUserUnauthorized) Code() int { + return 401 +} + func (o *IdentityAccessManagementUpdateUserUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *IdentityAccessManagementUpdateUserForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the identity access management update user forbidden response +func (o *IdentityAccessManagementUpdateUserForbidden) Code() int { + return 403 +} + func (o *IdentityAccessManagementUpdateUserForbidden) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *IdentityAccessManagementUpdateUserNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the identity access management update user not found response +func (o *IdentityAccessManagementUpdateUserNotFound) Code() int { + return 404 +} + func (o *IdentityAccessManagementUpdateUserNotFound) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *IdentityAccessManagementUpdateUserConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the identity access management update user conflict response +func (o *IdentityAccessManagementUpdateUserConflict) Code() int { + return 409 +} + func (o *IdentityAccessManagementUpdateUserConflict) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *IdentityAccessManagementUpdateUserInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the identity access management update user internal server error response +func (o *IdentityAccessManagementUpdateUserInternalServerError) Code() int { + return 500 +} + func (o *IdentityAccessManagementUpdateUserInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *IdentityAccessManagementUpdateUserGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the identity access management update user gateway timeout response +func (o *IdentityAccessManagementUpdateUserGatewayTimeout) Code() int { + return 504 +} + func (o *IdentityAccessManagementUpdateUserGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] identityAccessManagementUpdateUserGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type IdentityAccessManagementUpdateUserDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the identity access management update user default response -func (o *IdentityAccessManagementUpdateUserDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this identity access management update user default response has a 2xx status code func (o *IdentityAccessManagementUpdateUserDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *IdentityAccessManagementUpdateUserDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the identity access management update user default response +func (o *IdentityAccessManagementUpdateUserDefault) Code() int { + return o._statusCode +} + func (o *IdentityAccessManagementUpdateUserDefault) Error() string { return fmt.Sprintf("[PUT /v1/users/self][%d] IdentityAccessManagement_UpdateUser default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_create_image_responses.go b/swagger_client/image_configuration/image_configuration_create_image_responses.go index ee471a1..93e33b1 100644 --- a/swagger_client/image_configuration/image_configuration_create_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_create_image_responses.go @@ -117,6 +117,11 @@ func (o *ImageConfigurationCreateImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration create image o k response +func (o *ImageConfigurationCreateImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationCreateImageOK) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ImageConfigurationCreateImageBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration create image bad request response +func (o *ImageConfigurationCreateImageBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationCreateImageBadRequest) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *ImageConfigurationCreateImageUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration create image unauthorized response +func (o *ImageConfigurationCreateImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationCreateImageUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *ImageConfigurationCreateImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration create image forbidden response +func (o *ImageConfigurationCreateImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationCreateImageForbidden) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *ImageConfigurationCreateImageConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration create image conflict response +func (o *ImageConfigurationCreateImageConflict) Code() int { + return 409 +} + func (o *ImageConfigurationCreateImageConflict) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *ImageConfigurationCreateImageInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the image configuration create image internal server error response +func (o *ImageConfigurationCreateImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationCreateImageInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ImageConfigurationCreateImageGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration create image gateway timeout response +func (o *ImageConfigurationCreateImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationCreateImageGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] imageConfigurationCreateImageGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ImageConfigurationCreateImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration create image default response -func (o *ImageConfigurationCreateImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration create image default response has a 2xx status code func (o *ImageConfigurationCreateImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ImageConfigurationCreateImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration create image default response +func (o *ImageConfigurationCreateImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationCreateImageDefault) Error() string { return fmt.Sprintf("[POST /v1/apps/images][%d] ImageConfiguration_CreateImage default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_delete_image_responses.go b/swagger_client/image_configuration/image_configuration_delete_image_responses.go index ea8aff2..f24da6a 100644 --- a/swagger_client/image_configuration/image_configuration_delete_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_delete_image_responses.go @@ -117,6 +117,11 @@ func (o *ImageConfigurationDeleteImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration delete image o k response +func (o *ImageConfigurationDeleteImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationDeleteImageOK) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ImageConfigurationDeleteImageUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration delete image unauthorized response +func (o *ImageConfigurationDeleteImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationDeleteImageUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *ImageConfigurationDeleteImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration delete image forbidden response +func (o *ImageConfigurationDeleteImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationDeleteImageForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *ImageConfigurationDeleteImageNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration delete image not found response +func (o *ImageConfigurationDeleteImageNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationDeleteImageNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *ImageConfigurationDeleteImageConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration delete image conflict response +func (o *ImageConfigurationDeleteImageConflict) Code() int { + return 409 +} + func (o *ImageConfigurationDeleteImageConflict) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *ImageConfigurationDeleteImageInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the image configuration delete image internal server error response +func (o *ImageConfigurationDeleteImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationDeleteImageInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ImageConfigurationDeleteImageGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration delete image gateway timeout response +func (o *ImageConfigurationDeleteImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationDeleteImageGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] imageConfigurationDeleteImageGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ImageConfigurationDeleteImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration delete image default response -func (o *ImageConfigurationDeleteImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration delete image default response has a 2xx status code func (o *ImageConfigurationDeleteImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ImageConfigurationDeleteImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration delete image default response +func (o *ImageConfigurationDeleteImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationDeleteImageDefault) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/id/{id}][%d] ImageConfiguration_DeleteImage default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_delete_latest_image_responses.go b/swagger_client/image_configuration/image_configuration_delete_latest_image_responses.go index 2f9b30c..a4c6b0b 100644 --- a/swagger_client/image_configuration/image_configuration_delete_latest_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_delete_latest_image_responses.go @@ -117,6 +117,11 @@ func (o *ImageConfigurationDeleteLatestImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration delete latest image o k response +func (o *ImageConfigurationDeleteLatestImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationDeleteLatestImageOK) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ImageConfigurationDeleteLatestImageUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the image configuration delete latest image unauthorized response +func (o *ImageConfigurationDeleteLatestImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationDeleteLatestImageUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageUnauthorized %+v", 401, o.Payload) } @@ -243,6 +253,11 @@ func (o *ImageConfigurationDeleteLatestImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration delete latest image forbidden response +func (o *ImageConfigurationDeleteLatestImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationDeleteLatestImageForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageForbidden %+v", 403, o.Payload) } @@ -306,6 +321,11 @@ func (o *ImageConfigurationDeleteLatestImageNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration delete latest image not found response +func (o *ImageConfigurationDeleteLatestImageNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationDeleteLatestImageNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageNotFound %+v", 404, o.Payload) } @@ -369,6 +389,11 @@ func (o *ImageConfigurationDeleteLatestImageConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration delete latest image conflict response +func (o *ImageConfigurationDeleteLatestImageConflict) Code() int { + return 409 +} + func (o *ImageConfigurationDeleteLatestImageConflict) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *ImageConfigurationDeleteLatestImageInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the image configuration delete latest image internal server error response +func (o *ImageConfigurationDeleteLatestImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationDeleteLatestImageInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ImageConfigurationDeleteLatestImageGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the image configuration delete latest image gateway timeout response +func (o *ImageConfigurationDeleteLatestImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationDeleteLatestImageGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] imageConfigurationDeleteLatestImageGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ImageConfigurationDeleteLatestImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration delete latest image default response -func (o *ImageConfigurationDeleteLatestImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration delete latest image default response has a 2xx status code func (o *ImageConfigurationDeleteLatestImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ImageConfigurationDeleteLatestImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration delete latest image default response +func (o *ImageConfigurationDeleteLatestImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationDeleteLatestImageDefault) Error() string { return fmt.Sprintf("[DELETE /v1/apps/images/baseos/latest][%d] ImageConfiguration_DeleteLatestImage default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_get_image_by_name_responses.go b/swagger_client/image_configuration/image_configuration_get_image_by_name_responses.go index 8dc3b18..a9284fc 100644 --- a/swagger_client/image_configuration/image_configuration_get_image_by_name_responses.go +++ b/swagger_client/image_configuration/image_configuration_get_image_by_name_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationGetImageByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration get image by name o k response +func (o *ImageConfigurationGetImageByNameOK) Code() int { + return 200 +} + func (o *ImageConfigurationGetImageByNameOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationGetImageByNameUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration get image by name unauthorized response +func (o *ImageConfigurationGetImageByNameUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationGetImageByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationGetImageByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration get image by name forbidden response +func (o *ImageConfigurationGetImageByNameForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationGetImageByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationGetImageByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration get image by name not found response +func (o *ImageConfigurationGetImageByNameNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationGetImageByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationGetImageByNameInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the image configuration get image by name internal server error response +func (o *ImageConfigurationGetImageByNameInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationGetImageByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationGetImageByNameGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration get image by name gateway timeout response +func (o *ImageConfigurationGetImageByNameGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationGetImageByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] imageConfigurationGetImageByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationGetImageByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration get image by name default response -func (o *ImageConfigurationGetImageByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration get image by name default response has a 2xx status code func (o *ImageConfigurationGetImageByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationGetImageByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration get image by name default response +func (o *ImageConfigurationGetImageByNameDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationGetImageByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images/name/{name}][%d] ImageConfiguration_GetImageByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_get_image_responses.go b/swagger_client/image_configuration/image_configuration_get_image_responses.go index 6f00d05..74151a3 100644 --- a/swagger_client/image_configuration/image_configuration_get_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_get_image_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationGetImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration get image o k response +func (o *ImageConfigurationGetImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationGetImageOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationGetImageUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration get image unauthorized response +func (o *ImageConfigurationGetImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationGetImageUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationGetImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration get image forbidden response +func (o *ImageConfigurationGetImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationGetImageForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationGetImageNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration get image not found response +func (o *ImageConfigurationGetImageNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationGetImageNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationGetImageInternalServerError) IsCode(code int) bool { return code == 500 } +// Code gets the status code for the image configuration get image internal server error response +func (o *ImageConfigurationGetImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationGetImageInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationGetImageGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration get image gateway timeout response +func (o *ImageConfigurationGetImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationGetImageGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] imageConfigurationGetImageGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationGetImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration get image default response -func (o *ImageConfigurationGetImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration get image default response has a 2xx status code func (o *ImageConfigurationGetImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationGetImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration get image default response +func (o *ImageConfigurationGetImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationGetImageDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images/id/{id}][%d] ImageConfiguration_GetImage default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_get_latest_image_version_responses.go b/swagger_client/image_configuration/image_configuration_get_latest_image_version_responses.go index c1aee59..87733e7 100644 --- a/swagger_client/image_configuration/image_configuration_get_latest_image_version_responses.go +++ b/swagger_client/image_configuration/image_configuration_get_latest_image_version_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationGetLatestImageVersionOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration get latest image version o k response +func (o *ImageConfigurationGetLatestImageVersionOK) Code() int { + return 200 +} + func (o *ImageConfigurationGetLatestImageVersionOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationGetLatestImageVersionUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the image configuration get latest image version unauthorized response +func (o *ImageConfigurationGetLatestImageVersionUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationGetLatestImageVersionUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationGetLatestImageVersionForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the image configuration get latest image version forbidden response +func (o *ImageConfigurationGetLatestImageVersionForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationGetLatestImageVersionForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationGetLatestImageVersionNotFound) IsCode(code int) bool return code == 404 } +// Code gets the status code for the image configuration get latest image version not found response +func (o *ImageConfigurationGetLatestImageVersionNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationGetLatestImageVersionNotFound) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationGetLatestImageVersionInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the image configuration get latest image version internal server error response +func (o *ImageConfigurationGetLatestImageVersionInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationGetLatestImageVersionInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationGetLatestImageVersionGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the image configuration get latest image version gateway timeout response +func (o *ImageConfigurationGetLatestImageVersionGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationGetLatestImageVersionGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationGetLatestImageVersionGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationGetLatestImageVersionDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration get latest image version default response -func (o *ImageConfigurationGetLatestImageVersionDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration get latest image version default response has a 2xx status code func (o *ImageConfigurationGetLatestImageVersionDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationGetLatestImageVersionDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration get latest image version default response +func (o *ImageConfigurationGetLatestImageVersionDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationGetLatestImageVersionDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] ImageConfiguration_GetLatestImageVersion default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_mark_eve_image_latest2_responses.go b/swagger_client/image_configuration/image_configuration_mark_eve_image_latest2_responses.go index 0b86d2d..c85a6a3 100644 --- a/swagger_client/image_configuration/image_configuration_mark_eve_image_latest2_responses.go +++ b/swagger_client/image_configuration/image_configuration_mark_eve_image_latest2_responses.go @@ -121,6 +121,11 @@ func (o *ImageConfigurationMarkEveImageLatest2OK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration mark eve image latest2 o k response +func (o *ImageConfigurationMarkEveImageLatest2OK) Code() int { + return 200 +} + func (o *ImageConfigurationMarkEveImageLatest2OK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2OK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *ImageConfigurationMarkEveImageLatest2BadRequest) IsCode(code int) bool return code == 400 } +// Code gets the status code for the image configuration mark eve image latest2 bad request response +func (o *ImageConfigurationMarkEveImageLatest2BadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationMarkEveImageLatest2BadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2BadRequest %+v", 400, o.Payload) } @@ -247,6 +257,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Unauthorized) IsCode(code int) boo return code == 401 } +// Code gets the status code for the image configuration mark eve image latest2 unauthorized response +func (o *ImageConfigurationMarkEveImageLatest2Unauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationMarkEveImageLatest2Unauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2Unauthorized %+v", 401, o.Payload) } @@ -310,6 +325,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Forbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration mark eve image latest2 forbidden response +func (o *ImageConfigurationMarkEveImageLatest2Forbidden) Code() int { + return 403 +} + func (o *ImageConfigurationMarkEveImageLatest2Forbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2Forbidden %+v", 403, o.Payload) } @@ -373,6 +393,11 @@ func (o *ImageConfigurationMarkEveImageLatest2NotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration mark eve image latest2 not found response +func (o *ImageConfigurationMarkEveImageLatest2NotFound) Code() int { + return 404 +} + func (o *ImageConfigurationMarkEveImageLatest2NotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2NotFound %+v", 404, o.Payload) } @@ -436,6 +461,11 @@ func (o *ImageConfigurationMarkEveImageLatest2InternalServerError) IsCode(code i return code == 500 } +// Code gets the status code for the image configuration mark eve image latest2 internal server error response +func (o *ImageConfigurationMarkEveImageLatest2InternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationMarkEveImageLatest2InternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2InternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *ImageConfigurationMarkEveImageLatest2GatewayTimeout) IsCode(code int) b return code == 504 } +// Code gets the status code for the image configuration mark eve image latest2 gateway timeout response +func (o *ImageConfigurationMarkEveImageLatest2GatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationMarkEveImageLatest2GatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] imageConfigurationMarkEveImageLatest2GatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type ImageConfigurationMarkEveImageLatest2Default struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration mark eve image latest2 default response -func (o *ImageConfigurationMarkEveImageLatest2Default) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration mark eve image latest2 default response has a 2xx status code func (o *ImageConfigurationMarkEveImageLatest2Default) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Default) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration mark eve image latest2 default response +func (o *ImageConfigurationMarkEveImageLatest2Default) Code() int { + return o._statusCode +} + func (o *ImageConfigurationMarkEveImageLatest2Default) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest/hwclass/{imageArch}][%d] ImageConfiguration_MarkEveImageLatest2 default %+v", o._statusCode, o.Payload) } @@ -973,6 +1008,7 @@ func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageError(ct func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageFormat(ctx context.Context, formats strfmt.Registry) error { if o.ImageFormat != nil { + if err := o.ImageFormat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageFormat") @@ -998,6 +1034,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageLocal(ct func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageStatus(ctx context.Context, formats strfmt.Registry) error { if o.ImageStatus != nil { + + if swag.IsZero(o.ImageStatus) { // not required + return nil + } + if err := o.ImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageStatus") @@ -1014,6 +1055,7 @@ func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageStatus(c func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageType(ctx context.Context, formats strfmt.Registry) error { if o.ImageType != nil { + if err := o.ImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageType") @@ -1030,6 +1072,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateImageType(ctx func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + + if swag.IsZero(o.OriginType) { // not required + return nil + } + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -1046,6 +1093,11 @@ func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateOriginType(ct func (o *ImageConfigurationMarkEveImageLatest2Body) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") diff --git a/swagger_client/image_configuration/image_configuration_mark_eve_image_latest_responses.go b/swagger_client/image_configuration/image_configuration_mark_eve_image_latest_responses.go index 5110d55..1740e38 100644 --- a/swagger_client/image_configuration/image_configuration_mark_eve_image_latest_responses.go +++ b/swagger_client/image_configuration/image_configuration_mark_eve_image_latest_responses.go @@ -117,6 +117,11 @@ func (o *ImageConfigurationMarkEveImageLatestOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration mark eve image latest o k response +func (o *ImageConfigurationMarkEveImageLatestOK) Code() int { + return 200 +} + func (o *ImageConfigurationMarkEveImageLatestOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ImageConfigurationMarkEveImageLatestBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration mark eve image latest bad request response +func (o *ImageConfigurationMarkEveImageLatestBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationMarkEveImageLatestBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *ImageConfigurationMarkEveImageLatestUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the image configuration mark eve image latest unauthorized response +func (o *ImageConfigurationMarkEveImageLatestUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationMarkEveImageLatestUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *ImageConfigurationMarkEveImageLatestForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration mark eve image latest forbidden response +func (o *ImageConfigurationMarkEveImageLatestForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationMarkEveImageLatestForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *ImageConfigurationMarkEveImageLatestNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration mark eve image latest not found response +func (o *ImageConfigurationMarkEveImageLatestNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationMarkEveImageLatestNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestNotFound %+v", 404, o.Payload) } @@ -432,6 +457,11 @@ func (o *ImageConfigurationMarkEveImageLatestInternalServerError) IsCode(code in return code == 500 } +// Code gets the status code for the image configuration mark eve image latest internal server error response +func (o *ImageConfigurationMarkEveImageLatestInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationMarkEveImageLatestInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ImageConfigurationMarkEveImageLatestGatewayTimeout) IsCode(code int) bo return code == 504 } +// Code gets the status code for the image configuration mark eve image latest gateway timeout response +func (o *ImageConfigurationMarkEveImageLatestGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationMarkEveImageLatestGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] imageConfigurationMarkEveImageLatestGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ImageConfigurationMarkEveImageLatestDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration mark eve image latest default response -func (o *ImageConfigurationMarkEveImageLatestDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration mark eve image latest default response has a 2xx status code func (o *ImageConfigurationMarkEveImageLatestDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ImageConfigurationMarkEveImageLatestDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration mark eve image latest default response +func (o *ImageConfigurationMarkEveImageLatestDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationMarkEveImageLatestDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/baseos/latest][%d] ImageConfiguration_MarkEveImageLatest default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_query_image_project_list_responses.go b/swagger_client/image_configuration/image_configuration_query_image_project_list_responses.go index ca8f9b2..ba1c410 100644 --- a/swagger_client/image_configuration/image_configuration_query_image_project_list_responses.go +++ b/swagger_client/image_configuration/image_configuration_query_image_project_list_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationQueryImageProjectListOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration query image project list o k response +func (o *ImageConfigurationQueryImageProjectListOK) Code() int { + return 200 +} + func (o *ImageConfigurationQueryImageProjectListOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationQueryImageProjectListBadRequest) IsCode(code int) boo return code == 400 } +// Code gets the status code for the image configuration query image project list bad request response +func (o *ImageConfigurationQueryImageProjectListBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationQueryImageProjectListBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationQueryImageProjectListUnauthorized) IsCode(code int) b return code == 401 } +// Code gets the status code for the image configuration query image project list unauthorized response +func (o *ImageConfigurationQueryImageProjectListUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationQueryImageProjectListUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationQueryImageProjectListForbidden) IsCode(code int) bool return code == 403 } +// Code gets the status code for the image configuration query image project list forbidden response +func (o *ImageConfigurationQueryImageProjectListForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationQueryImageProjectListForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationQueryImageProjectListInternalServerError) IsCode(code return code == 500 } +// Code gets the status code for the image configuration query image project list internal server error response +func (o *ImageConfigurationQueryImageProjectListInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationQueryImageProjectListInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationQueryImageProjectListGatewayTimeout) IsCode(code int) return code == 504 } +// Code gets the status code for the image configuration query image project list gateway timeout response +func (o *ImageConfigurationQueryImageProjectListGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationQueryImageProjectListGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] imageConfigurationQueryImageProjectListGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationQueryImageProjectListDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration query image project list default response -func (o *ImageConfigurationQueryImageProjectListDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration query image project list default response has a 2xx status code func (o *ImageConfigurationQueryImageProjectListDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationQueryImageProjectListDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration query image project list default response +func (o *ImageConfigurationQueryImageProjectListDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationQueryImageProjectListDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images/projects][%d] ImageConfiguration_QueryImageProjectList default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_query_images_responses.go b/swagger_client/image_configuration/image_configuration_query_images_responses.go index 8dc411e..38a15e2 100644 --- a/swagger_client/image_configuration/image_configuration_query_images_responses.go +++ b/swagger_client/image_configuration/image_configuration_query_images_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationQueryImagesOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration query images o k response +func (o *ImageConfigurationQueryImagesOK) Code() int { + return 200 +} + func (o *ImageConfigurationQueryImagesOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationQueryImagesBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration query images bad request response +func (o *ImageConfigurationQueryImagesBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationQueryImagesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationQueryImagesUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration query images unauthorized response +func (o *ImageConfigurationQueryImagesUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationQueryImagesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationQueryImagesForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration query images forbidden response +func (o *ImageConfigurationQueryImagesForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationQueryImagesForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationQueryImagesInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the image configuration query images internal server error response +func (o *ImageConfigurationQueryImagesInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationQueryImagesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationQueryImagesGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration query images gateway timeout response +func (o *ImageConfigurationQueryImagesGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationQueryImagesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] imageConfigurationQueryImagesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationQueryImagesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration query images default response -func (o *ImageConfigurationQueryImagesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration query images default response has a 2xx status code func (o *ImageConfigurationQueryImagesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationQueryImagesDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration query images default response +func (o *ImageConfigurationQueryImagesDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationQueryImagesDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images][%d] ImageConfiguration_QueryImages default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_query_latest_image_versions_responses.go b/swagger_client/image_configuration/image_configuration_query_latest_image_versions_responses.go index b64b34f..37d593c 100644 --- a/swagger_client/image_configuration/image_configuration_query_latest_image_versions_responses.go +++ b/swagger_client/image_configuration/image_configuration_query_latest_image_versions_responses.go @@ -111,6 +111,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration query latest image versions o k response +func (o *ImageConfigurationQueryLatestImageVersionsOK) Code() int { + return 200 +} + func (o *ImageConfigurationQueryLatestImageVersionsOK) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsBadRequest) IsCode(code int) return code == 400 } +// Code gets the status code for the image configuration query latest image versions bad request response +func (o *ImageConfigurationQueryLatestImageVersionsBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationQueryLatestImageVersionsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsUnauthorized) IsCode(code int return code == 401 } +// Code gets the status code for the image configuration query latest image versions unauthorized response +func (o *ImageConfigurationQueryLatestImageVersionsUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationQueryLatestImageVersionsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsForbidden) IsCode(code int) b return code == 403 } +// Code gets the status code for the image configuration query latest image versions forbidden response +func (o *ImageConfigurationQueryLatestImageVersionsForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationQueryLatestImageVersionsForbidden) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsInternalServerError) IsCode(c return code == 500 } +// Code gets the status code for the image configuration query latest image versions internal server error response +func (o *ImageConfigurationQueryLatestImageVersionsInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationQueryLatestImageVersionsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsGatewayTimeout) IsCode(code i return code == 504 } +// Code gets the status code for the image configuration query latest image versions gateway timeout response +func (o *ImageConfigurationQueryLatestImageVersionsGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationQueryLatestImageVersionsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] imageConfigurationQueryLatestImageVersionsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ImageConfigurationQueryLatestImageVersionsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration query latest image versions default response -func (o *ImageConfigurationQueryLatestImageVersionsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration query latest image versions default response has a 2xx status code func (o *ImageConfigurationQueryLatestImageVersionsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ImageConfigurationQueryLatestImageVersionsDefault) IsCode(code int) boo return o._statusCode == code } +// Code gets the status code for the image configuration query latest image versions default response +func (o *ImageConfigurationQueryLatestImageVersionsDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationQueryLatestImageVersionsDefault) Error() string { return fmt.Sprintf("[GET /v1/apps/images/baseos/latest][%d] ImageConfiguration_QueryLatestImageVersions default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_update_image_responses.go b/swagger_client/image_configuration/image_configuration_update_image_responses.go index 928d63f..1bcba21 100644 --- a/swagger_client/image_configuration/image_configuration_update_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_update_image_responses.go @@ -127,6 +127,11 @@ func (o *ImageConfigurationUpdateImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration update image o k response +func (o *ImageConfigurationUpdateImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationUpdateImageOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageOK %+v", 200, o.Payload) } @@ -190,6 +195,11 @@ func (o *ImageConfigurationUpdateImageBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration update image bad request response +func (o *ImageConfigurationUpdateImageBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationUpdateImageBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageBadRequest %+v", 400, o.Payload) } @@ -253,6 +263,11 @@ func (o *ImageConfigurationUpdateImageUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration update image unauthorized response +func (o *ImageConfigurationUpdateImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationUpdateImageUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageUnauthorized %+v", 401, o.Payload) } @@ -316,6 +331,11 @@ func (o *ImageConfigurationUpdateImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration update image forbidden response +func (o *ImageConfigurationUpdateImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationUpdateImageForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageForbidden %+v", 403, o.Payload) } @@ -379,6 +399,11 @@ func (o *ImageConfigurationUpdateImageNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration update image not found response +func (o *ImageConfigurationUpdateImageNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationUpdateImageNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageNotFound %+v", 404, o.Payload) } @@ -442,6 +467,11 @@ func (o *ImageConfigurationUpdateImageConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration update image conflict response +func (o *ImageConfigurationUpdateImageConflict) Code() int { + return 409 +} + func (o *ImageConfigurationUpdateImageConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageConflict %+v", 409, o.Payload) } @@ -505,6 +535,11 @@ func (o *ImageConfigurationUpdateImageInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the image configuration update image internal server error response +func (o *ImageConfigurationUpdateImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationUpdateImageInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageInternalServerError %+v", 500, o.Payload) } @@ -568,6 +603,11 @@ func (o *ImageConfigurationUpdateImageGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration update image gateway timeout response +func (o *ImageConfigurationUpdateImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationUpdateImageGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] imageConfigurationUpdateImageGatewayTimeout %+v", 504, o.Payload) } @@ -610,11 +650,6 @@ type ImageConfigurationUpdateImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration update image default response -func (o *ImageConfigurationUpdateImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration update image default response has a 2xx status code func (o *ImageConfigurationUpdateImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -640,6 +675,11 @@ func (o *ImageConfigurationUpdateImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration update image default response +func (o *ImageConfigurationUpdateImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationUpdateImageDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/id/{id}][%d] ImageConfiguration_UpdateImage default %+v", o._statusCode, o.Payload) } @@ -1035,6 +1075,7 @@ func (o *ImageConfigurationUpdateImageBody) ContextValidate(ctx context.Context, func (o *ImageConfigurationUpdateImageBody) contextValidateImageArch(ctx context.Context, formats strfmt.Registry) error { if o.ImageArch != nil { + if err := o.ImageArch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageArch") @@ -1060,6 +1101,7 @@ func (o *ImageConfigurationUpdateImageBody) contextValidateImageError(ctx contex func (o *ImageConfigurationUpdateImageBody) contextValidateImageFormat(ctx context.Context, formats strfmt.Registry) error { if o.ImageFormat != nil { + if err := o.ImageFormat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageFormat") @@ -1085,6 +1127,11 @@ func (o *ImageConfigurationUpdateImageBody) contextValidateImageLocal(ctx contex func (o *ImageConfigurationUpdateImageBody) contextValidateImageStatus(ctx context.Context, formats strfmt.Registry) error { if o.ImageStatus != nil { + + if swag.IsZero(o.ImageStatus) { // not required + return nil + } + if err := o.ImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageStatus") @@ -1101,6 +1148,7 @@ func (o *ImageConfigurationUpdateImageBody) contextValidateImageStatus(ctx conte func (o *ImageConfigurationUpdateImageBody) contextValidateImageType(ctx context.Context, formats strfmt.Registry) error { if o.ImageType != nil { + if err := o.ImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageType") @@ -1117,6 +1165,11 @@ func (o *ImageConfigurationUpdateImageBody) contextValidateImageType(ctx context func (o *ImageConfigurationUpdateImageBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + + if swag.IsZero(o.OriginType) { // not required + return nil + } + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -1133,6 +1186,11 @@ func (o *ImageConfigurationUpdateImageBody) contextValidateOriginType(ctx contex func (o *ImageConfigurationUpdateImageBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") diff --git a/swagger_client/image_configuration/image_configuration_uplink_image_responses.go b/swagger_client/image_configuration/image_configuration_uplink_image_responses.go index 992845b..e9f8f66 100644 --- a/swagger_client/image_configuration/image_configuration_uplink_image_responses.go +++ b/swagger_client/image_configuration/image_configuration_uplink_image_responses.go @@ -133,6 +133,11 @@ func (o *ImageConfigurationUplinkImageOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration uplink image o k response +func (o *ImageConfigurationUplinkImageOK) Code() int { + return 200 +} + func (o *ImageConfigurationUplinkImageOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageOK %+v", 200, o.Payload) } @@ -196,6 +201,11 @@ func (o *ImageConfigurationUplinkImageAccepted) IsCode(code int) bool { return code == 202 } +// Code gets the status code for the image configuration uplink image accepted response +func (o *ImageConfigurationUplinkImageAccepted) Code() int { + return 202 +} + func (o *ImageConfigurationUplinkImageAccepted) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageAccepted %+v", 202, o.Payload) } @@ -259,6 +269,11 @@ func (o *ImageConfigurationUplinkImageBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration uplink image bad request response +func (o *ImageConfigurationUplinkImageBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationUplinkImageBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageBadRequest %+v", 400, o.Payload) } @@ -322,6 +337,11 @@ func (o *ImageConfigurationUplinkImageUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration uplink image unauthorized response +func (o *ImageConfigurationUplinkImageUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationUplinkImageUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageUnauthorized %+v", 401, o.Payload) } @@ -385,6 +405,11 @@ func (o *ImageConfigurationUplinkImageForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration uplink image forbidden response +func (o *ImageConfigurationUplinkImageForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationUplinkImageForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageForbidden %+v", 403, o.Payload) } @@ -448,6 +473,11 @@ func (o *ImageConfigurationUplinkImageNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration uplink image not found response +func (o *ImageConfigurationUplinkImageNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationUplinkImageNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageNotFound %+v", 404, o.Payload) } @@ -511,6 +541,11 @@ func (o *ImageConfigurationUplinkImageConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration uplink image conflict response +func (o *ImageConfigurationUplinkImageConflict) Code() int { + return 409 +} + func (o *ImageConfigurationUplinkImageConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageConflict %+v", 409, o.Payload) } @@ -574,6 +609,11 @@ func (o *ImageConfigurationUplinkImageInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the image configuration uplink image internal server error response +func (o *ImageConfigurationUplinkImageInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationUplinkImageInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageInternalServerError %+v", 500, o.Payload) } @@ -637,6 +677,11 @@ func (o *ImageConfigurationUplinkImageGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the image configuration uplink image gateway timeout response +func (o *ImageConfigurationUplinkImageGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationUplinkImageGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] imageConfigurationUplinkImageGatewayTimeout %+v", 504, o.Payload) } @@ -679,11 +724,6 @@ type ImageConfigurationUplinkImageDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration uplink image default response -func (o *ImageConfigurationUplinkImageDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration uplink image default response has a 2xx status code func (o *ImageConfigurationUplinkImageDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -709,6 +749,11 @@ func (o *ImageConfigurationUplinkImageDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration uplink image default response +func (o *ImageConfigurationUplinkImageDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationUplinkImageDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/uplink][%d] ImageConfiguration_UplinkImage default %+v", o._statusCode, o.Payload) } @@ -1106,6 +1151,7 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateID(ctx context.Contex func (o *ImageConfigurationUplinkImageBody) contextValidateImageArch(ctx context.Context, formats strfmt.Registry) error { if o.ImageArch != nil { + if err := o.ImageArch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageArch") @@ -1131,6 +1177,7 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateImageError(ctx contex func (o *ImageConfigurationUplinkImageBody) contextValidateImageFormat(ctx context.Context, formats strfmt.Registry) error { if o.ImageFormat != nil { + if err := o.ImageFormat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageFormat") @@ -1156,6 +1203,11 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateImageLocal(ctx contex func (o *ImageConfigurationUplinkImageBody) contextValidateImageStatus(ctx context.Context, formats strfmt.Registry) error { if o.ImageStatus != nil { + + if swag.IsZero(o.ImageStatus) { // not required + return nil + } + if err := o.ImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageStatus") @@ -1172,6 +1224,7 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateImageStatus(ctx conte func (o *ImageConfigurationUplinkImageBody) contextValidateImageType(ctx context.Context, formats strfmt.Registry) error { if o.ImageType != nil { + if err := o.ImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "imageType") @@ -1188,6 +1241,11 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateImageType(ctx context func (o *ImageConfigurationUplinkImageBody) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if o.OriginType != nil { + + if swag.IsZero(o.OriginType) { // not required + return nil + } + if err := o.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "originType") @@ -1204,6 +1262,11 @@ func (o *ImageConfigurationUplinkImageBody) contextValidateOriginType(ctx contex func (o *ImageConfigurationUplinkImageBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") diff --git a/swagger_client/image_configuration/image_configuration_upload_image_chunked_responses.go b/swagger_client/image_configuration/image_configuration_upload_image_chunked_responses.go index c934b81..5e623a2 100644 --- a/swagger_client/image_configuration/image_configuration_upload_image_chunked_responses.go +++ b/swagger_client/image_configuration/image_configuration_upload_image_chunked_responses.go @@ -129,6 +129,11 @@ func (o *ImageConfigurationUploadImageChunkedOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration upload image chunked o k response +func (o *ImageConfigurationUploadImageChunkedOK) Code() int { + return 200 +} + func (o *ImageConfigurationUploadImageChunkedOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedOK %+v", 200, o.Payload) } @@ -192,6 +197,11 @@ func (o *ImageConfigurationUploadImageChunkedAccepted) IsCode(code int) bool { return code == 202 } +// Code gets the status code for the image configuration upload image chunked accepted response +func (o *ImageConfigurationUploadImageChunkedAccepted) Code() int { + return 202 +} + func (o *ImageConfigurationUploadImageChunkedAccepted) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedAccepted %+v", 202, o.Payload) } @@ -255,6 +265,11 @@ func (o *ImageConfigurationUploadImageChunkedBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration upload image chunked bad request response +func (o *ImageConfigurationUploadImageChunkedBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationUploadImageChunkedBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedBadRequest %+v", 400, o.Payload) } @@ -318,6 +333,11 @@ func (o *ImageConfigurationUploadImageChunkedUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the image configuration upload image chunked unauthorized response +func (o *ImageConfigurationUploadImageChunkedUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationUploadImageChunkedUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedUnauthorized %+v", 401, o.Payload) } @@ -381,6 +401,11 @@ func (o *ImageConfigurationUploadImageChunkedForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration upload image chunked forbidden response +func (o *ImageConfigurationUploadImageChunkedForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationUploadImageChunkedForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedForbidden %+v", 403, o.Payload) } @@ -444,6 +469,11 @@ func (o *ImageConfigurationUploadImageChunkedNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration upload image chunked not found response +func (o *ImageConfigurationUploadImageChunkedNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationUploadImageChunkedNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedNotFound %+v", 404, o.Payload) } @@ -509,6 +539,11 @@ func (o *ImageConfigurationUploadImageChunkedConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration upload image chunked conflict response +func (o *ImageConfigurationUploadImageChunkedConflict) Code() int { + return 409 +} + func (o *ImageConfigurationUploadImageChunkedConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedConflict %+v", 409, o.Payload) } @@ -572,6 +607,11 @@ func (o *ImageConfigurationUploadImageChunkedInternalServerError) IsCode(code in return code == 500 } +// Code gets the status code for the image configuration upload image chunked internal server error response +func (o *ImageConfigurationUploadImageChunkedInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationUploadImageChunkedInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedInternalServerError %+v", 500, o.Payload) } @@ -635,6 +675,11 @@ func (o *ImageConfigurationUploadImageChunkedGatewayTimeout) IsCode(code int) bo return code == 504 } +// Code gets the status code for the image configuration upload image chunked gateway timeout response +func (o *ImageConfigurationUploadImageChunkedGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationUploadImageChunkedGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] imageConfigurationUploadImageChunkedGatewayTimeout %+v", 504, o.Payload) } @@ -677,11 +722,6 @@ type ImageConfigurationUploadImageChunkedDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration upload image chunked default response -func (o *ImageConfigurationUploadImageChunkedDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration upload image chunked default response has a 2xx status code func (o *ImageConfigurationUploadImageChunkedDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -707,6 +747,11 @@ func (o *ImageConfigurationUploadImageChunkedDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration upload image chunked default response +func (o *ImageConfigurationUploadImageChunkedDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationUploadImageChunkedDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/chunked][%d] ImageConfiguration_UploadImageChunked default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/image_configuration/image_configuration_upload_image_file_responses.go b/swagger_client/image_configuration/image_configuration_upload_image_file_responses.go index f916912..ea2f590 100644 --- a/swagger_client/image_configuration/image_configuration_upload_image_file_responses.go +++ b/swagger_client/image_configuration/image_configuration_upload_image_file_responses.go @@ -129,6 +129,11 @@ func (o *ImageConfigurationUploadImageFileOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the image configuration upload image file o k response +func (o *ImageConfigurationUploadImageFileOK) Code() int { + return 200 +} + func (o *ImageConfigurationUploadImageFileOK) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileOK %+v", 200, o.Payload) } @@ -192,6 +197,11 @@ func (o *ImageConfigurationUploadImageFileAccepted) IsCode(code int) bool { return code == 202 } +// Code gets the status code for the image configuration upload image file accepted response +func (o *ImageConfigurationUploadImageFileAccepted) Code() int { + return 202 +} + func (o *ImageConfigurationUploadImageFileAccepted) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileAccepted %+v", 202, o.Payload) } @@ -255,6 +265,11 @@ func (o *ImageConfigurationUploadImageFileBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the image configuration upload image file bad request response +func (o *ImageConfigurationUploadImageFileBadRequest) Code() int { + return 400 +} + func (o *ImageConfigurationUploadImageFileBadRequest) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileBadRequest %+v", 400, o.Payload) } @@ -318,6 +333,11 @@ func (o *ImageConfigurationUploadImageFileUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the image configuration upload image file unauthorized response +func (o *ImageConfigurationUploadImageFileUnauthorized) Code() int { + return 401 +} + func (o *ImageConfigurationUploadImageFileUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileUnauthorized %+v", 401, o.Payload) } @@ -381,6 +401,11 @@ func (o *ImageConfigurationUploadImageFileForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the image configuration upload image file forbidden response +func (o *ImageConfigurationUploadImageFileForbidden) Code() int { + return 403 +} + func (o *ImageConfigurationUploadImageFileForbidden) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileForbidden %+v", 403, o.Payload) } @@ -444,6 +469,11 @@ func (o *ImageConfigurationUploadImageFileNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the image configuration upload image file not found response +func (o *ImageConfigurationUploadImageFileNotFound) Code() int { + return 404 +} + func (o *ImageConfigurationUploadImageFileNotFound) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileNotFound %+v", 404, o.Payload) } @@ -509,6 +539,11 @@ func (o *ImageConfigurationUploadImageFileConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the image configuration upload image file conflict response +func (o *ImageConfigurationUploadImageFileConflict) Code() int { + return 409 +} + func (o *ImageConfigurationUploadImageFileConflict) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileConflict %+v", 409, o.Payload) } @@ -572,6 +607,11 @@ func (o *ImageConfigurationUploadImageFileInternalServerError) IsCode(code int) return code == 500 } +// Code gets the status code for the image configuration upload image file internal server error response +func (o *ImageConfigurationUploadImageFileInternalServerError) Code() int { + return 500 +} + func (o *ImageConfigurationUploadImageFileInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileInternalServerError %+v", 500, o.Payload) } @@ -635,6 +675,11 @@ func (o *ImageConfigurationUploadImageFileGatewayTimeout) IsCode(code int) bool return code == 504 } +// Code gets the status code for the image configuration upload image file gateway timeout response +func (o *ImageConfigurationUploadImageFileGatewayTimeout) Code() int { + return 504 +} + func (o *ImageConfigurationUploadImageFileGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] imageConfigurationUploadImageFileGatewayTimeout %+v", 504, o.Payload) } @@ -677,11 +722,6 @@ type ImageConfigurationUploadImageFileDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the image configuration upload image file default response -func (o *ImageConfigurationUploadImageFileDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this image configuration upload image file default response has a 2xx status code func (o *ImageConfigurationUploadImageFileDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -707,6 +747,11 @@ func (o *ImageConfigurationUploadImageFileDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the image configuration upload image file default response +func (o *ImageConfigurationUploadImageFileDefault) Code() int { + return o._statusCode +} + func (o *ImageConfigurationUploadImageFileDefault) Error() string { return fmt.Sprintf("[PUT /v1/apps/images/name/{name}/upload/file][%d] ImageConfiguration_UploadImageFile default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_create_resource_group_responses.go b/swagger_client/resource_group/resource_group_create_resource_group_responses.go index d412f36..ec08f7e 100644 --- a/swagger_client/resource_group/resource_group_create_resource_group_responses.go +++ b/swagger_client/resource_group/resource_group_create_resource_group_responses.go @@ -117,6 +117,11 @@ func (o *ResourceGroupCreateResourceGroupOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group create resource group o k response +func (o *ResourceGroupCreateResourceGroupOK) Code() int { + return 200 +} + func (o *ResourceGroupCreateResourceGroupOK) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *ResourceGroupCreateResourceGroupBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the resource group create resource group bad request response +func (o *ResourceGroupCreateResourceGroupBadRequest) Code() int { + return 400 +} + func (o *ResourceGroupCreateResourceGroupBadRequest) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *ResourceGroupCreateResourceGroupUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the resource group create resource group unauthorized response +func (o *ResourceGroupCreateResourceGroupUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupCreateResourceGroupUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *ResourceGroupCreateResourceGroupForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group create resource group forbidden response +func (o *ResourceGroupCreateResourceGroupForbidden) Code() int { + return 403 +} + func (o *ResourceGroupCreateResourceGroupForbidden) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *ResourceGroupCreateResourceGroupConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the resource group create resource group conflict response +func (o *ResourceGroupCreateResourceGroupConflict) Code() int { + return 409 +} + func (o *ResourceGroupCreateResourceGroupConflict) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *ResourceGroupCreateResourceGroupInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the resource group create resource group internal server error response +func (o *ResourceGroupCreateResourceGroupInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupCreateResourceGroupInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *ResourceGroupCreateResourceGroupGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the resource group create resource group gateway timeout response +func (o *ResourceGroupCreateResourceGroupGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupCreateResourceGroupGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] resourceGroupCreateResourceGroupGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type ResourceGroupCreateResourceGroupDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group create resource group default response -func (o *ResourceGroupCreateResourceGroupDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group create resource group default response has a 2xx status code func (o *ResourceGroupCreateResourceGroupDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *ResourceGroupCreateResourceGroupDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group create resource group default response +func (o *ResourceGroupCreateResourceGroupDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupCreateResourceGroupDefault) Error() string { return fmt.Sprintf("[POST /v1/projects][%d] ResourceGroup_CreateResourceGroup default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_delete_resource_group_responses.go b/swagger_client/resource_group/resource_group_delete_resource_group_responses.go index 8cd47a5..7b8bb33 100644 --- a/swagger_client/resource_group/resource_group_delete_resource_group_responses.go +++ b/swagger_client/resource_group/resource_group_delete_resource_group_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupDeleteResourceGroupOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group delete resource group o k response +func (o *ResourceGroupDeleteResourceGroupOK) Code() int { + return 200 +} + func (o *ResourceGroupDeleteResourceGroupOK) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupDeleteResourceGroupUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the resource group delete resource group unauthorized response +func (o *ResourceGroupDeleteResourceGroupUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupDeleteResourceGroupUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupDeleteResourceGroupForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group delete resource group forbidden response +func (o *ResourceGroupDeleteResourceGroupForbidden) Code() int { + return 403 +} + func (o *ResourceGroupDeleteResourceGroupForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupDeleteResourceGroupNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the resource group delete resource group not found response +func (o *ResourceGroupDeleteResourceGroupNotFound) Code() int { + return 404 +} + func (o *ResourceGroupDeleteResourceGroupNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupDeleteResourceGroupInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the resource group delete resource group internal server error response +func (o *ResourceGroupDeleteResourceGroupInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupDeleteResourceGroupInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupDeleteResourceGroupGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the resource group delete resource group gateway timeout response +func (o *ResourceGroupDeleteResourceGroupGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupDeleteResourceGroupGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] resourceGroupDeleteResourceGroupGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupDeleteResourceGroupDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group delete resource group default response -func (o *ResourceGroupDeleteResourceGroupDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group delete resource group default response has a 2xx status code func (o *ResourceGroupDeleteResourceGroupDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupDeleteResourceGroupDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group delete resource group default response +func (o *ResourceGroupDeleteResourceGroupDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupDeleteResourceGroupDefault) Error() string { return fmt.Sprintf("[DELETE /v1/projects/id/{id}][%d] ResourceGroup_DeleteResourceGroup default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_by_name_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_by_name_responses.go index e81e634..1efa663 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_by_name_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_by_name_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group get resource group by name o k response +func (o *ResourceGroupGetResourceGroupByNameOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupByNameOK) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupByNameUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the resource group get resource group by name unauthorized response +func (o *ResourceGroupGetResourceGroupByNameUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupByNameForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group get resource group by name forbidden response +func (o *ResourceGroupGetResourceGroupByNameForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupByNameNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the resource group get resource group by name not found response +func (o *ResourceGroupGetResourceGroupByNameNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupByNameInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the resource group get resource group by name internal server error response +func (o *ResourceGroupGetResourceGroupByNameInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupByNameGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the resource group get resource group by name gateway timeout response +func (o *ResourceGroupGetResourceGroupByNameGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] resourceGroupGetResourceGroupByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group by name default response -func (o *ResourceGroupGetResourceGroupByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group by name default response has a 2xx status code func (o *ResourceGroupGetResourceGroupByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupByNameDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group get resource group by name default response +func (o *ResourceGroupGetResourceGroupByNameDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}][%d] ResourceGroup_GetResourceGroupByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_events_by_name_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_events_by_name_responses.go index 4a50e3e..645b0b1 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_events_by_name_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_events_by_name_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group get resource group events by name o k response +func (o *ResourceGroupGetResourceGroupEventsByNameOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupEventsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameUnauthorized) IsCode(code int) return code == 401 } +// Code gets the status code for the resource group get resource group events by name unauthorized response +func (o *ResourceGroupGetResourceGroupEventsByNameUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupEventsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameForbidden) IsCode(code int) bo return code == 403 } +// Code gets the status code for the resource group get resource group events by name forbidden response +func (o *ResourceGroupGetResourceGroupEventsByNameForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupEventsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameNotFound) IsCode(code int) boo return code == 404 } +// Code gets the status code for the resource group get resource group events by name not found response +func (o *ResourceGroupGetResourceGroupEventsByNameNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupEventsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameInternalServerError) IsCode(co return code == 500 } +// Code gets the status code for the resource group get resource group events by name internal server error response +func (o *ResourceGroupGetResourceGroupEventsByNameInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupEventsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameGatewayTimeout) IsCode(code in return code == 504 } +// Code gets the status code for the resource group get resource group events by name gateway timeout response +func (o *ResourceGroupGetResourceGroupEventsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupEventsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] resourceGroupGetResourceGroupEventsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupEventsByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group events by name default response -func (o *ResourceGroupGetResourceGroupEventsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group events by name default response has a 2xx status code func (o *ResourceGroupGetResourceGroupEventsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupEventsByNameDefault) IsCode(code int) bool return o._statusCode == code } +// Code gets the status code for the resource group get resource group events by name default response +func (o *ResourceGroupGetResourceGroupEventsByNameDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupEventsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/events][%d] ResourceGroup_GetResourceGroupEventsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_events_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_events_responses.go index 585c1fb..c52e9f3 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_events_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_events_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupEventsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group get resource group events o k response +func (o *ResourceGroupGetResourceGroupEventsOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupEventsOK) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupEventsUnauthorized) IsCode(code int) bool return code == 401 } +// Code gets the status code for the resource group get resource group events unauthorized response +func (o *ResourceGroupGetResourceGroupEventsUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupEventsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupEventsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group get resource group events forbidden response +func (o *ResourceGroupGetResourceGroupEventsForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupEventsForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupEventsNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the resource group get resource group events not found response +func (o *ResourceGroupGetResourceGroupEventsNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupEventsNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupEventsInternalServerError) IsCode(code int return code == 500 } +// Code gets the status code for the resource group get resource group events internal server error response +func (o *ResourceGroupGetResourceGroupEventsInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupEventsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupEventsGatewayTimeout) IsCode(code int) boo return code == 504 } +// Code gets the status code for the resource group get resource group events gateway timeout response +func (o *ResourceGroupGetResourceGroupEventsGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupEventsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] resourceGroupGetResourceGroupEventsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupEventsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group events default response -func (o *ResourceGroupGetResourceGroupEventsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group events default response has a 2xx status code func (o *ResourceGroupGetResourceGroupEventsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupEventsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group get resource group events default response +func (o *ResourceGroupGetResourceGroupEventsDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupEventsDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/events][%d] ResourceGroup_GetResourceGroupEvents default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_id_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_id_responses.go index 4874e25..73b8097 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_id_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_id_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDOK) IsCode(code int) bo return code == 200 } +// Code gets the status code for the resource group get resource group resource metrics by Id o k response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDOK) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDUnauthorized) IsCode(co return code == 401 } +// Code gets the status code for the resource group get resource group resource metrics by Id unauthorized response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDForbidden) IsCode(code return code == 403 } +// Code gets the status code for the resource group get resource group resource metrics by Id forbidden response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDNotFound) IsCode(code i return code == 404 } +// Code gets the status code for the resource group get resource group resource metrics by Id not found response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDInternalServerError) Is return code == 500 } +// Code gets the status code for the resource group get resource group resource metrics by Id internal server error response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDGatewayTimeout) IsCode( return code == 504 } +// Code gets the status code for the resource group get resource group resource metrics by Id gateway timeout response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByIdGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupResourceMetricsByIDDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group resource metrics by Id default response -func (o *ResourceGroupGetResourceGroupResourceMetricsByIDDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group resource metrics by Id default response has a 2xx status code func (o *ResourceGroupGetResourceGroupResourceMetricsByIDDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByIDDefault) IsCode(code in return o._statusCode == code } +// Code gets the status code for the resource group get resource group resource metrics by Id default response +func (o *ResourceGroupGetResourceGroupResourceMetricsByIDDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByIDDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{objid}/timeSeries/{mType}][%d] ResourceGroup_GetResourceGroupResourceMetricsById default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_name_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_name_responses.go index b007a07..f07768d 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_name_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_resource_metrics_by_name_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameOK) IsCode(code int) return code == 200 } +// Code gets the status code for the resource group get resource group resource metrics by name o k response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameUnauthorized) IsCode( return code == 401 } +// Code gets the status code for the resource group get resource group resource metrics by name unauthorized response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameForbidden) IsCode(cod return code == 403 } +// Code gets the status code for the resource group get resource group resource metrics by name forbidden response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameNotFound) IsCode(code return code == 404 } +// Code gets the status code for the resource group get resource group resource metrics by name not found response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameInternalServerError) return code == 500 } +// Code gets the status code for the resource group get resource group resource metrics by name internal server error response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameGatewayTimeout) IsCod return code == 504 } +// Code gets the status code for the resource group get resource group resource metrics by name gateway timeout response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] resourceGroupGetResourceGroupResourceMetricsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupResourceMetricsByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group resource metrics by name default response -func (o *ResourceGroupGetResourceGroupResourceMetricsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group resource metrics by name default response has a 2xx status code func (o *ResourceGroupGetResourceGroupResourceMetricsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupResourceMetricsByNameDefault) IsCode(code return o._statusCode == code } +// Code gets the status code for the resource group get resource group resource metrics by name default response +func (o *ResourceGroupGetResourceGroupResourceMetricsByNameDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupResourceMetricsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{objname}/timeSeries/{mType}][%d] ResourceGroup_GetResourceGroupResourceMetricsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_get_resource_group_responses.go b/swagger_client/resource_group/resource_group_get_resource_group_responses.go index 754ffa1..457d75d 100644 --- a/swagger_client/resource_group/resource_group_get_resource_group_responses.go +++ b/swagger_client/resource_group/resource_group_get_resource_group_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupGetResourceGroupOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group get resource group o k response +func (o *ResourceGroupGetResourceGroupOK) Code() int { + return 200 +} + func (o *ResourceGroupGetResourceGroupOK) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupGetResourceGroupUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the resource group get resource group unauthorized response +func (o *ResourceGroupGetResourceGroupUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupGetResourceGroupUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupGetResourceGroupForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group get resource group forbidden response +func (o *ResourceGroupGetResourceGroupForbidden) Code() int { + return 403 +} + func (o *ResourceGroupGetResourceGroupForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupGetResourceGroupNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the resource group get resource group not found response +func (o *ResourceGroupGetResourceGroupNotFound) Code() int { + return 404 +} + func (o *ResourceGroupGetResourceGroupNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupGetResourceGroupInternalServerError) IsCode(code int) bool return code == 500 } +// Code gets the status code for the resource group get resource group internal server error response +func (o *ResourceGroupGetResourceGroupInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupGetResourceGroupInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupGetResourceGroupGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the resource group get resource group gateway timeout response +func (o *ResourceGroupGetResourceGroupGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupGetResourceGroupGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] resourceGroupGetResourceGroupGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupGetResourceGroupDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group get resource group default response -func (o *ResourceGroupGetResourceGroupDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group get resource group default response has a 2xx status code func (o *ResourceGroupGetResourceGroupDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupGetResourceGroupDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group get resource group default response +func (o *ResourceGroupGetResourceGroupDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupGetResourceGroupDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}][%d] ResourceGroup_GetResourceGroup default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_query_resource_groups_responses.go b/swagger_client/resource_group/resource_group_query_resource_groups_responses.go index a01795c..45eb428 100644 --- a/swagger_client/resource_group/resource_group_query_resource_groups_responses.go +++ b/swagger_client/resource_group/resource_group_query_resource_groups_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupQueryResourceGroupsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group query resource groups o k response +func (o *ResourceGroupQueryResourceGroupsOK) Code() int { + return 200 +} + func (o *ResourceGroupQueryResourceGroupsOK) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupQueryResourceGroupsBadRequest) IsCode(code int) bool { return code == 400 } +// Code gets the status code for the resource group query resource groups bad request response +func (o *ResourceGroupQueryResourceGroupsBadRequest) Code() int { + return 400 +} + func (o *ResourceGroupQueryResourceGroupsBadRequest) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupQueryResourceGroupsUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the resource group query resource groups unauthorized response +func (o *ResourceGroupQueryResourceGroupsUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupQueryResourceGroupsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupQueryResourceGroupsForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group query resource groups forbidden response +func (o *ResourceGroupQueryResourceGroupsForbidden) Code() int { + return 403 +} + func (o *ResourceGroupQueryResourceGroupsForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupQueryResourceGroupsInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the resource group query resource groups internal server error response +func (o *ResourceGroupQueryResourceGroupsInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupQueryResourceGroupsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupQueryResourceGroupsGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the resource group query resource groups gateway timeout response +func (o *ResourceGroupQueryResourceGroupsGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupQueryResourceGroupsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] resourceGroupQueryResourceGroupsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupQueryResourceGroupsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group query resource groups default response -func (o *ResourceGroupQueryResourceGroupsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group query resource groups default response has a 2xx status code func (o *ResourceGroupQueryResourceGroupsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupQueryResourceGroupsDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group query resource groups default response +func (o *ResourceGroupQueryResourceGroupsDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupQueryResourceGroupsDefault) Error() string { return fmt.Sprintf("[GET /v1/projects][%d] ResourceGroup_QueryResourceGroups default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group/resource_group_update_resource_group_responses.go b/swagger_client/resource_group/resource_group_update_resource_group_responses.go index a9c85ed..6a6dc7a 100644 --- a/swagger_client/resource_group/resource_group_update_resource_group_responses.go +++ b/swagger_client/resource_group/resource_group_update_resource_group_responses.go @@ -122,6 +122,11 @@ func (o *ResourceGroupUpdateResourceGroupOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group update resource group o k response +func (o *ResourceGroupUpdateResourceGroupOK) Code() int { + return 200 +} + func (o *ResourceGroupUpdateResourceGroupOK) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupOK %+v", 200, o.Payload) } @@ -185,6 +190,11 @@ func (o *ResourceGroupUpdateResourceGroupUnauthorized) IsCode(code int) bool { return code == 401 } +// Code gets the status code for the resource group update resource group unauthorized response +func (o *ResourceGroupUpdateResourceGroupUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupUpdateResourceGroupUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupUnauthorized %+v", 401, o.Payload) } @@ -248,6 +258,11 @@ func (o *ResourceGroupUpdateResourceGroupForbidden) IsCode(code int) bool { return code == 403 } +// Code gets the status code for the resource group update resource group forbidden response +func (o *ResourceGroupUpdateResourceGroupForbidden) Code() int { + return 403 +} + func (o *ResourceGroupUpdateResourceGroupForbidden) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupForbidden %+v", 403, o.Payload) } @@ -311,6 +326,11 @@ func (o *ResourceGroupUpdateResourceGroupNotFound) IsCode(code int) bool { return code == 404 } +// Code gets the status code for the resource group update resource group not found response +func (o *ResourceGroupUpdateResourceGroupNotFound) Code() int { + return 404 +} + func (o *ResourceGroupUpdateResourceGroupNotFound) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupNotFound %+v", 404, o.Payload) } @@ -374,6 +394,11 @@ func (o *ResourceGroupUpdateResourceGroupConflict) IsCode(code int) bool { return code == 409 } +// Code gets the status code for the resource group update resource group conflict response +func (o *ResourceGroupUpdateResourceGroupConflict) Code() int { + return 409 +} + func (o *ResourceGroupUpdateResourceGroupConflict) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupConflict %+v", 409, o.Payload) } @@ -437,6 +462,11 @@ func (o *ResourceGroupUpdateResourceGroupInternalServerError) IsCode(code int) b return code == 500 } +// Code gets the status code for the resource group update resource group internal server error response +func (o *ResourceGroupUpdateResourceGroupInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupUpdateResourceGroupInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupInternalServerError %+v", 500, o.Payload) } @@ -500,6 +530,11 @@ func (o *ResourceGroupUpdateResourceGroupGatewayTimeout) IsCode(code int) bool { return code == 504 } +// Code gets the status code for the resource group update resource group gateway timeout response +func (o *ResourceGroupUpdateResourceGroupGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupUpdateResourceGroupGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] resourceGroupUpdateResourceGroupGatewayTimeout %+v", 504, o.Payload) } @@ -542,11 +577,6 @@ type ResourceGroupUpdateResourceGroupDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group update resource group default response -func (o *ResourceGroupUpdateResourceGroupDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group update resource group default response has a 2xx status code func (o *ResourceGroupUpdateResourceGroupDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -572,6 +602,11 @@ func (o *ResourceGroupUpdateResourceGroupDefault) IsCode(code int) bool { return o._statusCode == code } +// Code gets the status code for the resource group update resource group default response +func (o *ResourceGroupUpdateResourceGroupDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupUpdateResourceGroupDefault) Error() string { return fmt.Sprintf("[PUT /v1/projects/id/{id}][%d] ResourceGroup_UpdateResourceGroup default %+v", o._statusCode, o.Payload) } @@ -1016,6 +1051,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) ContextValidate(ctx context.Conte func (o *ResourceGroupUpdateResourceGroupBody) contextValidateAppPolicy(ctx context.Context, formats strfmt.Registry) error { if o.AppPolicy != nil { + + if swag.IsZero(o.AppPolicy) { // not required + return nil + } + if err := o.AppPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "appPolicy") @@ -1032,6 +1072,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateAppPolicy(ctx cont func (o *ResourceGroupUpdateResourceGroupBody) contextValidateAttestationPolicy(ctx context.Context, formats strfmt.Registry) error { if o.AttestationPolicy != nil { + + if swag.IsZero(o.AttestationPolicy) { // not required + return nil + } + if err := o.AttestationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "attestationPolicy") @@ -1053,6 +1098,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateAttr(ctx context.C func (o *ResourceGroupUpdateResourceGroupBody) contextValidateCloudPolicy(ctx context.Context, formats strfmt.Registry) error { if o.CloudPolicy != nil { + + if swag.IsZero(o.CloudPolicy) { // not required + return nil + } + if err := o.CloudPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "cloudPolicy") @@ -1069,6 +1119,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateCloudPolicy(ctx co func (o *ResourceGroupUpdateResourceGroupBody) contextValidateDeployment(ctx context.Context, formats strfmt.Registry) error { if o.Deployment != nil { + + if swag.IsZero(o.Deployment) { // not required + return nil + } + if err := o.Deployment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "deployment") @@ -1085,6 +1140,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateDeployment(ctx con func (o *ResourceGroupUpdateResourceGroupBody) contextValidateEdgeviewPolicy(ctx context.Context, formats strfmt.Registry) error { if o.EdgeviewPolicy != nil { + + if swag.IsZero(o.EdgeviewPolicy) { // not required + return nil + } + if err := o.EdgeviewPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "edgeviewPolicy") @@ -1107,6 +1167,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateModulePolicy(ctx c for i := 0; i < len(o.ModulePolicy); i++ { if o.ModulePolicy[i] != nil { + + if swag.IsZero(o.ModulePolicy[i]) { // not required + return nil + } + if err := o.ModulePolicy[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "modulePolicy" + "." + strconv.Itoa(i)) @@ -1125,6 +1190,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateModulePolicy(ctx c func (o *ResourceGroupUpdateResourceGroupBody) contextValidateNetworkPolicy(ctx context.Context, formats strfmt.Registry) error { if o.NetworkPolicy != nil { + + if swag.IsZero(o.NetworkPolicy) { // not required + return nil + } + if err := o.NetworkPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "networkPolicy") @@ -1150,6 +1220,11 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateNumdevices(ctx con func (o *ResourceGroupUpdateResourceGroupBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -1166,6 +1241,7 @@ func (o *ResourceGroupUpdateResourceGroupBody) contextValidateRevision(ctx conte func (o *ResourceGroupUpdateResourceGroupBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_id_responses.go b/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_id_responses.go index 962b706..18efc52 100644 --- a/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_id_responses.go +++ b/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_id_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the resource group status get resource group status by Id o k response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDOK) Code() int { + return 200 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDOK) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the resource group status get resource group status by Id unauthorized response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the resource group status get resource group status by Id forbidden response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDForbidden) Code() int { + return 403 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the resource group status get resource group status by Id not found response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDNotFound) Code() int { + return 404 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDInternalServerError) IsCod return code == 500 } +// Code gets the status code for the resource group status get resource group status by Id internal server error response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the resource group status get resource group status by Id gateway timeout response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] resourceGroupStatusGetResourceGroupStatusByIdGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupStatusGetResourceGroupStatusByIDDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group status get resource group status by Id default response -func (o *ResourceGroupStatusGetResourceGroupStatusByIDDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group status get resource group status by Id default response has a 2xx status code func (o *ResourceGroupStatusGetResourceGroupStatusByIDDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByIDDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the resource group status get resource group status by Id default response +func (o *ResourceGroupStatusGetResourceGroupStatusByIDDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupStatusGetResourceGroupStatusByIDDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/id/{id}/status][%d] ResourceGroupStatus_GetResourceGroupStatusById default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_name_responses.go b/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_name_responses.go index 466ad49..c7c6e19 100644 --- a/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_name_responses.go +++ b/swagger_client/resource_group_status/resource_group_status_get_resource_group_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the resource group status get resource group status by name o k response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameOK) Code() int { + return 200 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the resource group status get resource group status by name unauthorized response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the resource group status get resource group status by name forbidden response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameForbidden) Code() int { + return 403 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameNotFound) IsCode(code in return code == 404 } +// Code gets the status code for the resource group status get resource group status by name not found response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameNotFound) Code() int { + return 404 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameInternalServerError) IsC return code == 500 } +// Code gets the status code for the resource group status get resource group status by name internal server error response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the resource group status get resource group status by name gateway timeout response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] resourceGroupStatusGetResourceGroupStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupStatusGetResourceGroupStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group status get resource group status by name default response -func (o *ResourceGroupStatusGetResourceGroupStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group status get resource group status by name default response has a 2xx status code func (o *ResourceGroupStatusGetResourceGroupStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupStatusGetResourceGroupStatusByNameDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the resource group status get resource group status by name default response +func (o *ResourceGroupStatusGetResourceGroupStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupStatusGetResourceGroupStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/name/{name}/status][%d] ResourceGroupStatus_GetResourceGroupStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_config_responses.go b/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_config_responses.go index 452b7e4..830f2bd 100644 --- a/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_config_responses.go +++ b/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_config_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigOK) IsCode(code int) b return code == 200 } +// Code gets the status code for the resource group status query resource group status config o k response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigOK) Code() int { + return 200 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigOK) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigBadRequest) IsCode(cod return code == 400 } +// Code gets the status code for the resource group status query resource group status config bad request response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigBadRequest) Code() int { + return 400 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigUnauthorized) IsCode(c return code == 401 } +// Code gets the status code for the resource group status query resource group status config unauthorized response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigForbidden) IsCode(code return code == 403 } +// Code gets the status code for the resource group status query resource group status config forbidden response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigForbidden) Code() int { + return 403 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigInternalServerError) I return code == 500 } +// Code gets the status code for the resource group status query resource group status config internal server error response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigGatewayTimeout) IsCode return code == 504 } +// Code gets the status code for the resource group status query resource group status config gateway timeout response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] resourceGroupStatusQueryResourceGroupStatusConfigGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupStatusQueryResourceGroupStatusConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group status query resource group status config default response -func (o *ResourceGroupStatusQueryResourceGroupStatusConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group status query resource group status config default response has a 2xx status code func (o *ResourceGroupStatusQueryResourceGroupStatusConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusConfigDefault) IsCode(code i return o._statusCode == code } +// Code gets the status code for the resource group status query resource group status config default response +func (o *ResourceGroupStatusQueryResourceGroupStatusConfigDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupStatusQueryResourceGroupStatusConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/status-config][%d] ResourceGroupStatus_QueryResourceGroupStatusConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_responses.go b/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_responses.go index 6119c3e..cb92ced 100644 --- a/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_responses.go +++ b/swagger_client/resource_group_status/resource_group_status_query_resource_group_status_responses.go @@ -111,6 +111,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the resource group status query resource group status o k response +func (o *ResourceGroupStatusQueryResourceGroupStatusOK) Code() int { + return 200 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusOK) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusBadRequest) IsCode(code int) return code == 400 } +// Code gets the status code for the resource group status query resource group status bad request response +func (o *ResourceGroupStatusQueryResourceGroupStatusBadRequest) Code() int { + return 400 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusBadRequest) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the resource group status query resource group status unauthorized response +func (o *ResourceGroupStatusQueryResourceGroupStatusUnauthorized) Code() int { + return 401 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the resource group status query resource group status forbidden response +func (o *ResourceGroupStatusQueryResourceGroupStatusForbidden) Code() int { + return 403 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the resource group status query resource group status internal server error response +func (o *ResourceGroupStatusQueryResourceGroupStatusInternalServerError) Code() int { + return 500 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the resource group status query resource group status gateway timeout response +func (o *ResourceGroupStatusQueryResourceGroupStatusGatewayTimeout) Code() int { + return 504 +} + func (o *ResourceGroupStatusQueryResourceGroupStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] resourceGroupStatusQueryResourceGroupStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type ResourceGroupStatusQueryResourceGroupStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the resource group status query resource group status default response -func (o *ResourceGroupStatusQueryResourceGroupStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this resource group status query resource group status default response has a 2xx status code func (o *ResourceGroupStatusQueryResourceGroupStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *ResourceGroupStatusQueryResourceGroupStatusDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the resource group status query resource group status default response +func (o *ResourceGroupStatusQueryResourceGroupStatusDefault) Code() int { + return o._statusCode +} + func (o *ResourceGroupStatusQueryResourceGroupStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/projects/status][%d] ResourceGroupStatus_QueryResourceGroupStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_create_volume_instance_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_create_volume_instance_responses.go index 3bbec57..1e30819 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_create_volume_instance_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_create_volume_instance_responses.go @@ -117,6 +117,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the volume instance configuration create volume instance o k response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceOK) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceOK %+v", 200, o.Payload) } @@ -180,6 +185,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceBadRequest) IsCode(code return code == 400 } +// Code gets the status code for the volume instance configuration create volume instance bad request response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceBadRequest) Code() int { + return 400 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceBadRequest) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceBadRequest %+v", 400, o.Payload) } @@ -243,6 +253,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the volume instance configuration create volume instance unauthorized response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceUnauthorized) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceUnauthorized %+v", 401, o.Payload) } @@ -306,6 +321,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the volume instance configuration create volume instance forbidden response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceForbidden) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceForbidden %+v", 403, o.Payload) } @@ -369,6 +389,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceConflict) IsCode(code in return code == 409 } +// Code gets the status code for the volume instance configuration create volume instance conflict response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceConflict) Code() int { + return 409 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceConflict) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceConflict %+v", 409, o.Payload) } @@ -432,6 +457,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceInternalServerError) IsC return code == 500 } +// Code gets the status code for the volume instance configuration create volume instance internal server error response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceInternalServerError) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceInternalServerError %+v", 500, o.Payload) } @@ -495,6 +525,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the volume instance configuration create volume instance gateway timeout response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] volumeInstanceConfigurationCreateVolumeInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -537,11 +572,6 @@ type VolumeInstanceConfigurationCreateVolumeInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration create volume instance default response -func (o *VolumeInstanceConfigurationCreateVolumeInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration create volume instance default response has a 2xx status code func (o *VolumeInstanceConfigurationCreateVolumeInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -567,6 +597,11 @@ func (o *VolumeInstanceConfigurationCreateVolumeInstanceDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the volume instance configuration create volume instance default response +func (o *VolumeInstanceConfigurationCreateVolumeInstanceDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationCreateVolumeInstanceDefault) Error() string { return fmt.Sprintf("[POST /v1/volumes/instances][%d] VolumeInstanceConfiguration_CreateVolumeInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_delete_volume_instance_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_delete_volume_instance_responses.go index 817e624..428d2ff 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_delete_volume_instance_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_delete_volume_instance_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the volume instance configuration delete volume instance o k response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceOK) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the volume instance configuration delete volume instance unauthorized response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceUnauthorized) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the volume instance configuration delete volume instance forbidden response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceForbidden) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceNotFound) IsCode(code in return code == 404 } +// Code gets the status code for the volume instance configuration delete volume instance not found response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceNotFound) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceInternalServerError) IsC return code == 500 } +// Code gets the status code for the volume instance configuration delete volume instance internal server error response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceInternalServerError) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the volume instance configuration delete volume instance gateway timeout response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationDeleteVolumeInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceConfigurationDeleteVolumeInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration delete volume instance default response -func (o *VolumeInstanceConfigurationDeleteVolumeInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration delete volume instance default response has a 2xx status code func (o *VolumeInstanceConfigurationDeleteVolumeInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceConfigurationDeleteVolumeInstanceDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the volume instance configuration delete volume instance default response +func (o *VolumeInstanceConfigurationDeleteVolumeInstanceDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationDeleteVolumeInstanceDefault) Error() string { return fmt.Sprintf("[DELETE /v1/volumes/instances/id/{id}][%d] VolumeInstanceConfiguration_DeleteVolumeInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_by_name_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_by_name_responses.go index ba01a2a..86600b4 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_by_name_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_by_name_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameOK) IsCode(code int) return code == 200 } +// Code gets the status code for the volume instance configuration get volume instance by name o k response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameUnauthorized) IsCode( return code == 401 } +// Code gets the status code for the volume instance configuration get volume instance by name unauthorized response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameForbidden) IsCode(cod return code == 403 } +// Code gets the status code for the volume instance configuration get volume instance by name forbidden response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameNotFound) IsCode(code return code == 404 } +// Code gets the status code for the volume instance configuration get volume instance by name not found response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameInternalServerError) return code == 500 } +// Code gets the status code for the volume instance configuration get volume instance by name internal server error response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameGatewayTimeout) IsCod return code == 504 } +// Code gets the status code for the volume instance configuration get volume instance by name gateway timeout response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] volumeInstanceConfigurationGetVolumeInstanceByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceConfigurationGetVolumeInstanceByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration get volume instance by name default response -func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration get volume instance by name default response has a 2xx status code func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameDefault) IsCode(code return o._statusCode == code } +// Code gets the status code for the volume instance configuration get volume instance by name default response +func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}][%d] VolumeInstanceConfiguration_GetVolumeInstanceByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_responses.go index 791a7b2..036fb7b 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_get_volume_instance_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the volume instance configuration get volume instance o k response +func (o *VolumeInstanceConfigurationGetVolumeInstanceOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceUnauthorized) IsCode(code i return code == 401 } +// Code gets the status code for the volume instance configuration get volume instance unauthorized response +func (o *VolumeInstanceConfigurationGetVolumeInstanceUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the volume instance configuration get volume instance forbidden response +func (o *VolumeInstanceConfigurationGetVolumeInstanceForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceNotFound) IsCode(code int) return code == 404 } +// Code gets the status code for the volume instance configuration get volume instance not found response +func (o *VolumeInstanceConfigurationGetVolumeInstanceNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceInternalServerError) IsCode return code == 500 } +// Code gets the status code for the volume instance configuration get volume instance internal server error response +func (o *VolumeInstanceConfigurationGetVolumeInstanceInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the volume instance configuration get volume instance gateway timeout response +func (o *VolumeInstanceConfigurationGetVolumeInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationGetVolumeInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceConfigurationGetVolumeInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration get volume instance default response -func (o *VolumeInstanceConfigurationGetVolumeInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration get volume instance default response has a 2xx status code func (o *VolumeInstanceConfigurationGetVolumeInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceConfigurationGetVolumeInstanceDefault) IsCode(code int) b return o._statusCode == code } +// Code gets the status code for the volume instance configuration get volume instance default response +func (o *VolumeInstanceConfigurationGetVolumeInstanceDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationGetVolumeInstanceDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}][%d] VolumeInstanceConfiguration_GetVolumeInstance default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_query_volume_instances_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_query_volume_instances_responses.go index f270be8..3f69afe 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_query_volume_instances_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_query_volume_instances_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the volume instance configuration query volume instances o k response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesBadRequest) IsCode(code return code == 400 } +// Code gets the status code for the volume instance configuration query volume instances bad request response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesBadRequest) Code() int { + return 400 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesBadRequest) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the volume instance configuration query volume instances unauthorized response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the volume instance configuration query volume instances forbidden response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesInternalServerError) IsC return code == 500 } +// Code gets the status code for the volume instance configuration query volume instances internal server error response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the volume instance configuration query volume instances gateway timeout response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] volumeInstanceConfigurationQueryVolumeInstancesGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceConfigurationQueryVolumeInstancesDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration query volume instances default response -func (o *VolumeInstanceConfigurationQueryVolumeInstancesDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration query volume instances default response has a 2xx status code func (o *VolumeInstanceConfigurationQueryVolumeInstancesDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceConfigurationQueryVolumeInstancesDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the volume instance configuration query volume instances default response +func (o *VolumeInstanceConfigurationQueryVolumeInstancesDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationQueryVolumeInstancesDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances][%d] VolumeInstanceConfiguration_QueryVolumeInstances default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_configuration/volume_instance_configuration_update_volume_instance_responses.go b/swagger_client/volume_instance_configuration/volume_instance_configuration_update_volume_instance_responses.go index eef27a1..da577a3 100644 --- a/swagger_client/volume_instance_configuration/volume_instance_configuration_update_volume_instance_responses.go +++ b/swagger_client/volume_instance_configuration/volume_instance_configuration_update_volume_instance_responses.go @@ -121,6 +121,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceOK) IsCode(code int) boo return code == 200 } +// Code gets the status code for the volume instance configuration update volume instance o k response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceOK) Code() int { + return 200 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceOK) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceOK %+v", 200, o.Payload) } @@ -184,6 +189,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceUnauthorized) IsCode(cod return code == 401 } +// Code gets the status code for the volume instance configuration update volume instance unauthorized response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceUnauthorized) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceUnauthorized %+v", 401, o.Payload) } @@ -247,6 +257,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceForbidden) IsCode(code i return code == 403 } +// Code gets the status code for the volume instance configuration update volume instance forbidden response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceForbidden) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceForbidden %+v", 403, o.Payload) } @@ -310,6 +325,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceNotFound) IsCode(code in return code == 404 } +// Code gets the status code for the volume instance configuration update volume instance not found response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceNotFound) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceNotFound %+v", 404, o.Payload) } @@ -373,6 +393,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceConflict) IsCode(code in return code == 409 } +// Code gets the status code for the volume instance configuration update volume instance conflict response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceConflict) Code() int { + return 409 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceConflict) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceConflict %+v", 409, o.Payload) } @@ -436,6 +461,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceInternalServerError) IsC return code == 500 } +// Code gets the status code for the volume instance configuration update volume instance internal server error response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceInternalServerError) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceInternalServerError %+v", 500, o.Payload) } @@ -499,6 +529,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceGatewayTimeout) IsCode(c return code == 504 } +// Code gets the status code for the volume instance configuration update volume instance gateway timeout response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceGatewayTimeout) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] volumeInstanceConfigurationUpdateVolumeInstanceGatewayTimeout %+v", 504, o.Payload) } @@ -541,11 +576,6 @@ type VolumeInstanceConfigurationUpdateVolumeInstanceDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance configuration update volume instance default response -func (o *VolumeInstanceConfigurationUpdateVolumeInstanceDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance configuration update volume instance default response has a 2xx status code func (o *VolumeInstanceConfigurationUpdateVolumeInstanceDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -571,6 +601,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceDefault) IsCode(code int return o._statusCode == code } +// Code gets the status code for the volume instance configuration update volume instance default response +func (o *VolumeInstanceConfigurationUpdateVolumeInstanceDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceConfigurationUpdateVolumeInstanceDefault) Error() string { return fmt.Sprintf("[PUT /v1/volumes/instances/id/{id}][%d] VolumeInstanceConfiguration_UpdateVolumeInstance default %+v", o._statusCode, o.Payload) } @@ -856,6 +891,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) ContextValidate(ct func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidateAccessmode(ctx context.Context, formats strfmt.Registry) error { if o.Accessmode != nil { + + if swag.IsZero(o.Accessmode) { // not required + return nil + } + if err := o.Accessmode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "accessmode") @@ -872,6 +912,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidateAcc func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if o.Purge != nil { + + if swag.IsZero(o.Purge) { // not required + return nil + } + if err := o.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "purge") @@ -888,6 +933,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidatePur func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if o.Revision != nil { + + if swag.IsZero(o.Revision) { // not required + return nil + } + if err := o.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "revision") @@ -904,6 +954,11 @@ func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidateRev func (o *VolumeInstanceConfigurationUpdateVolumeInstanceBody) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if o.Type != nil { + + if swag.IsZero(o.Type) { // not required + return nil + } + if err := o.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("body" + "." + "type") diff --git a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_by_name_responses.go b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_by_name_responses.go index 58d6e0a..2a24c16 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_by_name_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_by_name_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameOK) IsCode(code int) b return code == 200 } +// Code gets the status code for the volume instance status get volume instance events by name o k response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameUnauthorized) IsCode(c return code == 401 } +// Code gets the status code for the volume instance status get volume instance events by name unauthorized response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameForbidden) IsCode(code return code == 403 } +// Code gets the status code for the volume instance status get volume instance events by name forbidden response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameNotFound) IsCode(code return code == 404 } +// Code gets the status code for the volume instance status get volume instance events by name not found response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameInternalServerError) I return code == 500 } +// Code gets the status code for the volume instance status get volume instance events by name internal server error response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameGatewayTimeout) IsCode return code == 504 } +// Code gets the status code for the volume instance status get volume instance events by name gateway timeout response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status get volume instance events by name default response -func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status get volume instance events by name default response has a 2xx status code func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault) IsCode(code i return o._statusCode == code } +// Code gets the status code for the volume instance status get volume instance events by name default response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{objname}/events][%d] VolumeInstanceStatus_GetVolumeInstanceEventsByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_responses.go b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_responses.go index 82c8c69..0d7b995 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_events_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the volume instance status get volume instance events o k response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the volume instance status get volume instance events unauthorized response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the volume instance status get volume instance events forbidden response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the volume instance status get volume instance events not found response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the volume instance status get volume instance events internal server error response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the volume instance status get volume instance events gateway timeout response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] volumeInstanceStatusGetVolumeInstanceEventsGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusGetVolumeInstanceEventsDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status get volume instance events default response -func (o *VolumeInstanceStatusGetVolumeInstanceEventsDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status get volume instance events default response has a 2xx status code func (o *VolumeInstanceStatusGetVolumeInstanceEventsDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceEventsDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the volume instance status get volume instance events default response +func (o *VolumeInstanceStatusGetVolumeInstanceEventsDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusGetVolumeInstanceEventsDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{objid}/events][%d] VolumeInstanceStatus_GetVolumeInstanceEvents default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_by_name_responses.go b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_by_name_responses.go index 9fab01a..48a70ae 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_by_name_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_by_name_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameOK) IsCode(code int) b return code == 200 } +// Code gets the status code for the volume instance status get volume instance status by name o k response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameUnauthorized) IsCode(c return code == 401 } +// Code gets the status code for the volume instance status get volume instance status by name unauthorized response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameForbidden) IsCode(code return code == 403 } +// Code gets the status code for the volume instance status get volume instance status by name forbidden response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameNotFound) IsCode(code return code == 404 } +// Code gets the status code for the volume instance status get volume instance status by name not found response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameInternalServerError) I return code == 500 } +// Code gets the status code for the volume instance status get volume instance status by name internal server error response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameGatewayTimeout) IsCode return code == 504 } +// Code gets the status code for the volume instance status get volume instance status by name gateway timeout response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusByNameGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status get volume instance status by name default response -func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status get volume instance status by name default response has a 2xx status code func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault) IsCode(code i return o._statusCode == code } +// Code gets the status code for the volume instance status get volume instance status by name default response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusByNameDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/name/{name}/status][%d] VolumeInstanceStatus_GetVolumeInstanceStatusByName default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_responses.go b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_responses.go index 474762e..fbcc490 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_get_volume_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusOK) IsCode(code int) bool { return code == 200 } +// Code gets the status code for the volume instance status get volume instance status o k response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusUnauthorized) IsCode(code in return code == 401 } +// Code gets the status code for the volume instance status get volume instance status unauthorized response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusForbidden) IsCode(code int) return code == 403 } +// Code gets the status code for the volume instance status get volume instance status forbidden response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusForbidden %+v", 403, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusNotFound) IsCode(code int) b return code == 404 } +// Code gets the status code for the volume instance status get volume instance status not found response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusNotFound) Code() int { + return 404 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusNotFound) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusNotFound %+v", 404, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusInternalServerError) IsCode( return code == 500 } +// Code gets the status code for the volume instance status get volume instance status internal server error response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusGatewayTimeout) IsCode(code return code == 504 } +// Code gets the status code for the volume instance status get volume instance status gateway timeout response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] volumeInstanceStatusGetVolumeInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusGetVolumeInstanceStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status get volume instance status default response -func (o *VolumeInstanceStatusGetVolumeInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status get volume instance status default response has a 2xx status code func (o *VolumeInstanceStatusGetVolumeInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusGetVolumeInstanceStatusDefault) IsCode(code int) bo return o._statusCode == code } +// Code gets the status code for the volume instance status get volume instance status default response +func (o *VolumeInstanceStatusGetVolumeInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusGetVolumeInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/id/{id}/status][%d] VolumeInstanceStatus_GetVolumeInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_config_responses.go b/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_config_responses.go index ddef502..82b8a5b 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_config_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_config_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigOK) IsCode(code int) return code == 200 } +// Code gets the status code for the volume instance status query volume instance status config o k response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigBadRequest) IsCode(c return code == 400 } +// Code gets the status code for the volume instance status query volume instance status config bad request response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigBadRequest) Code() int { + return 400 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigBadRequest) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigUnauthorized) IsCode return code == 401 } +// Code gets the status code for the volume instance status query volume instance status config unauthorized response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigForbidden) IsCode(co return code == 403 } +// Code gets the status code for the volume instance status query volume instance status config forbidden response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigInternalServerError) return code == 500 } +// Code gets the status code for the volume instance status query volume instance status config internal server error response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigGatewayTimeout) IsCo return code == 504 } +// Code gets the status code for the volume instance status query volume instance status config gateway timeout response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] volumeInstanceStatusQueryVolumeInstanceStatusConfigGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status query volume instance status config default response -func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status query volume instance status config default response has a 2xx status code func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault) IsCode(code return o._statusCode == code } +// Code gets the status code for the volume instance status query volume instance status config default response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusConfigDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status-config][%d] VolumeInstanceStatus_QueryVolumeInstanceStatusConfig default %+v", o._statusCode, o.Payload) } diff --git a/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_responses.go b/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_responses.go index 04d6cd9..8ff80f1 100644 --- a/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_responses.go +++ b/swagger_client/volume_instance_status/volume_instance_status_query_volume_instance_status_responses.go @@ -111,6 +111,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusOK) IsCode(code int) bool return code == 200 } +// Code gets the status code for the volume instance status query volume instance status o k response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusOK) Code() int { + return 200 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusOK) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusOK %+v", 200, o.Payload) } @@ -174,6 +179,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusBadRequest) IsCode(code in return code == 400 } +// Code gets the status code for the volume instance status query volume instance status bad request response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusBadRequest) Code() int { + return 400 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusBadRequest) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusBadRequest %+v", 400, o.Payload) } @@ -237,6 +247,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusUnauthorized) IsCode(code return code == 401 } +// Code gets the status code for the volume instance status query volume instance status unauthorized response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusUnauthorized) Code() int { + return 401 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusUnauthorized) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusUnauthorized %+v", 401, o.Payload) } @@ -300,6 +315,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusForbidden) IsCode(code int return code == 403 } +// Code gets the status code for the volume instance status query volume instance status forbidden response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusForbidden) Code() int { + return 403 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusForbidden) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusForbidden %+v", 403, o.Payload) } @@ -363,6 +383,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusInternalServerError) IsCod return code == 500 } +// Code gets the status code for the volume instance status query volume instance status internal server error response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusInternalServerError) Code() int { + return 500 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusInternalServerError) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusInternalServerError %+v", 500, o.Payload) } @@ -426,6 +451,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusGatewayTimeout) IsCode(cod return code == 504 } +// Code gets the status code for the volume instance status query volume instance status gateway timeout response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusGatewayTimeout) Code() int { + return 504 +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusGatewayTimeout) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] volumeInstanceStatusQueryVolumeInstanceStatusGatewayTimeout %+v", 504, o.Payload) } @@ -468,11 +498,6 @@ type VolumeInstanceStatusQueryVolumeInstanceStatusDefault struct { Payload *swagger_models.GooglerpcStatus } -// Code gets the status code for the volume instance status query volume instance status default response -func (o *VolumeInstanceStatusQueryVolumeInstanceStatusDefault) Code() int { - return o._statusCode -} - // IsSuccess returns true when this volume instance status query volume instance status default response has a 2xx status code func (o *VolumeInstanceStatusQueryVolumeInstanceStatusDefault) IsSuccess() bool { return o._statusCode/100 == 2 @@ -498,6 +523,11 @@ func (o *VolumeInstanceStatusQueryVolumeInstanceStatusDefault) IsCode(code int) return o._statusCode == code } +// Code gets the status code for the volume instance status query volume instance status default response +func (o *VolumeInstanceStatusQueryVolumeInstanceStatusDefault) Code() int { + return o._statusCode +} + func (o *VolumeInstanceStatusQueryVolumeInstanceStatusDefault) Error() string { return fmt.Sprintf("[GET /v1/volumes/instances/status][%d] VolumeInstanceStatus_QueryVolumeInstanceStatus default %+v", o._statusCode, o.Payload) } diff --git a/swagger_models/a_a_a_failure_response.go b/swagger_models/a_a_a_failure_response.go index f9f667d..eb36105 100644 --- a/swagger_models/a_a_a_failure_response.go +++ b/swagger_models/a_a_a_failure_response.go @@ -283,6 +283,11 @@ func (m *AAAFailureResponse) ContextValidate(ctx context.Context, formats strfmt func (m *AAAFailureResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + + if swag.IsZero(m.Credential) { // not required + return nil + } + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") @@ -299,6 +304,11 @@ func (m *AAAFailureResponse) contextValidateCredential(ctx context.Context, form func (m *AAAFailureResponse) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { if m.Details != nil { + + if swag.IsZero(m.Details) { // not required + return nil + } + if err := m.Details.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("details") @@ -315,6 +325,11 @@ func (m *AAAFailureResponse) contextValidateDetails(ctx context.Context, formats func (m *AAAFailureResponse) contextValidateGenerateToken(ctx context.Context, formats strfmt.Registry) error { if m.GenerateToken != nil { + + if swag.IsZero(m.GenerateToken) { // not required + return nil + } + if err := m.GenerateToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("generateToken") @@ -331,6 +346,11 @@ func (m *AAAFailureResponse) contextValidateGenerateToken(ctx context.Context, f func (m *AAAFailureResponse) contextValidateLogin(ctx context.Context, formats strfmt.Registry) error { if m.Login != nil { + + if swag.IsZero(m.Login) { // not required + return nil + } + if err := m.Login.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login") @@ -347,6 +367,11 @@ func (m *AAAFailureResponse) contextValidateLogin(ctx context.Context, formats s func (m *AAAFailureResponse) contextValidateLogout(ctx context.Context, formats strfmt.Registry) error { if m.Logout != nil { + + if swag.IsZero(m.Logout) { // not required + return nil + } + if err := m.Logout.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logout") @@ -363,6 +388,11 @@ func (m *AAAFailureResponse) contextValidateLogout(ctx context.Context, formats func (m *AAAFailureResponse) contextValidateQuerySessionDetails(ctx context.Context, formats strfmt.Registry) error { if m.QuerySessionDetails != nil { + + if swag.IsZero(m.QuerySessionDetails) { // not required + return nil + } + if err := m.QuerySessionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("querySessionDetails") @@ -379,6 +409,11 @@ func (m *AAAFailureResponse) contextValidateQuerySessionDetails(ctx context.Cont func (m *AAAFailureResponse) contextValidateRefresh(ctx context.Context, formats strfmt.Registry) error { if m.Refresh != nil { + + if swag.IsZero(m.Refresh) { // not required + return nil + } + if err := m.Refresh.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("refresh") @@ -395,6 +430,11 @@ func (m *AAAFailureResponse) contextValidateRefresh(ctx context.Context, formats func (m *AAAFailureResponse) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/a_a_a_failure_response_credential_change.go b/swagger_models/a_a_a_failure_response_credential_change.go index 4c8ee40..ee4a232 100644 --- a/swagger_models/a_a_a_failure_response_credential_change.go +++ b/swagger_models/a_a_a_failure_response_credential_change.go @@ -73,6 +73,11 @@ func (m *AAAFailureResponseCredentialChange) ContextValidate(ctx context.Context func (m *AAAFailureResponseCredentialChange) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") diff --git a/swagger_models/a_a_a_failure_response_generate_token.go b/swagger_models/a_a_a_failure_response_generate_token.go index f453e1e..a027abd 100644 --- a/swagger_models/a_a_a_failure_response_generate_token.go +++ b/swagger_models/a_a_a_failure_response_generate_token.go @@ -76,6 +76,11 @@ func (m *AAAFailureResponseGenerateToken) ContextValidate(ctx context.Context, f func (m *AAAFailureResponseGenerateToken) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") diff --git a/swagger_models/a_a_a_failure_response_login.go b/swagger_models/a_a_a_failure_response_login.go index b8dc594..b6f996e 100644 --- a/swagger_models/a_a_a_failure_response_login.go +++ b/swagger_models/a_a_a_failure_response_login.go @@ -141,6 +141,11 @@ func (m *AAAFailureResponseLogin) ContextValidate(ctx context.Context, formats s func (m *AAAFailureResponseLogin) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -157,6 +162,11 @@ func (m *AAAFailureResponseLogin) contextValidateCause(ctx context.Context, form func (m *AAAFailureResponseLogin) contextValidateTempSuccessResponse(ctx context.Context, formats strfmt.Registry) error { if m.TempSuccessResponse != nil { + + if swag.IsZero(m.TempSuccessResponse) { // not required + return nil + } + if err := m.TempSuccessResponse.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tempSuccessResponse") @@ -173,6 +183,11 @@ func (m *AAAFailureResponseLogin) contextValidateTempSuccessResponse(ctx context func (m *AAAFailureResponseLogin) contextValidateTempToken(ctx context.Context, formats strfmt.Registry) error { if m.TempToken != nil { + + if swag.IsZero(m.TempToken) { // not required + return nil + } + if err := m.TempToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tempToken") diff --git a/swagger_models/a_a_a_failure_response_logout.go b/swagger_models/a_a_a_failure_response_logout.go index f9296f6..8527750 100644 --- a/swagger_models/a_a_a_failure_response_logout.go +++ b/swagger_models/a_a_a_failure_response_logout.go @@ -106,6 +106,11 @@ func (m *AAAFailureResponseLogout) ContextValidate(ctx context.Context, formats func (m *AAAFailureResponseLogout) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -122,6 +127,11 @@ func (m *AAAFailureResponseLogout) contextValidateCause(ctx context.Context, for func (m *AAAFailureResponseLogout) contextValidateOriginal(ctx context.Context, formats strfmt.Registry) error { if m.Original != nil { + + if swag.IsZero(m.Original) { // not required + return nil + } + if err := m.Original.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("original") diff --git a/swagger_models/a_a_a_failure_response_query_all_session_details.go b/swagger_models/a_a_a_failure_response_query_all_session_details.go index 466ab06..e06da5b 100644 --- a/swagger_models/a_a_a_failure_response_query_all_session_details.go +++ b/swagger_models/a_a_a_failure_response_query_all_session_details.go @@ -76,6 +76,11 @@ func (m *AAAFailureResponseQueryAllSessionDetails) ContextValidate(ctx context.C func (m *AAAFailureResponseQueryAllSessionDetails) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") diff --git a/swagger_models/a_a_a_failure_response_session_details.go b/swagger_models/a_a_a_failure_response_session_details.go index 6f794cc..4db673f 100644 --- a/swagger_models/a_a_a_failure_response_session_details.go +++ b/swagger_models/a_a_a_failure_response_session_details.go @@ -103,6 +103,11 @@ func (m *AAAFailureResponseSessionDetails) ContextValidate(ctx context.Context, func (m *AAAFailureResponseSessionDetails) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -119,6 +124,11 @@ func (m *AAAFailureResponseSessionDetails) contextValidateCause(ctx context.Cont func (m *AAAFailureResponseSessionDetails) contextValidateOriginal(ctx context.Context, formats strfmt.Registry) error { if m.Original != nil { + + if swag.IsZero(m.Original) { // not required + return nil + } + if err := m.Original.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("original") diff --git a/swagger_models/a_a_a_failure_token_refresh.go b/swagger_models/a_a_a_failure_token_refresh.go index 956bde2..e4d6d3d 100644 --- a/swagger_models/a_a_a_failure_token_refresh.go +++ b/swagger_models/a_a_a_failure_token_refresh.go @@ -106,6 +106,11 @@ func (m *AAAFailureTokenRefresh) ContextValidate(ctx context.Context, formats st func (m *AAAFailureTokenRefresh) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -122,6 +127,11 @@ func (m *AAAFailureTokenRefresh) contextValidateCause(ctx context.Context, forma func (m *AAAFailureTokenRefresh) contextValidateOriginal(ctx context.Context, formats strfmt.Registry) error { if m.Original != nil { + + if swag.IsZero(m.Original) { // not required + return nil + } + if err := m.Original.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("original") diff --git a/swagger_models/a_a_a_frontend_generate_token_response.go b/swagger_models/a_a_a_frontend_generate_token_response.go index 609a1b6..dd31d86 100644 --- a/swagger_models/a_a_a_frontend_generate_token_response.go +++ b/swagger_models/a_a_a_frontend_generate_token_response.go @@ -109,6 +109,11 @@ func (m *AAAFrontendGenerateTokenResponse) ContextValidate(ctx context.Context, func (m *AAAFrontendGenerateTokenResponse) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") diff --git a/swagger_models/a_a_a_frontend_login_mode_response.go b/swagger_models/a_a_a_frontend_login_mode_response.go index 9788b43..4757a57 100644 --- a/swagger_models/a_a_a_frontend_login_mode_response.go +++ b/swagger_models/a_a_a_frontend_login_mode_response.go @@ -76,6 +76,11 @@ func (m *AAAFrontendLoginModeResponse) ContextValidate(ctx context.Context, form func (m *AAAFrontendLoginModeResponse) contextValidateMode(ctx context.Context, formats strfmt.Registry) error { if m.Mode != nil { + + if swag.IsZero(m.Mode) { // not required + return nil + } + if err := m.Mode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mode") diff --git a/swagger_models/a_a_a_frontend_login_response.go b/swagger_models/a_a_a_frontend_login_response.go index 3af4a2e..0a3bf2b 100644 --- a/swagger_models/a_a_a_frontend_login_response.go +++ b/swagger_models/a_a_a_frontend_login_response.go @@ -414,6 +414,11 @@ func (m *AAAFrontendLoginResponse) ContextValidate(ctx context.Context, formats func (m *AAAFrontendLoginResponse) contextValidateAPIToken(ctx context.Context, formats strfmt.Registry) error { if m.APIToken != nil { + + if swag.IsZero(m.APIToken) { // not required + return nil + } + if err := m.APIToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apiToken") @@ -430,6 +435,11 @@ func (m *AAAFrontendLoginResponse) contextValidateAPIToken(ctx context.Context, func (m *AAAFrontendLoginResponse) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -446,6 +456,11 @@ func (m *AAAFrontendLoginResponse) contextValidateCause(ctx context.Context, for func (m *AAAFrontendLoginResponse) contextValidateDetailedUser(ctx context.Context, formats strfmt.Registry) error { if m.DetailedUser != nil { + + if swag.IsZero(m.DetailedUser) { // not required + return nil + } + if err := m.DetailedUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("detailedUser") @@ -462,6 +477,11 @@ func (m *AAAFrontendLoginResponse) contextValidateDetailedUser(ctx context.Conte func (m *AAAFrontendLoginResponse) contextValidateEnterprise(ctx context.Context, formats strfmt.Registry) error { if m.Enterprise != nil { + + if swag.IsZero(m.Enterprise) { // not required + return nil + } + if err := m.Enterprise.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise") @@ -478,6 +498,11 @@ func (m *AAAFrontendLoginResponse) contextValidateEnterprise(ctx context.Context func (m *AAAFrontendLoginResponse) contextValidateLoginToken(ctx context.Context, formats strfmt.Registry) error { if m.LoginToken != nil { + + if swag.IsZero(m.LoginToken) { // not required + return nil + } + if err := m.LoginToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loginToken") @@ -496,6 +521,11 @@ func (m *AAAFrontendLoginResponse) contextValidatePolicies(ctx context.Context, for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) @@ -514,6 +544,11 @@ func (m *AAAFrontendLoginResponse) contextValidatePolicies(ctx context.Context, func (m *AAAFrontendLoginResponse) contextValidateRealm(ctx context.Context, formats strfmt.Registry) error { if m.Realm != nil { + + if swag.IsZero(m.Realm) { // not required + return nil + } + if err := m.Realm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realm") @@ -530,6 +565,11 @@ func (m *AAAFrontendLoginResponse) contextValidateRealm(ctx context.Context, for func (m *AAAFrontendLoginResponse) contextValidateRole(ctx context.Context, formats strfmt.Registry) error { if m.Role != nil { + + if swag.IsZero(m.Role) { // not required + return nil + } + if err := m.Role.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") @@ -546,6 +586,11 @@ func (m *AAAFrontendLoginResponse) contextValidateRole(ctx context.Context, form func (m *AAAFrontendLoginResponse) contextValidateSimpleUser(ctx context.Context, formats strfmt.Registry) error { if m.SimpleUser != nil { + + if swag.IsZero(m.SimpleUser) { // not required + return nil + } + if err := m.SimpleUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("simpleUser") @@ -562,6 +607,11 @@ func (m *AAAFrontendLoginResponse) contextValidateSimpleUser(ctx context.Context func (m *AAAFrontendLoginResponse) contextValidateTempToken(ctx context.Context, formats strfmt.Registry) error { if m.TempToken != nil { + + if swag.IsZero(m.TempToken) { // not required + return nil + } + if err := m.TempToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tempToken") @@ -578,6 +628,11 @@ func (m *AAAFrontendLoginResponse) contextValidateTempToken(ctx context.Context, func (m *AAAFrontendLoginResponse) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") diff --git a/swagger_models/a_a_a_frontend_logout_response.go b/swagger_models/a_a_a_frontend_logout_response.go index f7b36b1..2af0c6b 100644 --- a/swagger_models/a_a_a_frontend_logout_response.go +++ b/swagger_models/a_a_a_frontend_logout_response.go @@ -103,6 +103,11 @@ func (m *AAAFrontendLogoutResponse) ContextValidate(ctx context.Context, formats func (m *AAAFrontendLogoutResponse) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -119,6 +124,11 @@ func (m *AAAFrontendLogoutResponse) contextValidateCause(ctx context.Context, fo func (m *AAAFrontendLogoutResponse) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") diff --git a/swagger_models/a_a_a_frontend_refresh_response.go b/swagger_models/a_a_a_frontend_refresh_response.go index fb2dc1b..8371fee 100644 --- a/swagger_models/a_a_a_frontend_refresh_response.go +++ b/swagger_models/a_a_a_frontend_refresh_response.go @@ -106,6 +106,11 @@ func (m *AAAFrontendRefreshResponse) ContextValidate(ctx context.Context, format func (m *AAAFrontendRefreshResponse) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -122,6 +127,11 @@ func (m *AAAFrontendRefreshResponse) contextValidateCause(ctx context.Context, f func (m *AAAFrontendRefreshResponse) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") diff --git a/swagger_models/a_a_a_frontend_session_details_response.go b/swagger_models/a_a_a_frontend_session_details_response.go index 3879baa..a4dc579 100644 --- a/swagger_models/a_a_a_frontend_session_details_response.go +++ b/swagger_models/a_a_a_frontend_session_details_response.go @@ -141,6 +141,11 @@ func (m *AAAFrontendSessionDetailsResponse) ContextValidate(ctx context.Context, func (m *AAAFrontendSessionDetailsResponse) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -159,6 +164,11 @@ func (m *AAAFrontendSessionDetailsResponse) contextValidatePolicies(ctx context. for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) @@ -177,6 +187,11 @@ func (m *AAAFrontendSessionDetailsResponse) contextValidatePolicies(ctx context. func (m *AAAFrontendSessionDetailsResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + + if swag.IsZero(m.User) { // not required + return nil + } + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/swagger_models/a_a_a_login_mode_response.go b/swagger_models/a_a_a_login_mode_response.go index 27c1876..8a55436 100644 --- a/swagger_models/a_a_a_login_mode_response.go +++ b/swagger_models/a_a_a_login_mode_response.go @@ -76,6 +76,11 @@ func (m *AAALoginModeResponse) ContextValidate(ctx context.Context, formats strf func (m *AAALoginModeResponse) contextValidateMode(ctx context.Context, formats strfmt.Registry) error { if m.Mode != nil { + + if swag.IsZero(m.Mode) { // not required + return nil + } + if err := m.Mode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mode") diff --git a/swagger_models/a_a_a_notify_response.go b/swagger_models/a_a_a_notify_response.go index d9de9ef..718f002 100644 --- a/swagger_models/a_a_a_notify_response.go +++ b/swagger_models/a_a_a_notify_response.go @@ -133,6 +133,11 @@ func (m *AAANotifyResponse) ContextValidate(ctx context.Context, formats strfmt. func (m *AAANotifyResponse) contextValidateLogin(ctx context.Context, formats strfmt.Registry) error { if m.Login != nil { + + if swag.IsZero(m.Login) { // not required + return nil + } + if err := m.Login.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login") @@ -149,6 +154,11 @@ func (m *AAANotifyResponse) contextValidateLogin(ctx context.Context, formats st func (m *AAANotifyResponse) contextValidateLogout(ctx context.Context, formats strfmt.Registry) error { if m.Logout != nil { + + if swag.IsZero(m.Logout) { // not required + return nil + } + if err := m.Logout.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logout") @@ -165,6 +175,11 @@ func (m *AAANotifyResponse) contextValidateLogout(ctx context.Context, formats s func (m *AAANotifyResponse) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/a_a_a_request_admin_user_signup.go b/swagger_models/a_a_a_request_admin_user_signup.go index 4dac439..21bb987 100644 --- a/swagger_models/a_a_a_request_admin_user_signup.go +++ b/swagger_models/a_a_a_request_admin_user_signup.go @@ -91,6 +91,11 @@ func (m *AAARequestAdminUserSignup) ContextValidate(ctx context.Context, formats func (m *AAARequestAdminUserSignup) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/a_a_a_request_enterprise_signup.go b/swagger_models/a_a_a_request_enterprise_signup.go index 9f2caaf..3b2c02d 100644 --- a/swagger_models/a_a_a_request_enterprise_signup.go +++ b/swagger_models/a_a_a_request_enterprise_signup.go @@ -139,6 +139,11 @@ func (m *AAARequestEnterpriseSignup) ContextValidate(ctx context.Context, format func (m *AAARequestEnterpriseSignup) contextValidateAdminUser(ctx context.Context, formats strfmt.Registry) error { if m.AdminUser != nil { + + if swag.IsZero(m.AdminUser) { // not required + return nil + } + if err := m.AdminUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminUser") @@ -155,6 +160,11 @@ func (m *AAARequestEnterpriseSignup) contextValidateAdminUser(ctx context.Contex func (m *AAARequestEnterpriseSignup) contextValidateEnterprise(ctx context.Context, formats strfmt.Registry) error { if m.Enterprise != nil { + + if swag.IsZero(m.Enterprise) { // not required + return nil + } + if err := m.Enterprise.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise") @@ -171,6 +181,11 @@ func (m *AAARequestEnterpriseSignup) contextValidateEnterprise(ctx context.Conte func (m *AAARequestEnterpriseSignup) contextValidateProfileType(ctx context.Context, formats strfmt.Registry) error { if m.ProfileType != nil { + + if swag.IsZero(m.ProfileType) { // not required + return nil + } + if err := m.ProfileType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("profileType") diff --git a/swagger_models/a_a_a_response.go b/swagger_models/a_a_a_response.go index ed5dd00..1f44091 100644 --- a/swagger_models/a_a_a_response.go +++ b/swagger_models/a_a_a_response.go @@ -253,6 +253,11 @@ func (m *AAAResponse) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *AAAResponse) contextValidateFailure(ctx context.Context, formats strfmt.Registry) error { if m.Failure != nil { + + if swag.IsZero(m.Failure) { // not required + return nil + } + if err := m.Failure.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("failure") @@ -269,6 +274,11 @@ func (m *AAAResponse) contextValidateFailure(ctx context.Context, formats strfmt func (m *AAAResponse) contextValidateMode(ctx context.Context, formats strfmt.Registry) error { if m.Mode != nil { + + if swag.IsZero(m.Mode) { // not required + return nil + } + if err := m.Mode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mode") @@ -285,6 +295,11 @@ func (m *AAAResponse) contextValidateMode(ctx context.Context, formats strfmt.Re func (m *AAAResponse) contextValidateNotify(ctx context.Context, formats strfmt.Registry) error { if m.Notify != nil { + + if swag.IsZero(m.Notify) { // not required + return nil + } + if err := m.Notify.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("notify") @@ -301,6 +316,11 @@ func (m *AAAResponse) contextValidateNotify(ctx context.Context, formats strfmt. func (m *AAAResponse) contextValidateRedirect(ctx context.Context, formats strfmt.Registry) error { if m.Redirect != nil { + + if swag.IsZero(m.Redirect) { // not required + return nil + } + if err := m.Redirect.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("redirect") @@ -317,6 +337,11 @@ func (m *AAAResponse) contextValidateRedirect(ctx context.Context, formats strfm func (m *AAAResponse) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") @@ -333,6 +358,11 @@ func (m *AAAResponse) contextValidateResult(ctx context.Context, formats strfmt. func (m *AAAResponse) contextValidateSuccess(ctx context.Context, formats strfmt.Registry) error { if m.Success != nil { + + if swag.IsZero(m.Success) { // not required + return nil + } + if err := m.Success.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("success") @@ -349,6 +379,11 @@ func (m *AAAResponse) contextValidateSuccess(ctx context.Context, formats strfmt func (m *AAAResponse) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/a_a_a_success_response.go b/swagger_models/a_a_a_success_response.go index 27bc38c..0f785ac 100644 --- a/swagger_models/a_a_a_success_response.go +++ b/swagger_models/a_a_a_success_response.go @@ -283,6 +283,11 @@ func (m *AAASuccessResponse) ContextValidate(ctx context.Context, formats strfmt func (m *AAASuccessResponse) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + + if swag.IsZero(m.Credential) { // not required + return nil + } + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") @@ -299,6 +304,11 @@ func (m *AAASuccessResponse) contextValidateCredential(ctx context.Context, form func (m *AAASuccessResponse) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { if m.Details != nil { + + if swag.IsZero(m.Details) { // not required + return nil + } + if err := m.Details.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("details") @@ -315,6 +325,11 @@ func (m *AAASuccessResponse) contextValidateDetails(ctx context.Context, formats func (m *AAASuccessResponse) contextValidateGenerateToken(ctx context.Context, formats strfmt.Registry) error { if m.GenerateToken != nil { + + if swag.IsZero(m.GenerateToken) { // not required + return nil + } + if err := m.GenerateToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("generateToken") @@ -331,6 +346,11 @@ func (m *AAASuccessResponse) contextValidateGenerateToken(ctx context.Context, f func (m *AAASuccessResponse) contextValidateLogin(ctx context.Context, formats strfmt.Registry) error { if m.Login != nil { + + if swag.IsZero(m.Login) { // not required + return nil + } + if err := m.Login.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login") @@ -347,6 +367,11 @@ func (m *AAASuccessResponse) contextValidateLogin(ctx context.Context, formats s func (m *AAASuccessResponse) contextValidateLogout(ctx context.Context, formats strfmt.Registry) error { if m.Logout != nil { + + if swag.IsZero(m.Logout) { // not required + return nil + } + if err := m.Logout.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logout") @@ -363,6 +388,11 @@ func (m *AAASuccessResponse) contextValidateLogout(ctx context.Context, formats func (m *AAASuccessResponse) contextValidateQuerySessionDetails(ctx context.Context, formats strfmt.Registry) error { if m.QuerySessionDetails != nil { + + if swag.IsZero(m.QuerySessionDetails) { // not required + return nil + } + if err := m.QuerySessionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("querySessionDetails") @@ -379,6 +409,11 @@ func (m *AAASuccessResponse) contextValidateQuerySessionDetails(ctx context.Cont func (m *AAASuccessResponse) contextValidateRefresh(ctx context.Context, formats strfmt.Registry) error { if m.Refresh != nil { + + if swag.IsZero(m.Refresh) { // not required + return nil + } + if err := m.Refresh.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("refresh") @@ -395,6 +430,11 @@ func (m *AAASuccessResponse) contextValidateRefresh(ctx context.Context, formats func (m *AAASuccessResponse) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/a_a_a_success_response_generate_token.go b/swagger_models/a_a_a_success_response_generate_token.go index f0d3a73..90ecc91 100644 --- a/swagger_models/a_a_a_success_response_generate_token.go +++ b/swagger_models/a_a_a_success_response_generate_token.go @@ -103,6 +103,11 @@ func (m *AAASuccessResponseGenerateToken) ContextValidate(ctx context.Context, f func (m *AAASuccessResponseGenerateToken) contextValidateLogin(ctx context.Context, formats strfmt.Registry) error { if m.Login != nil { + + if swag.IsZero(m.Login) { // not required + return nil + } + if err := m.Login.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("login") @@ -119,6 +124,11 @@ func (m *AAASuccessResponseGenerateToken) contextValidateLogin(ctx context.Conte func (m *AAASuccessResponseGenerateToken) contextValidateSessionDetails(ctx context.Context, formats strfmt.Registry) error { if m.SessionDetails != nil { + + if swag.IsZero(m.SessionDetails) { // not required + return nil + } + if err := m.SessionDetails.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sessionDetails") diff --git a/swagger_models/a_a_a_success_response_login.go b/swagger_models/a_a_a_success_response_login.go index 9223808..855a412 100644 --- a/swagger_models/a_a_a_success_response_login.go +++ b/swagger_models/a_a_a_success_response_login.go @@ -438,6 +438,11 @@ func (m *AAASuccessResponseLogin) ContextValidate(ctx context.Context, formats s func (m *AAASuccessResponseLogin) contextValidateAPIToken(ctx context.Context, formats strfmt.Registry) error { if m.APIToken != nil { + + if swag.IsZero(m.APIToken) { // not required + return nil + } + if err := m.APIToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apiToken") @@ -454,6 +459,11 @@ func (m *AAASuccessResponseLogin) contextValidateAPIToken(ctx context.Context, f func (m *AAASuccessResponseLogin) contextValidateDetailedUser(ctx context.Context, formats strfmt.Registry) error { if m.DetailedUser != nil { + + if swag.IsZero(m.DetailedUser) { // not required + return nil + } + if err := m.DetailedUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("detailedUser") @@ -470,6 +480,11 @@ func (m *AAASuccessResponseLogin) contextValidateDetailedUser(ctx context.Contex func (m *AAASuccessResponseLogin) contextValidateEnterprise(ctx context.Context, formats strfmt.Registry) error { if m.Enterprise != nil { + + if swag.IsZero(m.Enterprise) { // not required + return nil + } + if err := m.Enterprise.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise") @@ -486,6 +501,11 @@ func (m *AAASuccessResponseLogin) contextValidateEnterprise(ctx context.Context, func (m *AAASuccessResponseLogin) contextValidateEnterpriseID(ctx context.Context, formats strfmt.Registry) error { if m.EnterpriseID != nil { + + if swag.IsZero(m.EnterpriseID) { // not required + return nil + } + if err := m.EnterpriseID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterpriseId") @@ -502,6 +522,11 @@ func (m *AAASuccessResponseLogin) contextValidateEnterpriseID(ctx context.Contex func (m *AAASuccessResponseLogin) contextValidateLoginToken(ctx context.Context, formats strfmt.Registry) error { if m.LoginToken != nil { + + if swag.IsZero(m.LoginToken) { // not required + return nil + } + if err := m.LoginToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("loginToken") @@ -520,6 +545,11 @@ func (m *AAASuccessResponseLogin) contextValidatePolicies(ctx context.Context, f for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) @@ -538,6 +568,11 @@ func (m *AAASuccessResponseLogin) contextValidatePolicies(ctx context.Context, f func (m *AAASuccessResponseLogin) contextValidateRealm(ctx context.Context, formats strfmt.Registry) error { if m.Realm != nil { + + if swag.IsZero(m.Realm) { // not required + return nil + } + if err := m.Realm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realm") @@ -554,6 +589,11 @@ func (m *AAASuccessResponseLogin) contextValidateRealm(ctx context.Context, form func (m *AAASuccessResponseLogin) contextValidateRealmID(ctx context.Context, formats strfmt.Registry) error { if m.RealmID != nil { + + if swag.IsZero(m.RealmID) { // not required + return nil + } + if err := m.RealmID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realmId") @@ -570,6 +610,11 @@ func (m *AAASuccessResponseLogin) contextValidateRealmID(ctx context.Context, fo func (m *AAASuccessResponseLogin) contextValidateRole(ctx context.Context, formats strfmt.Registry) error { if m.Role != nil { + + if swag.IsZero(m.Role) { // not required + return nil + } + if err := m.Role.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") @@ -586,6 +631,11 @@ func (m *AAASuccessResponseLogin) contextValidateRole(ctx context.Context, forma func (m *AAASuccessResponseLogin) contextValidateSimpleUser(ctx context.Context, formats strfmt.Registry) error { if m.SimpleUser != nil { + + if swag.IsZero(m.SimpleUser) { // not required + return nil + } + if err := m.SimpleUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("simpleUser") @@ -602,6 +652,11 @@ func (m *AAASuccessResponseLogin) contextValidateSimpleUser(ctx context.Context, func (m *AAASuccessResponseLogin) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") @@ -618,6 +673,11 @@ func (m *AAASuccessResponseLogin) contextValidateToken(ctx context.Context, form func (m *AAASuccessResponseLogin) contextValidateUserID(ctx context.Context, formats strfmt.Registry) error { if m.UserID != nil { + + if swag.IsZero(m.UserID) { // not required + return nil + } + if err := m.UserID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userId") diff --git a/swagger_models/a_a_a_success_response_logout.go b/swagger_models/a_a_a_success_response_logout.go index e7017e9..9973101 100644 --- a/swagger_models/a_a_a_success_response_logout.go +++ b/swagger_models/a_a_a_success_response_logout.go @@ -73,6 +73,11 @@ func (m *AAASuccessResponseLogout) ContextValidate(ctx context.Context, formats func (m *AAASuccessResponseLogout) contextValidateOriginal(ctx context.Context, formats strfmt.Registry) error { if m.Original != nil { + + if swag.IsZero(m.Original) { // not required + return nil + } + if err := m.Original.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("original") diff --git a/swagger_models/a_a_a_success_response_query_all_session_details.go b/swagger_models/a_a_a_success_response_query_all_session_details.go index 50e77b4..e5993ee 100644 --- a/swagger_models/a_a_a_success_response_query_all_session_details.go +++ b/swagger_models/a_a_a_success_response_query_all_session_details.go @@ -111,6 +111,11 @@ func (m *AAASuccessResponseQueryAllSessionDetails) ContextValidate(ctx context.C func (m *AAASuccessResponseQueryAllSessionDetails) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -129,6 +134,11 @@ func (m *AAASuccessResponseQueryAllSessionDetails) contextValidateSessionDetails for i := 0; i < len(m.SessionDetails); i++ { if m.SessionDetails[i] != nil { + + if swag.IsZero(m.SessionDetails[i]) { // not required + return nil + } + if err := m.SessionDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sessionDetails" + "." + strconv.Itoa(i)) diff --git a/swagger_models/a_a_a_success_session_details_response.go b/swagger_models/a_a_a_success_session_details_response.go index 08fa69b..7f43013 100644 --- a/swagger_models/a_a_a_success_session_details_response.go +++ b/swagger_models/a_a_a_success_session_details_response.go @@ -141,6 +141,11 @@ func (m *AAASuccessSessionDetailsResponse) ContextValidate(ctx context.Context, func (m *AAASuccessSessionDetailsResponse) contextValidateOriginal(ctx context.Context, formats strfmt.Registry) error { if m.Original != nil { + + if swag.IsZero(m.Original) { // not required + return nil + } + if err := m.Original.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("original") @@ -159,6 +164,11 @@ func (m *AAASuccessSessionDetailsResponse) contextValidatePolicies(ctx context.C for i := 0; i < len(m.Policies); i++ { if m.Policies[i] != nil { + + if swag.IsZero(m.Policies[i]) { // not required + return nil + } + if err := m.Policies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies" + "." + strconv.Itoa(i)) @@ -177,6 +187,11 @@ func (m *AAASuccessSessionDetailsResponse) contextValidatePolicies(ctx context.C func (m *AAASuccessSessionDetailsResponse) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + + if swag.IsZero(m.User) { // not required + return nil + } + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/swagger_models/a_a_a_success_token_refresh.go b/swagger_models/a_a_a_success_token_refresh.go index e51e6b5..a76d1fd 100644 --- a/swagger_models/a_a_a_success_token_refresh.go +++ b/swagger_models/a_a_a_success_token_refresh.go @@ -73,6 +73,11 @@ func (m *AAASuccessTokenRefresh) ContextValidate(ctx context.Context, formats st func (m *AAASuccessTokenRefresh) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") diff --git a/swagger_models/acl.go b/swagger_models/acl.go index eee87a0..8bfeae2 100644 --- a/swagger_models/acl.go +++ b/swagger_models/acl.go @@ -123,6 +123,11 @@ func (m *ACL) contextValidateActions(ctx context.Context, formats strfmt.Registr for i := 0; i < len(m.Actions); i++ { if m.Actions[i] != nil { + + if swag.IsZero(m.Actions[i]) { // not required + return nil + } + if err := m.Actions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("actions" + "." + strconv.Itoa(i)) @@ -143,6 +148,11 @@ func (m *ACL) contextValidateMatches(ctx context.Context, formats strfmt.Registr for i := 0; i < len(m.Matches); i++ { if m.Matches[i] != nil { + + if swag.IsZero(m.Matches[i]) { // not required + return nil + } + if err := m.Matches[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("matches" + "." + strconv.Itoa(i)) diff --git a/swagger_models/acl_action.go b/swagger_models/acl_action.go index 1acc94e..d986931 100644 --- a/swagger_models/acl_action.go +++ b/swagger_models/acl_action.go @@ -138,6 +138,11 @@ func (m *ACLAction) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *ACLAction) contextValidateLimitValue(ctx context.Context, formats strfmt.Registry) error { if m.LimitValue != nil { + + if swag.IsZero(m.LimitValue) { // not required + return nil + } + if err := m.LimitValue.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("limitValue") @@ -154,6 +159,11 @@ func (m *ACLAction) contextValidateLimitValue(ctx context.Context, formats strfm func (m *ACLAction) contextValidatePortmapto(ctx context.Context, formats strfmt.Registry) error { if m.Portmapto != nil { + + if swag.IsZero(m.Portmapto) { // not required + return nil + } + if err := m.Portmapto.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("portmapto") diff --git a/swagger_models/action_scope.go b/swagger_models/action_scope.go index 68ff43f..d30f565 100644 --- a/swagger_models/action_scope.go +++ b/swagger_models/action_scope.go @@ -76,6 +76,11 @@ func (m *ActionScope) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *ActionScope) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/admin_user_signup.go b/swagger_models/admin_user_signup.go index 3090351..49ca2f2 100644 --- a/swagger_models/admin_user_signup.go +++ b/swagger_models/admin_user_signup.go @@ -88,6 +88,11 @@ func (m *AdminUserSignup) ContextValidate(ctx context.Context, formats strfmt.Re func (m *AdminUserSignup) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/allowed_enterprise_list.go b/swagger_models/allowed_enterprise_list.go index ea766c0..6362867 100644 --- a/swagger_models/allowed_enterprise_list.go +++ b/swagger_models/allowed_enterprise_list.go @@ -158,6 +158,11 @@ func (m *AllowedEnterpriseList) contextValidateEnterpriseEntitlements(ctx contex for i := 0; i < len(m.EnterpriseEntitlements); i++ { if m.EnterpriseEntitlements[i] != nil { + + if swag.IsZero(m.EnterpriseEntitlements[i]) { // not required + return nil + } + if err := m.EnterpriseEntitlements[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterpriseEntitlements" + "." + strconv.Itoa(i)) @@ -178,6 +183,11 @@ func (m *AllowedEnterpriseList) contextValidateEnterprises(ctx context.Context, for i := 0; i < len(m.Enterprises); i++ { if m.Enterprises[i] != nil { + + if swag.IsZero(m.Enterprises[i]) { // not required + return nil + } + if err := m.Enterprises[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprises" + "." + strconv.Itoa(i)) @@ -196,6 +206,11 @@ func (m *AllowedEnterpriseList) contextValidateEnterprises(ctx context.Context, func (m *AllowedEnterpriseList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") diff --git a/swagger_models/app.go b/swagger_models/app.go index d1b7f72..86ea19d 100644 --- a/swagger_models/app.go +++ b/swagger_models/app.go @@ -329,6 +329,11 @@ func (m *App) contextValidateID(ctx context.Context, formats strfmt.Registry) er func (m *App) contextValidateManifestJSON(ctx context.Context, formats strfmt.Registry) error { if m.ManifestJSON != nil { + + if swag.IsZero(m.ManifestJSON) { // not required + return nil + } + if err := m.ManifestJSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestJSON") @@ -345,6 +350,7 @@ func (m *App) contextValidateManifestJSON(ctx context.Context, formats strfmt.Re func (m *App) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -361,6 +367,11 @@ func (m *App) contextValidateOriginType(ctx context.Context, formats strfmt.Regi func (m *App) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if m.ParentDetail != nil { + + if swag.IsZero(m.ParentDetail) { // not required + return nil + } + if err := m.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("parentDetail") @@ -377,6 +388,11 @@ func (m *App) contextValidateParentDetail(ctx context.Context, formats strfmt.Re func (m *App) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/app_a_c_e.go b/swagger_models/app_a_c_e.go index e6b9ade..e786b38 100644 --- a/swagger_models/app_a_c_e.go +++ b/swagger_models/app_a_c_e.go @@ -176,6 +176,11 @@ func (m *AppACE) contextValidateActions(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Actions); i++ { if m.Actions[i] != nil { + + if swag.IsZero(m.Actions[i]) { // not required + return nil + } + if err := m.Actions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("actions" + "." + strconv.Itoa(i)) @@ -196,6 +201,11 @@ func (m *AppACE) contextValidateMatches(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Matches); i++ { if m.Matches[i] != nil { + + if swag.IsZero(m.Matches[i]) { // not required + return nil + } + if err := m.Matches[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("matches" + "." + strconv.Itoa(i)) diff --git a/swagger_models/app_a_c_e_action.go b/swagger_models/app_a_c_e_action.go index 197ff8f..7addd09 100644 --- a/swagger_models/app_a_c_e_action.go +++ b/swagger_models/app_a_c_e_action.go @@ -180,6 +180,7 @@ func (m *AppACEAction) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *AppACEAction) contextValidateMapparams(ctx context.Context, formats strfmt.Registry) error { if m.Mapparams != nil { + if err := m.Mapparams.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mapparams") diff --git a/swagger_models/app_config.go b/swagger_models/app_config.go index 87b20ba..41834ed 100644 --- a/swagger_models/app_config.go +++ b/swagger_models/app_config.go @@ -462,6 +462,11 @@ func (m *AppConfig) contextValidateInterfaces(ctx context.Context, formats strfm for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -480,6 +485,7 @@ func (m *AppConfig) contextValidateInterfaces(ctx context.Context, formats strfm func (m *AppConfig) contextValidateManifestJSON(ctx context.Context, formats strfmt.Registry) error { if m.ManifestJSON != nil { + if err := m.ManifestJSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestJSON") @@ -496,6 +502,11 @@ func (m *AppConfig) contextValidateManifestJSON(ctx context.Context, formats str func (m *AppConfig) contextValidateNamingScheme(ctx context.Context, formats strfmt.Registry) error { if m.NamingScheme != nil { + + if swag.IsZero(m.NamingScheme) { // not required + return nil + } + if err := m.NamingScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("namingScheme") @@ -512,6 +523,7 @@ func (m *AppConfig) contextValidateNamingScheme(ctx context.Context, formats str func (m *AppConfig) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -528,6 +540,11 @@ func (m *AppConfig) contextValidateOriginType(ctx context.Context, formats strfm func (m *AppConfig) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if m.ParentDetail != nil { + + if swag.IsZero(m.ParentDetail) { // not required + return nil + } + if err := m.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("parentDetail") diff --git a/swagger_models/app_filter.go b/swagger_models/app_filter.go index 44f211f..a9d9bd7 100644 --- a/swagger_models/app_filter.go +++ b/swagger_models/app_filter.go @@ -209,6 +209,11 @@ func (m *AppFilter) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *AppFilter) contextValidateAppCategory(ctx context.Context, formats strfmt.Registry) error { if m.AppCategory != nil { + + if swag.IsZero(m.AppCategory) { // not required + return nil + } + if err := m.AppCategory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appCategory") @@ -225,6 +230,11 @@ func (m *AppFilter) contextValidateAppCategory(ctx context.Context, formats strf func (m *AppFilter) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -243,6 +253,11 @@ func (m *AppFilter) contextValidateCategories(ctx context.Context, formats strfm for i := 0; i < len(m.Categories); i++ { if m.Categories[i] != nil { + + if swag.IsZero(m.Categories[i]) { // not required + return nil + } + if err := m.Categories[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("categories" + "." + strconv.Itoa(i)) @@ -261,6 +276,11 @@ func (m *AppFilter) contextValidateCategories(ctx context.Context, formats strfm func (m *AppFilter) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -277,6 +297,11 @@ func (m *AppFilter) contextValidateDeploymentType(ctx context.Context, formats s func (m *AppFilter) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + + if swag.IsZero(m.OriginType) { // not required + return nil + } + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") diff --git a/swagger_models/app_inst_config.go b/swagger_models/app_inst_config.go index 5962055..b52e176 100644 --- a/swagger_models/app_inst_config.go +++ b/swagger_models/app_inst_config.go @@ -347,6 +347,11 @@ func (m *AppInstConfig) contextValidateInterfaces(ctx context.Context, formats s for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -365,6 +370,11 @@ func (m *AppInstConfig) contextValidateInterfaces(ctx context.Context, formats s func (m *AppInstConfig) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { if m.Logs != nil { + + if swag.IsZero(m.Logs) { // not required + return nil + } + if err := m.Logs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs") @@ -381,6 +391,11 @@ func (m *AppInstConfig) contextValidateLogs(ctx context.Context, formats strfmt. func (m *AppInstConfig) contextValidateManifestJSON(ctx context.Context, formats strfmt.Registry) error { if m.ManifestJSON != nil { + + if swag.IsZero(m.ManifestJSON) { // not required + return nil + } + if err := m.ManifestJSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestJSON") @@ -397,6 +412,11 @@ func (m *AppInstConfig) contextValidateManifestJSON(ctx context.Context, formats func (m *AppInstConfig) contextValidateNamingScheme(ctx context.Context, formats strfmt.Registry) error { if m.NamingScheme != nil { + + if swag.IsZero(m.NamingScheme) { // not required + return nil + } + if err := m.NamingScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("namingScheme") @@ -413,6 +433,11 @@ func (m *AppInstConfig) contextValidateNamingScheme(ctx context.Context, formats func (m *AppInstConfig) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + + if swag.IsZero(m.OriginType) { // not required + return nil + } + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -429,6 +454,11 @@ func (m *AppInstConfig) contextValidateOriginType(ctx context.Context, formats s func (m *AppInstConfig) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if m.ParentDetail != nil { + + if swag.IsZero(m.ParentDetail) { // not required + return nil + } + if err := m.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("parentDetail") @@ -445,6 +475,11 @@ func (m *AppInstConfig) contextValidateParentDetail(ctx context.Context, formats func (m *AppInstConfig) contextValidateVminfo(ctx context.Context, formats strfmt.Registry) error { if m.Vminfo != nil { + + if swag.IsZero(m.Vminfo) { // not required + return nil + } + if err := m.Vminfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vminfo") diff --git a/swagger_models/app_inst_config_status.go b/swagger_models/app_inst_config_status.go index 7422b09..3653744 100644 --- a/swagger_models/app_inst_config_status.go +++ b/swagger_models/app_inst_config_status.go @@ -481,6 +481,11 @@ func (m *AppInstConfigStatus) ContextValidate(ctx context.Context, formats strfm func (m *AppInstConfigStatus) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -497,6 +502,11 @@ func (m *AppInstConfigStatus) contextValidateStorage(ctx context.Context, format func (m *AppInstConfigStatus) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -522,6 +532,11 @@ func (m *AppInstConfigStatus) contextValidateID(ctx context.Context, formats str func (m *AppInstConfigStatus) contextValidateManifestInfo(ctx context.Context, formats strfmt.Registry) error { if m.ManifestInfo != nil { + + if swag.IsZero(m.ManifestInfo) { // not required + return nil + } + if err := m.ManifestInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestInfo") @@ -538,6 +553,11 @@ func (m *AppInstConfigStatus) contextValidateManifestInfo(ctx context.Context, f func (m *AppInstConfigStatus) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -556,6 +576,11 @@ func (m *AppInstConfigStatus) contextValidateSwInfo(ctx context.Context, formats for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) @@ -574,6 +599,11 @@ func (m *AppInstConfigStatus) contextValidateSwInfo(ctx context.Context, formats func (m *AppInstConfigStatus) contextValidateSwState(ctx context.Context, formats strfmt.Registry) error { if m.SwState != nil { + + if swag.IsZero(m.SwState) { // not required + return nil + } + if err := m.SwState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swState") diff --git a/swagger_models/app_inst_config_status_list.go b/swagger_models/app_inst_config_status_list.go index 6c93f82..fb120f1 100644 --- a/swagger_models/app_inst_config_status_list.go +++ b/swagger_models/app_inst_config_status_list.go @@ -178,6 +178,11 @@ func (m *AppInstConfigStatusList) contextValidateList(ctx context.Context, forma for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -196,6 +201,11 @@ func (m *AppInstConfigStatusList) contextValidateList(ctx context.Context, forma func (m *AppInstConfigStatusList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -212,6 +222,11 @@ func (m *AppInstConfigStatusList) contextValidateNext(ctx context.Context, forma func (m *AppInstConfigStatusList) contextValidateSummaryByAppType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppType != nil { + + if swag.IsZero(m.SummaryByAppType) { // not required + return nil + } + if err := m.SummaryByAppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppType") @@ -228,6 +243,11 @@ func (m *AppInstConfigStatusList) contextValidateSummaryByAppType(ctx context.Co func (m *AppInstConfigStatusList) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/app_inst_filter.go b/swagger_models/app_inst_filter.go index 03aec9d..cbdfb0f 100644 --- a/swagger_models/app_inst_filter.go +++ b/swagger_models/app_inst_filter.go @@ -203,6 +203,11 @@ func (m *AppInstFilter) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *AppInstFilter) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -219,6 +224,11 @@ func (m *AppInstFilter) contextValidateAppType(ctx context.Context, formats strf func (m *AppInstFilter) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") diff --git a/swagger_models/app_inst_policy.go b/swagger_models/app_inst_policy.go index 10de6c9..154f606 100644 --- a/swagger_models/app_inst_policy.go +++ b/swagger_models/app_inst_policy.go @@ -103,6 +103,11 @@ func (m *AppInstPolicy) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *AppInstPolicy) contextValidateAppInstConfig(ctx context.Context, formats strfmt.Registry) error { if m.AppInstConfig != nil { + + if swag.IsZero(m.AppInstConfig) { // not required + return nil + } + if err := m.AppInstConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appInstConfig") @@ -119,6 +124,11 @@ func (m *AppInstPolicy) contextValidateAppInstConfig(ctx context.Context, format func (m *AppInstPolicy) contextValidateMetaData(ctx context.Context, formats strfmt.Registry) error { if m.MetaData != nil { + + if swag.IsZero(m.MetaData) { // not required + return nil + } + if err := m.MetaData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metaData") diff --git a/swagger_models/app_inst_report.go b/swagger_models/app_inst_report.go index a3631b4..051d467 100644 --- a/swagger_models/app_inst_report.go +++ b/swagger_models/app_inst_report.go @@ -99,6 +99,11 @@ func (m *AppInstReport) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *AppInstReport) contextValidateAppInstSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.AppInstSummaryReport != nil { + + if swag.IsZero(m.AppInstSummaryReport) { // not required + return nil + } + if err := m.AppInstSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appInstSummaryReport") diff --git a/swagger_models/app_inst_status_filter.go b/swagger_models/app_inst_status_filter.go index 8fc1259..65f16f0 100644 --- a/swagger_models/app_inst_status_filter.go +++ b/swagger_models/app_inst_status_filter.go @@ -236,6 +236,11 @@ func (m *AppInstStatusFilter) ContextValidate(ctx context.Context, formats strfm func (m *AppInstStatusFilter) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -252,6 +257,11 @@ func (m *AppInstStatusFilter) contextValidateAppType(ctx context.Context, format func (m *AppInstStatusFilter) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -268,6 +278,11 @@ func (m *AppInstStatusFilter) contextValidateDeploymentType(ctx context.Context, func (m *AppInstStatusFilter) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") diff --git a/swagger_models/app_inst_status_list_msg.go b/swagger_models/app_inst_status_list_msg.go index c99cd0e..931869b 100644 --- a/swagger_models/app_inst_status_list_msg.go +++ b/swagger_models/app_inst_status_list_msg.go @@ -175,6 +175,11 @@ func (m *AppInstStatusListMsg) contextValidateList(ctx context.Context, formats for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -193,6 +198,11 @@ func (m *AppInstStatusListMsg) contextValidateList(ctx context.Context, formats func (m *AppInstStatusListMsg) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -209,6 +219,11 @@ func (m *AppInstStatusListMsg) contextValidateNext(ctx context.Context, formats func (m *AppInstStatusListMsg) contextValidateSummaryByAppType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppType != nil { + + if swag.IsZero(m.SummaryByAppType) { // not required + return nil + } + if err := m.SummaryByAppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppType") @@ -225,6 +240,11 @@ func (m *AppInstStatusListMsg) contextValidateSummaryByAppType(ctx context.Conte func (m *AppInstStatusListMsg) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/app_inst_status_msg.go b/swagger_models/app_inst_status_msg.go index 456e92d..005fc33 100644 --- a/swagger_models/app_inst_status_msg.go +++ b/swagger_models/app_inst_status_msg.go @@ -784,6 +784,11 @@ func (m *AppInstStatusMsg) ContextValidate(ctx context.Context, formats strfmt.R func (m *AppInstStatusMsg) contextValidateCPU(ctx context.Context, formats strfmt.Registry) error { if m.CPU != nil { + + if swag.IsZero(m.CPU) { // not required + return nil + } + if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Cpu") @@ -802,6 +807,11 @@ func (m *AppInstStatusMsg) contextValidateIoStatusList(ctx context.Context, form for i := 0; i < len(m.IoStatusList); i++ { if m.IoStatusList[i] != nil { + + if swag.IsZero(m.IoStatusList[i]) { // not required + return nil + } + if err := m.IoStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("IoStatusList" + "." + strconv.Itoa(i)) @@ -820,6 +830,11 @@ func (m *AppInstStatusMsg) contextValidateIoStatusList(ctx context.Context, form func (m *AppInstStatusMsg) contextValidateMemory(ctx context.Context, formats strfmt.Registry) error { if m.Memory != nil { + + if swag.IsZero(m.Memory) { // not required + return nil + } + if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Memory") @@ -836,6 +851,11 @@ func (m *AppInstStatusMsg) contextValidateMemory(ctx context.Context, formats st func (m *AppInstStatusMsg) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -852,6 +872,11 @@ func (m *AppInstStatusMsg) contextValidateStorage(ctx context.Context, formats s func (m *AppInstStatusMsg) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -868,6 +893,11 @@ func (m *AppInstStatusMsg) contextValidateAdminState(ctx context.Context, format func (m *AppInstStatusMsg) contextValidateAppStatusFromTPController(ctx context.Context, formats strfmt.Registry) error { if m.AppStatusFromTPController != nil { + + if swag.IsZero(m.AppStatusFromTPController) { // not required + return nil + } + if err := m.AppStatusFromTPController.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appStatusFromTPController") @@ -884,6 +914,11 @@ func (m *AppInstStatusMsg) contextValidateAppStatusFromTPController(ctx context. func (m *AppInstStatusMsg) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -900,6 +935,11 @@ func (m *AppInstStatusMsg) contextValidateAppType(ctx context.Context, formats s func (m *AppInstStatusMsg) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -918,6 +958,11 @@ func (m *AppInstStatusMsg) contextValidateErrInfo(ctx context.Context, formats s for i := 0; i < len(m.ErrInfo); i++ { if m.ErrInfo[i] != nil { + + if swag.IsZero(m.ErrInfo[i]) { // not required + return nil + } + if err := m.ErrInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo" + "." + strconv.Itoa(i)) @@ -936,6 +981,11 @@ func (m *AppInstStatusMsg) contextValidateErrInfo(ctx context.Context, formats s func (m *AppInstStatusMsg) contextValidateMemorySummary(ctx context.Context, formats strfmt.Registry) error { if m.MemorySummary != nil { + + if swag.IsZero(m.MemorySummary) { // not required + return nil + } + if err := m.MemorySummary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memorySummary") @@ -954,6 +1004,11 @@ func (m *AppInstStatusMsg) contextValidateNetCounterList(ctx context.Context, fo for i := 0; i < len(m.NetCounterList); i++ { if m.NetCounterList[i] != nil { + + if swag.IsZero(m.NetCounterList[i]) { // not required + return nil + } + if err := m.NetCounterList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netCounterList" + "." + strconv.Itoa(i)) @@ -974,6 +1029,11 @@ func (m *AppInstStatusMsg) contextValidateNetStatusList(ctx context.Context, for for i := 0; i < len(m.NetStatusList); i++ { if m.NetStatusList[i] != nil { + + if swag.IsZero(m.NetStatusList[i]) { // not required + return nil + } + if err := m.NetStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netStatusList" + "." + strconv.Itoa(i)) @@ -992,6 +1052,11 @@ func (m *AppInstStatusMsg) contextValidateNetStatusList(ctx context.Context, for func (m *AppInstStatusMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -1010,6 +1075,11 @@ func (m *AppInstStatusMsg) contextValidateSwInfo(ctx context.Context, formats st for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) @@ -1028,6 +1098,11 @@ func (m *AppInstStatusMsg) contextValidateSwInfo(ctx context.Context, formats st func (m *AppInstStatusMsg) contextValidateSwState(ctx context.Context, formats strfmt.Registry) error { if m.SwState != nil { + + if swag.IsZero(m.SwState) { // not required + return nil + } + if err := m.SwState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swState") @@ -1044,6 +1119,11 @@ func (m *AppInstStatusMsg) contextValidateSwState(ctx context.Context, formats s func (m *AppInstStatusMsg) contextValidateZpoolMetrics(ctx context.Context, formats strfmt.Registry) error { if m.ZpoolMetrics != nil { + + if swag.IsZero(m.ZpoolMetrics) { // not required + return nil + } + if err := m.ZpoolMetrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zpoolMetrics") diff --git a/swagger_models/app_inst_status_summary_msg.go b/swagger_models/app_inst_status_summary_msg.go index 0ae8b81..97512b0 100644 --- a/swagger_models/app_inst_status_summary_msg.go +++ b/swagger_models/app_inst_status_summary_msg.go @@ -652,6 +652,11 @@ func (m *AppInstStatusSummaryMsg) ContextValidate(ctx context.Context, formats s func (m *AppInstStatusSummaryMsg) contextValidateCPU(ctx context.Context, formats strfmt.Registry) error { if m.CPU != nil { + + if swag.IsZero(m.CPU) { // not required + return nil + } + if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Cpu") @@ -668,6 +673,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateCPU(ctx context.Context, format func (m *AppInstStatusSummaryMsg) contextValidateMemory(ctx context.Context, formats strfmt.Registry) error { if m.Memory != nil { + + if swag.IsZero(m.Memory) { // not required + return nil + } + if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Memory") @@ -684,6 +694,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateMemory(ctx context.Context, for func (m *AppInstStatusSummaryMsg) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -700,6 +715,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateStorage(ctx context.Context, fo func (m *AppInstStatusSummaryMsg) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -716,6 +736,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateAdminState(ctx context.Context, func (m *AppInstStatusSummaryMsg) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -732,6 +757,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateAppType(ctx context.Context, fo func (m *AppInstStatusSummaryMsg) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -757,6 +787,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateID(ctx context.Context, formats func (m *AppInstStatusSummaryMsg) contextValidateMemorySummary(ctx context.Context, formats strfmt.Registry) error { if m.MemorySummary != nil { + + if swag.IsZero(m.MemorySummary) { // not required + return nil + } + if err := m.MemorySummary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memorySummary") @@ -773,6 +808,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateMemorySummary(ctx context.Conte func (m *AppInstStatusSummaryMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -791,6 +831,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateSwInfo(ctx context.Context, for for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) @@ -809,6 +854,11 @@ func (m *AppInstStatusSummaryMsg) contextValidateSwInfo(ctx context.Context, for func (m *AppInstStatusSummaryMsg) contextValidateSwState(ctx context.Context, formats strfmt.Registry) error { if m.SwState != nil { + + if swag.IsZero(m.SwState) { // not required + return nil + } + if err := m.SwState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swState") diff --git a/swagger_models/app_instance.go b/swagger_models/app_instance.go index 6ffd39d..bff46bc 100644 --- a/swagger_models/app_instance.go +++ b/swagger_models/app_instance.go @@ -695,6 +695,11 @@ func (m *AppInstance) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *AppInstance) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -711,6 +716,11 @@ func (m *AppInstance) contextValidateAppType(ctx context.Context, formats strfmt func (m *AppInstance) contextValidateCustomConfig(ctx context.Context, formats strfmt.Registry) error { if m.CustomConfig != nil { + + if swag.IsZero(m.CustomConfig) { // not required + return nil + } + if err := m.CustomConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfig") @@ -727,6 +737,11 @@ func (m *AppInstance) contextValidateCustomConfig(ctx context.Context, formats s func (m *AppInstance) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -745,6 +760,11 @@ func (m *AppInstance) contextValidateDrives(ctx context.Context, formats strfmt. for i := 0; i < len(m.Drives); i++ { if m.Drives[i] != nil { + + if swag.IsZero(m.Drives[i]) { // not required + return nil + } + if err := m.Drives[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("drives" + "." + strconv.Itoa(i)) @@ -774,6 +794,11 @@ func (m *AppInstance) contextValidateInterfaces(ctx context.Context, formats str for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -792,6 +817,11 @@ func (m *AppInstance) contextValidateInterfaces(ctx context.Context, formats str func (m *AppInstance) contextValidateLogs(ctx context.Context, formats strfmt.Registry) error { if m.Logs != nil { + + if swag.IsZero(m.Logs) { // not required + return nil + } + if err := m.Logs.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("logs") @@ -808,6 +838,11 @@ func (m *AppInstance) contextValidateLogs(ctx context.Context, formats strfmt.Re func (m *AppInstance) contextValidateManifestInfo(ctx context.Context, formats strfmt.Registry) error { if m.ManifestInfo != nil { + + if swag.IsZero(m.ManifestInfo) { // not required + return nil + } + if err := m.ManifestInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestInfo") @@ -824,6 +859,11 @@ func (m *AppInstance) contextValidateManifestInfo(ctx context.Context, formats s func (m *AppInstance) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if m.Purge != nil { + + if swag.IsZero(m.Purge) { // not required + return nil + } + if err := m.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("purge") @@ -840,6 +880,11 @@ func (m *AppInstance) contextValidatePurge(ctx context.Context, formats strfmt.R func (m *AppInstance) contextValidateRefresh(ctx context.Context, formats strfmt.Registry) error { if m.Refresh != nil { + + if swag.IsZero(m.Refresh) { // not required + return nil + } + if err := m.Refresh.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("refresh") @@ -856,6 +901,11 @@ func (m *AppInstance) contextValidateRefresh(ctx context.Context, formats strfmt func (m *AppInstance) contextValidateRestart(ctx context.Context, formats strfmt.Registry) error { if m.Restart != nil { + + if swag.IsZero(m.Restart) { // not required + return nil + } + if err := m.Restart.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restart") @@ -872,6 +922,11 @@ func (m *AppInstance) contextValidateRestart(ctx context.Context, formats strfmt func (m *AppInstance) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -888,6 +943,11 @@ func (m *AppInstance) contextValidateRevision(ctx context.Context, formats strfm func (m *AppInstance) contextValidateVminfo(ctx context.Context, formats strfmt.Registry) error { if m.Vminfo != nil { + + if swag.IsZero(m.Vminfo) { // not required + return nil + } + if err := m.Vminfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vminfo") diff --git a/swagger_models/app_instance_deploy.go b/swagger_models/app_instance_deploy.go index dcd7aac..1ca8204 100644 --- a/swagger_models/app_instance_deploy.go +++ b/swagger_models/app_instance_deploy.go @@ -84,6 +84,11 @@ func (m *AppInstanceDeploy) contextValidateInstanceConfig(ctx context.Context, f for i := 0; i < len(m.InstanceConfig); i++ { if m.InstanceConfig[i] != nil { + + if swag.IsZero(m.InstanceConfig[i]) { // not required + return nil + } + if err := m.InstanceConfig[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceConfig" + "." + strconv.Itoa(i)) diff --git a/swagger_models/app_instance_logs_query_response.go b/swagger_models/app_instance_logs_query_response.go index d027054..4d92a5b 100644 --- a/swagger_models/app_instance_logs_query_response.go +++ b/swagger_models/app_instance_logs_query_response.go @@ -118,6 +118,11 @@ func (m *AppInstanceLogsQueryResponse) contextValidateList(ctx context.Context, for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -136,6 +141,11 @@ func (m *AppInstanceLogsQueryResponse) contextValidateList(ctx context.Context, func (m *AppInstanceLogsQueryResponse) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") diff --git a/swagger_models/app_instance_logs_response.go b/swagger_models/app_instance_logs_response.go index d53a475..ec078f6 100644 --- a/swagger_models/app_instance_logs_response.go +++ b/swagger_models/app_instance_logs_response.go @@ -103,6 +103,11 @@ func (m *AppInstanceLogsResponse) ContextValidate(ctx context.Context, formats s func (m *AppInstanceLogsResponse) contextValidateContent(ctx context.Context, formats strfmt.Registry) error { if m.Content != nil { + + if swag.IsZero(m.Content) { // not required + return nil + } + if err := m.Content.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("content") @@ -119,6 +124,11 @@ func (m *AppInstanceLogsResponse) contextValidateContent(ctx context.Context, fo func (m *AppInstanceLogsResponse) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") diff --git a/swagger_models/app_instances.go b/swagger_models/app_instances.go index 450071a..2eca9df 100644 --- a/swagger_models/app_instances.go +++ b/swagger_models/app_instances.go @@ -143,6 +143,11 @@ func (m *AppInstances) contextValidateList(ctx context.Context, formats strfmt.R for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *AppInstances) contextValidateList(ctx context.Context, formats strfmt.R func (m *AppInstances) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *AppInstances) contextValidateNext(ctx context.Context, formats strfmt.R func (m *AppInstances) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/app_interface.go b/swagger_models/app_interface.go index 950eac8..cd63743 100644 --- a/swagger_models/app_interface.go +++ b/swagger_models/app_interface.go @@ -318,6 +318,11 @@ func (m *AppInterface) contextValidateAcls(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Acls); i++ { if m.Acls[i] != nil { + + if swag.IsZero(m.Acls[i]) { // not required + return nil + } + if err := m.Acls[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acls" + "." + strconv.Itoa(i)) @@ -336,6 +341,7 @@ func (m *AppInterface) contextValidateAcls(ctx context.Context, formats strfmt.R func (m *AppInterface) contextValidateEidregister(ctx context.Context, formats strfmt.Registry) error { if m.Eidregister != nil { + if err := m.Eidregister.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("eidregister") @@ -352,6 +358,7 @@ func (m *AppInterface) contextValidateEidregister(ctx context.Context, formats s func (m *AppInterface) contextValidateIo(ctx context.Context, formats strfmt.Registry) error { if m.Io != nil { + if err := m.Io.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("io") diff --git a/swagger_models/app_policy.go b/swagger_models/app_policy.go index df210ca..510a2d0 100644 --- a/swagger_models/app_policy.go +++ b/swagger_models/app_policy.go @@ -88,6 +88,11 @@ func (m *AppPolicy) contextValidateApps(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Apps); i++ { if m.Apps[i] != nil { + + if swag.IsZero(m.Apps[i]) { // not required + return nil + } + if err := m.Apps[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apps" + "." + strconv.Itoa(i)) diff --git a/swagger_models/app_project_list.go b/swagger_models/app_project_list.go index 8a1f93a..71ce0d3 100644 --- a/swagger_models/app_project_list.go +++ b/swagger_models/app_project_list.go @@ -114,6 +114,11 @@ func (m *AppProjectList) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *AppProjectList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -132,6 +137,11 @@ func (m *AppProjectList) contextValidateProjectDetails(ctx context.Context, form for i := 0; i < len(m.ProjectDetails); i++ { if m.ProjectDetails[i] != nil { + + if swag.IsZero(m.ProjectDetails[i]) { // not required + return nil + } + if err := m.ProjectDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("projectDetails" + "." + strconv.Itoa(i)) diff --git a/swagger_models/app_status_from_t_p_controller.go b/swagger_models/app_status_from_t_p_controller.go index 1e92514..b1a9ab3 100644 --- a/swagger_models/app_status_from_t_p_controller.go +++ b/swagger_models/app_status_from_t_p_controller.go @@ -145,6 +145,11 @@ func (m *AppStatusFromTPController) ContextValidate(ctx context.Context, formats func (m *AppStatusFromTPController) contextValidateAzureStatus(ctx context.Context, formats strfmt.Registry) error { if m.AzureStatus != nil { + + if swag.IsZero(m.AzureStatus) { // not required + return nil + } + if err := m.AzureStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureStatus") @@ -161,6 +166,11 @@ func (m *AppStatusFromTPController) contextValidateAzureStatus(ctx context.Conte func (m *AppStatusFromTPController) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") @@ -177,6 +187,11 @@ func (m *AppStatusFromTPController) contextValidateType(ctx context.Context, for func (m *AppStatusFromTPController) contextValidateVceStatus(ctx context.Context, formats strfmt.Registry) error { if m.VceStatus != nil { + + if swag.IsZero(m.VceStatus) { // not required + return nil + } + if err := m.VceStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vceStatus") diff --git a/swagger_models/app_summary.go b/swagger_models/app_summary.go index ecb9f5c..a56fa5b 100644 --- a/swagger_models/app_summary.go +++ b/swagger_models/app_summary.go @@ -295,6 +295,11 @@ func (m *AppSummary) contextValidateID(ctx context.Context, formats strfmt.Regis func (m *AppSummary) contextValidateManifestJSON(ctx context.Context, formats strfmt.Registry) error { if m.ManifestJSON != nil { + + if swag.IsZero(m.ManifestJSON) { // not required + return nil + } + if err := m.ManifestJSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("manifestJSON") @@ -311,6 +316,7 @@ func (m *AppSummary) contextValidateManifestJSON(ctx context.Context, formats st func (m *AppSummary) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -327,6 +333,11 @@ func (m *AppSummary) contextValidateOriginType(ctx context.Context, formats strf func (m *AppSummary) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if m.ParentDetail != nil { + + if swag.IsZero(m.ParentDetail) { // not required + return nil + } + if err := m.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("parentDetail") diff --git a/swagger_models/apps.go b/swagger_models/apps.go index adb44cd..0c94edb 100644 --- a/swagger_models/apps.go +++ b/swagger_models/apps.go @@ -233,6 +233,11 @@ func (m *Apps) contextValidateList(ctx context.Context, formats strfmt.Registry) for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -251,6 +256,11 @@ func (m *Apps) contextValidateList(ctx context.Context, formats strfmt.Registry) func (m *Apps) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -267,6 +277,11 @@ func (m *Apps) contextValidateNext(ctx context.Context, formats strfmt.Registry) func (m *Apps) contextValidateSummaryByAppInstanceDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppInstanceDistribution != nil { + + if swag.IsZero(m.SummaryByAppInstanceDistribution) { // not required + return nil + } + if err := m.SummaryByAppInstanceDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppInstanceDistribution") @@ -283,6 +298,11 @@ func (m *Apps) contextValidateSummaryByAppInstanceDistribution(ctx context.Conte func (m *Apps) contextValidateSummaryByAppType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppType != nil { + + if swag.IsZero(m.SummaryByAppType) { // not required + return nil + } + if err := m.SummaryByAppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppType") @@ -299,6 +319,11 @@ func (m *Apps) contextValidateSummaryByAppType(ctx context.Context, formats strf func (m *Apps) contextValidateSummaryByCategory(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByCategory != nil { + + if swag.IsZero(m.SummaryByCategory) { // not required + return nil + } + if err := m.SummaryByCategory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByCategory") @@ -315,6 +340,11 @@ func (m *Apps) contextValidateSummaryByCategory(ctx context.Context, formats str func (m *Apps) contextValidateSummaryByOrigin(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByOrigin != nil { + + if swag.IsZero(m.SummaryByOrigin) { // not required + return nil + } + if err := m.SummaryByOrigin.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByOrigin") diff --git a/swagger_models/artifact.go b/swagger_models/artifact.go index 6ff9613..c095330 100644 --- a/swagger_models/artifact.go +++ b/swagger_models/artifact.go @@ -166,6 +166,11 @@ func (m *Artifact) contextValidateSignedURL(ctx context.Context, formats strfmt. func (m *Artifact) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/swagger_models/artifact_list.go b/swagger_models/artifact_list.go index ea4bf7d..b5ac2e3 100644 --- a/swagger_models/artifact_list.go +++ b/swagger_models/artifact_list.go @@ -145,6 +145,11 @@ func (m *ArtifactList) contextValidateList(ctx context.Context, formats strfmt.R for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -163,6 +168,11 @@ func (m *ArtifactList) contextValidateList(ctx context.Context, formats strfmt.R func (m *ArtifactList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -179,6 +189,11 @@ func (m *ArtifactList) contextValidateNext(ctx context.Context, formats strfmt.R func (m *ArtifactList) contextValidateSummary(ctx context.Context, formats strfmt.Registry) error { if m.Summary != nil { + + if swag.IsZero(m.Summary) { // not required + return nil + } + if err := m.Summary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summary") diff --git a/swagger_models/attestation_policy.go b/swagger_models/attestation_policy.go index d621de6..ef4bfa0 100644 --- a/swagger_models/attestation_policy.go +++ b/swagger_models/attestation_policy.go @@ -116,6 +116,7 @@ func (m *AttestationPolicy) contextValidateID(ctx context.Context, formats strfm func (m *AttestationPolicy) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/authorization_profile.go b/swagger_models/authorization_profile.go index 43e7908..b4a1fff 100644 --- a/swagger_models/authorization_profile.go +++ b/swagger_models/authorization_profile.go @@ -367,6 +367,11 @@ func (m *AuthorizationProfile) contextValidateID(ctx context.Context, formats st func (m *AuthorizationProfile) contextValidateOauthProfile(ctx context.Context, formats strfmt.Registry) error { if m.OauthProfile != nil { + + if swag.IsZero(m.OauthProfile) { // not required + return nil + } + if err := m.OauthProfile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("oauthProfile") @@ -383,6 +388,11 @@ func (m *AuthorizationProfile) contextValidateOauthProfile(ctx context.Context, func (m *AuthorizationProfile) contextValidatePasswordProfile(ctx context.Context, formats strfmt.Registry) error { if m.PasswordProfile != nil { + + if swag.IsZero(m.PasswordProfile) { // not required + return nil + } + if err := m.PasswordProfile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("passwordProfile") @@ -399,6 +409,11 @@ func (m *AuthorizationProfile) contextValidatePasswordProfile(ctx context.Contex func (m *AuthorizationProfile) contextValidateProfileType(ctx context.Context, formats strfmt.Registry) error { if m.ProfileType != nil { + + if swag.IsZero(m.ProfileType) { // not required + return nil + } + if err := m.ProfileType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("profileType") @@ -415,6 +430,11 @@ func (m *AuthorizationProfile) contextValidateProfileType(ctx context.Context, f func (m *AuthorizationProfile) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -431,6 +451,11 @@ func (m *AuthorizationProfile) contextValidateRevision(ctx context.Context, form func (m *AuthorizationProfile) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/authorization_profiles.go b/swagger_models/authorization_profiles.go index a06e866..b3f4b4e 100644 --- a/swagger_models/authorization_profiles.go +++ b/swagger_models/authorization_profiles.go @@ -143,6 +143,11 @@ func (m *AuthorizationProfiles) contextValidateList(ctx context.Context, formats for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *AuthorizationProfiles) contextValidateList(ctx context.Context, formats func (m *AuthorizationProfiles) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *AuthorizationProfiles) contextValidateNext(ctx context.Context, formats func (m *AuthorizationProfiles) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/azure_dev_status_detail.go b/swagger_models/azure_dev_status_detail.go index e11a7a0..f568f65 100644 --- a/swagger_models/azure_dev_status_detail.go +++ b/swagger_models/azure_dev_status_detail.go @@ -88,6 +88,11 @@ func (m *AzureDevStatusDetail) ContextValidate(ctx context.Context, formats strf func (m *AzureDevStatusDetail) contextValidateTwin(ctx context.Context, formats strfmt.Registry) error { if m.Twin != nil { + + if swag.IsZero(m.Twin) { // not required + return nil + } + if err := m.Twin.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("twin") diff --git a/swagger_models/azure_policy.go b/swagger_models/azure_policy.go index 77959ab..4baf125 100644 --- a/swagger_models/azure_policy.go +++ b/swagger_models/azure_policy.go @@ -166,6 +166,11 @@ func (m *AzurePolicy) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *AzurePolicy) contextValidateAzureResourceAndServices(ctx context.Context, formats strfmt.Registry) error { if m.AzureResourceAndServices != nil { + + if swag.IsZero(m.AzureResourceAndServices) { // not required + return nil + } + if err := m.AzureResourceAndServices.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureResourceAndServices") @@ -182,6 +187,11 @@ func (m *AzurePolicy) contextValidateAzureResourceAndServices(ctx context.Contex func (m *AzurePolicy) contextValidateCertificate(ctx context.Context, formats strfmt.Registry) error { if m.Certificate != nil { + + if swag.IsZero(m.Certificate) { // not required + return nil + } + if err := m.Certificate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificate") diff --git a/swagger_models/azure_resource_and_service_detail.go b/swagger_models/azure_resource_and_service_detail.go index c778a8e..9c0819c 100644 --- a/swagger_models/azure_resource_and_service_detail.go +++ b/swagger_models/azure_resource_and_service_detail.go @@ -88,6 +88,11 @@ func (m *AzureResourceAndServiceDetail) ContextValidate(ctx context.Context, for func (m *AzureResourceAndServiceDetail) contextValidateSKU(ctx context.Context, formats strfmt.Registry) error { if m.SKU != nil { + + if swag.IsZero(m.SKU) { // not required + return nil + } + if err := m.SKU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("SKU") diff --git a/swagger_models/azure_resource_and_services.go b/swagger_models/azure_resource_and_services.go index 8ca90a6..8f6fd73 100644 --- a/swagger_models/azure_resource_and_services.go +++ b/swagger_models/azure_resource_and_services.go @@ -157,6 +157,7 @@ func (m *AzureResourceAndServices) ContextValidate(ctx context.Context, formats func (m *AzureResourceAndServices) contextValidateDpsService(ctx context.Context, formats strfmt.Registry) error { if m.DpsService != nil { + if err := m.DpsService.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dpsService") @@ -175,6 +176,11 @@ func (m *AzureResourceAndServices) contextValidateIotHubService(ctx context.Cont for i := 0; i < len(m.IotHubService); i++ { if m.IotHubService[i] != nil { + + if swag.IsZero(m.IotHubService[i]) { // not required + return nil + } + if err := m.IotHubService[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("iotHubService" + "." + strconv.Itoa(i)) @@ -195,6 +201,11 @@ func (m *AzureResourceAndServices) contextValidateResourceGroup(ctx context.Cont for i := 0; i < len(m.ResourceGroup); i++ { if m.ResourceGroup[i] != nil { + + if swag.IsZero(m.ResourceGroup[i]) { // not required + return nil + } + if err := m.ResourceGroup[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resourceGroup" + "." + strconv.Itoa(i)) diff --git a/swagger_models/azure_status.go b/swagger_models/azure_status.go index f47b752..1ac85e7 100644 --- a/swagger_models/azure_status.go +++ b/swagger_models/azure_status.go @@ -73,6 +73,11 @@ func (m *AzureStatus) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *AzureStatus) contextValidateAzureDevStatus(ctx context.Context, formats strfmt.Registry) error { if m.AzureDevStatus != nil { + + if swag.IsZero(m.AzureDevStatus) { // not required + return nil + } + if err := m.AzureDevStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azureDevStatus") diff --git a/swagger_models/baseos_update.go b/swagger_models/baseos_update.go index 29b5670..56eb4e6 100644 --- a/swagger_models/baseos_update.go +++ b/swagger_models/baseos_update.go @@ -73,6 +73,11 @@ func (m *BaseosUpdate) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *BaseosUpdate) contextValidateBaseimage(ctx context.Context, formats strfmt.Registry) error { if m.Baseimage != nil { + + if swag.IsZero(m.Baseimage) { // not required + return nil + } + if err := m.Baseimage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("baseimage") diff --git a/swagger_models/blob_info.go b/swagger_models/blob_info.go index 7eb9508..97f84af 100644 --- a/swagger_models/blob_info.go +++ b/swagger_models/blob_info.go @@ -169,6 +169,11 @@ func (m *BlobInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *BlobInfo) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("State") @@ -185,6 +190,11 @@ func (m *BlobInfo) contextValidateState(ctx context.Context, formats strfmt.Regi func (m *BlobInfo) contextValidateErrInfo(ctx context.Context, formats strfmt.Registry) error { if m.ErrInfo != nil { + + if swag.IsZero(m.ErrInfo) { // not required + return nil + } + if err := m.ErrInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo") @@ -201,6 +211,11 @@ func (m *BlobInfo) contextValidateErrInfo(ctx context.Context, formats strfmt.Re func (m *BlobInfo) contextValidateResource(ctx context.Context, formats strfmt.Registry) error { if m.Resource != nil { + + if swag.IsZero(m.Resource) { // not required + return nil + } + if err := m.Resource.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resource") @@ -217,6 +232,11 @@ func (m *BlobInfo) contextValidateResource(ctx context.Context, formats strfmt.R func (m *BlobInfo) contextValidateUsage(ctx context.Context, formats strfmt.Registry) error { if m.Usage != nil { + + if swag.IsZero(m.Usage) { // not required + return nil + } + if err := m.Usage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage") diff --git a/swagger_models/blob_status.go b/swagger_models/blob_status.go index 5fa6ee6..5567d5f 100644 --- a/swagger_models/blob_status.go +++ b/swagger_models/blob_status.go @@ -82,6 +82,11 @@ func (m *BlobStatus) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *BlobStatus) contextValidateSwState(ctx context.Context, formats strfmt.Registry) error { if m.SwState != nil { + + if swag.IsZero(m.SwState) { // not required + return nil + } + if err := m.SwState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swState") diff --git a/swagger_models/bulk_config.go b/swagger_models/bulk_config.go index 88099e4..a4217c7 100644 --- a/swagger_models/bulk_config.go +++ b/swagger_models/bulk_config.go @@ -319,6 +319,11 @@ func (m *BulkConfig) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *BulkConfig) contextValidateBaseosUpdate(ctx context.Context, formats strfmt.Registry) error { if m.BaseosUpdate != nil { + + if swag.IsZero(m.BaseosUpdate) { // not required + return nil + } + if err := m.BaseosUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("baseosUpdate") @@ -335,6 +340,11 @@ func (m *BulkConfig) contextValidateBaseosUpdate(ctx context.Context, formats st func (m *BulkConfig) contextValidateBundleImport(ctx context.Context, formats strfmt.Registry) error { if m.BundleImport != nil { + + if swag.IsZero(m.BundleImport) { // not required + return nil + } + if err := m.BundleImport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bundleImport") @@ -351,6 +361,11 @@ func (m *BulkConfig) contextValidateBundleImport(ctx context.Context, formats st func (m *BulkConfig) contextValidateDeploymentTagUpdate(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentTagUpdate != nil { + + if swag.IsZero(m.DeploymentTagUpdate) { // not required + return nil + } + if err := m.DeploymentTagUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentTagUpdate") @@ -367,6 +382,11 @@ func (m *BulkConfig) contextValidateDeploymentTagUpdate(ctx context.Context, for func (m *BulkConfig) contextValidateDeviceProjectAndTargetUpdate(ctx context.Context, formats strfmt.Registry) error { if m.DeviceProjectAndTargetUpdate != nil { + + if swag.IsZero(m.DeviceProjectAndTargetUpdate) { // not required + return nil + } + if err := m.DeviceProjectAndTargetUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceProjectAndTargetUpdate") @@ -383,6 +403,11 @@ func (m *BulkConfig) contextValidateDeviceProjectAndTargetUpdate(ctx context.Con func (m *BulkConfig) contextValidateInstanceDeploy(ctx context.Context, formats strfmt.Registry) error { if m.InstanceDeploy != nil { + + if swag.IsZero(m.InstanceDeploy) { // not required + return nil + } + if err := m.InstanceDeploy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceDeploy") @@ -399,6 +424,11 @@ func (m *BulkConfig) contextValidateInstanceDeploy(ctx context.Context, formats func (m *BulkConfig) contextValidateInstanceRefreshAndPurge(ctx context.Context, formats strfmt.Registry) error { if m.InstanceRefreshAndPurge != nil { + + if swag.IsZero(m.InstanceRefreshAndPurge) { // not required + return nil + } + if err := m.InstanceRefreshAndPurge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instanceRefreshAndPurge") @@ -415,6 +445,11 @@ func (m *BulkConfig) contextValidateInstanceRefreshAndPurge(ctx context.Context, func (m *BulkConfig) contextValidateModelImport(ctx context.Context, formats strfmt.Registry) error { if m.ModelImport != nil { + + if swag.IsZero(m.ModelImport) { // not required + return nil + } + if err := m.ModelImport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("modelImport") @@ -431,6 +466,11 @@ func (m *BulkConfig) contextValidateModelImport(ctx context.Context, formats str func (m *BulkConfig) contextValidateSelectionCriteria(ctx context.Context, formats strfmt.Registry) error { if m.SelectionCriteria != nil { + + if swag.IsZero(m.SelectionCriteria) { // not required + return nil + } + if err := m.SelectionCriteria.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("selectionCriteria") @@ -447,6 +487,11 @@ func (m *BulkConfig) contextValidateSelectionCriteria(ctx context.Context, forma func (m *BulkConfig) contextValidateTagUpdate(ctx context.Context, formats strfmt.Registry) error { if m.TagUpdate != nil { + + if swag.IsZero(m.TagUpdate) { // not required + return nil + } + if err := m.TagUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tagUpdate") diff --git a/swagger_models/bulk_instance_config.go b/swagger_models/bulk_instance_config.go index f5b2a2e..8ca8846 100644 --- a/swagger_models/bulk_instance_config.go +++ b/swagger_models/bulk_instance_config.go @@ -144,6 +144,11 @@ func (m *BulkInstanceConfig) ContextValidate(ctx context.Context, formats strfmt func (m *BulkInstanceConfig) contextValidateAppInstanceConfig(ctx context.Context, formats strfmt.Registry) error { if m.AppInstanceConfig != nil { + + if swag.IsZero(m.AppInstanceConfig) { // not required + return nil + } + if err := m.AppInstanceConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appInstanceConfig") @@ -162,6 +167,11 @@ func (m *BulkInstanceConfig) contextValidateNetInstanceConfig(ctx context.Contex for i := 0; i < len(m.NetInstanceConfig); i++ { if m.NetInstanceConfig[i] != nil { + + if swag.IsZero(m.NetInstanceConfig[i]) { // not required + return nil + } + if err := m.NetInstanceConfig[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netInstanceConfig" + "." + strconv.Itoa(i)) @@ -180,6 +190,11 @@ func (m *BulkInstanceConfig) contextValidateNetInstanceConfig(ctx context.Contex func (m *BulkInstanceConfig) contextValidateNetInstanceDetail(ctx context.Context, formats strfmt.Registry) error { if m.NetInstanceDetail != nil { + + if swag.IsZero(m.NetInstanceDetail) { // not required + return nil + } + if err := m.NetInstanceDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netInstanceDetail") diff --git a/swagger_models/bundle_import.go b/swagger_models/bundle_import.go index b36c432..10a834f 100644 --- a/swagger_models/bundle_import.go +++ b/swagger_models/bundle_import.go @@ -83,6 +83,11 @@ func (m *BundleImport) contextValidateBundleConfig(ctx context.Context, formats for i := 0; i < len(m.BundleConfig); i++ { if m.BundleConfig[i] != nil { + + if swag.IsZero(m.BundleConfig[i]) { // not required + return nil + } + if err := m.BundleConfig[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bundleConfig" + "." + strconv.Itoa(i)) diff --git a/swagger_models/certificate.go b/swagger_models/certificate.go index 41fa71a..6f22478 100644 --- a/swagger_models/certificate.go +++ b/swagger_models/certificate.go @@ -286,6 +286,11 @@ func (m *Certificate) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *Certificate) contextValidateEcdsaEncryption(ctx context.Context, formats strfmt.Registry) error { if m.EcdsaEncryption != nil { + + if swag.IsZero(m.EcdsaEncryption) { // not required + return nil + } + if err := m.EcdsaEncryption.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ecdsaEncryption") @@ -302,6 +307,11 @@ func (m *Certificate) contextValidateEcdsaEncryption(ctx context.Context, format func (m *Certificate) contextValidateIssuer(ctx context.Context, formats strfmt.Registry) error { if m.Issuer != nil { + + if swag.IsZero(m.Issuer) { // not required + return nil + } + if err := m.Issuer.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("issuer") @@ -318,6 +328,11 @@ func (m *Certificate) contextValidateIssuer(ctx context.Context, formats strfmt. func (m *Certificate) contextValidateRsaEcryption(ctx context.Context, formats strfmt.Registry) error { if m.RsaEcryption != nil { + + if swag.IsZero(m.RsaEcryption) { // not required + return nil + } + if err := m.RsaEcryption.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("rsaEcryption") @@ -334,6 +349,11 @@ func (m *Certificate) contextValidateRsaEcryption(ctx context.Context, formats s func (m *Certificate) contextValidateSanValues(ctx context.Context, formats strfmt.Registry) error { if m.SanValues != nil { + + if swag.IsZero(m.SanValues) { // not required + return nil + } + if err := m.SanValues.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sanValues") @@ -350,6 +370,11 @@ func (m *Certificate) contextValidateSanValues(ctx context.Context, formats strf func (m *Certificate) contextValidateSubject(ctx context.Context, formats strfmt.Registry) error { if m.Subject != nil { + + if swag.IsZero(m.Subject) { // not required + return nil + } + if err := m.Subject.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("subject") diff --git a/swagger_models/certificate_chain.go b/swagger_models/certificate_chain.go index 3233f98..b728896 100644 --- a/swagger_models/certificate_chain.go +++ b/swagger_models/certificate_chain.go @@ -83,6 +83,11 @@ func (m *CertificateChain) contextValidateCertificates(ctx context.Context, form for i := 0; i < len(m.Certificates); i++ { if m.Certificates[i] != nil { + + if swag.IsZero(m.Certificates[i]) { // not required + return nil + } + if err := m.Certificates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificates" + "." + strconv.Itoa(i)) diff --git a/swagger_models/classification_response.go b/swagger_models/classification_response.go index 60a07a6..ae45ac0 100644 --- a/swagger_models/classification_response.go +++ b/swagger_models/classification_response.go @@ -83,6 +83,11 @@ func (m *ClassificationResponse) contextValidateList(ctx context.Context, format for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) diff --git a/swagger_models/cloud_version_resp.go b/swagger_models/cloud_version_resp.go index 634a74b..449a23c 100644 --- a/swagger_models/cloud_version_resp.go +++ b/swagger_models/cloud_version_resp.go @@ -103,6 +103,11 @@ func (m *CloudVersionResp) ContextValidate(ctx context.Context, formats strfmt.R func (m *CloudVersionResp) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") @@ -119,6 +124,11 @@ func (m *CloudVersionResp) contextValidateResult(ctx context.Context, formats st func (m *CloudVersionResp) contextValidateVersion(ctx context.Context, formats strfmt.Registry) error { if m.Version != nil { + + if swag.IsZero(m.Version) { // not required + return nil + } + if err := m.Version.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("version") diff --git a/swagger_models/cluster_inst_policy.go b/swagger_models/cluster_inst_policy.go index 6f1e8e7..65dc324 100644 --- a/swagger_models/cluster_inst_policy.go +++ b/swagger_models/cluster_inst_policy.go @@ -82,6 +82,11 @@ func (m *ClusterInstPolicy) ContextValidate(ctx context.Context, formats strfmt. func (m *ClusterInstPolicy) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/cluster_policy.go b/swagger_models/cluster_policy.go index 7e91594..fc07adc 100644 --- a/swagger_models/cluster_policy.go +++ b/swagger_models/cluster_policy.go @@ -156,6 +156,11 @@ func (m *ClusterPolicy) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *ClusterPolicy) contextValidateClusterConfig(ctx context.Context, formats strfmt.Registry) error { if m.ClusterConfig != nil { + + if swag.IsZero(m.ClusterConfig) { // not required + return nil + } + if err := m.ClusterConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterConfig") @@ -172,6 +177,7 @@ func (m *ClusterPolicy) contextValidateClusterConfig(ctx context.Context, format func (m *ClusterPolicy) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/config_a_c_e.go b/swagger_models/config_a_c_e.go index 5bdbd62..5dc255e 100644 --- a/swagger_models/config_a_c_e.go +++ b/swagger_models/config_a_c_e.go @@ -160,6 +160,11 @@ func (m *ConfigACE) contextValidateActions(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Actions); i++ { if m.Actions[i] != nil { + + if swag.IsZero(m.Actions[i]) { // not required + return nil + } + if err := m.Actions[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("actions" + "." + strconv.Itoa(i)) @@ -178,6 +183,11 @@ func (m *ConfigACE) contextValidateActions(ctx context.Context, formats strfmt.R func (m *ConfigACE) contextValidateDir(ctx context.Context, formats strfmt.Registry) error { if m.Dir != nil { + + if swag.IsZero(m.Dir) { // not required + return nil + } + if err := m.Dir.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dir") @@ -196,6 +206,11 @@ func (m *ConfigACE) contextValidateMatches(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Matches); i++ { if m.Matches[i] != nil { + + if swag.IsZero(m.Matches[i]) { // not required + return nil + } + if err := m.Matches[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("matches" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_adapter.go b/swagger_models/config_adapter.go index 075fc1d..6308c8c 100644 --- a/swagger_models/config_adapter.go +++ b/swagger_models/config_adapter.go @@ -108,6 +108,11 @@ func (m *ConfigAdapter) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *ConfigAdapter) contextValidateEthVf(ctx context.Context, formats strfmt.Registry) error { if m.EthVf != nil { + + if swag.IsZero(m.EthVf) { // not required + return nil + } + if err := m.EthVf.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ethVf") @@ -124,6 +129,11 @@ func (m *ConfigAdapter) contextValidateEthVf(ctx context.Context, formats strfmt func (m *ConfigAdapter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/config_app_instance_config.go b/swagger_models/config_app_instance_config.go index 6861c24..3273bf4 100644 --- a/swagger_models/config_app_instance_config.go +++ b/swagger_models/config_app_instance_config.go @@ -446,6 +446,11 @@ func (m *ConfigAppInstanceConfig) contextValidateAdapters(ctx context.Context, f for i := 0; i < len(m.Adapters); i++ { if m.Adapters[i] != nil { + + if swag.IsZero(m.Adapters[i]) { // not required + return nil + } + if err := m.Adapters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adapters" + "." + strconv.Itoa(i)) @@ -464,6 +469,11 @@ func (m *ConfigAppInstanceConfig) contextValidateAdapters(ctx context.Context, f func (m *ConfigAppInstanceConfig) contextValidateCipherData(ctx context.Context, formats strfmt.Registry) error { if m.CipherData != nil { + + if swag.IsZero(m.CipherData) { // not required + return nil + } + if err := m.CipherData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cipherData") @@ -482,6 +492,11 @@ func (m *ConfigAppInstanceConfig) contextValidateDrives(ctx context.Context, for for i := 0; i < len(m.Drives); i++ { if m.Drives[i] != nil { + + if swag.IsZero(m.Drives[i]) { // not required + return nil + } + if err := m.Drives[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("drives" + "." + strconv.Itoa(i)) @@ -500,6 +515,11 @@ func (m *ConfigAppInstanceConfig) contextValidateDrives(ctx context.Context, for func (m *ConfigAppInstanceConfig) contextValidateFixedresources(ctx context.Context, formats strfmt.Registry) error { if m.Fixedresources != nil { + + if swag.IsZero(m.Fixedresources) { // not required + return nil + } + if err := m.Fixedresources.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("fixedresources") @@ -518,6 +538,11 @@ func (m *ConfigAppInstanceConfig) contextValidateInterfaces(ctx context.Context, for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -536,6 +561,11 @@ func (m *ConfigAppInstanceConfig) contextValidateInterfaces(ctx context.Context, func (m *ConfigAppInstanceConfig) contextValidateMetaDataType(ctx context.Context, formats strfmt.Registry) error { if m.MetaDataType != nil { + + if swag.IsZero(m.MetaDataType) { // not required + return nil + } + if err := m.MetaDataType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metaDataType") @@ -552,6 +582,11 @@ func (m *ConfigAppInstanceConfig) contextValidateMetaDataType(ctx context.Contex func (m *ConfigAppInstanceConfig) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if m.Purge != nil { + + if swag.IsZero(m.Purge) { // not required + return nil + } + if err := m.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("purge") @@ -568,6 +603,11 @@ func (m *ConfigAppInstanceConfig) contextValidatePurge(ctx context.Context, form func (m *ConfigAppInstanceConfig) contextValidateRestart(ctx context.Context, formats strfmt.Registry) error { if m.Restart != nil { + + if swag.IsZero(m.Restart) { // not required + return nil + } + if err := m.Restart.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("restart") @@ -584,6 +624,11 @@ func (m *ConfigAppInstanceConfig) contextValidateRestart(ctx context.Context, fo func (m *ConfigAppInstanceConfig) contextValidateUuidandversion(ctx context.Context, formats strfmt.Registry) error { if m.Uuidandversion != nil { + + if swag.IsZero(m.Uuidandversion) { // not required + return nil + } + if err := m.Uuidandversion.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("uuidandversion") @@ -602,6 +647,11 @@ func (m *ConfigAppInstanceConfig) contextValidateVolumeRefList(ctx context.Conte for i := 0; i < len(m.VolumeRefList); i++ { if m.VolumeRefList[i] != nil { + + if swag.IsZero(m.VolumeRefList[i]) { // not required + return nil + } + if err := m.VolumeRefList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("volumeRefList" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_base_o_s.go b/swagger_models/config_base_o_s.go index 19e9e59..960dfc8 100644 --- a/swagger_models/config_base_o_s.go +++ b/swagger_models/config_base_o_s.go @@ -90,6 +90,11 @@ func (m *ConfigBaseOS) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *ConfigBaseOS) contextValidateRetryUpdate(ctx context.Context, formats strfmt.Registry) error { if m.RetryUpdate != nil { + + if swag.IsZero(m.RetryUpdate) { // not required + return nil + } + if err := m.RetryUpdate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("retryUpdate") diff --git a/swagger_models/config_base_o_s_config.go b/swagger_models/config_base_o_s_config.go index bcc36f9..dc11fa1 100644 --- a/swagger_models/config_base_o_s_config.go +++ b/swagger_models/config_base_o_s_config.go @@ -124,6 +124,11 @@ func (m *ConfigBaseOSConfig) contextValidateDrives(ctx context.Context, formats for i := 0; i < len(m.Drives); i++ { if m.Drives[i] != nil { + + if swag.IsZero(m.Drives[i]) { // not required + return nil + } + if err := m.Drives[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("drives" + "." + strconv.Itoa(i)) @@ -142,6 +147,11 @@ func (m *ConfigBaseOSConfig) contextValidateDrives(ctx context.Context, formats func (m *ConfigBaseOSConfig) contextValidateUuidandversion(ctx context.Context, formats strfmt.Registry) error { if m.Uuidandversion != nil { + + if swag.IsZero(m.Uuidandversion) { // not required + return nil + } + if err := m.Uuidandversion.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("uuidandversion") diff --git a/swagger_models/config_bond_adapter.go b/swagger_models/config_bond_adapter.go index 5bd7678..9b23c93 100644 --- a/swagger_models/config_bond_adapter.go +++ b/swagger_models/config_bond_adapter.go @@ -185,6 +185,11 @@ func (m *ConfigBondAdapter) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigBondAdapter) contextValidateArp(ctx context.Context, formats strfmt.Registry) error { if m.Arp != nil { + + if swag.IsZero(m.Arp) { // not required + return nil + } + if err := m.Arp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("arp") @@ -201,6 +206,11 @@ func (m *ConfigBondAdapter) contextValidateArp(ctx context.Context, formats strf func (m *ConfigBondAdapter) contextValidateBondMode(ctx context.Context, formats strfmt.Registry) error { if m.BondMode != nil { + + if swag.IsZero(m.BondMode) { // not required + return nil + } + if err := m.BondMode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bondMode") @@ -217,6 +227,11 @@ func (m *ConfigBondAdapter) contextValidateBondMode(ctx context.Context, formats func (m *ConfigBondAdapter) contextValidateLacpRate(ctx context.Context, formats strfmt.Registry) error { if m.LacpRate != nil { + + if swag.IsZero(m.LacpRate) { // not required + return nil + } + if err := m.LacpRate.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lacpRate") @@ -233,6 +248,11 @@ func (m *ConfigBondAdapter) contextValidateLacpRate(ctx context.Context, formats func (m *ConfigBondAdapter) contextValidateMii(ctx context.Context, formats strfmt.Registry) error { if m.Mii != nil { + + if swag.IsZero(m.Mii) { // not required + return nil + } + if err := m.Mii.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mii") diff --git a/swagger_models/config_cellular_config.go b/swagger_models/config_cellular_config.go index b94fe67..163212d 100644 --- a/swagger_models/config_cellular_config.go +++ b/swagger_models/config_cellular_config.go @@ -83,6 +83,11 @@ func (m *ConfigCellularConfig) ContextValidate(ctx context.Context, formats strf func (m *ConfigCellularConfig) contextValidateProbe(ctx context.Context, formats strfmt.Registry) error { if m.Probe != nil { + + if swag.IsZero(m.Probe) { // not required + return nil + } + if err := m.Probe.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("probe") diff --git a/swagger_models/config_cipher_context.go b/swagger_models/config_cipher_context.go index 8cc1600..25e91ee 100644 --- a/swagger_models/config_cipher_context.go +++ b/swagger_models/config_cipher_context.go @@ -144,6 +144,11 @@ func (m *ConfigCipherContext) ContextValidate(ctx context.Context, formats strfm func (m *ConfigCipherContext) contextValidateEncryptionScheme(ctx context.Context, formats strfmt.Registry) error { if m.EncryptionScheme != nil { + + if swag.IsZero(m.EncryptionScheme) { // not required + return nil + } + if err := m.EncryptionScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("encryptionScheme") @@ -160,6 +165,11 @@ func (m *ConfigCipherContext) contextValidateEncryptionScheme(ctx context.Contex func (m *ConfigCipherContext) contextValidateHashScheme(ctx context.Context, formats strfmt.Registry) error { if m.HashScheme != nil { + + if swag.IsZero(m.HashScheme) { // not required + return nil + } + if err := m.HashScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hashScheme") @@ -176,6 +186,11 @@ func (m *ConfigCipherContext) contextValidateHashScheme(ctx context.Context, for func (m *ConfigCipherContext) contextValidateKeyExchangeScheme(ctx context.Context, formats strfmt.Registry) error { if m.KeyExchangeScheme != nil { + + if swag.IsZero(m.KeyExchangeScheme) { // not required + return nil + } + if err := m.KeyExchangeScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keyExchangeScheme") diff --git a/swagger_models/config_content_tree.go b/swagger_models/config_content_tree.go index c87919f..6d08efc 100644 --- a/swagger_models/config_content_tree.go +++ b/swagger_models/config_content_tree.go @@ -132,6 +132,11 @@ func (m *ConfigContentTree) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigContentTree) contextValidateIformat(ctx context.Context, formats strfmt.Registry) error { if m.Iformat != nil { + + if swag.IsZero(m.Iformat) { // not required + return nil + } + if err := m.Iformat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("iformat") @@ -148,6 +153,11 @@ func (m *ConfigContentTree) contextValidateIformat(ctx context.Context, formats func (m *ConfigContentTree) contextValidateSiginfo(ctx context.Context, formats strfmt.Registry) error { if m.Siginfo != nil { + + if swag.IsZero(m.Siginfo) { // not required + return nil + } + if err := m.Siginfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("siginfo") diff --git a/swagger_models/config_datastore_config.go b/swagger_models/config_datastore_config.go index ea723b0..09bc8ae 100644 --- a/swagger_models/config_datastore_config.go +++ b/swagger_models/config_datastore_config.go @@ -125,6 +125,11 @@ func (m *ConfigDatastoreConfig) ContextValidate(ctx context.Context, formats str func (m *ConfigDatastoreConfig) contextValidateCipherData(ctx context.Context, formats strfmt.Registry) error { if m.CipherData != nil { + + if swag.IsZero(m.CipherData) { // not required + return nil + } + if err := m.CipherData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cipherData") @@ -141,6 +146,11 @@ func (m *ConfigDatastoreConfig) contextValidateCipherData(ctx context.Context, f func (m *ConfigDatastoreConfig) contextValidateDType(ctx context.Context, formats strfmt.Registry) error { if m.DType != nil { + + if swag.IsZero(m.DType) { // not required + return nil + } + if err := m.DType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dType") diff --git a/swagger_models/config_disk_config.go b/swagger_models/config_disk_config.go index d5a2ba8..b3203df 100644 --- a/swagger_models/config_disk_config.go +++ b/swagger_models/config_disk_config.go @@ -138,6 +138,11 @@ func (m *ConfigDiskConfig) ContextValidate(ctx context.Context, formats strfmt.R func (m *ConfigDiskConfig) contextValidateDisk(ctx context.Context, formats strfmt.Registry) error { if m.Disk != nil { + + if swag.IsZero(m.Disk) { // not required + return nil + } + if err := m.Disk.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disk") @@ -154,6 +159,11 @@ func (m *ConfigDiskConfig) contextValidateDisk(ctx context.Context, formats strf func (m *ConfigDiskConfig) contextValidateDiskConfig(ctx context.Context, formats strfmt.Registry) error { if m.DiskConfig != nil { + + if swag.IsZero(m.DiskConfig) { // not required + return nil + } + if err := m.DiskConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("diskConfig") @@ -170,6 +180,11 @@ func (m *ConfigDiskConfig) contextValidateDiskConfig(ctx context.Context, format func (m *ConfigDiskConfig) contextValidateOldDisk(ctx context.Context, formats strfmt.Registry) error { if m.OldDisk != nil { + + if swag.IsZero(m.OldDisk) { // not required + return nil + } + if err := m.OldDisk.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("oldDisk") diff --git a/swagger_models/config_disks_config.go b/swagger_models/config_disks_config.go index d3eeded..1f55ed5 100644 --- a/swagger_models/config_disks_config.go +++ b/swagger_models/config_disks_config.go @@ -156,6 +156,11 @@ func (m *ConfigDisksConfig) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigDisksConfig) contextValidateArrayType(ctx context.Context, formats strfmt.Registry) error { if m.ArrayType != nil { + + if swag.IsZero(m.ArrayType) { // not required + return nil + } + if err := m.ArrayType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("arrayType") @@ -174,6 +179,11 @@ func (m *ConfigDisksConfig) contextValidateChildren(ctx context.Context, formats for i := 0; i < len(m.Children); i++ { if m.Children[i] != nil { + + if swag.IsZero(m.Children[i]) { // not required + return nil + } + if err := m.Children[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("children" + "." + strconv.Itoa(i)) @@ -194,6 +204,11 @@ func (m *ConfigDisksConfig) contextValidateDisks(ctx context.Context, formats st for i := 0; i < len(m.Disks); i++ { if m.Disks[i] != nil { + + if swag.IsZero(m.Disks[i]) { // not required + return nil + } + if err := m.Disks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disks" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_drive.go b/swagger_models/config_drive.go index 4465533..ff206e0 100644 --- a/swagger_models/config_drive.go +++ b/swagger_models/config_drive.go @@ -144,6 +144,11 @@ func (m *ConfigDrive) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *ConfigDrive) contextValidateDrvtype(ctx context.Context, formats strfmt.Registry) error { if m.Drvtype != nil { + + if swag.IsZero(m.Drvtype) { // not required + return nil + } + if err := m.Drvtype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("drvtype") @@ -160,6 +165,11 @@ func (m *ConfigDrive) contextValidateDrvtype(ctx context.Context, formats strfmt func (m *ConfigDrive) contextValidateImage(ctx context.Context, formats strfmt.Registry) error { if m.Image != nil { + + if swag.IsZero(m.Image) { // not required + return nil + } + if err := m.Image.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("image") @@ -176,6 +186,11 @@ func (m *ConfigDrive) contextValidateImage(ctx context.Context, formats strfmt.R func (m *ConfigDrive) contextValidateTarget(ctx context.Context, formats strfmt.Registry) error { if m.Target != nil { + + if swag.IsZero(m.Target) { // not required + return nil + } + if err := m.Target.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("target") diff --git a/swagger_models/config_edge_dev_config.go b/swagger_models/config_edge_dev_config.go index 9f0b548..7a2d9fe 100644 --- a/swagger_models/config_edge_dev_config.go +++ b/swagger_models/config_edge_dev_config.go @@ -848,6 +848,11 @@ func (m *ConfigEdgeDevConfig) contextValidateApps(ctx context.Context, formats s for i := 0; i < len(m.Apps); i++ { if m.Apps[i] != nil { + + if swag.IsZero(m.Apps[i]) { // not required + return nil + } + if err := m.Apps[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apps" + "." + strconv.Itoa(i)) @@ -866,6 +871,11 @@ func (m *ConfigEdgeDevConfig) contextValidateApps(ctx context.Context, formats s func (m *ConfigEdgeDevConfig) contextValidateBackup(ctx context.Context, formats strfmt.Registry) error { if m.Backup != nil { + + if swag.IsZero(m.Backup) { // not required + return nil + } + if err := m.Backup.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("backup") @@ -884,6 +894,11 @@ func (m *ConfigEdgeDevConfig) contextValidateBase(ctx context.Context, formats s for i := 0; i < len(m.Base); i++ { if m.Base[i] != nil { + + if swag.IsZero(m.Base[i]) { // not required + return nil + } + if err := m.Base[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("base" + "." + strconv.Itoa(i)) @@ -902,6 +917,11 @@ func (m *ConfigEdgeDevConfig) contextValidateBase(ctx context.Context, formats s func (m *ConfigEdgeDevConfig) contextValidateBaseos(ctx context.Context, formats strfmt.Registry) error { if m.Baseos != nil { + + if swag.IsZero(m.Baseos) { // not required + return nil + } + if err := m.Baseos.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("baseos") @@ -920,6 +940,11 @@ func (m *ConfigEdgeDevConfig) contextValidateBonds(ctx context.Context, formats for i := 0; i < len(m.Bonds); i++ { if m.Bonds[i] != nil { + + if swag.IsZero(m.Bonds[i]) { // not required + return nil + } + if err := m.Bonds[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("bonds" + "." + strconv.Itoa(i)) @@ -940,6 +965,11 @@ func (m *ConfigEdgeDevConfig) contextValidateCipherContexts(ctx context.Context, for i := 0; i < len(m.CipherContexts); i++ { if m.CipherContexts[i] != nil { + + if swag.IsZero(m.CipherContexts[i]) { // not required + return nil + } + if err := m.CipherContexts[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cipherContexts" + "." + strconv.Itoa(i)) @@ -960,6 +990,11 @@ func (m *ConfigEdgeDevConfig) contextValidateConfigItems(ctx context.Context, fo for i := 0; i < len(m.ConfigItems); i++ { if m.ConfigItems[i] != nil { + + if swag.IsZero(m.ConfigItems[i]) { // not required + return nil + } + if err := m.ConfigItems[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configItems" + "." + strconv.Itoa(i)) @@ -980,6 +1015,11 @@ func (m *ConfigEdgeDevConfig) contextValidateContentInfo(ctx context.Context, fo for i := 0; i < len(m.ContentInfo); i++ { if m.ContentInfo[i] != nil { + + if swag.IsZero(m.ContentInfo[i]) { // not required + return nil + } + if err := m.ContentInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("contentInfo" + "." + strconv.Itoa(i)) @@ -1000,6 +1040,11 @@ func (m *ConfigEdgeDevConfig) contextValidateDatastores(ctx context.Context, for for i := 0; i < len(m.Datastores); i++ { if m.Datastores[i] != nil { + + if swag.IsZero(m.Datastores[i]) { // not required + return nil + } + if err := m.Datastores[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("datastores" + "." + strconv.Itoa(i)) @@ -1020,6 +1065,11 @@ func (m *ConfigEdgeDevConfig) contextValidateDeviceIoList(ctx context.Context, f for i := 0; i < len(m.DeviceIoList); i++ { if m.DeviceIoList[i] != nil { + + if swag.IsZero(m.DeviceIoList[i]) { // not required + return nil + } + if err := m.DeviceIoList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceIoList" + "." + strconv.Itoa(i)) @@ -1038,6 +1088,11 @@ func (m *ConfigEdgeDevConfig) contextValidateDeviceIoList(ctx context.Context, f func (m *ConfigEdgeDevConfig) contextValidateDisks(ctx context.Context, formats strfmt.Registry) error { if m.Disks != nil { + + if swag.IsZero(m.Disks) { // not required + return nil + } + if err := m.Disks.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disks") @@ -1054,6 +1109,11 @@ func (m *ConfigEdgeDevConfig) contextValidateDisks(ctx context.Context, formats func (m *ConfigEdgeDevConfig) contextValidateEdgeview(ctx context.Context, formats strfmt.Registry) error { if m.Edgeview != nil { + + if swag.IsZero(m.Edgeview) { // not required + return nil + } + if err := m.Edgeview.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeview") @@ -1070,6 +1130,11 @@ func (m *ConfigEdgeDevConfig) contextValidateEdgeview(ctx context.Context, forma func (m *ConfigEdgeDevConfig) contextValidateID(ctx context.Context, formats strfmt.Registry) error { if m.ID != nil { + + if swag.IsZero(m.ID) { // not required + return nil + } + if err := m.ID.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("id") @@ -1088,6 +1153,11 @@ func (m *ConfigEdgeDevConfig) contextValidateNetworkInstances(ctx context.Contex for i := 0; i < len(m.NetworkInstances); i++ { if m.NetworkInstances[i] != nil { + + if swag.IsZero(m.NetworkInstances[i]) { // not required + return nil + } + if err := m.NetworkInstances[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("networkInstances" + "." + strconv.Itoa(i)) @@ -1108,6 +1178,11 @@ func (m *ConfigEdgeDevConfig) contextValidateNetworks(ctx context.Context, forma for i := 0; i < len(m.Networks); i++ { if m.Networks[i] != nil { + + if swag.IsZero(m.Networks[i]) { // not required + return nil + } + if err := m.Networks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("networks" + "." + strconv.Itoa(i)) @@ -1126,6 +1201,11 @@ func (m *ConfigEdgeDevConfig) contextValidateNetworks(ctx context.Context, forma func (m *ConfigEdgeDevConfig) contextValidateReboot(ctx context.Context, formats strfmt.Registry) error { if m.Reboot != nil { + + if swag.IsZero(m.Reboot) { // not required + return nil + } + if err := m.Reboot.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("reboot") @@ -1142,6 +1222,11 @@ func (m *ConfigEdgeDevConfig) contextValidateReboot(ctx context.Context, formats func (m *ConfigEdgeDevConfig) contextValidateShutdown(ctx context.Context, formats strfmt.Registry) error { if m.Shutdown != nil { + + if swag.IsZero(m.Shutdown) { // not required + return nil + } + if err := m.Shutdown.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("shutdown") @@ -1160,6 +1245,11 @@ func (m *ConfigEdgeDevConfig) contextValidateSystemAdapterList(ctx context.Conte for i := 0; i < len(m.SystemAdapterList); i++ { if m.SystemAdapterList[i] != nil { + + if swag.IsZero(m.SystemAdapterList[i]) { // not required + return nil + } + if err := m.SystemAdapterList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("systemAdapterList" + "." + strconv.Itoa(i)) @@ -1180,6 +1270,11 @@ func (m *ConfigEdgeDevConfig) contextValidateVlans(ctx context.Context, formats for i := 0; i < len(m.Vlans); i++ { if m.Vlans[i] != nil { + + if swag.IsZero(m.Vlans[i]) { // not required + return nil + } + if err := m.Vlans[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vlans" + "." + strconv.Itoa(i)) @@ -1200,6 +1295,11 @@ func (m *ConfigEdgeDevConfig) contextValidateVolumes(ctx context.Context, format for i := 0; i < len(m.Volumes); i++ { if m.Volumes[i] != nil { + + if swag.IsZero(m.Volumes[i]) { // not required + return nil + } + if err := m.Volumes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("volumes" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_edge_view_config.go b/swagger_models/config_edge_view_config.go index 1b4217c..5603fe9 100644 --- a/swagger_models/config_edge_view_config.go +++ b/swagger_models/config_edge_view_config.go @@ -143,6 +143,11 @@ func (m *ConfigEdgeViewConfig) ContextValidate(ctx context.Context, formats strf func (m *ConfigEdgeViewConfig) contextValidateAppPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AppPolicy != nil { + + if swag.IsZero(m.AppPolicy) { // not required + return nil + } + if err := m.AppPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appPolicy") @@ -159,6 +164,11 @@ func (m *ConfigEdgeViewConfig) contextValidateAppPolicy(ctx context.Context, for func (m *ConfigEdgeViewConfig) contextValidateDevPolicy(ctx context.Context, formats strfmt.Registry) error { if m.DevPolicy != nil { + + if swag.IsZero(m.DevPolicy) { // not required + return nil + } + if err := m.DevPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devPolicy") @@ -175,6 +185,11 @@ func (m *ConfigEdgeViewConfig) contextValidateDevPolicy(ctx context.Context, for func (m *ConfigEdgeViewConfig) contextValidateExtPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ExtPolicy != nil { + + if swag.IsZero(m.ExtPolicy) { // not required + return nil + } + if err := m.ExtPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("extPolicy") diff --git a/swagger_models/config_network_adapter.go b/swagger_models/config_network_adapter.go index db5698a..8c0b956 100644 --- a/swagger_models/config_network_adapter.go +++ b/swagger_models/config_network_adapter.go @@ -119,6 +119,11 @@ func (m *ConfigNetworkAdapter) contextValidateAcls(ctx context.Context, formats for i := 0; i < len(m.Acls); i++ { if m.Acls[i] != nil { + + if swag.IsZero(m.Acls[i]) { // not required + return nil + } + if err := m.Acls[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acls" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_network_config.go b/swagger_models/config_network_config.go index 7a41c14..70bd710 100644 --- a/swagger_models/config_network_config.go +++ b/swagger_models/config_network_config.go @@ -206,6 +206,11 @@ func (m *ConfigNetworkConfig) contextValidateDNS(ctx context.Context, formats st for i := 0; i < len(m.DNS); i++ { if m.DNS[i] != nil { + + if swag.IsZero(m.DNS[i]) { // not required + return nil + } + if err := m.DNS[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dns" + "." + strconv.Itoa(i)) @@ -224,6 +229,11 @@ func (m *ConfigNetworkConfig) contextValidateDNS(ctx context.Context, formats st func (m *ConfigNetworkConfig) contextValidateEntProxy(ctx context.Context, formats strfmt.Registry) error { if m.EntProxy != nil { + + if swag.IsZero(m.EntProxy) { // not required + return nil + } + if err := m.EntProxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("entProxy") @@ -240,6 +250,11 @@ func (m *ConfigNetworkConfig) contextValidateEntProxy(ctx context.Context, forma func (m *ConfigNetworkConfig) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if m.IP != nil { + + if swag.IsZero(m.IP) { // not required + return nil + } + if err := m.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ip") @@ -256,6 +271,11 @@ func (m *ConfigNetworkConfig) contextValidateIP(ctx context.Context, formats str func (m *ConfigNetworkConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") @@ -272,6 +292,11 @@ func (m *ConfigNetworkConfig) contextValidateType(ctx context.Context, formats s func (m *ConfigNetworkConfig) contextValidateWireless(ctx context.Context, formats strfmt.Registry) error { if m.Wireless != nil { + + if swag.IsZero(m.Wireless) { // not required + return nil + } + if err := m.Wireless.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("wireless") diff --git a/swagger_models/config_network_instance_config.go b/swagger_models/config_network_instance_config.go index 496b7f7..86d103f 100644 --- a/swagger_models/config_network_instance_config.go +++ b/swagger_models/config_network_instance_config.go @@ -276,6 +276,11 @@ func (m *ConfigNetworkInstanceConfig) ContextValidate(ctx context.Context, forma func (m *ConfigNetworkInstanceConfig) contextValidateCfg(ctx context.Context, formats strfmt.Registry) error { if m.Cfg != nil { + + if swag.IsZero(m.Cfg) { // not required + return nil + } + if err := m.Cfg.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cfg") @@ -294,6 +299,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidateDNS(ctx context.Context, fo for i := 0; i < len(m.DNS); i++ { if m.DNS[i] != nil { + + if swag.IsZero(m.DNS[i]) { // not required + return nil + } + if err := m.DNS[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dns" + "." + strconv.Itoa(i)) @@ -312,6 +322,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidateDNS(ctx context.Context, fo func (m *ConfigNetworkInstanceConfig) contextValidateInstType(ctx context.Context, formats strfmt.Registry) error { if m.InstType != nil { + + if swag.IsZero(m.InstType) { // not required + return nil + } + if err := m.InstType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("instType") @@ -328,6 +343,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidateInstType(ctx context.Contex func (m *ConfigNetworkInstanceConfig) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if m.IP != nil { + + if swag.IsZero(m.IP) { // not required + return nil + } + if err := m.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ip") @@ -344,6 +364,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidateIP(ctx context.Context, for func (m *ConfigNetworkInstanceConfig) contextValidateIPType(ctx context.Context, formats strfmt.Registry) error { if m.IPType != nil { + + if swag.IsZero(m.IPType) { // not required + return nil + } + if err := m.IPType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ipType") @@ -360,6 +385,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidateIPType(ctx context.Context, func (m *ConfigNetworkInstanceConfig) contextValidatePort(ctx context.Context, formats strfmt.Registry) error { if m.Port != nil { + + if swag.IsZero(m.Port) { // not required + return nil + } + if err := m.Port.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("port") @@ -376,6 +406,11 @@ func (m *ConfigNetworkInstanceConfig) contextValidatePort(ctx context.Context, f func (m *ConfigNetworkInstanceConfig) contextValidateUuidandversion(ctx context.Context, formats strfmt.Registry) error { if m.Uuidandversion != nil { + + if swag.IsZero(m.Uuidandversion) { // not required + return nil + } + if err := m.Uuidandversion.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("uuidandversion") diff --git a/swagger_models/config_network_instance_lisp_config.go b/swagger_models/config_network_instance_lisp_config.go index 0c5e834..087b2c5 100644 --- a/swagger_models/config_network_instance_lisp_config.go +++ b/swagger_models/config_network_instance_lisp_config.go @@ -102,6 +102,11 @@ func (m *ConfigNetworkInstanceLispConfig) contextValidateLispMSs(ctx context.Con for i := 0; i < len(m.LispMSs); i++ { if m.LispMSs[i] != nil { + + if swag.IsZero(m.LispMSs[i]) { // not required + return nil + } + if err := m.LispMSs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("LispMSs" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_network_instance_opaque_config.go b/swagger_models/config_network_instance_opaque_config.go index e5f6451..dfa9e16 100644 --- a/swagger_models/config_network_instance_opaque_config.go +++ b/swagger_models/config_network_instance_opaque_config.go @@ -107,6 +107,11 @@ func (m *ConfigNetworkInstanceOpaqueConfig) ContextValidate(ctx context.Context, func (m *ConfigNetworkInstanceOpaqueConfig) contextValidateLispConfig(ctx context.Context, formats strfmt.Registry) error { if m.LispConfig != nil { + + if swag.IsZero(m.LispConfig) { // not required + return nil + } + if err := m.LispConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lispConfig") @@ -123,6 +128,11 @@ func (m *ConfigNetworkInstanceOpaqueConfig) contextValidateLispConfig(ctx contex func (m *ConfigNetworkInstanceOpaqueConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/config_physical_i_o.go b/swagger_models/config_physical_i_o.go index 6138633..e048b52 100644 --- a/swagger_models/config_physical_i_o.go +++ b/swagger_models/config_physical_i_o.go @@ -217,6 +217,11 @@ func (m *ConfigPhysicalIO) ContextValidate(ctx context.Context, formats strfmt.R func (m *ConfigPhysicalIO) contextValidatePtype(ctx context.Context, formats strfmt.Registry) error { if m.Ptype != nil { + + if swag.IsZero(m.Ptype) { // not required + return nil + } + if err := m.Ptype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ptype") @@ -233,6 +238,11 @@ func (m *ConfigPhysicalIO) contextValidatePtype(ctx context.Context, formats str func (m *ConfigPhysicalIO) contextValidateUsage(ctx context.Context, formats strfmt.Registry) error { if m.Usage != nil { + + if swag.IsZero(m.Usage) { // not required + return nil + } + if err := m.Usage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage") @@ -249,6 +259,11 @@ func (m *ConfigPhysicalIO) contextValidateUsage(ctx context.Context, formats str func (m *ConfigPhysicalIO) contextValidateUsagePolicy(ctx context.Context, formats strfmt.Registry) error { if m.UsagePolicy != nil { + + if swag.IsZero(m.UsagePolicy) { // not required + return nil + } + if err := m.UsagePolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usagePolicy") @@ -265,6 +280,11 @@ func (m *ConfigPhysicalIO) contextValidateUsagePolicy(ctx context.Context, forma func (m *ConfigPhysicalIO) contextValidateVflist(ctx context.Context, formats strfmt.Registry) error { if m.Vflist != nil { + + if swag.IsZero(m.Vflist) { // not required + return nil + } + if err := m.Vflist.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vflist") diff --git a/swagger_models/config_proxy_config.go b/swagger_models/config_proxy_config.go index d6e4877..279049a 100644 --- a/swagger_models/config_proxy_config.go +++ b/swagger_models/config_proxy_config.go @@ -101,6 +101,11 @@ func (m *ConfigProxyConfig) contextValidateProxies(ctx context.Context, formats for i := 0; i < len(m.Proxies); i++ { if m.Proxies[i] != nil { + + if swag.IsZero(m.Proxies[i]) { // not required + return nil + } + if err := m.Proxies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_proxy_server.go b/swagger_models/config_proxy_server.go index a4b0b49..148a91c 100644 --- a/swagger_models/config_proxy_server.go +++ b/swagger_models/config_proxy_server.go @@ -79,6 +79,11 @@ func (m *ConfigProxyServer) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigProxyServer) contextValidateProto(ctx context.Context, formats strfmt.Registry) error { if m.Proto != nil { + + if swag.IsZero(m.Proto) { // not required + return nil + } + if err := m.Proto.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proto") diff --git a/swagger_models/config_service_resp.go b/swagger_models/config_service_resp.go index 801494e..f3e972c 100644 --- a/swagger_models/config_service_resp.go +++ b/swagger_models/config_service_resp.go @@ -197,6 +197,11 @@ func (m *ConfigServiceResp) ContextValidate(ctx context.Context, formats strfmt. func (m *ConfigServiceResp) contextValidateConfig(ctx context.Context, formats strfmt.Registry) error { if m.Config != nil { + + if swag.IsZero(m.Config) { // not required + return nil + } + if err := m.Config.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("config") @@ -213,6 +218,11 @@ func (m *ConfigServiceResp) contextValidateConfig(ctx context.Context, formats s func (m *ConfigServiceResp) contextValidateLastKnownStatus(ctx context.Context, formats strfmt.Registry) error { if m.LastKnownStatus != nil { + + if swag.IsZero(m.LastKnownStatus) { // not required + return nil + } + if err := m.LastKnownStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lastKnownStatus") @@ -229,6 +239,11 @@ func (m *ConfigServiceResp) contextValidateLastKnownStatus(ctx context.Context, func (m *ConfigServiceResp) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") diff --git a/swagger_models/config_vf_list.go b/swagger_models/config_vf_list.go index aa882e0..0653529 100644 --- a/swagger_models/config_vf_list.go +++ b/swagger_models/config_vf_list.go @@ -86,6 +86,11 @@ func (m *ConfigVfList) contextValidateData(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Data); i++ { if m.Data[i] != nil { + + if swag.IsZero(m.Data[i]) { // not required + return nil + } + if err := m.Data[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("data" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_vm_config.go b/swagger_models/config_vm_config.go index 553354e..dc0d5e7 100644 --- a/swagger_models/config_vm_config.go +++ b/swagger_models/config_vm_config.go @@ -137,6 +137,11 @@ func (m *ConfigVMConfig) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *ConfigVMConfig) contextValidateVirtualizationMode(ctx context.Context, formats strfmt.Registry) error { if m.VirtualizationMode != nil { + + if swag.IsZero(m.VirtualizationMode) { // not required + return nil + } + if err := m.VirtualizationMode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("virtualizationMode") diff --git a/swagger_models/config_volume.go b/swagger_models/config_volume.go index c15ef9a..9ef6e03 100644 --- a/swagger_models/config_volume.go +++ b/swagger_models/config_volume.go @@ -138,6 +138,11 @@ func (m *ConfigVolume) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *ConfigVolume) contextValidateOrigin(ctx context.Context, formats strfmt.Registry) error { if m.Origin != nil { + + if swag.IsZero(m.Origin) { // not required + return nil + } + if err := m.Origin.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("origin") @@ -156,6 +161,11 @@ func (m *ConfigVolume) contextValidateProtocols(ctx context.Context, formats str for i := 0; i < len(m.Protocols); i++ { if m.Protocols[i] != nil { + + if swag.IsZero(m.Protocols[i]) { // not required + return nil + } + if err := m.Protocols[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("protocols" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_volume_content_origin.go b/swagger_models/config_volume_content_origin.go index b82cb0f..c65b03e 100644 --- a/swagger_models/config_volume_content_origin.go +++ b/swagger_models/config_volume_content_origin.go @@ -76,6 +76,11 @@ func (m *ConfigVolumeContentOrigin) ContextValidate(ctx context.Context, formats func (m *ConfigVolumeContentOrigin) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/config_wifi_config.go b/swagger_models/config_wifi_config.go index c7423fc..c8cd876 100644 --- a/swagger_models/config_wifi_config.go +++ b/swagger_models/config_wifi_config.go @@ -145,6 +145,11 @@ func (m *ConfigWifiConfig) ContextValidate(ctx context.Context, formats strfmt.R func (m *ConfigWifiConfig) contextValidateCipherData(ctx context.Context, formats strfmt.Registry) error { if m.CipherData != nil { + + if swag.IsZero(m.CipherData) { // not required + return nil + } + if err := m.CipherData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cipherData") @@ -161,6 +166,11 @@ func (m *ConfigWifiConfig) contextValidateCipherData(ctx context.Context, format func (m *ConfigWifiConfig) contextValidateCrypto(ctx context.Context, formats strfmt.Registry) error { if m.Crypto != nil { + + if swag.IsZero(m.Crypto) { // not required + return nil + } + if err := m.Crypto.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("crypto") @@ -177,6 +187,11 @@ func (m *ConfigWifiConfig) contextValidateCrypto(ctx context.Context, formats st func (m *ConfigWifiConfig) contextValidateKeyScheme(ctx context.Context, formats strfmt.Registry) error { if m.KeyScheme != nil { + + if swag.IsZero(m.KeyScheme) { // not required + return nil + } + if err := m.KeyScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keyScheme") diff --git a/swagger_models/config_wireless_config.go b/swagger_models/config_wireless_config.go index 5fda068..a62eca6 100644 --- a/swagger_models/config_wireless_config.go +++ b/swagger_models/config_wireless_config.go @@ -150,6 +150,11 @@ func (m *ConfigWirelessConfig) contextValidateCellularCfg(ctx context.Context, f for i := 0; i < len(m.CellularCfg); i++ { if m.CellularCfg[i] != nil { + + if swag.IsZero(m.CellularCfg[i]) { // not required + return nil + } + if err := m.CellularCfg[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cellularCfg" + "." + strconv.Itoa(i)) @@ -168,6 +173,11 @@ func (m *ConfigWirelessConfig) contextValidateCellularCfg(ctx context.Context, f func (m *ConfigWirelessConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") @@ -186,6 +196,11 @@ func (m *ConfigWirelessConfig) contextValidateWifiCfg(ctx context.Context, forma for i := 0; i < len(m.WifiCfg); i++ { if m.WifiCfg[i] != nil { + + if swag.IsZero(m.WifiCfg[i]) { // not required + return nil + } + if err := m.WifiCfg[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("wifiCfg" + "." + strconv.Itoa(i)) diff --git a/swagger_models/config_zc_service_point.go b/swagger_models/config_zc_service_point.go index 4375a71..10c8670 100644 --- a/swagger_models/config_zc_service_point.go +++ b/swagger_models/config_zc_service_point.go @@ -80,6 +80,11 @@ func (m *ConfigZcServicePoint) ContextValidate(ctx context.Context, formats strf func (m *ConfigZcServicePoint) contextValidateZsType(ctx context.Context, formats strfmt.Registry) error { if m.ZsType != nil { + + if swag.IsZero(m.ZsType) { // not required + return nil + } + if err := m.ZsType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zsType") diff --git a/swagger_models/configipspec.go b/swagger_models/configipspec.go index 300ff4a..2daf2ec 100644 --- a/swagger_models/configipspec.go +++ b/swagger_models/configipspec.go @@ -119,6 +119,11 @@ func (m *Configipspec) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *Configipspec) contextValidateDhcp(ctx context.Context, formats strfmt.Registry) error { if m.Dhcp != nil { + + if swag.IsZero(m.Dhcp) { // not required + return nil + } + if err := m.Dhcp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dhcp") @@ -135,6 +140,11 @@ func (m *Configipspec) contextValidateDhcp(ctx context.Context, formats strfmt.R func (m *Configipspec) contextValidateDhcpRange(ctx context.Context, formats strfmt.Registry) error { if m.DhcpRange != nil { + + if swag.IsZero(m.DhcpRange) { // not required + return nil + } + if err := m.DhcpRange.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dhcpRange") diff --git a/swagger_models/credential.go b/swagger_models/credential.go index ddd4072..1fc1aad 100644 --- a/swagger_models/credential.go +++ b/swagger_models/credential.go @@ -91,6 +91,11 @@ func (m *Credential) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *Credential) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/credentials.go b/swagger_models/credentials.go index 6b30663..2d9882e 100644 --- a/swagger_models/credentials.go +++ b/swagger_models/credentials.go @@ -143,6 +143,11 @@ func (m *Credentials) contextValidateList(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *Credentials) contextValidateList(ctx context.Context, formats strfmt.Re func (m *Credentials) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *Credentials) contextValidateNext(ctx context.Context, formats strfmt.Re func (m *Credentials) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/crud_content.go b/swagger_models/crud_content.go index 478d47b..92b0f0c 100644 --- a/swagger_models/crud_content.go +++ b/swagger_models/crud_content.go @@ -193,6 +193,11 @@ func (m *CrudContent) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *CrudContent) contextValidateClazz(ctx context.Context, formats strfmt.Registry) error { if m.Clazz != nil { + + if swag.IsZero(m.Clazz) { // not required + return nil + } + if err := m.Clazz.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clazz") @@ -209,6 +214,11 @@ func (m *CrudContent) contextValidateClazz(ctx context.Context, formats strfmt.R func (m *CrudContent) contextValidateEncoding(ctx context.Context, formats strfmt.Registry) error { if m.Encoding != nil { + + if swag.IsZero(m.Encoding) { // not required + return nil + } + if err := m.Encoding.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("encoding") @@ -225,6 +235,11 @@ func (m *CrudContent) contextValidateEncoding(ctx context.Context, formats strfm func (m *CrudContent) contextValidateJSON(ctx context.Context, formats strfmt.Registry) error { if m.JSON != nil { + + if swag.IsZero(m.JSON) { // not required + return nil + } + if err := m.JSON.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("json") @@ -241,6 +256,11 @@ func (m *CrudContent) contextValidateJSON(ctx context.Context, formats strfmt.Re func (m *CrudContent) contextValidateOid(ctx context.Context, formats strfmt.Registry) error { if m.Oid != nil { + + if swag.IsZero(m.Oid) { // not required + return nil + } + if err := m.Oid.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("oid") @@ -257,6 +277,11 @@ func (m *CrudContent) contextValidateOid(ctx context.Context, formats strfmt.Reg func (m *CrudContent) contextValidateProtobuf(ctx context.Context, formats strfmt.Registry) error { if m.Protobuf != nil { + + if swag.IsZero(m.Protobuf) { // not required + return nil + } + if err := m.Protobuf.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("protobuf") diff --git a/swagger_models/crud_content_protobuf.go b/swagger_models/crud_content_protobuf.go index 9da9a6e..0219999 100644 --- a/swagger_models/crud_content_protobuf.go +++ b/swagger_models/crud_content_protobuf.go @@ -349,6 +349,11 @@ func (m *CrudContentProtobuf) ContextValidate(ctx context.Context, formats strfm func (m *CrudContentProtobuf) contextValidateCredential(ctx context.Context, formats strfmt.Registry) error { if m.Credential != nil { + + if swag.IsZero(m.Credential) { // not required + return nil + } + if err := m.Credential.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credential") @@ -365,6 +370,11 @@ func (m *CrudContentProtobuf) contextValidateCredential(ctx context.Context, for func (m *CrudContentProtobuf) contextValidateDetailedUser(ctx context.Context, formats strfmt.Registry) error { if m.DetailedUser != nil { + + if swag.IsZero(m.DetailedUser) { // not required + return nil + } + if err := m.DetailedUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("detailedUser") @@ -381,6 +391,11 @@ func (m *CrudContentProtobuf) contextValidateDetailedUser(ctx context.Context, f func (m *CrudContentProtobuf) contextValidateDocPolicy(ctx context.Context, formats strfmt.Registry) error { if m.DocPolicy != nil { + + if swag.IsZero(m.DocPolicy) { // not required + return nil + } + if err := m.DocPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("docPolicy") @@ -397,6 +412,11 @@ func (m *CrudContentProtobuf) contextValidateDocPolicy(ctx context.Context, form func (m *CrudContentProtobuf) contextValidateEnterprise(ctx context.Context, formats strfmt.Registry) error { if m.Enterprise != nil { + + if swag.IsZero(m.Enterprise) { // not required + return nil + } + if err := m.Enterprise.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprise") @@ -413,6 +433,11 @@ func (m *CrudContentProtobuf) contextValidateEnterprise(ctx context.Context, for func (m *CrudContentProtobuf) contextValidatePolicy(ctx context.Context, formats strfmt.Registry) error { if m.Policy != nil { + + if swag.IsZero(m.Policy) { // not required + return nil + } + if err := m.Policy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policy") @@ -429,6 +454,11 @@ func (m *CrudContentProtobuf) contextValidatePolicy(ctx context.Context, formats func (m *CrudContentProtobuf) contextValidateProfile(ctx context.Context, formats strfmt.Registry) error { if m.Profile != nil { + + if swag.IsZero(m.Profile) { // not required + return nil + } + if err := m.Profile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("profile") @@ -445,6 +475,11 @@ func (m *CrudContentProtobuf) contextValidateProfile(ctx context.Context, format func (m *CrudContentProtobuf) contextValidateRealm(ctx context.Context, formats strfmt.Registry) error { if m.Realm != nil { + + if swag.IsZero(m.Realm) { // not required + return nil + } + if err := m.Realm.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realm") @@ -461,6 +496,11 @@ func (m *CrudContentProtobuf) contextValidateRealm(ctx context.Context, formats func (m *CrudContentProtobuf) contextValidateRole(ctx context.Context, formats strfmt.Registry) error { if m.Role != nil { + + if swag.IsZero(m.Role) { // not required + return nil + } + if err := m.Role.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("role") @@ -477,6 +517,11 @@ func (m *CrudContentProtobuf) contextValidateRole(ctx context.Context, formats s func (m *CrudContentProtobuf) contextValidateSimpleUser(ctx context.Context, formats strfmt.Registry) error { if m.SimpleUser != nil { + + if swag.IsZero(m.SimpleUser) { // not required + return nil + } + if err := m.SimpleUser.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("simpleUser") @@ -493,6 +538,11 @@ func (m *CrudContentProtobuf) contextValidateSimpleUser(ctx context.Context, for func (m *CrudContentProtobuf) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + + if swag.IsZero(m.User) { // not required + return nil + } + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/swagger_models/crud_response.go b/swagger_models/crud_response.go index b07a060..dbb5bc1 100644 --- a/swagger_models/crud_response.go +++ b/swagger_models/crud_response.go @@ -193,6 +193,11 @@ func (m *CrudResponse) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *CrudResponse) contextValidateAction(ctx context.Context, formats strfmt.Registry) error { if m.Action != nil { + + if swag.IsZero(m.Action) { // not required + return nil + } + if err := m.Action.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("action") @@ -209,6 +214,11 @@ func (m *CrudResponse) contextValidateAction(ctx context.Context, formats strfmt func (m *CrudResponse) contextValidateQuery(ctx context.Context, formats strfmt.Registry) error { if m.Query != nil { + + if swag.IsZero(m.Query) { // not required + return nil + } + if err := m.Query.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("query") @@ -225,6 +235,11 @@ func (m *CrudResponse) contextValidateQuery(ctx context.Context, formats strfmt. func (m *CrudResponse) contextValidateRead(ctx context.Context, formats strfmt.Registry) error { if m.Read != nil { + + if swag.IsZero(m.Read) { // not required + return nil + } + if err := m.Read.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("read") @@ -241,6 +256,11 @@ func (m *CrudResponse) contextValidateRead(ctx context.Context, formats strfmt.R func (m *CrudResponse) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") @@ -257,6 +277,11 @@ func (m *CrudResponse) contextValidateResult(ctx context.Context, formats strfmt func (m *CrudResponse) contextValidateToken(ctx context.Context, formats strfmt.Registry) error { if m.Token != nil { + + if swag.IsZero(m.Token) { // not required + return nil + } + if err := m.Token.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("token") diff --git a/swagger_models/crud_response_query.go b/swagger_models/crud_response_query.go index db8dedf..7c96701 100644 --- a/swagger_models/crud_response_query.go +++ b/swagger_models/crud_response_query.go @@ -584,6 +584,11 @@ func (m *CrudResponseQuery) ContextValidate(ctx context.Context, formats strfmt. func (m *CrudResponseQuery) contextValidateAllowedEnterpriseList(ctx context.Context, formats strfmt.Registry) error { if m.AllowedEnterpriseList != nil { + + if swag.IsZero(m.AllowedEnterpriseList) { // not required + return nil + } + if err := m.AllowedEnterpriseList.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allowedEnterpriseList") @@ -600,6 +605,11 @@ func (m *CrudResponseQuery) contextValidateAllowedEnterpriseList(ctx context.Con func (m *CrudResponseQuery) contextValidateClazz(ctx context.Context, formats strfmt.Registry) error { if m.Clazz != nil { + + if swag.IsZero(m.Clazz) { // not required + return nil + } + if err := m.Clazz.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clazz") @@ -616,6 +626,11 @@ func (m *CrudResponseQuery) contextValidateClazz(ctx context.Context, formats st func (m *CrudResponseQuery) contextValidateCode(ctx context.Context, formats strfmt.Registry) error { if m.Code != nil { + + if swag.IsZero(m.Code) { // not required + return nil + } + if err := m.Code.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("code") @@ -632,6 +647,11 @@ func (m *CrudResponseQuery) contextValidateCode(ctx context.Context, formats str func (m *CrudResponseQuery) contextValidateCredentials(ctx context.Context, formats strfmt.Registry) error { if m.Credentials != nil { + + if swag.IsZero(m.Credentials) { // not required + return nil + } + if err := m.Credentials.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("credentials") @@ -648,6 +668,11 @@ func (m *CrudResponseQuery) contextValidateCredentials(ctx context.Context, form func (m *CrudResponseQuery) contextValidateDocPolicies(ctx context.Context, formats strfmt.Registry) error { if m.DocPolicies != nil { + + if swag.IsZero(m.DocPolicies) { // not required + return nil + } + if err := m.DocPolicies.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("docPolicies") @@ -664,6 +689,11 @@ func (m *CrudResponseQuery) contextValidateDocPolicies(ctx context.Context, form func (m *CrudResponseQuery) contextValidateEnterprises(ctx context.Context, formats strfmt.Registry) error { if m.Enterprises != nil { + + if swag.IsZero(m.Enterprises) { // not required + return nil + } + if err := m.Enterprises.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enterprises") @@ -682,6 +712,11 @@ func (m *CrudResponseQuery) contextValidateGlobalStatistics(ctx context.Context, for i := 0; i < len(m.GlobalStatistics); i++ { if m.GlobalStatistics[i] != nil { + + if swag.IsZero(m.GlobalStatistics[i]) { // not required + return nil + } + if err := m.GlobalStatistics[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("globalStatistics" + "." + strconv.Itoa(i)) @@ -702,6 +737,11 @@ func (m *CrudResponseQuery) contextValidateList(ctx context.Context, formats str for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -720,6 +760,11 @@ func (m *CrudResponseQuery) contextValidateList(ctx context.Context, formats str func (m *CrudResponseQuery) contextValidatePolicies(ctx context.Context, formats strfmt.Registry) error { if m.Policies != nil { + + if swag.IsZero(m.Policies) { // not required + return nil + } + if err := m.Policies.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policies") @@ -736,6 +781,11 @@ func (m *CrudResponseQuery) contextValidatePolicies(ctx context.Context, formats func (m *CrudResponseQuery) contextValidateProfiles(ctx context.Context, formats strfmt.Registry) error { if m.Profiles != nil { + + if swag.IsZero(m.Profiles) { // not required + return nil + } + if err := m.Profiles.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("profiles") @@ -754,6 +804,11 @@ func (m *CrudResponseQuery) contextValidateQueryStatistics(ctx context.Context, for i := 0; i < len(m.QueryStatistics); i++ { if m.QueryStatistics[i] != nil { + + if swag.IsZero(m.QueryStatistics[i]) { // not required + return nil + } + if err := m.QueryStatistics[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryStatistics" + "." + strconv.Itoa(i)) @@ -772,6 +827,11 @@ func (m *CrudResponseQuery) contextValidateQueryStatistics(ctx context.Context, func (m *CrudResponseQuery) contextValidateQueryToken(ctx context.Context, formats strfmt.Registry) error { if m.QueryToken != nil { + + if swag.IsZero(m.QueryToken) { // not required + return nil + } + if err := m.QueryToken.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("queryToken") @@ -788,6 +848,11 @@ func (m *CrudResponseQuery) contextValidateQueryToken(ctx context.Context, forma func (m *CrudResponseQuery) contextValidateRealms(ctx context.Context, formats strfmt.Registry) error { if m.Realms != nil { + + if swag.IsZero(m.Realms) { // not required + return nil + } + if err := m.Realms.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("realms") @@ -804,6 +869,11 @@ func (m *CrudResponseQuery) contextValidateRealms(ctx context.Context, formats s func (m *CrudResponseQuery) contextValidateRoles(ctx context.Context, formats strfmt.Registry) error { if m.Roles != nil { + + if swag.IsZero(m.Roles) { // not required + return nil + } + if err := m.Roles.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("roles") @@ -820,6 +890,11 @@ func (m *CrudResponseQuery) contextValidateRoles(ctx context.Context, formats st func (m *CrudResponseQuery) contextValidateUserSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.UserSummaryReport != nil { + + if swag.IsZero(m.UserSummaryReport) { // not required + return nil + } + if err := m.UserSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userSummaryReport") @@ -836,6 +911,11 @@ func (m *CrudResponseQuery) contextValidateUserSummaryReport(ctx context.Context func (m *CrudResponseQuery) contextValidateUserUsagePerEnterpriseList(ctx context.Context, formats strfmt.Registry) error { if m.UserUsagePerEnterpriseList != nil { + + if swag.IsZero(m.UserUsagePerEnterpriseList) { // not required + return nil + } + if err := m.UserUsagePerEnterpriseList.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userUsagePerEnterpriseList") @@ -852,6 +932,11 @@ func (m *CrudResponseQuery) contextValidateUserUsagePerEnterpriseList(ctx contex func (m *CrudResponseQuery) contextValidateUsers(ctx context.Context, formats strfmt.Registry) error { if m.Users != nil { + + if swag.IsZero(m.Users) { // not required + return nil + } + if err := m.Users.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("users") diff --git a/swagger_models/crud_response_read.go b/swagger_models/crud_response_read.go index 3b351d2..b4fd0cd 100644 --- a/swagger_models/crud_response_read.go +++ b/swagger_models/crud_response_read.go @@ -73,6 +73,11 @@ func (m *CrudResponseRead) ContextValidate(ctx context.Context, formats strfmt.R func (m *CrudResponseRead) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") diff --git a/swagger_models/crud_result_with_content.go b/swagger_models/crud_result_with_content.go index c3c23d3..de5cee8 100644 --- a/swagger_models/crud_result_with_content.go +++ b/swagger_models/crud_result_with_content.go @@ -133,6 +133,11 @@ func (m *CrudResultWithContent) ContextValidate(ctx context.Context, formats str func (m *CrudResultWithContent) contextValidateCode(ctx context.Context, formats strfmt.Registry) error { if m.Code != nil { + + if swag.IsZero(m.Code) { // not required + return nil + } + if err := m.Code.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("code") @@ -149,6 +154,11 @@ func (m *CrudResultWithContent) contextValidateCode(ctx context.Context, formats func (m *CrudResultWithContent) contextValidateContent(ctx context.Context, formats strfmt.Registry) error { if m.Content != nil { + + if swag.IsZero(m.Content) { // not required + return nil + } + if err := m.Content.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("content") @@ -165,6 +175,11 @@ func (m *CrudResultWithContent) contextValidateContent(ctx context.Context, form func (m *CrudResultWithContent) contextValidateIdentifier(ctx context.Context, formats strfmt.Registry) error { if m.Identifier != nil { + + if swag.IsZero(m.Identifier) { // not required + return nil + } + if err := m.Identifier.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("identifier") diff --git a/swagger_models/crud_statistics_container.go b/swagger_models/crud_statistics_container.go index c65a1d8..be865a1 100644 --- a/swagger_models/crud_statistics_container.go +++ b/swagger_models/crud_statistics_container.go @@ -103,6 +103,11 @@ func (m *CrudStatisticsContainer) ContextValidate(ctx context.Context, formats s func (m *CrudStatisticsContainer) contextValidateClazz(ctx context.Context, formats strfmt.Registry) error { if m.Clazz != nil { + + if swag.IsZero(m.Clazz) { // not required + return nil + } + if err := m.Clazz.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clazz") @@ -119,6 +124,11 @@ func (m *CrudStatisticsContainer) contextValidateClazz(ctx context.Context, form func (m *CrudStatisticsContainer) contextValidateUser(ctx context.Context, formats strfmt.Registry) error { if m.User != nil { + + if swag.IsZero(m.User) { // not required + return nil + } + if err := m.User.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("user") diff --git a/swagger_models/custom_config.go b/swagger_models/custom_config.go index 604fa85..c98ad64 100644 --- a/swagger_models/custom_config.go +++ b/swagger_models/custom_config.go @@ -101,6 +101,11 @@ func (m *CustomConfig) contextValidateVariableGroups(ctx context.Context, format for i := 0; i < len(m.VariableGroups); i++ { if m.VariableGroups[i] != nil { + + if swag.IsZero(m.VariableGroups[i]) { // not required + return nil + } + if err := m.VariableGroups[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("variableGroups" + "." + strconv.Itoa(i)) diff --git a/swagger_models/custom_config_variable_group.go b/swagger_models/custom_config_variable_group.go index d2b0044..9f05887 100644 --- a/swagger_models/custom_config_variable_group.go +++ b/swagger_models/custom_config_variable_group.go @@ -117,6 +117,11 @@ func (m *CustomConfigVariableGroup) ContextValidate(ctx context.Context, formats func (m *CustomConfigVariableGroup) contextValidateCondition(ctx context.Context, formats strfmt.Registry) error { if m.Condition != nil { + + if swag.IsZero(m.Condition) { // not required + return nil + } + if err := m.Condition.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("condition") @@ -135,6 +140,11 @@ func (m *CustomConfigVariableGroup) contextValidateVariables(ctx context.Context for i := 0; i < len(m.Variables); i++ { if m.Variables[i] != nil { + + if swag.IsZero(m.Variables[i]) { // not required + return nil + } + if err := m.Variables[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("variables" + "." + strconv.Itoa(i)) diff --git a/swagger_models/custom_update_model_fields.go b/swagger_models/custom_update_model_fields.go index 7aecfea..52a512e 100644 --- a/swagger_models/custom_update_model_fields.go +++ b/swagger_models/custom_update_model_fields.go @@ -73,6 +73,11 @@ func (m *CustomUpdateModelFields) ContextValidate(ctx context.Context, formats s func (m *CustomUpdateModelFields) contextValidateCustomModelAttributes(ctx context.Context, formats strfmt.Registry) error { if m.CustomModelAttributes != nil { + + if swag.IsZero(m.CustomModelAttributes) { // not required + return nil + } + if err := m.CustomModelAttributes.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customModelAttributes") diff --git a/swagger_models/d_p_s_service_detail.go b/swagger_models/d_p_s_service_detail.go index bf80f4a..ea2723b 100644 --- a/swagger_models/d_p_s_service_detail.go +++ b/swagger_models/d_p_s_service_detail.go @@ -103,6 +103,11 @@ func (m *DPSServiceDetail) ContextValidate(ctx context.Context, formats strfmt.R func (m *DPSServiceDetail) contextValidateEnrollment(ctx context.Context, formats strfmt.Registry) error { if m.Enrollment != nil { + + if swag.IsZero(m.Enrollment) { // not required + return nil + } + if err := m.Enrollment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("enrollment") @@ -119,6 +124,11 @@ func (m *DPSServiceDetail) contextValidateEnrollment(ctx context.Context, format func (m *DPSServiceDetail) contextValidateServiceDetail(ctx context.Context, formats strfmt.Registry) error { if m.ServiceDetail != nil { + + if swag.IsZero(m.ServiceDetail) { // not required + return nil + } + if err := m.ServiceDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("serviceDetail") diff --git a/swagger_models/datastore_filter.go b/swagger_models/datastore_filter.go index 4241271..f8a5948 100644 --- a/swagger_models/datastore_filter.go +++ b/swagger_models/datastore_filter.go @@ -104,6 +104,11 @@ func (m *DatastoreFilter) ContextValidate(ctx context.Context, formats strfmt.Re func (m *DatastoreFilter) contextValidateDsType(ctx context.Context, formats strfmt.Registry) error { if m.DsType != nil { + + if swag.IsZero(m.DsType) { // not required + return nil + } + if err := m.DsType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dsType") diff --git a/swagger_models/datastore_info.go b/swagger_models/datastore_info.go index 83e6757..aff93cd 100644 --- a/swagger_models/datastore_info.go +++ b/swagger_models/datastore_info.go @@ -417,6 +417,11 @@ func (m *DatastoreInfo) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *DatastoreInfo) contextValidateCertificateChain(ctx context.Context, formats strfmt.Registry) error { if m.CertificateChain != nil { + + if swag.IsZero(m.CertificateChain) { // not required + return nil + } + if err := m.CertificateChain.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("certificateChain") @@ -451,6 +456,11 @@ func (m *DatastoreInfo) contextValidateDsErr(ctx context.Context, formats strfmt func (m *DatastoreInfo) contextValidateDsStatus(ctx context.Context, formats strfmt.Registry) error { if m.DsStatus != nil { + + if swag.IsZero(m.DsStatus) { // not required + return nil + } + if err := m.DsStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dsStatus") @@ -467,6 +477,7 @@ func (m *DatastoreInfo) contextValidateDsStatus(ctx context.Context, formats str func (m *DatastoreInfo) contextValidateDsType(ctx context.Context, formats strfmt.Registry) error { if m.DsType != nil { + if err := m.DsType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dsType") @@ -497,6 +508,11 @@ func (m *DatastoreInfo) contextValidateID(ctx context.Context, formats strfmt.Re func (m *DatastoreInfo) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + + if swag.IsZero(m.OriginType) { // not required + return nil + } + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -513,6 +529,11 @@ func (m *DatastoreInfo) contextValidateOriginType(ctx context.Context, formats s func (m *DatastoreInfo) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -529,6 +550,11 @@ func (m *DatastoreInfo) contextValidateRevision(ctx context.Context, formats str func (m *DatastoreInfo) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { if m.Secret != nil { + + if swag.IsZero(m.Secret) { // not required + return nil + } + if err := m.Secret.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("secret") diff --git a/swagger_models/datastore_project_list.go b/swagger_models/datastore_project_list.go index 1ebe00e..ccd9354 100644 --- a/swagger_models/datastore_project_list.go +++ b/swagger_models/datastore_project_list.go @@ -114,6 +114,11 @@ func (m *DatastoreProjectList) ContextValidate(ctx context.Context, formats strf func (m *DatastoreProjectList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -132,6 +137,11 @@ func (m *DatastoreProjectList) contextValidateProjectDetails(ctx context.Context for i := 0; i < len(m.ProjectDetails); i++ { if m.ProjectDetails[i] != nil { + + if swag.IsZero(m.ProjectDetails[i]) { // not required + return nil + } + if err := m.ProjectDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("projectDetails" + "." + strconv.Itoa(i)) diff --git a/swagger_models/datastores.go b/swagger_models/datastores.go index e655b49..8879aa0 100644 --- a/swagger_models/datastores.go +++ b/swagger_models/datastores.go @@ -173,6 +173,11 @@ func (m *Datastores) contextValidateList(ctx context.Context, formats strfmt.Reg for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -191,6 +196,11 @@ func (m *Datastores) contextValidateList(ctx context.Context, formats strfmt.Reg func (m *Datastores) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -207,6 +217,11 @@ func (m *Datastores) contextValidateNext(ctx context.Context, formats strfmt.Reg func (m *Datastores) contextValidateSummaryByCategory(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByCategory != nil { + + if swag.IsZero(m.SummaryByCategory) { // not required + return nil + } + if err := m.SummaryByCategory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByCategory") @@ -223,6 +238,11 @@ func (m *Datastores) contextValidateSummaryByCategory(ctx context.Context, forma func (m *Datastores) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/deployment.go b/swagger_models/deployment.go index 6c84629..5f0f86d 100644 --- a/swagger_models/deployment.go +++ b/swagger_models/deployment.go @@ -296,6 +296,11 @@ func (m *Deployment) contextValidateAppInstPolicies(ctx context.Context, formats for i := 0; i < len(m.AppInstPolicies); i++ { if m.AppInstPolicies[i] != nil { + + if swag.IsZero(m.AppInstPolicies[i]) { // not required + return nil + } + if err := m.AppInstPolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appInstPolicies" + "." + strconv.Itoa(i)) @@ -314,6 +319,11 @@ func (m *Deployment) contextValidateAppInstPolicies(ctx context.Context, formats func (m *Deployment) contextValidateClusterPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ClusterPolicy != nil { + + if swag.IsZero(m.ClusterPolicy) { // not required + return nil + } + if err := m.ClusterPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterPolicy") @@ -332,6 +342,11 @@ func (m *Deployment) contextValidateDevicePolicies(ctx context.Context, formats for i := 0; i < len(m.DevicePolicies); i++ { if m.DevicePolicies[i] != nil { + + if swag.IsZero(m.DevicePolicies[i]) { // not required + return nil + } + if err := m.DevicePolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devicePolicies" + "." + strconv.Itoa(i)) @@ -350,6 +365,11 @@ func (m *Deployment) contextValidateDevicePolicies(ctx context.Context, formats func (m *Deployment) contextValidateIntegrationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.IntegrationPolicy != nil { + + if swag.IsZero(m.IntegrationPolicy) { // not required + return nil + } + if err := m.IntegrationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("integrationPolicy") @@ -368,6 +388,11 @@ func (m *Deployment) contextValidateNetworkInstPolicies(ctx context.Context, for for i := 0; i < len(m.NetworkInstPolicies); i++ { if m.NetworkInstPolicies[i] != nil { + + if swag.IsZero(m.NetworkInstPolicies[i]) { // not required + return nil + } + if err := m.NetworkInstPolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("networkInstPolicies" + "." + strconv.Itoa(i)) @@ -386,6 +411,11 @@ func (m *Deployment) contextValidateNetworkInstPolicies(ctx context.Context, for func (m *Deployment) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -404,6 +434,11 @@ func (m *Deployment) contextValidateVolumeInstPolicies(ctx context.Context, form for i := 0; i < len(m.VolumeInstPolicies); i++ { if m.VolumeInstPolicies[i] != nil { + + if swag.IsZero(m.VolumeInstPolicies[i]) { // not required + return nil + } + if err := m.VolumeInstPolicies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("volumeInstPolicies" + "." + strconv.Itoa(i)) diff --git a/swagger_models/description.go b/swagger_models/description.go index 3e2c253..a097e07 100644 --- a/swagger_models/description.go +++ b/swagger_models/description.go @@ -85,6 +85,11 @@ func (m *Description) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *Description) contextValidateDescCode(ctx context.Context, formats strfmt.Registry) error { if m.DescCode != nil { + + if swag.IsZero(m.DescCode) { // not required + return nil + } + if err := m.DescCode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("descCode") diff --git a/swagger_models/detailed_user.go b/swagger_models/detailed_user.go index 6fea734..2df6465 100644 --- a/swagger_models/detailed_user.go +++ b/swagger_models/detailed_user.go @@ -414,6 +414,11 @@ func (m *DetailedUser) contextValidateAllowedEnterprises(ctx context.Context, fo for i := 0; i < len(m.AllowedEnterprises); i++ { if m.AllowedEnterprises[i] != nil { + + if swag.IsZero(m.AllowedEnterprises[i]) { // not required + return nil + } + if err := m.AllowedEnterprises[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allowedEnterprises" + "." + strconv.Itoa(i)) @@ -432,6 +437,11 @@ func (m *DetailedUser) contextValidateAllowedEnterprises(ctx context.Context, fo func (m *DetailedUser) contextValidateEmailState(ctx context.Context, formats strfmt.Registry) error { if m.EmailState != nil { + + if swag.IsZero(m.EmailState) { // not required + return nil + } + if err := m.EmailState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("emailState") @@ -466,6 +476,11 @@ func (m *DetailedUser) contextValidateID(ctx context.Context, formats strfmt.Reg func (m *DetailedUser) contextValidatePhoneState(ctx context.Context, formats strfmt.Registry) error { if m.PhoneState != nil { + + if swag.IsZero(m.PhoneState) { // not required + return nil + } + if err := m.PhoneState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("phoneState") @@ -482,6 +497,11 @@ func (m *DetailedUser) contextValidatePhoneState(ctx context.Context, formats st func (m *DetailedUser) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -498,6 +518,11 @@ func (m *DetailedUser) contextValidateRevision(ctx context.Context, formats strf func (m *DetailedUser) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") @@ -514,6 +539,11 @@ func (m *DetailedUser) contextValidateState(ctx context.Context, formats strfmt. func (m *DetailedUser) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/detailed_users.go b/swagger_models/detailed_users.go index f18481b..829bb9f 100644 --- a/swagger_models/detailed_users.go +++ b/swagger_models/detailed_users.go @@ -203,6 +203,11 @@ func (m *DetailedUsers) contextValidateList(ctx context.Context, formats strfmt. for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -221,6 +226,11 @@ func (m *DetailedUsers) contextValidateList(ctx context.Context, formats strfmt. func (m *DetailedUsers) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -237,6 +247,11 @@ func (m *DetailedUsers) contextValidateNext(ctx context.Context, formats strfmt. func (m *DetailedUsers) contextValidateSummaryByRoleDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByRoleDistribution != nil { + + if swag.IsZero(m.SummaryByRoleDistribution) { // not required + return nil + } + if err := m.SummaryByRoleDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByRoleDistribution") @@ -253,6 +268,11 @@ func (m *DetailedUsers) contextValidateSummaryByRoleDistribution(ctx context.Con func (m *DetailedUsers) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -269,6 +289,11 @@ func (m *DetailedUsers) contextValidateSummaryByState(ctx context.Context, forma func (m *DetailedUsers) contextValidateSummaryByUserActivity(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByUserActivity != nil { + + if swag.IsZero(m.SummaryByUserActivity) { // not required + return nil + } + if err := m.SummaryByUserActivity.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByUserActivity") diff --git a/swagger_models/details.go b/swagger_models/details.go index b1e8c59..5bd290b 100644 --- a/swagger_models/details.go +++ b/swagger_models/details.go @@ -116,6 +116,7 @@ func (m *Details) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *Details) contextValidateAppCategory(ctx context.Context, formats strfmt.Registry) error { if m.AppCategory != nil { + if err := m.AppCategory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appCategory") diff --git a/swagger_models/dev_data_sec_at_rest.go b/swagger_models/dev_data_sec_at_rest.go index 4a3a8a2..df273ef 100644 --- a/swagger_models/dev_data_sec_at_rest.go +++ b/swagger_models/dev_data_sec_at_rest.go @@ -106,6 +106,11 @@ func (m *DevDataSecAtRest) ContextValidate(ctx context.Context, formats strfmt.R func (m *DevDataSecAtRest) contextValidateErrInfo(ctx context.Context, formats strfmt.Registry) error { if m.ErrInfo != nil { + + if swag.IsZero(m.ErrInfo) { // not required + return nil + } + if err := m.ErrInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo") @@ -122,6 +127,11 @@ func (m *DevDataSecAtRest) contextValidateErrInfo(ctx context.Context, formats s func (m *DevDataSecAtRest) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/swagger_models/device_attestation_policy.go b/swagger_models/device_attestation_policy.go index 51a6966..f0fa9c9 100644 --- a/swagger_models/device_attestation_policy.go +++ b/swagger_models/device_attestation_policy.go @@ -82,6 +82,7 @@ func (m *DeviceAttestationPolicy) ContextValidate(ctx context.Context, formats s func (m *DeviceAttestationPolicy) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/device_config.go b/swagger_models/device_config.go index 744d6c8..d249b99 100644 --- a/swagger_models/device_config.go +++ b/swagger_models/device_config.go @@ -618,6 +618,11 @@ func (m *DeviceConfig) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DeviceConfig) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -636,6 +641,11 @@ func (m *DeviceConfig) contextValidateBaseImage(ctx context.Context, formats str for i := 0; i < len(m.BaseImage); i++ { if m.BaseImage[i] != nil { + + if swag.IsZero(m.BaseImage[i]) { // not required + return nil + } + if err := m.BaseImage[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("baseImage" + "." + strconv.Itoa(i)) @@ -656,6 +666,11 @@ func (m *DeviceConfig) contextValidateConfigItem(ctx context.Context, formats st for i := 0; i < len(m.ConfigItem); i++ { if m.ConfigItem[i] != nil { + + if swag.IsZero(m.ConfigItem[i]) { // not required + return nil + } + if err := m.ConfigItem[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configItem" + "." + strconv.Itoa(i)) @@ -674,6 +689,11 @@ func (m *DeviceConfig) contextValidateConfigItem(ctx context.Context, formats st func (m *DeviceConfig) contextValidateDebugKnob(ctx context.Context, formats strfmt.Registry) error { if m.DebugKnob != nil { + + if swag.IsZero(m.DebugKnob) { // not required + return nil + } + if err := m.DebugKnob.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("debugKnob") @@ -690,6 +710,11 @@ func (m *DeviceConfig) contextValidateDebugKnob(ctx context.Context, formats str func (m *DeviceConfig) contextValidateDefaultNetInst(ctx context.Context, formats strfmt.Registry) error { if m.DefaultNetInst != nil { + + if swag.IsZero(m.DefaultNetInst) { // not required + return nil + } + if err := m.DefaultNetInst.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("defaultNetInst") @@ -706,6 +731,11 @@ func (m *DeviceConfig) contextValidateDefaultNetInst(ctx context.Context, format func (m *DeviceConfig) contextValidateDevLocation(ctx context.Context, formats strfmt.Registry) error { if m.DevLocation != nil { + + if swag.IsZero(m.DevLocation) { // not required + return nil + } + if err := m.DevLocation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devLocation") @@ -722,6 +752,11 @@ func (m *DeviceConfig) contextValidateDevLocation(ctx context.Context, formats s func (m *DeviceConfig) contextValidateDlisp(ctx context.Context, formats strfmt.Registry) error { if m.Dlisp != nil { + + if swag.IsZero(m.Dlisp) { // not required + return nil + } + if err := m.Dlisp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dlisp") @@ -738,6 +773,11 @@ func (m *DeviceConfig) contextValidateDlisp(ctx context.Context, formats strfmt. func (m *DeviceConfig) contextValidateEdgeviewconfig(ctx context.Context, formats strfmt.Registry) error { if m.Edgeviewconfig != nil { + + if swag.IsZero(m.Edgeviewconfig) { // not required + return nil + } + if err := m.Edgeviewconfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeviewconfig") @@ -765,6 +805,11 @@ func (m *DeviceConfig) contextValidateInterfaces(ctx context.Context, formats st for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -783,6 +828,11 @@ func (m *DeviceConfig) contextValidateInterfaces(ctx context.Context, formats st func (m *DeviceConfig) contextValidateOnboarding(ctx context.Context, formats strfmt.Registry) error { if m.Onboarding != nil { + + if swag.IsZero(m.Onboarding) { // not required + return nil + } + if err := m.Onboarding.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("onboarding") @@ -799,6 +849,11 @@ func (m *DeviceConfig) contextValidateOnboarding(ctx context.Context, formats st func (m *DeviceConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -815,6 +870,11 @@ func (m *DeviceConfig) contextValidateRevision(ctx context.Context, formats strf func (m *DeviceConfig) contextValidateUtype(ctx context.Context, formats strfmt.Registry) error { if m.Utype != nil { + + if swag.IsZero(m.Utype) { // not required + return nil + } + if err := m.Utype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("utype") diff --git a/swagger_models/device_config_list.go b/swagger_models/device_config_list.go index 14989c3..ae57098 100644 --- a/swagger_models/device_config_list.go +++ b/swagger_models/device_config_list.go @@ -182,6 +182,11 @@ func (m *DeviceConfigList) contextValidateList(ctx context.Context, formats strf for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -200,6 +205,7 @@ func (m *DeviceConfigList) contextValidateList(ctx context.Context, formats strf func (m *DeviceConfigList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -216,6 +222,7 @@ func (m *DeviceConfigList) contextValidateNext(ctx context.Context, formats strf func (m *DeviceConfigList) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -232,6 +239,11 @@ func (m *DeviceConfigList) contextValidateSummaryByState(ctx context.Context, fo func (m *DeviceConfigList) contextValidateSummaryByTagDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByTagDistribution != nil { + + if swag.IsZero(m.SummaryByTagDistribution) { // not required + return nil + } + if err := m.SummaryByTagDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByTagDistribution") diff --git a/swagger_models/device_config_summary.go b/swagger_models/device_config_summary.go index c67c70f..0999639 100644 --- a/swagger_models/device_config_summary.go +++ b/swagger_models/device_config_summary.go @@ -343,6 +343,11 @@ func (m *DeviceConfigSummary) ContextValidate(ctx context.Context, formats strfm func (m *DeviceConfigSummary) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -361,6 +366,11 @@ func (m *DeviceConfigSummary) contextValidateBaseImage(ctx context.Context, form for i := 0; i < len(m.BaseImage); i++ { if m.BaseImage[i] != nil { + + if swag.IsZero(m.BaseImage[i]) { // not required + return nil + } + if err := m.BaseImage[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("baseImage" + "." + strconv.Itoa(i)) @@ -379,6 +389,11 @@ func (m *DeviceConfigSummary) contextValidateBaseImage(ctx context.Context, form func (m *DeviceConfigSummary) contextValidateDebugKnob(ctx context.Context, formats strfmt.Registry) error { if m.DebugKnob != nil { + + if swag.IsZero(m.DebugKnob) { // not required + return nil + } + if err := m.DebugKnob.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("debugKnob") @@ -406,6 +421,11 @@ func (m *DeviceConfigSummary) contextValidateInterfaces(ctx context.Context, for for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -424,6 +444,11 @@ func (m *DeviceConfigSummary) contextValidateInterfaces(ctx context.Context, for func (m *DeviceConfigSummary) contextValidateUtype(ctx context.Context, formats strfmt.Registry) error { if m.Utype != nil { + + if swag.IsZero(m.Utype) { // not required + return nil + } + if err := m.Utype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("utype") diff --git a/swagger_models/device_entitlement.go b/swagger_models/device_entitlement.go index b495448..5360a46 100644 --- a/swagger_models/device_entitlement.go +++ b/swagger_models/device_entitlement.go @@ -79,6 +79,11 @@ func (m *DeviceEntitlement) ContextValidate(ctx context.Context, formats strfmt. func (m *DeviceEntitlement) contextValidateSize(ctx context.Context, formats strfmt.Registry) error { if m.Size != nil { + + if swag.IsZero(m.Size) { // not required + return nil + } + if err := m.Size.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("size") diff --git a/swagger_models/device_entity.go b/swagger_models/device_entity.go index 164bc0a..2f3c1a1 100644 --- a/swagger_models/device_entity.go +++ b/swagger_models/device_entity.go @@ -79,6 +79,11 @@ func (m *DeviceEntity) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DeviceEntity) contextValidateEntity(ctx context.Context, formats strfmt.Registry) error { if m.Entity != nil { + + if swag.IsZero(m.Entity) { // not required + return nil + } + if err := m.Entity.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("entity") diff --git a/swagger_models/device_error.go b/swagger_models/device_error.go index 7ef3f3c..2ca7ee3 100644 --- a/swagger_models/device_error.go +++ b/swagger_models/device_error.go @@ -161,6 +161,11 @@ func (m *DeviceError) contextValidateEntities(ctx context.Context, formats strfm for i := 0; i < len(m.Entities); i++ { if m.Entities[i] != nil { + + if swag.IsZero(m.Entities[i]) { // not required + return nil + } + if err := m.Entities[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("entities" + "." + strconv.Itoa(i)) @@ -179,6 +184,7 @@ func (m *DeviceError) contextValidateEntities(ctx context.Context, formats strfm func (m *DeviceError) contextValidateSeverity(ctx context.Context, formats strfmt.Registry) error { if m.Severity != nil { + if err := m.Severity.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("severity") diff --git a/swagger_models/device_filter.go b/swagger_models/device_filter.go index 398504d..50075d3 100644 --- a/swagger_models/device_filter.go +++ b/swagger_models/device_filter.go @@ -113,6 +113,11 @@ func (m *DeviceFilter) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DeviceFilter) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") diff --git a/swagger_models/device_info_msg.go b/swagger_models/device_info_msg.go index 9bfd031..f64dd95 100644 --- a/swagger_models/device_info_msg.go +++ b/swagger_models/device_info_msg.go @@ -966,6 +966,11 @@ func (m *DeviceInfoMsg) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *DeviceInfoMsg) contextValidateCPU(ctx context.Context, formats strfmt.Registry) error { if m.CPU != nil { + + if swag.IsZero(m.CPU) { // not required + return nil + } + if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Cpu") @@ -982,6 +987,11 @@ func (m *DeviceInfoMsg) contextValidateCPU(ctx context.Context, formats strfmt.R func (m *DeviceInfoMsg) contextValidateMemory(ctx context.Context, formats strfmt.Registry) error { if m.Memory != nil { + + if swag.IsZero(m.Memory) { // not required + return nil + } + if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Memory") @@ -998,6 +1008,11 @@ func (m *DeviceInfoMsg) contextValidateMemory(ctx context.Context, formats strfm func (m *DeviceInfoMsg) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -1014,6 +1029,11 @@ func (m *DeviceInfoMsg) contextValidateStorage(ctx context.Context, formats strf func (m *DeviceInfoMsg) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -1030,6 +1050,11 @@ func (m *DeviceInfoMsg) contextValidateAdminState(ctx context.Context, formats s func (m *DeviceInfoMsg) contextValidateAttestState(ctx context.Context, formats strfmt.Registry) error { if m.AttestState != nil { + + if swag.IsZero(m.AttestState) { // not required + return nil + } + if err := m.AttestState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestState") @@ -1048,6 +1073,11 @@ func (m *DeviceInfoMsg) contextValidateBlobList(ctx context.Context, formats str for i := 0; i < len(m.BlobList); i++ { if m.BlobList[i] != nil { + + if swag.IsZero(m.BlobList[i]) { // not required + return nil + } + if err := m.BlobList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blobList" + "." + strconv.Itoa(i)) @@ -1066,6 +1096,11 @@ func (m *DeviceInfoMsg) contextValidateBlobList(ctx context.Context, formats str func (m *DeviceInfoMsg) contextValidateCapabilities(ctx context.Context, formats strfmt.Registry) error { if m.Capabilities != nil { + + if swag.IsZero(m.Capabilities) { // not required + return nil + } + if err := m.Capabilities.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capabilities") @@ -1084,6 +1119,11 @@ func (m *DeviceInfoMsg) contextValidateDataSecInfo(ctx context.Context, formats for i := 0; i < len(m.DataSecInfo); i++ { if m.DataSecInfo[i] != nil { + + if swag.IsZero(m.DataSecInfo[i]) { // not required + return nil + } + if err := m.DataSecInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dataSecInfo" + "." + strconv.Itoa(i)) @@ -1104,6 +1144,11 @@ func (m *DeviceInfoMsg) contextValidateDevError(ctx context.Context, formats str for i := 0; i < len(m.DevError); i++ { if m.DevError[i] != nil { + + if swag.IsZero(m.DevError[i]) { // not required + return nil + } + if err := m.DevError[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devError" + "." + strconv.Itoa(i)) @@ -1122,6 +1167,11 @@ func (m *DeviceInfoMsg) contextValidateDevError(ctx context.Context, formats str func (m *DeviceInfoMsg) contextValidateDeviceRebootReason(ctx context.Context, formats strfmt.Registry) error { if m.DeviceRebootReason != nil { + + if swag.IsZero(m.DeviceRebootReason) { // not required + return nil + } + if err := m.DeviceRebootReason.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceRebootReason") @@ -1138,6 +1188,11 @@ func (m *DeviceInfoMsg) contextValidateDeviceRebootReason(ctx context.Context, f func (m *DeviceInfoMsg) contextValidateDinfo(ctx context.Context, formats strfmt.Registry) error { if m.Dinfo != nil { + + if swag.IsZero(m.Dinfo) { // not required + return nil + } + if err := m.Dinfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dinfo") @@ -1154,6 +1209,11 @@ func (m *DeviceInfoMsg) contextValidateDinfo(ctx context.Context, formats strfmt func (m *DeviceInfoMsg) contextValidateDNS(ctx context.Context, formats strfmt.Registry) error { if m.DNS != nil { + + if swag.IsZero(m.DNS) { // not required + return nil + } + if err := m.DNS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dns") @@ -1172,6 +1232,11 @@ func (m *DeviceInfoMsg) contextValidateIoStatusList(ctx context.Context, formats for i := 0; i < len(m.IoStatusList); i++ { if m.IoStatusList[i] != nil { + + if swag.IsZero(m.IoStatusList[i]) { // not required + return nil + } + if err := m.IoStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ioStatusList" + "." + strconv.Itoa(i)) @@ -1190,6 +1255,11 @@ func (m *DeviceInfoMsg) contextValidateIoStatusList(ctx context.Context, formats func (m *DeviceInfoMsg) contextValidateMemorySummary(ctx context.Context, formats strfmt.Registry) error { if m.MemorySummary != nil { + + if swag.IsZero(m.MemorySummary) { // not required + return nil + } + if err := m.MemorySummary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memorySummary") @@ -1206,6 +1276,11 @@ func (m *DeviceInfoMsg) contextValidateMemorySummary(ctx context.Context, format func (m *DeviceInfoMsg) contextValidateMinfo(ctx context.Context, formats strfmt.Registry) error { if m.Minfo != nil { + + if swag.IsZero(m.Minfo) { // not required + return nil + } + if err := m.Minfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("minfo") @@ -1224,6 +1299,11 @@ func (m *DeviceInfoMsg) contextValidateNetCounterList(ctx context.Context, forma for i := 0; i < len(m.NetCounterList); i++ { if m.NetCounterList[i] != nil { + + if swag.IsZero(m.NetCounterList[i]) { // not required + return nil + } + if err := m.NetCounterList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netCounterList" + "." + strconv.Itoa(i)) @@ -1244,6 +1324,11 @@ func (m *DeviceInfoMsg) contextValidateNetStatusList(ctx context.Context, format for i := 0; i < len(m.NetStatusList); i++ { if m.NetStatusList[i] != nil { + + if swag.IsZero(m.NetStatusList[i]) { // not required + return nil + } + if err := m.NetStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netStatusList" + "." + strconv.Itoa(i)) @@ -1264,6 +1349,11 @@ func (m *DeviceInfoMsg) contextValidatePhysicalStorage(ctx context.Context, form for i := 0; i < len(m.PhysicalStorage); i++ { if m.PhysicalStorage[i] != nil { + + if swag.IsZero(m.PhysicalStorage[i]) { // not required + return nil + } + if err := m.PhysicalStorage[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("physicalStorage" + "." + strconv.Itoa(i)) @@ -1282,6 +1372,11 @@ func (m *DeviceInfoMsg) contextValidatePhysicalStorage(ctx context.Context, form func (m *DeviceInfoMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -1300,6 +1395,11 @@ func (m *DeviceInfoMsg) contextValidateStorageList(ctx context.Context, formats for i := 0; i < len(m.StorageList); i++ { if m.StorageList[i] != nil { + + if swag.IsZero(m.StorageList[i]) { // not required + return nil + } + if err := m.StorageList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("storageList" + "." + strconv.Itoa(i)) @@ -1320,6 +1420,11 @@ func (m *DeviceInfoMsg) contextValidateSwInfo(ctx context.Context, formats strfm for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) @@ -1340,6 +1445,11 @@ func (m *DeviceInfoMsg) contextValidateZcCounters(ctx context.Context, formats s for i := 0; i < len(m.ZcCounters); i++ { if m.ZcCounters[i] != nil { + + if swag.IsZero(m.ZcCounters[i]) { // not required + return nil + } + if err := m.ZcCounters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zcCounters" + "." + strconv.Itoa(i)) @@ -1358,6 +1468,11 @@ func (m *DeviceInfoMsg) contextValidateZcCounters(ctx context.Context, formats s func (m *DeviceInfoMsg) contextValidateZpoolMetrics(ctx context.Context, formats strfmt.Registry) error { if m.ZpoolMetrics != nil { + + if swag.IsZero(m.ZpoolMetrics) { // not required + return nil + } + if err := m.ZpoolMetrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zpoolMetrics") diff --git a/swagger_models/device_lisp.go b/swagger_models/device_lisp.go index 1ed909c..be851da 100644 --- a/swagger_models/device_lisp.go +++ b/swagger_models/device_lisp.go @@ -247,6 +247,11 @@ func (m *DeviceLisp) contextValidateLispMapServers(ctx context.Context, formats for i := 0; i < len(m.LispMapServers); i++ { if m.LispMapServers[i] != nil { + + if swag.IsZero(m.LispMapServers[i]) { // not required + return nil + } + if err := m.LispMapServers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lispMapServers" + "." + strconv.Itoa(i)) @@ -267,6 +272,11 @@ func (m *DeviceLisp) contextValidateZedServers(ctx context.Context, formats strf for i := 0; i < len(m.ZedServers); i++ { if m.ZedServers[i] != nil { + + if swag.IsZero(m.ZedServers[i]) { // not required + return nil + } + if err := m.ZedServers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zedServers" + "." + strconv.Itoa(i)) diff --git a/swagger_models/device_locations.go b/swagger_models/device_locations.go index d26c530..1301f64 100644 --- a/swagger_models/device_locations.go +++ b/swagger_models/device_locations.go @@ -113,6 +113,11 @@ func (m *DeviceLocations) contextValidateDeviceLocations(ctx context.Context, fo for i := 0; i < len(m.DeviceLocations); i++ { if m.DeviceLocations[i] != nil { + + if swag.IsZero(m.DeviceLocations[i]) { // not required + return nil + } + if err := m.DeviceLocations[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceLocations" + "." + strconv.Itoa(i)) @@ -131,6 +136,11 @@ func (m *DeviceLocations) contextValidateDeviceLocations(ctx context.Context, fo func (m *DeviceLocations) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") diff --git a/swagger_models/device_policy.go b/swagger_models/device_policy.go index 58233f7..08e94f7 100644 --- a/swagger_models/device_policy.go +++ b/swagger_models/device_policy.go @@ -133,6 +133,11 @@ func (m *DevicePolicy) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DevicePolicy) contextValidateAttestationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AttestationPolicy != nil { + + if swag.IsZero(m.AttestationPolicy) { // not required + return nil + } + if err := m.AttestationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestationPolicy") @@ -149,6 +154,11 @@ func (m *DevicePolicy) contextValidateAttestationPolicy(ctx context.Context, for func (m *DevicePolicy) contextValidateMetaData(ctx context.Context, formats strfmt.Registry) error { if m.MetaData != nil { + + if swag.IsZero(m.MetaData) { // not required + return nil + } + if err := m.MetaData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metaData") @@ -165,6 +175,11 @@ func (m *DevicePolicy) contextValidateMetaData(ctx context.Context, formats strf func (m *DevicePolicy) contextValidatePolicySubType(ctx context.Context, formats strfmt.Registry) error { if m.PolicySubType != nil { + + if swag.IsZero(m.PolicySubType) { // not required + return nil + } + if err := m.PolicySubType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policySubType") diff --git a/swagger_models/device_report.go b/swagger_models/device_report.go index 649a48b..7b591b9 100644 --- a/swagger_models/device_report.go +++ b/swagger_models/device_report.go @@ -99,6 +99,11 @@ func (m *DeviceReport) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DeviceReport) contextValidateDeviceSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.DeviceSummaryReport != nil { + + if swag.IsZero(m.DeviceSummaryReport) { // not required + return nil + } + if err := m.DeviceSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceSummaryReport") diff --git a/swagger_models/device_s_w_info.go b/swagger_models/device_s_w_info.go index 34bfd30..0ee05cc 100644 --- a/swagger_models/device_s_w_info.go +++ b/swagger_models/device_s_w_info.go @@ -190,6 +190,11 @@ func (m *DeviceSWInfo) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *DeviceSWInfo) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -206,6 +211,11 @@ func (m *DeviceSWInfo) contextValidateStatus(ctx context.Context, formats strfmt func (m *DeviceSWInfo) contextValidateSwError(ctx context.Context, formats strfmt.Registry) error { if m.SwError != nil { + + if swag.IsZero(m.SwError) { // not required + return nil + } + if err := m.SwError.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swError") @@ -222,6 +232,11 @@ func (m *DeviceSWInfo) contextValidateSwError(ctx context.Context, formats strfm func (m *DeviceSWInfo) contextValidateSwStatus(ctx context.Context, formats strfmt.Registry) error { if m.SwStatus != nil { + + if swag.IsZero(m.SwStatus) { // not required + return nil + } + if err := m.SwStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swStatus") @@ -238,6 +253,11 @@ func (m *DeviceSWInfo) contextValidateSwStatus(ctx context.Context, formats strf func (m *DeviceSWInfo) contextValidateSwSubStatus(ctx context.Context, formats strfmt.Registry) error { if m.SwSubStatus != nil { + + if swag.IsZero(m.SwSubStatus) { // not required + return nil + } + if err := m.SwSubStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swSubStatus") diff --git a/swagger_models/device_status_config.go b/swagger_models/device_status_config.go index 6908b75..765c8a7 100644 --- a/swagger_models/device_status_config.go +++ b/swagger_models/device_status_config.go @@ -256,6 +256,11 @@ func (m *DeviceStatusConfig) ContextValidate(ctx context.Context, formats strfmt func (m *DeviceStatusConfig) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -272,6 +277,11 @@ func (m *DeviceStatusConfig) contextValidateAdminState(ctx context.Context, form func (m *DeviceStatusConfig) contextValidateDinfo(ctx context.Context, formats strfmt.Registry) error { if m.Dinfo != nil { + + if swag.IsZero(m.Dinfo) { // not required + return nil + } + if err := m.Dinfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dinfo") @@ -297,6 +307,11 @@ func (m *DeviceStatusConfig) contextValidateID(ctx context.Context, formats strf func (m *DeviceStatusConfig) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -315,6 +330,11 @@ func (m *DeviceStatusConfig) contextValidateSwInfo(ctx context.Context, formats for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) diff --git a/swagger_models/device_status_config_list.go b/swagger_models/device_status_config_list.go index 2f78512..f4d0d72 100644 --- a/swagger_models/device_status_config_list.go +++ b/swagger_models/device_status_config_list.go @@ -234,6 +234,11 @@ func (m *DeviceStatusConfigList) contextValidateList(ctx context.Context, format for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -252,6 +257,11 @@ func (m *DeviceStatusConfigList) contextValidateList(ctx context.Context, format func (m *DeviceStatusConfigList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -268,6 +278,7 @@ func (m *DeviceStatusConfigList) contextValidateNext(ctx context.Context, format func (m *DeviceStatusConfigList) contextValidateSummaryByAppInstanceCount(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppInstanceCount != nil { + if err := m.SummaryByAppInstanceCount.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppInstanceCount") @@ -284,6 +295,7 @@ func (m *DeviceStatusConfigList) contextValidateSummaryByAppInstanceCount(ctx co func (m *DeviceStatusConfigList) contextValidateSummaryByEVEDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByEVEDistribution != nil { + if err := m.SummaryByEVEDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByEVEDistribution") @@ -300,6 +312,7 @@ func (m *DeviceStatusConfigList) contextValidateSummaryByEVEDistribution(ctx con func (m *DeviceStatusConfigList) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/device_status_filter.go b/swagger_models/device_status_filter.go index cd497ee..2edc578 100644 --- a/swagger_models/device_status_filter.go +++ b/swagger_models/device_status_filter.go @@ -118,6 +118,11 @@ func (m *DeviceStatusFilter) ContextValidate(ctx context.Context, formats strfmt func (m *DeviceStatusFilter) contextValidateLoad(ctx context.Context, formats strfmt.Registry) error { if m.Load != nil { + + if swag.IsZero(m.Load) { // not required + return nil + } + if err := m.Load.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("load") @@ -134,6 +139,11 @@ func (m *DeviceStatusFilter) contextValidateLoad(ctx context.Context, formats st func (m *DeviceStatusFilter) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") diff --git a/swagger_models/device_status_list_msg.go b/swagger_models/device_status_list_msg.go index 2c0411b..bebb87a 100644 --- a/swagger_models/device_status_list_msg.go +++ b/swagger_models/device_status_list_msg.go @@ -209,6 +209,11 @@ func (m *DeviceStatusListMsg) contextValidateList(ctx context.Context, formats s for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -227,6 +232,11 @@ func (m *DeviceStatusListMsg) contextValidateList(ctx context.Context, formats s func (m *DeviceStatusListMsg) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -243,6 +253,11 @@ func (m *DeviceStatusListMsg) contextValidateNext(ctx context.Context, formats s func (m *DeviceStatusListMsg) contextValidateSummaryByAppInstanceCount(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAppInstanceCount != nil { + + if swag.IsZero(m.SummaryByAppInstanceCount) { // not required + return nil + } + if err := m.SummaryByAppInstanceCount.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAppInstanceCount") @@ -259,6 +274,11 @@ func (m *DeviceStatusListMsg) contextValidateSummaryByAppInstanceCount(ctx conte func (m *DeviceStatusListMsg) contextValidateSummaryByEVEDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByEVEDistribution != nil { + + if swag.IsZero(m.SummaryByEVEDistribution) { // not required + return nil + } + if err := m.SummaryByEVEDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByEVEDistribution") @@ -275,6 +295,11 @@ func (m *DeviceStatusListMsg) contextValidateSummaryByEVEDistribution(ctx contex func (m *DeviceStatusListMsg) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/device_status_msg.go b/swagger_models/device_status_msg.go index c6d45e0..da23019 100644 --- a/swagger_models/device_status_msg.go +++ b/swagger_models/device_status_msg.go @@ -909,6 +909,11 @@ func (m *DeviceStatusMsg) ContextValidate(ctx context.Context, formats strfmt.Re func (m *DeviceStatusMsg) contextValidateCPU(ctx context.Context, formats strfmt.Registry) error { if m.CPU != nil { + + if swag.IsZero(m.CPU) { // not required + return nil + } + if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Cpu") @@ -925,6 +930,11 @@ func (m *DeviceStatusMsg) contextValidateCPU(ctx context.Context, formats strfmt func (m *DeviceStatusMsg) contextValidateMemory(ctx context.Context, formats strfmt.Registry) error { if m.Memory != nil { + + if swag.IsZero(m.Memory) { // not required + return nil + } + if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Memory") @@ -941,6 +951,11 @@ func (m *DeviceStatusMsg) contextValidateMemory(ctx context.Context, formats str func (m *DeviceStatusMsg) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -957,6 +972,11 @@ func (m *DeviceStatusMsg) contextValidateStorage(ctx context.Context, formats st func (m *DeviceStatusMsg) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -973,6 +993,11 @@ func (m *DeviceStatusMsg) contextValidateAdminState(ctx context.Context, formats func (m *DeviceStatusMsg) contextValidateAttestState(ctx context.Context, formats strfmt.Registry) error { if m.AttestState != nil { + + if swag.IsZero(m.AttestState) { // not required + return nil + } + if err := m.AttestState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestState") @@ -991,6 +1016,11 @@ func (m *DeviceStatusMsg) contextValidateBlobList(ctx context.Context, formats s for i := 0; i < len(m.BlobList); i++ { if m.BlobList[i] != nil { + + if swag.IsZero(m.BlobList[i]) { // not required + return nil + } + if err := m.BlobList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blobList" + "." + strconv.Itoa(i)) @@ -1009,6 +1039,11 @@ func (m *DeviceStatusMsg) contextValidateBlobList(ctx context.Context, formats s func (m *DeviceStatusMsg) contextValidateCapabilities(ctx context.Context, formats strfmt.Registry) error { if m.Capabilities != nil { + + if swag.IsZero(m.Capabilities) { // not required + return nil + } + if err := m.Capabilities.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("capabilities") @@ -1027,6 +1062,11 @@ func (m *DeviceStatusMsg) contextValidateDataSecInfo(ctx context.Context, format for i := 0; i < len(m.DataSecInfo); i++ { if m.DataSecInfo[i] != nil { + + if swag.IsZero(m.DataSecInfo[i]) { // not required + return nil + } + if err := m.DataSecInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dataSecInfo" + "." + strconv.Itoa(i)) @@ -1047,6 +1087,11 @@ func (m *DeviceStatusMsg) contextValidateDevError(ctx context.Context, formats s for i := 0; i < len(m.DevError); i++ { if m.DevError[i] != nil { + + if swag.IsZero(m.DevError[i]) { // not required + return nil + } + if err := m.DevError[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devError" + "." + strconv.Itoa(i)) @@ -1065,6 +1110,11 @@ func (m *DeviceStatusMsg) contextValidateDevError(ctx context.Context, formats s func (m *DeviceStatusMsg) contextValidateDeviceRebootReason(ctx context.Context, formats strfmt.Registry) error { if m.DeviceRebootReason != nil { + + if swag.IsZero(m.DeviceRebootReason) { // not required + return nil + } + if err := m.DeviceRebootReason.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceRebootReason") @@ -1081,6 +1131,11 @@ func (m *DeviceStatusMsg) contextValidateDeviceRebootReason(ctx context.Context, func (m *DeviceStatusMsg) contextValidateDinfo(ctx context.Context, formats strfmt.Registry) error { if m.Dinfo != nil { + + if swag.IsZero(m.Dinfo) { // not required + return nil + } + if err := m.Dinfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dinfo") @@ -1097,6 +1152,11 @@ func (m *DeviceStatusMsg) contextValidateDinfo(ctx context.Context, formats strf func (m *DeviceStatusMsg) contextValidateDNS(ctx context.Context, formats strfmt.Registry) error { if m.DNS != nil { + + if swag.IsZero(m.DNS) { // not required + return nil + } + if err := m.DNS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dns") @@ -1115,6 +1175,11 @@ func (m *DeviceStatusMsg) contextValidateIoStatusList(ctx context.Context, forma for i := 0; i < len(m.IoStatusList); i++ { if m.IoStatusList[i] != nil { + + if swag.IsZero(m.IoStatusList[i]) { // not required + return nil + } + if err := m.IoStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ioStatusList" + "." + strconv.Itoa(i)) @@ -1133,6 +1198,11 @@ func (m *DeviceStatusMsg) contextValidateIoStatusList(ctx context.Context, forma func (m *DeviceStatusMsg) contextValidateMemorySummary(ctx context.Context, formats strfmt.Registry) error { if m.MemorySummary != nil { + + if swag.IsZero(m.MemorySummary) { // not required + return nil + } + if err := m.MemorySummary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memorySummary") @@ -1149,6 +1219,11 @@ func (m *DeviceStatusMsg) contextValidateMemorySummary(ctx context.Context, form func (m *DeviceStatusMsg) contextValidateMinfo(ctx context.Context, formats strfmt.Registry) error { if m.Minfo != nil { + + if swag.IsZero(m.Minfo) { // not required + return nil + } + if err := m.Minfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("minfo") @@ -1167,6 +1242,11 @@ func (m *DeviceStatusMsg) contextValidateNetCounterList(ctx context.Context, for for i := 0; i < len(m.NetCounterList); i++ { if m.NetCounterList[i] != nil { + + if swag.IsZero(m.NetCounterList[i]) { // not required + return nil + } + if err := m.NetCounterList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netCounterList" + "." + strconv.Itoa(i)) @@ -1187,6 +1267,11 @@ func (m *DeviceStatusMsg) contextValidateNetStatusList(ctx context.Context, form for i := 0; i < len(m.NetStatusList); i++ { if m.NetStatusList[i] != nil { + + if swag.IsZero(m.NetStatusList[i]) { // not required + return nil + } + if err := m.NetStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netStatusList" + "." + strconv.Itoa(i)) @@ -1205,6 +1290,11 @@ func (m *DeviceStatusMsg) contextValidateNetStatusList(ctx context.Context, form func (m *DeviceStatusMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -1223,6 +1313,11 @@ func (m *DeviceStatusMsg) contextValidateStorageList(ctx context.Context, format for i := 0; i < len(m.StorageList); i++ { if m.StorageList[i] != nil { + + if swag.IsZero(m.StorageList[i]) { // not required + return nil + } + if err := m.StorageList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("storageList" + "." + strconv.Itoa(i)) @@ -1243,6 +1338,11 @@ func (m *DeviceStatusMsg) contextValidateSwInfo(ctx context.Context, formats str for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) @@ -1263,6 +1363,11 @@ func (m *DeviceStatusMsg) contextValidateZcCounters(ctx context.Context, formats for i := 0; i < len(m.ZcCounters); i++ { if m.ZcCounters[i] != nil { + + if swag.IsZero(m.ZcCounters[i]) { // not required + return nil + } + if err := m.ZcCounters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zcCounters" + "." + strconv.Itoa(i)) @@ -1281,6 +1386,11 @@ func (m *DeviceStatusMsg) contextValidateZcCounters(ctx context.Context, formats func (m *DeviceStatusMsg) contextValidateZpoolMetrics(ctx context.Context, formats strfmt.Registry) error { if m.ZpoolMetrics != nil { + + if swag.IsZero(m.ZpoolMetrics) { // not required + return nil + } + if err := m.ZpoolMetrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("zpoolMetrics") diff --git a/swagger_models/device_status_summary_msg.go b/swagger_models/device_status_summary_msg.go index 1a9d130..28f3df0 100644 --- a/swagger_models/device_status_summary_msg.go +++ b/swagger_models/device_status_summary_msg.go @@ -478,6 +478,11 @@ func (m *DeviceStatusSummaryMsg) ContextValidate(ctx context.Context, formats st func (m *DeviceStatusSummaryMsg) contextValidateCPU(ctx context.Context, formats strfmt.Registry) error { if m.CPU != nil { + + if swag.IsZero(m.CPU) { // not required + return nil + } + if err := m.CPU.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Cpu") @@ -494,6 +499,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateCPU(ctx context.Context, formats func (m *DeviceStatusSummaryMsg) contextValidateMemory(ctx context.Context, formats strfmt.Registry) error { if m.Memory != nil { + + if swag.IsZero(m.Memory) { // not required + return nil + } + if err := m.Memory.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Memory") @@ -510,6 +520,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateMemory(ctx context.Context, form func (m *DeviceStatusSummaryMsg) contextValidateStorage(ctx context.Context, formats strfmt.Registry) error { if m.Storage != nil { + + if swag.IsZero(m.Storage) { // not required + return nil + } + if err := m.Storage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("Storage") @@ -526,6 +541,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateStorage(ctx context.Context, for func (m *DeviceStatusSummaryMsg) contextValidateAdminState(ctx context.Context, formats strfmt.Registry) error { if m.AdminState != nil { + + if swag.IsZero(m.AdminState) { // not required + return nil + } + if err := m.AdminState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("adminState") @@ -544,6 +564,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateDevError(ctx context.Context, fo for i := 0; i < len(m.DevError); i++ { if m.DevError[i] != nil { + + if swag.IsZero(m.DevError[i]) { // not required + return nil + } + if err := m.DevError[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devError" + "." + strconv.Itoa(i)) @@ -562,6 +587,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateDevError(ctx context.Context, fo func (m *DeviceStatusSummaryMsg) contextValidateDinfo(ctx context.Context, formats strfmt.Registry) error { if m.Dinfo != nil { + + if swag.IsZero(m.Dinfo) { // not required + return nil + } + if err := m.Dinfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dinfo") @@ -578,6 +608,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateDinfo(ctx context.Context, forma func (m *DeviceStatusSummaryMsg) contextValidateMemorySummary(ctx context.Context, formats strfmt.Registry) error { if m.MemorySummary != nil { + + if swag.IsZero(m.MemorySummary) { // not required + return nil + } + if err := m.MemorySummary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memorySummary") @@ -594,6 +629,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateMemorySummary(ctx context.Contex func (m *DeviceStatusSummaryMsg) contextValidateMinfo(ctx context.Context, formats strfmt.Registry) error { if m.Minfo != nil { + + if swag.IsZero(m.Minfo) { // not required + return nil + } + if err := m.Minfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("minfo") @@ -612,6 +652,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateNetStatusList(ctx context.Contex for i := 0; i < len(m.NetStatusList); i++ { if m.NetStatusList[i] != nil { + + if swag.IsZero(m.NetStatusList[i]) { // not required + return nil + } + if err := m.NetStatusList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netStatusList" + "." + strconv.Itoa(i)) @@ -630,6 +675,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateNetStatusList(ctx context.Contex func (m *DeviceStatusSummaryMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -648,6 +698,11 @@ func (m *DeviceStatusSummaryMsg) contextValidateSwInfo(ctx context.Context, form for i := 0; i < len(m.SwInfo); i++ { if m.SwInfo[i] != nil { + + if swag.IsZero(m.SwInfo[i]) { // not required + return nil + } + if err := m.SwInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("swInfo" + "." + strconv.Itoa(i)) diff --git a/swagger_models/device_summary_report.go b/swagger_models/device_summary_report.go index eb282c0..dc97771 100644 --- a/swagger_models/device_summary_report.go +++ b/swagger_models/device_summary_report.go @@ -76,6 +76,11 @@ func (m *DeviceSummaryReport) ContextValidate(ctx context.Context, formats strfm func (m *DeviceSummaryReport) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/dhcp_server_config.go b/swagger_models/dhcp_server_config.go index 81cf4a3..1e929e6 100644 --- a/swagger_models/dhcp_server_config.go +++ b/swagger_models/dhcp_server_config.go @@ -93,6 +93,11 @@ func (m *DhcpServerConfig) ContextValidate(ctx context.Context, formats strfmt.R func (m *DhcpServerConfig) contextValidateDhcpRange(ctx context.Context, formats strfmt.Registry) error { if m.DhcpRange != nil { + + if swag.IsZero(m.DhcpRange) { // not required + return nil + } + if err := m.DhcpRange.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dhcpRange") diff --git a/swagger_models/doc_policies.go b/swagger_models/doc_policies.go index c351674..e020f17 100644 --- a/swagger_models/doc_policies.go +++ b/swagger_models/doc_policies.go @@ -143,6 +143,11 @@ func (m *DocPolicies) contextValidateList(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *DocPolicies) contextValidateList(ctx context.Context, formats strfmt.Re func (m *DocPolicies) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *DocPolicies) contextValidateNext(ctx context.Context, formats strfmt.Re func (m *DocPolicies) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/doc_policy.go b/swagger_models/doc_policy.go index 8816b3a..a29aa58 100644 --- a/swagger_models/doc_policy.go +++ b/swagger_models/doc_policy.go @@ -156,6 +156,11 @@ func (m *DocPolicy) contextValidateID(ctx context.Context, formats strfmt.Regist func (m *DocPolicy) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/doc_policy_summary.go b/swagger_models/doc_policy_summary.go index 99b3be7..d9ca287 100644 --- a/swagger_models/doc_policy_summary.go +++ b/swagger_models/doc_policy_summary.go @@ -114,6 +114,11 @@ func (m *DocPolicySummary) ContextValidate(ctx context.Context, formats strfmt.R func (m *DocPolicySummary) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/e_id_register.go b/swagger_models/e_id_register.go index 678ce79..ff2bf72 100644 --- a/swagger_models/e_id_register.go +++ b/swagger_models/e_id_register.go @@ -246,6 +246,11 @@ func (m *EIDRegister) contextValidateLispMapServers(ctx context.Context, formats for i := 0; i < len(m.LispMapServers); i++ { if m.LispMapServers[i] != nil { + + if swag.IsZero(m.LispMapServers[i]) { // not required + return nil + } + if err := m.LispMapServers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("LispMapServers" + "." + strconv.Itoa(i)) diff --git a/swagger_models/edgeview_cfg.go b/swagger_models/edgeview_cfg.go index 791a771..a0b35ee 100644 --- a/swagger_models/edgeview_cfg.go +++ b/swagger_models/edgeview_cfg.go @@ -169,6 +169,11 @@ func (m *EdgeviewCfg) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *EdgeviewCfg) contextValidateAppPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AppPolicy != nil { + + if swag.IsZero(m.AppPolicy) { // not required + return nil + } + if err := m.AppPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appPolicy") @@ -185,6 +190,11 @@ func (m *EdgeviewCfg) contextValidateAppPolicy(ctx context.Context, formats strf func (m *EdgeviewCfg) contextValidateDevPolicy(ctx context.Context, formats strfmt.Registry) error { if m.DevPolicy != nil { + + if swag.IsZero(m.DevPolicy) { // not required + return nil + } + if err := m.DevPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devPolicy") @@ -201,6 +211,11 @@ func (m *EdgeviewCfg) contextValidateDevPolicy(ctx context.Context, formats strf func (m *EdgeviewCfg) contextValidateExtPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ExtPolicy != nil { + + if swag.IsZero(m.ExtPolicy) { // not required + return nil + } + if err := m.ExtPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("extPolicy") @@ -217,6 +232,11 @@ func (m *EdgeviewCfg) contextValidateExtPolicy(ctx context.Context, formats strf func (m *EdgeviewCfg) contextValidateJwtInfo(ctx context.Context, formats strfmt.Registry) error { if m.JwtInfo != nil { + + if swag.IsZero(m.JwtInfo) { // not required + return nil + } + if err := m.JwtInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jwtInfo") diff --git a/swagger_models/edgeview_policy.go b/swagger_models/edgeview_policy.go index 02742a4..8114f6d 100644 --- a/swagger_models/edgeview_policy.go +++ b/swagger_models/edgeview_policy.go @@ -102,6 +102,11 @@ func (m *EdgeviewPolicy) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *EdgeviewPolicy) contextValidateEdgeviewcfg(ctx context.Context, formats strfmt.Registry) error { if m.Edgeviewcfg != nil { + + if swag.IsZero(m.Edgeviewcfg) { // not required + return nil + } + if err := m.Edgeviewcfg.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeviewcfg") diff --git a/swagger_models/enrollment_detail.go b/swagger_models/enrollment_detail.go index b2f62a9..ffb8ded 100644 --- a/swagger_models/enrollment_detail.go +++ b/swagger_models/enrollment_detail.go @@ -175,6 +175,11 @@ func (m *EnrollmentDetail) ContextValidate(ctx context.Context, formats strfmt.R func (m *EnrollmentDetail) contextValidateAllocationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AllocationPolicy != nil { + + if swag.IsZero(m.AllocationPolicy) { // not required + return nil + } + if err := m.AllocationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("allocationPolicy") @@ -191,6 +196,11 @@ func (m *EnrollmentDetail) contextValidateAllocationPolicy(ctx context.Context, func (m *EnrollmentDetail) contextValidateMechanism(ctx context.Context, formats strfmt.Registry) error { if m.Mechanism != nil { + + if swag.IsZero(m.Mechanism) { // not required + return nil + } + if err := m.Mechanism.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mechanism") @@ -207,6 +217,11 @@ func (m *EnrollmentDetail) contextValidateMechanism(ctx context.Context, formats func (m *EnrollmentDetail) contextValidateSymmetricKeyEnrollment(ctx context.Context, formats strfmt.Registry) error { if m.SymmetricKeyEnrollment != nil { + + if swag.IsZero(m.SymmetricKeyEnrollment) { // not required + return nil + } + if err := m.SymmetricKeyEnrollment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("symmetricKeyEnrollment") @@ -223,6 +238,11 @@ func (m *EnrollmentDetail) contextValidateSymmetricKeyEnrollment(ctx context.Con func (m *EnrollmentDetail) contextValidateTpmEnrollment(ctx context.Context, formats strfmt.Registry) error { if m.TpmEnrollment != nil { + + if swag.IsZero(m.TpmEnrollment) { // not required + return nil + } + if err := m.TpmEnrollment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("tpmEnrollment") diff --git a/swagger_models/enterprise.go b/swagger_models/enterprise.go index f65917f..e45e3d8 100644 --- a/swagger_models/enterprise.go +++ b/swagger_models/enterprise.go @@ -391,6 +391,11 @@ func (m *Enterprise) contextValidateChildEnterprises(ctx context.Context, format for i := 0; i < len(m.ChildEnterprises); i++ { if m.ChildEnterprises[i] != nil { + + if swag.IsZero(m.ChildEnterprises[i]) { // not required + return nil + } + if err := m.ChildEnterprises[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("childEnterprises" + "." + strconv.Itoa(i)) @@ -418,6 +423,11 @@ func (m *Enterprise) contextValidateID(ctx context.Context, formats strfmt.Regis func (m *Enterprise) contextValidatePolicyList(ctx context.Context, formats strfmt.Registry) error { if m.PolicyList != nil { + + if swag.IsZero(m.PolicyList) { // not required + return nil + } + if err := m.PolicyList.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("policyList") @@ -434,6 +444,11 @@ func (m *Enterprise) contextValidatePolicyList(ctx context.Context, formats strf func (m *Enterprise) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -450,6 +465,11 @@ func (m *Enterprise) contextValidateRevision(ctx context.Context, formats strfmt func (m *Enterprise) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") @@ -466,6 +486,11 @@ func (m *Enterprise) contextValidateState(ctx context.Context, formats strfmt.Re func (m *Enterprise) contextValidateStreamEvents(ctx context.Context, formats strfmt.Registry) error { if m.StreamEvents != nil { + + if swag.IsZero(m.StreamEvents) { // not required + return nil + } + if err := m.StreamEvents.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("streamEvents") @@ -482,6 +507,11 @@ func (m *Enterprise) contextValidateStreamEvents(ctx context.Context, formats st func (m *Enterprise) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/enterprises.go b/swagger_models/enterprises.go index 50c9530..af9d092 100644 --- a/swagger_models/enterprises.go +++ b/swagger_models/enterprises.go @@ -143,6 +143,11 @@ func (m *Enterprises) contextValidateList(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *Enterprises) contextValidateList(ctx context.Context, formats strfmt.Re func (m *Enterprises) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *Enterprises) contextValidateNext(ctx context.Context, formats strfmt.Re func (m *Enterprises) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/entitlement.go b/swagger_models/entitlement.go index 1a0095e..0b7df79 100644 --- a/swagger_models/entitlement.go +++ b/swagger_models/entitlement.go @@ -186,6 +186,11 @@ func (m *Entitlement) contextValidateDevices(ctx context.Context, formats strfmt for i := 0; i < len(m.Devices); i++ { if m.Devices[i] != nil { + + if swag.IsZero(m.Devices[i]) { // not required + return nil + } + if err := m.Devices[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("devices" + "." + strconv.Itoa(i)) @@ -204,6 +209,11 @@ func (m *Entitlement) contextValidateDevices(ctx context.Context, formats strfmt func (m *Entitlement) contextValidatePlugins(ctx context.Context, formats strfmt.Registry) error { if m.Plugins != nil { + + if swag.IsZero(m.Plugins) { // not required + return nil + } + if err := m.Plugins.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plugins") @@ -220,6 +230,11 @@ func (m *Entitlement) contextValidatePlugins(ctx context.Context, formats strfmt func (m *Entitlement) contextValidateUserCount(ctx context.Context, formats strfmt.Registry) error { if m.UserCount != nil { + + if swag.IsZero(m.UserCount) { // not required + return nil + } + if err := m.UserCount.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userCount") diff --git a/swagger_models/eveconfig_image.go b/swagger_models/eveconfig_image.go index 8885765..e05dcdc 100644 --- a/swagger_models/eveconfig_image.go +++ b/swagger_models/eveconfig_image.go @@ -146,6 +146,11 @@ func (m *EveconfigImage) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *EveconfigImage) contextValidateIformat(ctx context.Context, formats strfmt.Registry) error { if m.Iformat != nil { + + if swag.IsZero(m.Iformat) { // not required + return nil + } + if err := m.Iformat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("iformat") @@ -162,6 +167,11 @@ func (m *EveconfigImage) contextValidateIformat(ctx context.Context, formats str func (m *EveconfigImage) contextValidateSiginfo(ctx context.Context, formats strfmt.Registry) error { if m.Siginfo != nil { + + if swag.IsZero(m.Siginfo) { // not required + return nil + } + if err := m.Siginfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("siginfo") @@ -178,6 +188,11 @@ func (m *EveconfigImage) contextValidateSiginfo(ctx context.Context, formats str func (m *EveconfigImage) contextValidateUuidandversion(ctx context.Context, formats strfmt.Registry) error { if m.Uuidandversion != nil { + + if swag.IsZero(m.Uuidandversion) { // not required + return nil + } + if err := m.Uuidandversion.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("uuidandversion") diff --git a/swagger_models/event_query_response.go b/swagger_models/event_query_response.go index daa7c44..17dbf3a 100644 --- a/swagger_models/event_query_response.go +++ b/swagger_models/event_query_response.go @@ -150,6 +150,11 @@ func (m *EventQueryResponse) contextValidateList(ctx context.Context, formats st for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -168,6 +173,7 @@ func (m *EventQueryResponse) contextValidateList(ctx context.Context, formats st func (m *EventQueryResponse) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -184,6 +190,11 @@ func (m *EventQueryResponse) contextValidateNext(ctx context.Context, formats st func (m *EventQueryResponse) contextValidateSummary(ctx context.Context, formats strfmt.Registry) error { if m.Summary != nil { + + if swag.IsZero(m.Summary) { // not required + return nil + } + if err := m.Summary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summary") diff --git a/swagger_models/event_query_response_item.go b/swagger_models/event_query_response_item.go index 409c089..d4a76d8 100644 --- a/swagger_models/event_query_response_item.go +++ b/swagger_models/event_query_response_item.go @@ -114,6 +114,11 @@ func (m *EventQueryResponseItem) ContextValidate(ctx context.Context, formats st func (m *EventQueryResponseItem) contextValidateSource(ctx context.Context, formats strfmt.Registry) error { if m.Source != nil { + + if swag.IsZero(m.Source) { // not required + return nil + } + if err := m.Source.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("source") diff --git a/swagger_models/event_top_users_resp.go b/swagger_models/event_top_users_resp.go index 007043e..b6082e3 100644 --- a/swagger_models/event_top_users_resp.go +++ b/swagger_models/event_top_users_resp.go @@ -83,6 +83,11 @@ func (m *EventTopUsersResp) contextValidateTopUsers(ctx context.Context, formats for i := 0; i < len(m.TopUsers); i++ { if m.TopUsers[i] != nil { + + if swag.IsZero(m.TopUsers[i]) { // not required + return nil + } + if err := m.TopUsers[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("topUsers" + "." + strconv.Itoa(i)) diff --git a/swagger_models/googlerpc_status.go b/swagger_models/googlerpc_status.go index a3a5cac..ffa8749 100644 --- a/swagger_models/googlerpc_status.go +++ b/swagger_models/googlerpc_status.go @@ -89,6 +89,11 @@ func (m *GooglerpcStatus) contextValidateDetails(ctx context.Context, formats st for i := 0; i < len(m.Details); i++ { if m.Details[i] != nil { + + if swag.IsZero(m.Details[i]) { // not required + return nil + } + if err := m.Details[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("details" + "." + strconv.Itoa(i)) diff --git a/swagger_models/health_desc.go b/swagger_models/health_desc.go index ce1aace..503a3cc 100644 --- a/swagger_models/health_desc.go +++ b/swagger_models/health_desc.go @@ -85,6 +85,11 @@ func (m *HealthDesc) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *HealthDesc) contextValidateBriefHealth(ctx context.Context, formats strfmt.Registry) error { if m.BriefHealth != nil { + + if swag.IsZero(m.BriefHealth) { // not required + return nil + } + if err := m.BriefHealth.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("briefHealth") diff --git a/swagger_models/health_service_resp.go b/swagger_models/health_service_resp.go index 6782075..359c5a4 100644 --- a/swagger_models/health_service_resp.go +++ b/swagger_models/health_service_resp.go @@ -143,6 +143,11 @@ func (m *HealthServiceResp) contextValidateHealthDesc(ctx context.Context, forma for i := 0; i < len(m.HealthDesc); i++ { if m.HealthDesc[i] != nil { + + if swag.IsZero(m.HealthDesc[i]) { // not required + return nil + } + if err := m.HealthDesc[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthDesc" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *HealthServiceResp) contextValidateHealthDesc(ctx context.Context, forma func (m *HealthServiceResp) contextValidateHealthService(ctx context.Context, formats strfmt.Registry) error { if m.HealthService != nil { + + if swag.IsZero(m.HealthService) { // not required + return nil + } + if err := m.HealthService.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("healthService") @@ -177,6 +187,11 @@ func (m *HealthServiceResp) contextValidateHealthService(ctx context.Context, fo func (m *HealthServiceResp) contextValidateHresult(ctx context.Context, formats strfmt.Registry) error { if m.Hresult != nil { + + if swag.IsZero(m.Hresult) { // not required + return nil + } + if err := m.Hresult.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hresult") diff --git a/swagger_models/image_config.go b/swagger_models/image_config.go index 9c099cb..0648466 100644 --- a/swagger_models/image_config.go +++ b/swagger_models/image_config.go @@ -419,6 +419,7 @@ func (m *ImageConfig) contextValidateID(ctx context.Context, formats strfmt.Regi func (m *ImageConfig) contextValidateImageArch(ctx context.Context, formats strfmt.Registry) error { if m.ImageArch != nil { + if err := m.ImageArch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageArch") @@ -444,6 +445,7 @@ func (m *ImageConfig) contextValidateImageError(ctx context.Context, formats str func (m *ImageConfig) contextValidateImageFormat(ctx context.Context, formats strfmt.Registry) error { if m.ImageFormat != nil { + if err := m.ImageFormat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageFormat") @@ -469,6 +471,11 @@ func (m *ImageConfig) contextValidateImageLocal(ctx context.Context, formats str func (m *ImageConfig) contextValidateImageStatus(ctx context.Context, formats strfmt.Registry) error { if m.ImageStatus != nil { + + if swag.IsZero(m.ImageStatus) { // not required + return nil + } + if err := m.ImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageStatus") @@ -485,6 +492,7 @@ func (m *ImageConfig) contextValidateImageStatus(ctx context.Context, formats st func (m *ImageConfig) contextValidateImageType(ctx context.Context, formats strfmt.Registry) error { if m.ImageType != nil { + if err := m.ImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageType") @@ -501,6 +509,11 @@ func (m *ImageConfig) contextValidateImageType(ctx context.Context, formats strf func (m *ImageConfig) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + + if swag.IsZero(m.OriginType) { // not required + return nil + } + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -517,6 +530,11 @@ func (m *ImageConfig) contextValidateOriginType(ctx context.Context, formats str func (m *ImageConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/image_filter.go b/swagger_models/image_filter.go index e42f453..4c8cb02 100644 --- a/swagger_models/image_filter.go +++ b/swagger_models/image_filter.go @@ -184,6 +184,11 @@ func (m *ImageFilter) ContextValidate(ctx context.Context, formats strfmt.Regist func (m *ImageFilter) contextValidateImageArch(ctx context.Context, formats strfmt.Registry) error { if m.ImageArch != nil { + + if swag.IsZero(m.ImageArch) { // not required + return nil + } + if err := m.ImageArch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageArch") @@ -200,6 +205,11 @@ func (m *ImageFilter) contextValidateImageArch(ctx context.Context, formats strf func (m *ImageFilter) contextValidateImageStatus(ctx context.Context, formats strfmt.Registry) error { if m.ImageStatus != nil { + + if swag.IsZero(m.ImageStatus) { // not required + return nil + } + if err := m.ImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageStatus") @@ -216,6 +226,11 @@ func (m *ImageFilter) contextValidateImageStatus(ctx context.Context, formats st func (m *ImageFilter) contextValidateImageType(ctx context.Context, formats strfmt.Registry) error { if m.ImageType != nil { + + if swag.IsZero(m.ImageType) { // not required + return nil + } + if err := m.ImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageType") diff --git a/swagger_models/image_project_list.go b/swagger_models/image_project_list.go index f038d43..edeb8cb 100644 --- a/swagger_models/image_project_list.go +++ b/swagger_models/image_project_list.go @@ -114,6 +114,11 @@ func (m *ImageProjectList) ContextValidate(ctx context.Context, formats strfmt.R func (m *ImageProjectList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -132,6 +137,11 @@ func (m *ImageProjectList) contextValidateProjectDetails(ctx context.Context, fo for i := 0; i < len(m.ProjectDetails); i++ { if m.ProjectDetails[i] != nil { + + if swag.IsZero(m.ProjectDetails[i]) { // not required + return nil + } + if err := m.ProjectDetails[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("projectDetails" + "." + strconv.Itoa(i)) diff --git a/swagger_models/images.go b/swagger_models/images.go index 5c4799f..b295643 100644 --- a/swagger_models/images.go +++ b/swagger_models/images.go @@ -263,6 +263,11 @@ func (m *Images) contextValidateList(ctx context.Context, formats strfmt.Registr for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -281,6 +286,11 @@ func (m *Images) contextValidateList(ctx context.Context, formats strfmt.Registr func (m *Images) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -297,6 +307,11 @@ func (m *Images) contextValidateNext(ctx context.Context, formats strfmt.Registr func (m *Images) contextValidateSummaryByImageArch(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByImageArch != nil { + + if swag.IsZero(m.SummaryByImageArch) { // not required + return nil + } + if err := m.SummaryByImageArch.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByImageArch") @@ -313,6 +328,11 @@ func (m *Images) contextValidateSummaryByImageArch(ctx context.Context, formats func (m *Images) contextValidateSummaryByImageFormat(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByImageFormat != nil { + + if swag.IsZero(m.SummaryByImageFormat) { // not required + return nil + } + if err := m.SummaryByImageFormat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByImageFormat") @@ -329,6 +349,11 @@ func (m *Images) contextValidateSummaryByImageFormat(ctx context.Context, format func (m *Images) contextValidateSummaryByImageStatus(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByImageStatus != nil { + + if swag.IsZero(m.SummaryByImageStatus) { // not required + return nil + } + if err := m.SummaryByImageStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByImageStatus") @@ -345,6 +370,11 @@ func (m *Images) contextValidateSummaryByImageStatus(ctx context.Context, format func (m *Images) contextValidateSummaryByImageType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByImageType != nil { + + if swag.IsZero(m.SummaryByImageType) { // not required + return nil + } + if err := m.SummaryByImageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByImageType") @@ -361,6 +391,11 @@ func (m *Images) contextValidateSummaryByImageType(ctx context.Context, formats func (m *Images) contextValidateTerse(ctx context.Context, formats strfmt.Registry) error { if m.Terse != nil { + + if swag.IsZero(m.Terse) { // not required + return nil + } + if err := m.Terse.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("terse") diff --git a/swagger_models/integration_policy.go b/swagger_models/integration_policy.go index 19e4dc7..9926394 100644 --- a/swagger_models/integration_policy.go +++ b/swagger_models/integration_policy.go @@ -82,6 +82,11 @@ func (m *IntegrationPolicy) ContextValidate(ctx context.Context, formats strfmt. func (m *IntegrationPolicy) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/interface.go b/swagger_models/interface.go index 8a27bd5..cace783 100644 --- a/swagger_models/interface.go +++ b/swagger_models/interface.go @@ -98,6 +98,11 @@ func (m *Interface) contextValidateAcls(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.Acls); i++ { if m.Acls[i] != nil { + + if swag.IsZero(m.Acls[i]) { // not required + return nil + } + if err := m.Acls[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("acls" + "." + strconv.Itoa(i)) diff --git a/swagger_models/io_bundle_status.go b/swagger_models/io_bundle_status.go index eb3b2f5..ca4a6eb 100644 --- a/swagger_models/io_bundle_status.go +++ b/swagger_models/io_bundle_status.go @@ -235,6 +235,11 @@ func (m *IoBundleStatus) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *IoBundleStatus) contextValidateErr(ctx context.Context, formats strfmt.Registry) error { if m.Err != nil { + + if swag.IsZero(m.Err) { // not required + return nil + } + if err := m.Err.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("err") @@ -251,6 +256,11 @@ func (m *IoBundleStatus) contextValidateErr(ctx context.Context, formats strfmt. func (m *IoBundleStatus) contextValidateLteInfo(ctx context.Context, formats strfmt.Registry) error { if m.LteInfo != nil { + + if swag.IsZero(m.LteInfo) { // not required + return nil + } + if err := m.LteInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lteInfo") @@ -269,6 +279,11 @@ func (m *IoBundleStatus) contextValidateMemberList(ctx context.Context, formats for i := 0; i < len(m.MemberList); i++ { if m.MemberList[i] != nil { + + if swag.IsZero(m.MemberList[i]) { // not required + return nil + } + if err := m.MemberList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("memberList" + "." + strconv.Itoa(i)) @@ -287,6 +302,7 @@ func (m *IoBundleStatus) contextValidateMemberList(ctx context.Context, formats func (m *IoBundleStatus) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/io_member.go b/swagger_models/io_member.go index f7942cd..5785bab 100644 --- a/swagger_models/io_member.go +++ b/swagger_models/io_member.go @@ -212,6 +212,11 @@ func (m *IoMember) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *IoMember) contextValidateUsage(ctx context.Context, formats strfmt.Registry) error { if m.Usage != nil { + + if swag.IsZero(m.Usage) { // not required + return nil + } + if err := m.Usage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage") @@ -228,6 +233,7 @@ func (m *IoMember) contextValidateUsage(ctx context.Context, formats strfmt.Regi func (m *IoMember) contextValidateZtype(ctx context.Context, formats strfmt.Registry) error { if m.Ztype != nil { + if err := m.Ztype.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ztype") diff --git a/swagger_models/io_member_status.go b/swagger_models/io_member_status.go index c0d0fda..902a3cc 100644 --- a/swagger_models/io_member_status.go +++ b/swagger_models/io_member_status.go @@ -76,6 +76,11 @@ func (m *IoMemberStatus) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *IoMemberStatus) contextValidateIoAddress(ctx context.Context, formats strfmt.Registry) error { if m.IoAddress != nil { + + if swag.IsZero(m.IoAddress) { // not required + return nil + } + if err := m.IoAddress.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ioAddress") diff --git a/swagger_models/iot_hub_service_detail.go b/swagger_models/iot_hub_service_detail.go index 2736de1..62fe291 100644 --- a/swagger_models/iot_hub_service_detail.go +++ b/swagger_models/iot_hub_service_detail.go @@ -73,6 +73,11 @@ func (m *IotHubServiceDetail) ContextValidate(ctx context.Context, formats strfm func (m *IotHubServiceDetail) contextValidateServiceDetail(ctx context.Context, formats strfmt.Registry) error { if m.ServiceDetail != nil { + + if swag.IsZero(m.ServiceDetail) { // not required + return nil + } + if err := m.ServiceDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("serviceDetail") diff --git a/swagger_models/ip_spec.go b/swagger_models/ip_spec.go index 4bc8f89..4536549 100644 --- a/swagger_models/ip_spec.go +++ b/swagger_models/ip_spec.go @@ -125,6 +125,11 @@ func (m *IPSpec) ContextValidate(ctx context.Context, formats strfmt.Registry) e func (m *IPSpec) contextValidateDhcp(ctx context.Context, formats strfmt.Registry) error { if m.Dhcp != nil { + + if swag.IsZero(m.Dhcp) { // not required + return nil + } + if err := m.Dhcp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dhcp") @@ -141,6 +146,11 @@ func (m *IPSpec) contextValidateDhcp(ctx context.Context, formats strfmt.Registr func (m *IPSpec) contextValidateDhcpRange(ctx context.Context, formats strfmt.Registry) error { if m.DhcpRange != nil { + + if swag.IsZero(m.DhcpRange) { // not required + return nil + } + if err := m.DhcpRange.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dhcpRange") diff --git a/swagger_models/job_config.go b/swagger_models/job_config.go index 9675e41..d2a6eec 100644 --- a/swagger_models/job_config.go +++ b/swagger_models/job_config.go @@ -373,6 +373,7 @@ func (m *JobConfig) contextValidateIndividualOpStatus(ctx context.Context, forma func (m *JobConfig) contextValidateObjectType(ctx context.Context, formats strfmt.Registry) error { if m.ObjectType != nil { + if err := m.ObjectType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("objectType") @@ -389,6 +390,11 @@ func (m *JobConfig) contextValidateObjectType(ctx context.Context, formats strfm func (m *JobConfig) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { if m.OperationType != nil { + + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType") @@ -405,6 +411,11 @@ func (m *JobConfig) contextValidateOperationType(ctx context.Context, formats st func (m *JobConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -421,6 +432,11 @@ func (m *JobConfig) contextValidateRevision(ctx context.Context, formats strfmt. func (m *JobConfig) contextValidateSelectionCriteria(ctx context.Context, formats strfmt.Registry) error { if m.SelectionCriteria != nil { + + if swag.IsZero(m.SelectionCriteria) { // not required + return nil + } + if err := m.SelectionCriteria.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("selectionCriteria") @@ -446,6 +462,11 @@ func (m *JobConfig) contextValidateStartTime(ctx context.Context, formats strfmt func (m *JobConfig) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/swagger_models/job_config_list.go b/swagger_models/job_config_list.go index 4635a8a..ce76352 100644 --- a/swagger_models/job_config_list.go +++ b/swagger_models/job_config_list.go @@ -145,6 +145,11 @@ func (m *JobConfigList) contextValidateList(ctx context.Context, formats strfmt. for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -163,6 +168,11 @@ func (m *JobConfigList) contextValidateList(ctx context.Context, formats strfmt. func (m *JobConfigList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -179,6 +189,11 @@ func (m *JobConfigList) contextValidateNext(ctx context.Context, formats strfmt. func (m *JobConfigList) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/job_filter.go b/swagger_models/job_filter.go index eb5e6e1..9620740 100644 --- a/swagger_models/job_filter.go +++ b/swagger_models/job_filter.go @@ -99,6 +99,11 @@ func (m *JobFilter) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *JobFilter) contextValidateJobStatus(ctx context.Context, formats strfmt.Registry) error { if m.JobStatus != nil { + + if swag.IsZero(m.JobStatus) { // not required + return nil + } + if err := m.JobStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jobStatus") diff --git a/swagger_models/l_t_e_adapter.go b/swagger_models/l_t_e_adapter.go index c52b3ec..46820d3 100644 --- a/swagger_models/l_t_e_adapter.go +++ b/swagger_models/l_t_e_adapter.go @@ -93,6 +93,11 @@ func (m *LTEAdapter) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *LTEAdapter) contextValidateSimcardState(ctx context.Context, formats strfmt.Registry) error { if m.SimcardState != nil { + + if swag.IsZero(m.SimcardState) { // not required + return nil + } + if err := m.SimcardState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("simcardState") diff --git a/swagger_models/lisp_config.go b/swagger_models/lisp_config.go index 2c296e5..101d318 100644 --- a/swagger_models/lisp_config.go +++ b/swagger_models/lisp_config.go @@ -101,6 +101,11 @@ func (m *LispConfig) contextValidateSp(ctx context.Context, formats strfmt.Regis for i := 0; i < len(m.Sp); i++ { if m.Sp[i] != nil { + + if swag.IsZero(m.Sp[i]) { // not required + return nil + } + if err := m.Sp[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("sp" + "." + strconv.Itoa(i)) diff --git a/swagger_models/manifest_info.go b/swagger_models/manifest_info.go index 86a5fe1..b9bf9f2 100644 --- a/swagger_models/manifest_info.go +++ b/swagger_models/manifest_info.go @@ -114,6 +114,11 @@ func (m *ManifestInfo) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *ManifestInfo) contextValidateDetails(ctx context.Context, formats strfmt.Registry) error { if m.Details != nil { + + if swag.IsZero(m.Details) { // not required + return nil + } + if err := m.Details.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("details") @@ -130,6 +135,11 @@ func (m *ManifestInfo) contextValidateDetails(ctx context.Context, formats strfm func (m *ManifestInfo) contextValidateTransitionAction(ctx context.Context, formats strfmt.Registry) error { if m.TransitionAction != nil { + + if swag.IsZero(m.TransitionAction) { // not required + return nil + } + if err := m.TransitionAction.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("transitionAction") diff --git a/swagger_models/metric_query_response.go b/swagger_models/metric_query_response.go index 58c1332..ecca3ff 100644 --- a/swagger_models/metric_query_response.go +++ b/swagger_models/metric_query_response.go @@ -122,6 +122,11 @@ func (m *MetricQueryResponse) contextValidateList(ctx context.Context, formats s for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -140,6 +145,11 @@ func (m *MetricQueryResponse) contextValidateList(ctx context.Context, formats s func (m *MetricQueryResponse) contextValidateThreshold(ctx context.Context, formats strfmt.Registry) error { if m.Threshold != nil { + + if swag.IsZero(m.Threshold) { // not required + return nil + } + if err := m.Threshold.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("threshold") diff --git a/swagger_models/model_import.go b/swagger_models/model_import.go index 0eab57a..105b9e1 100644 --- a/swagger_models/model_import.go +++ b/swagger_models/model_import.go @@ -83,6 +83,11 @@ func (m *ModelImport) contextValidateModelConfig(ctx context.Context, formats st for i := 0; i < len(m.ModelConfig); i++ { if m.ModelConfig[i] != nil { + + if swag.IsZero(m.ModelConfig[i]) { // not required + return nil + } + if err := m.ModelConfig[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("modelConfig" + "." + strconv.Itoa(i)) diff --git a/swagger_models/module_detail.go b/swagger_models/module_detail.go index 24fef1b..0d1243c 100644 --- a/swagger_models/module_detail.go +++ b/swagger_models/module_detail.go @@ -85,6 +85,11 @@ func (m *ModuleDetail) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *ModuleDetail) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { if m.ModuleType != nil { + + if swag.IsZero(m.ModuleType) { // not required + return nil + } + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("moduleType") diff --git a/swagger_models/module_policy.go b/swagger_models/module_policy.go index e65c2d4..68b47e9 100644 --- a/swagger_models/module_policy.go +++ b/swagger_models/module_policy.go @@ -175,6 +175,11 @@ func (m *ModulePolicy) contextValidateApps(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Apps); i++ { if m.Apps[i] != nil { + + if swag.IsZero(m.Apps[i]) { // not required + return nil + } + if err := m.Apps[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("apps" + "." + strconv.Itoa(i)) @@ -202,6 +207,11 @@ func (m *ModulePolicy) contextValidateID(ctx context.Context, formats strfmt.Reg func (m *ModulePolicy) contextValidateMetrics(ctx context.Context, formats strfmt.Registry) error { if m.Metrics != nil { + + if swag.IsZero(m.Metrics) { // not required + return nil + } + if err := m.Metrics.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metrics") diff --git a/swagger_models/module_summary.go b/swagger_models/module_summary.go index d10914e..ae8ed1d 100644 --- a/swagger_models/module_summary.go +++ b/swagger_models/module_summary.go @@ -75,6 +75,11 @@ func (m *ModuleSummary) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *ModuleSummary) contextValidateModuleType(ctx context.Context, formats strfmt.Registry) error { if m.ModuleType != nil { + + if swag.IsZero(m.ModuleType) { // not required + return nil + } + if err := m.ModuleType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("moduleType") diff --git a/swagger_models/net_config.go b/swagger_models/net_config.go index e4fa0ca..8a926c5 100644 --- a/swagger_models/net_config.go +++ b/swagger_models/net_config.go @@ -374,6 +374,11 @@ func (m *NetConfig) contextValidateDNSList(ctx context.Context, formats strfmt.R for i := 0; i < len(m.DNSList); i++ { if m.DNSList[i] != nil { + + if swag.IsZero(m.DNSList[i]) { // not required + return nil + } + if err := m.DNSList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dnsList" + "." + strconv.Itoa(i)) @@ -401,6 +406,7 @@ func (m *NetConfig) contextValidateID(ctx context.Context, formats strfmt.Regist func (m *NetConfig) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if m.IP != nil { + if err := m.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ip") @@ -417,6 +423,7 @@ func (m *NetConfig) contextValidateIP(ctx context.Context, formats strfmt.Regist func (m *NetConfig) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -433,6 +440,11 @@ func (m *NetConfig) contextValidateKind(ctx context.Context, formats strfmt.Regi func (m *NetConfig) contextValidateProxy(ctx context.Context, formats strfmt.Registry) error { if m.Proxy != nil { + + if swag.IsZero(m.Proxy) { // not required + return nil + } + if err := m.Proxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxy") @@ -449,6 +461,11 @@ func (m *NetConfig) contextValidateProxy(ctx context.Context, formats strfmt.Reg func (m *NetConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -465,6 +482,11 @@ func (m *NetConfig) contextValidateRevision(ctx context.Context, formats strfmt. func (m *NetConfig) contextValidateWireless(ctx context.Context, formats strfmt.Registry) error { if m.Wireless != nil { + + if swag.IsZero(m.Wireless) { // not required + return nil + } + if err := m.Wireless.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("wireless") diff --git a/swagger_models/net_config_list.go b/swagger_models/net_config_list.go index 104d6ef..1b3652a 100644 --- a/swagger_models/net_config_list.go +++ b/swagger_models/net_config_list.go @@ -233,6 +233,11 @@ func (m *NetConfigList) contextValidateList(ctx context.Context, formats strfmt. for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -251,6 +256,11 @@ func (m *NetConfigList) contextValidateList(ctx context.Context, formats strfmt. func (m *NetConfigList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -267,6 +277,11 @@ func (m *NetConfigList) contextValidateNext(ctx context.Context, formats strfmt. func (m *NetConfigList) contextValidateSummary(ctx context.Context, formats strfmt.Registry) error { if m.Summary != nil { + + if swag.IsZero(m.Summary) { // not required + return nil + } + if err := m.Summary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summary") @@ -283,6 +298,11 @@ func (m *NetConfigList) contextValidateSummary(ctx context.Context, formats strf func (m *NetConfigList) contextValidateSummaryByDist(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByDist != nil { + + if swag.IsZero(m.SummaryByDist) { // not required + return nil + } + if err := m.SummaryByDist.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByDist") @@ -299,6 +319,11 @@ func (m *NetConfigList) contextValidateSummaryByDist(ctx context.Context, format func (m *NetConfigList) contextValidateSummaryByKind(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByKind != nil { + + if swag.IsZero(m.SummaryByKind) { // not required + return nil + } + if err := m.SummaryByKind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByKind") @@ -315,6 +340,11 @@ func (m *NetConfigList) contextValidateSummaryByKind(ctx context.Context, format func (m *NetConfigList) contextValidateSummaryByProxy(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByProxy != nil { + + if swag.IsZero(m.SummaryByProxy) { // not required + return nil + } + if err := m.SummaryByProxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByProxy") diff --git a/swagger_models/net_inst_config.go b/swagger_models/net_inst_config.go index 985ac9c..8eff6ba 100644 --- a/swagger_models/net_inst_config.go +++ b/swagger_models/net_inst_config.go @@ -475,6 +475,11 @@ func (m *NetInstConfig) contextValidateDNSList(ctx context.Context, formats strf for i := 0; i < len(m.DNSList); i++ { if m.DNSList[i] != nil { + + if swag.IsZero(m.DNSList[i]) { // not required + return nil + } + if err := m.DNSList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dnsList" + "." + strconv.Itoa(i)) @@ -502,6 +507,11 @@ func (m *NetInstConfig) contextValidateID(ctx context.Context, formats strfmt.Re func (m *NetInstConfig) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if m.IP != nil { + + if swag.IsZero(m.IP) { // not required + return nil + } + if err := m.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ip") @@ -518,6 +528,7 @@ func (m *NetInstConfig) contextValidateIP(ctx context.Context, formats strfmt.Re func (m *NetInstConfig) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -534,6 +545,11 @@ func (m *NetInstConfig) contextValidateKind(ctx context.Context, formats strfmt. func (m *NetInstConfig) contextValidateLisp(ctx context.Context, formats strfmt.Registry) error { if m.Lisp != nil { + + if swag.IsZero(m.Lisp) { // not required + return nil + } + if err := m.Lisp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lisp") @@ -550,6 +566,11 @@ func (m *NetInstConfig) contextValidateLisp(ctx context.Context, formats strfmt. func (m *NetInstConfig) contextValidateOpaque(ctx context.Context, formats strfmt.Registry) error { if m.Opaque != nil { + + if swag.IsZero(m.Opaque) { // not required + return nil + } + if err := m.Opaque.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("opaque") @@ -566,6 +587,11 @@ func (m *NetInstConfig) contextValidateOpaque(ctx context.Context, formats strfm func (m *NetInstConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -582,6 +608,11 @@ func (m *NetInstConfig) contextValidateRevision(ctx context.Context, formats str func (m *NetInstConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_inst_config_status.go b/swagger_models/net_inst_config_status.go index 7c749e6..74bbc23 100644 --- a/swagger_models/net_inst_config_status.go +++ b/swagger_models/net_inst_config_status.go @@ -274,6 +274,11 @@ func (m *NetInstConfigStatus) contextValidateID(ctx context.Context, formats str func (m *NetInstConfigStatus) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -290,6 +295,11 @@ func (m *NetInstConfigStatus) contextValidateKind(ctx context.Context, formats s func (m *NetInstConfigStatus) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -306,6 +316,11 @@ func (m *NetInstConfigStatus) contextValidateRunState(ctx context.Context, forma func (m *NetInstConfigStatus) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_inst_config_status_list.go b/swagger_models/net_inst_config_status_list.go index 214dad1..0065497 100644 --- a/swagger_models/net_inst_config_status_list.go +++ b/swagger_models/net_inst_config_status_list.go @@ -173,6 +173,11 @@ func (m *NetInstConfigStatusList) contextValidateList(ctx context.Context, forma for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -191,6 +196,11 @@ func (m *NetInstConfigStatusList) contextValidateList(ctx context.Context, forma func (m *NetInstConfigStatusList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -207,6 +217,11 @@ func (m *NetInstConfigStatusList) contextValidateNext(ctx context.Context, forma func (m *NetInstConfigStatusList) contextValidateSummaryByAddressType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAddressType != nil { + + if swag.IsZero(m.SummaryByAddressType) { // not required + return nil + } + if err := m.SummaryByAddressType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAddressType") @@ -223,6 +238,11 @@ func (m *NetInstConfigStatusList) contextValidateSummaryByAddressType(ctx contex func (m *NetInstConfigStatusList) contextValidateSummaryByKind(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByKind != nil { + + if swag.IsZero(m.SummaryByKind) { // not required + return nil + } + if err := m.SummaryByKind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByKind") diff --git a/swagger_models/net_inst_list.go b/swagger_models/net_inst_list.go index 59deaad..b83f18d 100644 --- a/swagger_models/net_inst_list.go +++ b/swagger_models/net_inst_list.go @@ -210,6 +210,11 @@ func (m *NetInstList) contextValidateCfgList(ctx context.Context, formats strfmt for i := 0; i < len(m.CfgList); i++ { if m.CfgList[i] != nil { + + if swag.IsZero(m.CfgList[i]) { // not required + return nil + } + if err := m.CfgList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cfgList" + "." + strconv.Itoa(i)) @@ -230,6 +235,11 @@ func (m *NetInstList) contextValidateList(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -248,6 +258,11 @@ func (m *NetInstList) contextValidateList(ctx context.Context, formats strfmt.Re func (m *NetInstList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -264,6 +279,11 @@ func (m *NetInstList) contextValidateNext(ctx context.Context, formats strfmt.Re func (m *NetInstList) contextValidateSummaryByAddressType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAddressType != nil { + + if swag.IsZero(m.SummaryByAddressType) { // not required + return nil + } + if err := m.SummaryByAddressType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAddressType") @@ -280,6 +300,11 @@ func (m *NetInstList) contextValidateSummaryByAddressType(ctx context.Context, f func (m *NetInstList) contextValidateSummaryByKind(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByKind != nil { + + if swag.IsZero(m.SummaryByKind) { // not required + return nil + } + if err := m.SummaryByKind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByKind") diff --git a/swagger_models/net_inst_opaque_config.go b/swagger_models/net_inst_opaque_config.go index 1503b4b..25efcf0 100644 --- a/swagger_models/net_inst_opaque_config.go +++ b/swagger_models/net_inst_opaque_config.go @@ -108,6 +108,11 @@ func (m *NetInstOpaqueConfig) ContextValidate(ctx context.Context, formats strfm func (m *NetInstOpaqueConfig) contextValidateLisp(ctx context.Context, formats strfmt.Registry) error { if m.Lisp != nil { + + if swag.IsZero(m.Lisp) { // not required + return nil + } + if err := m.Lisp.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lisp") @@ -124,6 +129,11 @@ func (m *NetInstOpaqueConfig) contextValidateLisp(ctx context.Context, formats s func (m *NetInstOpaqueConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_inst_short_config.go b/swagger_models/net_inst_short_config.go index 14313c2..66dc312 100644 --- a/swagger_models/net_inst_short_config.go +++ b/swagger_models/net_inst_short_config.go @@ -186,6 +186,11 @@ func (m *NetInstShortConfig) contextValidateID(ctx context.Context, formats strf func (m *NetInstShortConfig) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -202,6 +207,11 @@ func (m *NetInstShortConfig) contextValidateKind(ctx context.Context, formats st func (m *NetInstShortConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_inst_status_filter.go b/swagger_models/net_inst_status_filter.go index 45298b8..7cca41e 100644 --- a/swagger_models/net_inst_status_filter.go +++ b/swagger_models/net_inst_status_filter.go @@ -151,6 +151,11 @@ func (m *NetInstStatusFilter) ContextValidate(ctx context.Context, formats strfm func (m *NetInstStatusFilter) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -167,6 +172,11 @@ func (m *NetInstStatusFilter) contextValidateKind(ctx context.Context, formats s func (m *NetInstStatusFilter) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -183,6 +193,11 @@ func (m *NetInstStatusFilter) contextValidateRunState(ctx context.Context, forma func (m *NetInstStatusFilter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_inst_status_list_msg.go b/swagger_models/net_inst_status_list_msg.go index 999c07a..dc61103 100644 --- a/swagger_models/net_inst_status_list_msg.go +++ b/swagger_models/net_inst_status_list_msg.go @@ -173,6 +173,11 @@ func (m *NetInstStatusListMsg) contextValidateList(ctx context.Context, formats for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -191,6 +196,11 @@ func (m *NetInstStatusListMsg) contextValidateList(ctx context.Context, formats func (m *NetInstStatusListMsg) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -207,6 +217,11 @@ func (m *NetInstStatusListMsg) contextValidateNext(ctx context.Context, formats func (m *NetInstStatusListMsg) contextValidateSummaryByAddressType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByAddressType != nil { + + if swag.IsZero(m.SummaryByAddressType) { // not required + return nil + } + if err := m.SummaryByAddressType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByAddressType") @@ -223,6 +238,11 @@ func (m *NetInstStatusListMsg) contextValidateSummaryByAddressType(ctx context.C func (m *NetInstStatusListMsg) contextValidateSummaryByKind(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByKind != nil { + + if swag.IsZero(m.SummaryByKind) { // not required + return nil + } + if err := m.SummaryByKind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByKind") diff --git a/swagger_models/net_inst_status_msg.go b/swagger_models/net_inst_status_msg.go index 0e64da6..8a13046 100644 --- a/swagger_models/net_inst_status_msg.go +++ b/swagger_models/net_inst_status_msg.go @@ -390,6 +390,11 @@ func (m *NetInstStatusMsg) contextValidateAssignedAdapters(ctx context.Context, for i := 0; i < len(m.AssignedAdapters); i++ { if m.AssignedAdapters[i] != nil { + + if swag.IsZero(m.AssignedAdapters[i]) { // not required + return nil + } + if err := m.AssignedAdapters[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("assignedAdapters" + "." + strconv.Itoa(i)) @@ -410,6 +415,11 @@ func (m *NetInstStatusMsg) contextValidateErrInfo(ctx context.Context, formats s for i := 0; i < len(m.ErrInfo); i++ { if m.ErrInfo[i] != nil { + + if swag.IsZero(m.ErrInfo[i]) { // not required + return nil + } + if err := m.ErrInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo" + "." + strconv.Itoa(i)) @@ -439,6 +449,11 @@ func (m *NetInstStatusMsg) contextValidateIPMappings(ctx context.Context, format for i := 0; i < len(m.IPMappings); i++ { if m.IPMappings[i] != nil { + + if swag.IsZero(m.IPMappings[i]) { // not required + return nil + } + if err := m.IPMappings[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ipMappings" + "." + strconv.Itoa(i)) @@ -457,6 +472,11 @@ func (m *NetInstStatusMsg) contextValidateIPMappings(ctx context.Context, format func (m *NetInstStatusMsg) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -473,6 +493,11 @@ func (m *NetInstStatusMsg) contextValidateKind(ctx context.Context, formats strf func (m *NetInstStatusMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -491,6 +516,11 @@ func (m *NetInstStatusMsg) contextValidateVifs(ctx context.Context, formats strf for i := 0; i < len(m.Vifs); i++ { if m.Vifs[i] != nil { + + if swag.IsZero(m.Vifs[i]) { // not required + return nil + } + if err := m.Vifs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vifs" + "." + strconv.Itoa(i)) diff --git a/swagger_models/net_inst_status_summary_msg.go b/swagger_models/net_inst_status_summary_msg.go index 4357c0c..6f70828 100644 --- a/swagger_models/net_inst_status_summary_msg.go +++ b/swagger_models/net_inst_status_summary_msg.go @@ -269,6 +269,11 @@ func (m *NetInstStatusSummaryMsg) contextValidateID(ctx context.Context, formats func (m *NetInstStatusSummaryMsg) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -285,6 +290,11 @@ func (m *NetInstStatusSummaryMsg) contextValidateKind(ctx context.Context, forma func (m *NetInstStatusSummaryMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -301,6 +311,11 @@ func (m *NetInstStatusSummaryMsg) contextValidateRunState(ctx context.Context, f func (m *NetInstStatusSummaryMsg) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/net_proxy_config.go b/swagger_models/net_proxy_config.go index 9c15aa9..8039d63 100644 --- a/swagger_models/net_proxy_config.go +++ b/swagger_models/net_proxy_config.go @@ -108,6 +108,11 @@ func (m *NetProxyConfig) contextValidateProxies(ctx context.Context, formats str for i := 0; i < len(m.Proxies); i++ { if m.Proxies[i] != nil { + + if swag.IsZero(m.Proxies[i]) { // not required + return nil + } + if err := m.Proxies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) diff --git a/swagger_models/net_proxy_server.go b/swagger_models/net_proxy_server.go index 9708c87..6a350c4 100644 --- a/swagger_models/net_proxy_server.go +++ b/swagger_models/net_proxy_server.go @@ -81,6 +81,11 @@ func (m *NetProxyServer) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *NetProxyServer) contextValidateProto(ctx context.Context, formats strfmt.Registry) error { if m.Proto != nil { + + if swag.IsZero(m.Proto) { // not required + return nil + } + if err := m.Proto.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proto") diff --git a/swagger_models/net_proxy_status.go b/swagger_models/net_proxy_status.go index 3cf701d..542a260 100644 --- a/swagger_models/net_proxy_status.go +++ b/swagger_models/net_proxy_status.go @@ -108,6 +108,11 @@ func (m *NetProxyStatus) contextValidateProxies(ctx context.Context, formats str for i := 0; i < len(m.Proxies); i++ { if m.Proxies[i] != nil { + + if swag.IsZero(m.Proxies[i]) { // not required + return nil + } + if err := m.Proxies[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxies" + "." + strconv.Itoa(i)) diff --git a/swagger_models/net_wifi_config.go b/swagger_models/net_wifi_config.go index 18227fc..4d6ce06 100644 --- a/swagger_models/net_wifi_config.go +++ b/swagger_models/net_wifi_config.go @@ -148,6 +148,11 @@ func (m *NetWifiConfig) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *NetWifiConfig) contextValidateCrypto(ctx context.Context, formats strfmt.Registry) error { if m.Crypto != nil { + + if swag.IsZero(m.Crypto) { // not required + return nil + } + if err := m.Crypto.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("crypto") @@ -164,6 +169,11 @@ func (m *NetWifiConfig) contextValidateCrypto(ctx context.Context, formats strfm func (m *NetWifiConfig) contextValidateKeyScheme(ctx context.Context, formats strfmt.Registry) error { if m.KeyScheme != nil { + + if swag.IsZero(m.KeyScheme) { // not required + return nil + } + if err := m.KeyScheme.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("keyScheme") @@ -180,6 +190,11 @@ func (m *NetWifiConfig) contextValidateKeyScheme(ctx context.Context, formats st func (m *NetWifiConfig) contextValidateSecret(ctx context.Context, formats strfmt.Registry) error { if m.Secret != nil { + + if swag.IsZero(m.Secret) { // not required + return nil + } + if err := m.Secret.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("secret") diff --git a/swagger_models/net_wireless_config.go b/swagger_models/net_wireless_config.go index 548df2d..94390c5 100644 --- a/swagger_models/net_wireless_config.go +++ b/swagger_models/net_wireless_config.go @@ -133,6 +133,11 @@ func (m *NetWirelessConfig) ContextValidate(ctx context.Context, formats strfmt. func (m *NetWirelessConfig) contextValidateCellularCfg(ctx context.Context, formats strfmt.Registry) error { if m.CellularCfg != nil { + + if swag.IsZero(m.CellularCfg) { // not required + return nil + } + if err := m.CellularCfg.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cellularCfg") @@ -149,6 +154,11 @@ func (m *NetWirelessConfig) contextValidateCellularCfg(ctx context.Context, form func (m *NetWirelessConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") @@ -165,6 +175,11 @@ func (m *NetWirelessConfig) contextValidateType(ctx context.Context, formats str func (m *NetWirelessConfig) contextValidateWifiCfg(ctx context.Context, formats strfmt.Registry) error { if m.WifiCfg != nil { + + if swag.IsZero(m.WifiCfg) { // not required + return nil + } + if err := m.WifiCfg.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("wifiCfg") diff --git a/swagger_models/network_config_or_default.go b/swagger_models/network_config_or_default.go index 1df9751..c1775b9 100644 --- a/swagger_models/network_config_or_default.go +++ b/swagger_models/network_config_or_default.go @@ -76,6 +76,11 @@ func (m *NetworkConfigOrDefault) ContextValidate(ctx context.Context, formats st func (m *NetworkConfigOrDefault) contextValidateNetInstanceConfig(ctx context.Context, formats strfmt.Registry) error { if m.NetInstanceConfig != nil { + + if swag.IsZero(m.NetInstanceConfig) { // not required + return nil + } + if err := m.NetInstanceConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netInstanceConfig") diff --git a/swagger_models/network_filter.go b/swagger_models/network_filter.go index c45fa85..1a8f233 100644 --- a/swagger_models/network_filter.go +++ b/swagger_models/network_filter.go @@ -112,6 +112,11 @@ func (m *NetworkFilter) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *NetworkFilter) contextValidateDist(ctx context.Context, formats strfmt.Registry) error { if m.Dist != nil { + + if swag.IsZero(m.Dist) { // not required + return nil + } + if err := m.Dist.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dist") @@ -128,6 +133,11 @@ func (m *NetworkFilter) contextValidateDist(ctx context.Context, formats strfmt. func (m *NetworkFilter) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") diff --git a/swagger_models/network_inst_config.go b/swagger_models/network_inst_config.go index 6f05a61..71a9cd2 100644 --- a/swagger_models/network_inst_config.go +++ b/swagger_models/network_inst_config.go @@ -219,6 +219,11 @@ func (m *NetworkInstConfig) contextValidateDNSList(ctx context.Context, formats for i := 0; i < len(m.DNSList); i++ { if m.DNSList[i] != nil { + + if swag.IsZero(m.DNSList[i]) { // not required + return nil + } + if err := m.DNSList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dnsList" + "." + strconv.Itoa(i)) @@ -237,6 +242,11 @@ func (m *NetworkInstConfig) contextValidateDNSList(ctx context.Context, formats func (m *NetworkInstConfig) contextValidateIP(ctx context.Context, formats strfmt.Registry) error { if m.IP != nil { + + if swag.IsZero(m.IP) { // not required + return nil + } + if err := m.IP.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ip") @@ -253,6 +263,11 @@ func (m *NetworkInstConfig) contextValidateIP(ctx context.Context, formats strfm func (m *NetworkInstConfig) contextValidateKind(ctx context.Context, formats strfmt.Registry) error { if m.Kind != nil { + + if swag.IsZero(m.Kind) { // not required + return nil + } + if err := m.Kind.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("kind") @@ -269,6 +284,11 @@ func (m *NetworkInstConfig) contextValidateKind(ctx context.Context, formats str func (m *NetworkInstConfig) contextValidateOpaque(ctx context.Context, formats strfmt.Registry) error { if m.Opaque != nil { + + if swag.IsZero(m.Opaque) { // not required + return nil + } + if err := m.Opaque.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("opaque") @@ -285,6 +305,11 @@ func (m *NetworkInstConfig) contextValidateOpaque(ctx context.Context, formats s func (m *NetworkInstConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/network_inst_policy.go b/swagger_models/network_inst_policy.go index f493f13..8e23ca1 100644 --- a/swagger_models/network_inst_policy.go +++ b/swagger_models/network_inst_policy.go @@ -103,6 +103,11 @@ func (m *NetworkInstPolicy) ContextValidate(ctx context.Context, formats strfmt. func (m *NetworkInstPolicy) contextValidateMetaData(ctx context.Context, formats strfmt.Registry) error { if m.MetaData != nil { + + if swag.IsZero(m.MetaData) { // not required + return nil + } + if err := m.MetaData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metaData") @@ -119,6 +124,11 @@ func (m *NetworkInstPolicy) contextValidateMetaData(ctx context.Context, formats func (m *NetworkInstPolicy) contextValidateNetInstConfig(ctx context.Context, formats strfmt.Registry) error { if m.NetInstConfig != nil { + + if swag.IsZero(m.NetInstConfig) { // not required + return nil + } + if err := m.NetInstConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netInstConfig") diff --git a/swagger_models/network_policy.go b/swagger_models/network_policy.go index e13fe63..708f138 100644 --- a/swagger_models/network_policy.go +++ b/swagger_models/network_policy.go @@ -88,6 +88,11 @@ func (m *NetworkPolicy) contextValidateNetInstanceConfig(ctx context.Context, fo for i := 0; i < len(m.NetInstanceConfig); i++ { if m.NetInstanceConfig[i] != nil { + + if swag.IsZero(m.NetInstanceConfig[i]) { // not required + return nil + } + if err := m.NetInstanceConfig[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("netInstanceConfig" + "." + strconv.Itoa(i)) diff --git a/swagger_models/network_status.go b/swagger_models/network_status.go index 819da8a..486080d 100644 --- a/swagger_models/network_status.go +++ b/swagger_models/network_status.go @@ -213,6 +213,11 @@ func (m *NetworkStatus) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *NetworkStatus) contextValidateDNS(ctx context.Context, formats strfmt.Registry) error { if m.DNS != nil { + + if swag.IsZero(m.DNS) { // not required + return nil + } + if err := m.DNS.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("dns") @@ -229,6 +234,11 @@ func (m *NetworkStatus) contextValidateDNS(ctx context.Context, formats strfmt.R func (m *NetworkStatus) contextValidateErrInfo(ctx context.Context, formats strfmt.Registry) error { if m.ErrInfo != nil { + + if swag.IsZero(m.ErrInfo) { // not required + return nil + } + if err := m.ErrInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo") @@ -245,6 +255,11 @@ func (m *NetworkStatus) contextValidateErrInfo(ctx context.Context, formats strf func (m *NetworkStatus) contextValidateGpsLocation(ctx context.Context, formats strfmt.Registry) error { if m.GpsLocation != nil { + + if swag.IsZero(m.GpsLocation) { // not required + return nil + } + if err := m.GpsLocation.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("gpsLocation") @@ -261,6 +276,11 @@ func (m *NetworkStatus) contextValidateGpsLocation(ctx context.Context, formats func (m *NetworkStatus) contextValidateLocation(ctx context.Context, formats strfmt.Registry) error { if m.Location != nil { + + if swag.IsZero(m.Location) { // not required + return nil + } + if err := m.Location.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("location") @@ -277,6 +297,11 @@ func (m *NetworkStatus) contextValidateLocation(ctx context.Context, formats str func (m *NetworkStatus) contextValidateProxy(ctx context.Context, formats strfmt.Registry) error { if m.Proxy != nil { + + if swag.IsZero(m.Proxy) { // not required + return nil + } + if err := m.Proxy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("proxy") diff --git a/swagger_models/o_a_u_t_h_profile.go b/swagger_models/o_a_u_t_h_profile.go index dde7bcf..5c223ab 100644 --- a/swagger_models/o_a_u_t_h_profile.go +++ b/swagger_models/o_a_u_t_h_profile.go @@ -94,6 +94,11 @@ func (m *OAUTHProfile) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *OAUTHProfile) contextValidateJwtAuthProfile(ctx context.Context, formats strfmt.Registry) error { if m.JwtAuthProfile != nil { + + if swag.IsZero(m.JwtAuthProfile) { // not required + return nil + } + if err := m.JwtAuthProfile.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("jwtAuthProfile") diff --git a/swagger_models/o_a_u_t_h_profile_j_w_t_auth_profile.go b/swagger_models/o_a_u_t_h_profile_j_w_t_auth_profile.go index a861388..56bb29a 100644 --- a/swagger_models/o_a_u_t_h_profile_j_w_t_auth_profile.go +++ b/swagger_models/o_a_u_t_h_profile_j_w_t_auth_profile.go @@ -75,6 +75,11 @@ func (m *OAUTHProfileJWTAuthProfile) ContextValidate(ctx context.Context, format func (m *OAUTHProfileJWTAuthProfile) contextValidateAlg(ctx context.Context, formats strfmt.Registry) error { if m.Alg != nil { + + if swag.IsZero(m.Alg) { // not required + return nil + } + if err := m.Alg.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("alg") diff --git a/swagger_models/object_tag_filter.go b/swagger_models/object_tag_filter.go index 8655a7e..5e4d5de 100644 --- a/swagger_models/object_tag_filter.go +++ b/swagger_models/object_tag_filter.go @@ -81,6 +81,11 @@ func (m *ObjectTagFilter) ContextValidate(ctx context.Context, formats strfmt.Re func (m *ObjectTagFilter) contextValidateObjType(ctx context.Context, formats strfmt.Registry) error { if m.ObjType != nil { + + if swag.IsZero(m.ObjType) { // not required + return nil + } + if err := m.ObjType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("objType") diff --git a/swagger_models/object_tags_list.go b/swagger_models/object_tags_list.go index 568805f..2ea509e 100644 --- a/swagger_models/object_tags_list.go +++ b/swagger_models/object_tags_list.go @@ -113,6 +113,11 @@ func (m *ObjectTagsList) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *ObjectTagsList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -131,6 +136,11 @@ func (m *ObjectTagsList) contextValidateObjectTags(ctx context.Context, formats for i := 0; i < len(m.ObjectTags); i++ { if m.ObjectTags[i] != nil { + + if swag.IsZero(m.ObjectTags[i]) { // not required + return nil + } + if err := m.ObjectTags[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("objectTags" + "." + strconv.Itoa(i)) diff --git a/swagger_models/p_c_r_template.go b/swagger_models/p_c_r_template.go index 24e22b9..4fab39b 100644 --- a/swagger_models/p_c_r_template.go +++ b/swagger_models/p_c_r_template.go @@ -148,6 +148,11 @@ func (m *PCRTemplate) contextValidatePCRValues(ctx context.Context, formats strf for i := 0; i < len(m.PCRValues); i++ { if m.PCRValues[i] != nil { + + if swag.IsZero(m.PCRValues[i]) { // not required + return nil + } + if err := m.PCRValues[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("PCRValues" + "." + strconv.Itoa(i)) diff --git a/swagger_models/p_c_r_value.go b/swagger_models/p_c_r_value.go index 2fc29d0..2cad7a9 100644 --- a/swagger_models/p_c_r_value.go +++ b/swagger_models/p_c_r_value.go @@ -116,6 +116,7 @@ func (m *PCRValue) ContextValidate(ctx context.Context, formats strfmt.Registry) func (m *PCRValue) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/phy_adapter.go b/swagger_models/phy_adapter.go index cdb5eec..9c102e8 100644 --- a/swagger_models/phy_adapter.go +++ b/swagger_models/phy_adapter.go @@ -81,6 +81,11 @@ func (m *PhyAdapter) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *PhyAdapter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/physical_storage.go b/swagger_models/physical_storage.go index 04d4d4a..b5bb7f4 100644 --- a/swagger_models/physical_storage.go +++ b/swagger_models/physical_storage.go @@ -189,6 +189,11 @@ func (m *PhysicalStorage) ContextValidate(ctx context.Context, formats strfmt.Re func (m *PhysicalStorage) contextValidateCurrentRaid(ctx context.Context, formats strfmt.Registry) error { if m.CurrentRaid != nil { + + if swag.IsZero(m.CurrentRaid) { // not required + return nil + } + if err := m.CurrentRaid.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("currentRaid") @@ -207,6 +212,11 @@ func (m *PhysicalStorage) contextValidateDisks(ctx context.Context, formats strf for i := 0; i < len(m.Disks); i++ { if m.Disks[i] != nil { + + if swag.IsZero(m.Disks[i]) { // not required + return nil + } + if err := m.Disks[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disks" + "." + strconv.Itoa(i)) @@ -225,6 +235,11 @@ func (m *PhysicalStorage) contextValidateDisks(ctx context.Context, formats strf func (m *PhysicalStorage) contextValidateStorageState(ctx context.Context, formats strfmt.Registry) error { if m.StorageState != nil { + + if swag.IsZero(m.StorageState) { // not required + return nil + } + if err := m.StorageState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("storageState") @@ -241,6 +256,11 @@ func (m *PhysicalStorage) contextValidateStorageState(ctx context.Context, forma func (m *PhysicalStorage) contextValidateStorageType(ctx context.Context, formats strfmt.Registry) error { if m.StorageType != nil { + + if swag.IsZero(m.StorageType) { // not required + return nil + } + if err := m.StorageType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("storageType") diff --git a/swagger_models/physical_storage_disk_state.go b/swagger_models/physical_storage_disk_state.go index a70688d..f9747a3 100644 --- a/swagger_models/physical_storage_disk_state.go +++ b/swagger_models/physical_storage_disk_state.go @@ -103,6 +103,11 @@ func (m *PhysicalStorageDiskState) ContextValidate(ctx context.Context, formats func (m *PhysicalStorageDiskState) contextValidateDisk(ctx context.Context, formats strfmt.Registry) error { if m.Disk != nil { + + if swag.IsZero(m.Disk) { // not required + return nil + } + if err := m.Disk.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("disk") @@ -119,6 +124,11 @@ func (m *PhysicalStorageDiskState) contextValidateDisk(ctx context.Context, form func (m *PhysicalStorageDiskState) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/swagger_models/plugin_report.go b/swagger_models/plugin_report.go index 7e66f1e..6e37572 100644 --- a/swagger_models/plugin_report.go +++ b/swagger_models/plugin_report.go @@ -99,6 +99,11 @@ func (m *PluginReport) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *PluginReport) contextValidatePluginSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.PluginSummaryReport != nil { + + if swag.IsZero(m.PluginSummaryReport) { // not required + return nil + } + if err := m.PluginSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pluginSummaryReport") diff --git a/swagger_models/policies.go b/swagger_models/policies.go index 8da6c93..836ce8f 100644 --- a/swagger_models/policies.go +++ b/swagger_models/policies.go @@ -143,6 +143,11 @@ func (m *Policies) contextValidateList(ctx context.Context, formats strfmt.Regis for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *Policies) contextValidateList(ctx context.Context, formats strfmt.Regis func (m *Policies) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *Policies) contextValidateNext(ctx context.Context, formats strfmt.Regis func (m *Policies) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/policy.go b/swagger_models/policy.go index 8f4195b..14dcd9d 100644 --- a/swagger_models/policy.go +++ b/swagger_models/policy.go @@ -115,6 +115,11 @@ func (m *Policy) ContextValidate(ctx context.Context, formats strfmt.Registry) e func (m *Policy) contextValidateAccess(ctx context.Context, formats strfmt.Registry) error { if m.Access != nil { + + if swag.IsZero(m.Access) { // not required + return nil + } + if err := m.Access.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("access") @@ -131,6 +136,11 @@ func (m *Policy) contextValidateAccess(ctx context.Context, formats strfmt.Regis func (m *Policy) contextValidateScope(ctx context.Context, formats strfmt.Registry) error { if m.Scope != nil { + + if swag.IsZero(m.Scope) { // not required + return nil + } + if err := m.Scope.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scope") diff --git a/swagger_models/policy_common.go b/swagger_models/policy_common.go index cc7fecd..1a64196 100644 --- a/swagger_models/policy_common.go +++ b/swagger_models/policy_common.go @@ -88,6 +88,11 @@ func (m *PolicyCommon) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *PolicyCommon) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/policy_config.go b/swagger_models/policy_config.go index 2651211..8433bab 100644 --- a/swagger_models/policy_config.go +++ b/swagger_models/policy_config.go @@ -486,6 +486,11 @@ func (m *PolicyConfig) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *PolicyConfig) contextValidateAppPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AppPolicy != nil { + + if swag.IsZero(m.AppPolicy) { // not required + return nil + } + if err := m.AppPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appPolicy") @@ -502,6 +507,11 @@ func (m *PolicyConfig) contextValidateAppPolicy(ctx context.Context, formats str func (m *PolicyConfig) contextValidateAttestationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AttestationPolicy != nil { + + if swag.IsZero(m.AttestationPolicy) { // not required + return nil + } + if err := m.AttestationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestationPolicy") @@ -518,6 +528,11 @@ func (m *PolicyConfig) contextValidateAttestationPolicy(ctx context.Context, for func (m *PolicyConfig) contextValidateAzurePolicy(ctx context.Context, formats strfmt.Registry) error { if m.AzurePolicy != nil { + + if swag.IsZero(m.AzurePolicy) { // not required + return nil + } + if err := m.AzurePolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("azurePolicy") @@ -534,6 +549,11 @@ func (m *PolicyConfig) contextValidateAzurePolicy(ctx context.Context, formats s func (m *PolicyConfig) contextValidateClusterPolicy(ctx context.Context, formats strfmt.Registry) error { if m.ClusterPolicy != nil { + + if swag.IsZero(m.ClusterPolicy) { // not required + return nil + } + if err := m.ClusterPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("clusterPolicy") @@ -550,6 +570,11 @@ func (m *PolicyConfig) contextValidateClusterPolicy(ctx context.Context, formats func (m *PolicyConfig) contextValidateEdgeviewPolicy(ctx context.Context, formats strfmt.Registry) error { if m.EdgeviewPolicy != nil { + + if swag.IsZero(m.EdgeviewPolicy) { // not required + return nil + } + if err := m.EdgeviewPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeviewPolicy") @@ -575,6 +600,11 @@ func (m *PolicyConfig) contextValidateID(ctx context.Context, formats strfmt.Reg func (m *PolicyConfig) contextValidateModulePolicy(ctx context.Context, formats strfmt.Registry) error { if m.ModulePolicy != nil { + + if swag.IsZero(m.ModulePolicy) { // not required + return nil + } + if err := m.ModulePolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("modulePolicy") @@ -591,6 +621,11 @@ func (m *PolicyConfig) contextValidateModulePolicy(ctx context.Context, formats func (m *PolicyConfig) contextValidateNetworkPolicy(ctx context.Context, formats strfmt.Registry) error { if m.NetworkPolicy != nil { + + if swag.IsZero(m.NetworkPolicy) { // not required + return nil + } + if err := m.NetworkPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("networkPolicy") @@ -607,6 +642,11 @@ func (m *PolicyConfig) contextValidateNetworkPolicy(ctx context.Context, formats func (m *PolicyConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -623,6 +663,11 @@ func (m *PolicyConfig) contextValidateRevision(ctx context.Context, formats strf func (m *PolicyConfig) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -639,6 +684,7 @@ func (m *PolicyConfig) contextValidateStatus(ctx context.Context, formats strfmt func (m *PolicyConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/policy_doc_version.go b/swagger_models/policy_doc_version.go index 590c682..f3fae72 100644 --- a/swagger_models/policy_doc_version.go +++ b/swagger_models/policy_doc_version.go @@ -82,6 +82,11 @@ func (m *PolicyDocVersion) ContextValidate(ctx context.Context, formats strfmt.R func (m *PolicyDocVersion) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/policy_doc_version_list.go b/swagger_models/policy_doc_version_list.go index fc8c5b7..ee04d53 100644 --- a/swagger_models/policy_doc_version_list.go +++ b/swagger_models/policy_doc_version_list.go @@ -143,6 +143,11 @@ func (m *PolicyDocVersionList) contextValidateList(ctx context.Context, formats for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *PolicyDocVersionList) contextValidateList(ctx context.Context, formats func (m *PolicyDocVersionList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *PolicyDocVersionList) contextValidateNext(ctx context.Context, formats func (m *PolicyDocVersionList) contextValidateSummary(ctx context.Context, formats strfmt.Registry) error { if m.Summary != nil { + + if swag.IsZero(m.Summary) { // not required + return nil + } + if err := m.Summary.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summary") diff --git a/swagger_models/policy_doc_version_resp.go b/swagger_models/policy_doc_version_resp.go index 8205234..e719662 100644 --- a/swagger_models/policy_doc_version_resp.go +++ b/swagger_models/policy_doc_version_resp.go @@ -133,6 +133,11 @@ func (m *PolicyDocVersionResp) ContextValidate(ctx context.Context, formats strf func (m *PolicyDocVersionResp) contextValidatePinfo(ctx context.Context, formats strfmt.Registry) error { if m.Pinfo != nil { + + if swag.IsZero(m.Pinfo) { // not required + return nil + } + if err := m.Pinfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("pinfo") @@ -149,6 +154,11 @@ func (m *PolicyDocVersionResp) contextValidatePinfo(ctx context.Context, formats func (m *PolicyDocVersionResp) contextValidatePlist(ctx context.Context, formats strfmt.Registry) error { if m.Plist != nil { + + if swag.IsZero(m.Plist) { // not required + return nil + } + if err := m.Plist.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("plist") @@ -165,6 +175,11 @@ func (m *PolicyDocVersionResp) contextValidatePlist(ctx context.Context, formats func (m *PolicyDocVersionResp) contextValidateResult(ctx context.Context, formats strfmt.Registry) error { if m.Result != nil { + + if swag.IsZero(m.Result) { // not required + return nil + } + if err := m.Result.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("result") diff --git a/swagger_models/policy_version_list.go b/swagger_models/policy_version_list.go index ec3bcc5..0668ee3 100644 --- a/swagger_models/policy_version_list.go +++ b/swagger_models/policy_version_list.go @@ -83,6 +83,11 @@ func (m *PolicyVersionList) contextValidateList(ctx context.Context, formats str for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) diff --git a/swagger_models/project_report.go b/swagger_models/project_report.go index dc21f8a..49bd61d 100644 --- a/swagger_models/project_report.go +++ b/swagger_models/project_report.go @@ -129,6 +129,11 @@ func (m *ProjectReport) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *ProjectReport) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -145,6 +150,11 @@ func (m *ProjectReport) contextValidateNext(ctx context.Context, formats strfmt. func (m *ProjectReport) contextValidateProjectSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.ProjectSummaryReport != nil { + + if swag.IsZero(m.ProjectSummaryReport) { // not required + return nil + } + if err := m.ProjectSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("projectSummaryReport") diff --git a/swagger_models/project_summary_report.go b/swagger_models/project_summary_report.go index 79c1529..77d8e81 100644 --- a/swagger_models/project_summary_report.go +++ b/swagger_models/project_summary_report.go @@ -86,6 +86,11 @@ func (m *ProjectSummaryReport) contextValidateDeviceDistribution(ctx context.Con for i := 0; i < len(m.DeviceDistribution); i++ { if m.DeviceDistribution[i] != nil { + + if swag.IsZero(m.DeviceDistribution[i]) { // not required + return nil + } + if err := m.DeviceDistribution[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceDistribution" + "." + strconv.Itoa(i)) diff --git a/swagger_models/realm.go b/swagger_models/realm.go index e83d344..b97f038 100644 --- a/swagger_models/realm.go +++ b/swagger_models/realm.go @@ -218,6 +218,11 @@ func (m *Realm) contextValidateID(ctx context.Context, formats strfmt.Registry) func (m *Realm) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") diff --git a/swagger_models/realms.go b/swagger_models/realms.go index 8c74eea..85c4571 100644 --- a/swagger_models/realms.go +++ b/swagger_models/realms.go @@ -143,6 +143,11 @@ func (m *Realms) contextValidateList(ctx context.Context, formats strfmt.Registr for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *Realms) contextValidateList(ctx context.Context, formats strfmt.Registr func (m *Realms) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *Realms) contextValidateNext(ctx context.Context, formats strfmt.Registr func (m *Realms) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/role.go b/swagger_models/role.go index 80f86df..1ff7b7a 100644 --- a/swagger_models/role.go +++ b/swagger_models/role.go @@ -302,6 +302,11 @@ func (m *Role) contextValidateID(ctx context.Context, formats strfmt.Registry) e func (m *Role) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -320,6 +325,11 @@ func (m *Role) contextValidateScopes(ctx context.Context, formats strfmt.Registr for i := 0; i < len(m.Scopes); i++ { if m.Scopes[i] != nil { + + if swag.IsZero(m.Scopes[i]) { // not required + return nil + } + if err := m.Scopes[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scopes" + "." + strconv.Itoa(i)) @@ -338,6 +348,11 @@ func (m *Role) contextValidateScopes(ctx context.Context, formats strfmt.Registr func (m *Role) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") @@ -354,6 +369,7 @@ func (m *Role) contextValidateState(ctx context.Context, formats strfmt.Registry func (m *Role) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/roles.go b/swagger_models/roles.go index 8d8d11c..76d2b4c 100644 --- a/swagger_models/roles.go +++ b/swagger_models/roles.go @@ -143,6 +143,11 @@ func (m *Roles) contextValidateList(ctx context.Context, formats strfmt.Registry for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -161,6 +166,11 @@ func (m *Roles) contextValidateList(ctx context.Context, formats strfmt.Registry func (m *Roles) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -177,6 +187,11 @@ func (m *Roles) contextValidateNext(ctx context.Context, formats strfmt.Registry func (m *Roles) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") diff --git a/swagger_models/s_w_info.go b/swagger_models/s_w_info.go index b9c417c..6446cae 100644 --- a/swagger_models/s_w_info.go +++ b/swagger_models/s_w_info.go @@ -90,6 +90,11 @@ func (m *SWInfo) ContextValidate(ctx context.Context, formats strfmt.Registry) e func (m *SWInfo) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") diff --git a/swagger_models/service_point.go b/swagger_models/service_point.go index 3ed80fd..b2d1308 100644 --- a/swagger_models/service_point.go +++ b/swagger_models/service_point.go @@ -81,6 +81,11 @@ func (m *ServicePoint) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *ServicePoint) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/simple_user.go b/swagger_models/simple_user.go index e20f441..ebc2a5f 100644 --- a/swagger_models/simple_user.go +++ b/swagger_models/simple_user.go @@ -85,6 +85,11 @@ func (m *SimpleUser) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *SimpleUser) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") diff --git a/swagger_models/status.go b/swagger_models/status.go index a1497e2..25a7e7c 100644 --- a/swagger_models/status.go +++ b/swagger_models/status.go @@ -107,6 +107,11 @@ func (m *Status) ContextValidate(ctx context.Context, formats strfmt.Registry) e func (m *Status) contextValidateCode(ctx context.Context, formats strfmt.Registry) error { if m.Code != nil { + + if swag.IsZero(m.Code) { // not required + return nil + } + if err := m.Code.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("code") @@ -123,6 +128,11 @@ func (m *Status) contextValidateCode(ctx context.Context, formats strfmt.Registr func (m *Status) contextValidateDescription(ctx context.Context, formats strfmt.Registry) error { if m.Description != nil { + + if swag.IsZero(m.Description) { // not required + return nil + } + if err := m.Description.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("description") diff --git a/swagger_models/symmetric_key_enrollment_detail.go b/swagger_models/symmetric_key_enrollment_detail.go index 213019f..5b7cd67 100644 --- a/swagger_models/symmetric_key_enrollment_detail.go +++ b/swagger_models/symmetric_key_enrollment_detail.go @@ -133,6 +133,11 @@ func (m *SymmetricKeyEnrollmentDetail) ContextValidate(ctx context.Context, form func (m *SymmetricKeyEnrollmentDetail) contextValidateGroupSymmetricKeyEnrollment(ctx context.Context, formats strfmt.Registry) error { if m.GroupSymmetricKeyEnrollment != nil { + + if swag.IsZero(m.GroupSymmetricKeyEnrollment) { // not required + return nil + } + if err := m.GroupSymmetricKeyEnrollment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("groupSymmetricKeyEnrollment") @@ -149,6 +154,11 @@ func (m *SymmetricKeyEnrollmentDetail) contextValidateGroupSymmetricKeyEnrollmen func (m *SymmetricKeyEnrollmentDetail) contextValidateIndividualSymmetricKeyEnrollment(ctx context.Context, formats strfmt.Registry) error { if m.IndividualSymmetricKeyEnrollment != nil { + + if swag.IsZero(m.IndividualSymmetricKeyEnrollment) { // not required + return nil + } + if err := m.IndividualSymmetricKeyEnrollment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("individualSymmetricKeyEnrollment") @@ -165,6 +175,11 @@ func (m *SymmetricKeyEnrollmentDetail) contextValidateIndividualSymmetricKeyEnro func (m *SymmetricKeyEnrollmentDetail) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/sys_brand.go b/swagger_models/sys_brand.go index 65cac47..a83afb9 100644 --- a/swagger_models/sys_brand.go +++ b/swagger_models/sys_brand.go @@ -263,6 +263,7 @@ func (m *SysBrand) contextValidateID(ctx context.Context, formats strfmt.Registr func (m *SysBrand) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -279,6 +280,11 @@ func (m *SysBrand) contextValidateOriginType(ctx context.Context, formats strfmt func (m *SysBrand) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -295,6 +301,11 @@ func (m *SysBrand) contextValidateRevision(ctx context.Context, formats strfmt.R func (m *SysBrand) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + + if swag.IsZero(m.State) { // not required + return nil + } + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") diff --git a/swagger_models/sys_brand_filter.go b/swagger_models/sys_brand_filter.go index 67befb4..3551a59 100644 --- a/swagger_models/sys_brand_filter.go +++ b/swagger_models/sys_brand_filter.go @@ -110,6 +110,7 @@ func (m *SysBrandFilter) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *SysBrandFilter) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") diff --git a/swagger_models/sys_brands.go b/swagger_models/sys_brands.go index 56d0436..3efc839 100644 --- a/swagger_models/sys_brands.go +++ b/swagger_models/sys_brands.go @@ -145,6 +145,11 @@ func (m *SysBrands) contextValidateList(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -163,6 +168,11 @@ func (m *SysBrands) contextValidateList(ctx context.Context, formats strfmt.Regi func (m *SysBrands) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -179,6 +189,11 @@ func (m *SysBrands) contextValidateNext(ctx context.Context, formats strfmt.Regi func (m *SysBrands) contextValidateTerse(ctx context.Context, formats strfmt.Registry) error { if m.Terse != nil { + + if swag.IsZero(m.Terse) { // not required + return nil + } + if err := m.Terse.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("terse") diff --git a/swagger_models/sys_interface.go b/swagger_models/sys_interface.go index da88512..5e6ae55 100644 --- a/swagger_models/sys_interface.go +++ b/swagger_models/sys_interface.go @@ -111,6 +111,11 @@ func (m *SysInterface) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *SysInterface) contextValidateIntfUsage(ctx context.Context, formats strfmt.Registry) error { if m.IntfUsage != nil { + + if swag.IsZero(m.IntfUsage) { // not required + return nil + } + if err := m.IntfUsage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("intfUsage") diff --git a/swagger_models/sys_model.go b/swagger_models/sys_model.go index de5dc38..150ca65 100644 --- a/swagger_models/sys_model.go +++ b/swagger_models/sys_model.go @@ -453,6 +453,11 @@ func (m *SysModel) contextValidatePCRTemplates(ctx context.Context, formats strf for i := 0; i < len(m.PCRTemplates); i++ { if m.PCRTemplates[i] != nil { + + if swag.IsZero(m.PCRTemplates[i]) { // not required + return nil + } + if err := m.PCRTemplates[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("PCRTemplates" + "." + strconv.Itoa(i)) @@ -482,6 +487,11 @@ func (m *SysModel) contextValidateIoMemberList(ctx context.Context, formats strf for i := 0; i < len(m.IoMemberList); i++ { if m.IoMemberList[i] != nil { + + if swag.IsZero(m.IoMemberList[i]) { // not required + return nil + } + if err := m.IoMemberList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ioMemberList" + "." + strconv.Itoa(i)) @@ -500,6 +510,7 @@ func (m *SysModel) contextValidateIoMemberList(ctx context.Context, formats strf func (m *SysModel) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") @@ -516,6 +527,11 @@ func (m *SysModel) contextValidateOriginType(ctx context.Context, formats strfmt func (m *SysModel) contextValidateParentDetail(ctx context.Context, formats strfmt.Registry) error { if m.ParentDetail != nil { + + if swag.IsZero(m.ParentDetail) { // not required + return nil + } + if err := m.ParentDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("parentDetail") @@ -532,6 +548,11 @@ func (m *SysModel) contextValidateParentDetail(ctx context.Context, formats strf func (m *SysModel) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -548,6 +569,7 @@ func (m *SysModel) contextValidateRevision(ctx context.Context, formats strfmt.R func (m *SysModel) contextValidateState(ctx context.Context, formats strfmt.Registry) error { if m.State != nil { + if err := m.State.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("state") @@ -564,6 +586,7 @@ func (m *SysModel) contextValidateState(ctx context.Context, formats strfmt.Regi func (m *SysModel) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/sys_model_detail.go b/swagger_models/sys_model_detail.go index 12082ce..34024cb 100644 --- a/swagger_models/sys_model_detail.go +++ b/swagger_models/sys_model_detail.go @@ -79,6 +79,11 @@ func (m *SysModelDetail) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *SysModelDetail) contextValidateCustomModelFields(ctx context.Context, formats strfmt.Registry) error { if m.CustomModelFields != nil { + + if swag.IsZero(m.CustomModelFields) { // not required + return nil + } + if err := m.CustomModelFields.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customModelFields") diff --git a/swagger_models/sys_model_filter.go b/swagger_models/sys_model_filter.go index d862eab..1673d6f 100644 --- a/swagger_models/sys_model_filter.go +++ b/swagger_models/sys_model_filter.go @@ -127,6 +127,11 @@ func (m *SysModelFilter) ContextValidate(ctx context.Context, formats strfmt.Reg func (m *SysModelFilter) contextValidateOriginType(ctx context.Context, formats strfmt.Registry) error { if m.OriginType != nil { + + if swag.IsZero(m.OriginType) { // not required + return nil + } + if err := m.OriginType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("originType") diff --git a/swagger_models/sys_models.go b/swagger_models/sys_models.go index eccff98..fa67b1b 100644 --- a/swagger_models/sys_models.go +++ b/swagger_models/sys_models.go @@ -205,6 +205,11 @@ func (m *SysModels) contextValidateList(ctx context.Context, formats strfmt.Regi for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -223,6 +228,11 @@ func (m *SysModels) contextValidateList(ctx context.Context, formats strfmt.Regi func (m *SysModels) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -239,6 +249,11 @@ func (m *SysModels) contextValidateNext(ctx context.Context, formats strfmt.Regi func (m *SysModels) contextValidateSummaryByBrandDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByBrandDistribution != nil { + + if swag.IsZero(m.SummaryByBrandDistribution) { // not required + return nil + } + if err := m.SummaryByBrandDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByBrandDistribution") @@ -255,6 +270,11 @@ func (m *SysModels) contextValidateSummaryByBrandDistribution(ctx context.Contex func (m *SysModels) contextValidateSummaryByDeviceDistribution(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByDeviceDistribution != nil { + + if swag.IsZero(m.SummaryByDeviceDistribution) { // not required + return nil + } + if err := m.SummaryByDeviceDistribution.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByDeviceDistribution") @@ -271,6 +291,11 @@ func (m *SysModels) contextValidateSummaryByDeviceDistribution(ctx context.Conte func (m *SysModels) contextValidateTerse(ctx context.Context, formats strfmt.Registry) error { if m.Terse != nil { + + if swag.IsZero(m.Terse) { // not required + return nil + } + if err := m.Terse.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("terse") diff --git a/swagger_models/t_p_m_enrollment_detail.go b/swagger_models/t_p_m_enrollment_detail.go index 8f41130..9876f21 100644 --- a/swagger_models/t_p_m_enrollment_detail.go +++ b/swagger_models/t_p_m_enrollment_detail.go @@ -73,6 +73,11 @@ func (m *TPMEnrollmentDetail) ContextValidate(ctx context.Context, formats strfm func (m *TPMEnrollmentDetail) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/tag.go b/swagger_models/tag.go index 1433865..d2d7fac 100644 --- a/swagger_models/tag.go +++ b/swagger_models/tag.go @@ -460,6 +460,11 @@ func (m *Tag) ContextValidate(ctx context.Context, formats strfmt.Registry) erro func (m *Tag) contextValidateAppPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AppPolicy != nil { + + if swag.IsZero(m.AppPolicy) { // not required + return nil + } + if err := m.AppPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appPolicy") @@ -476,6 +481,11 @@ func (m *Tag) contextValidateAppPolicy(ctx context.Context, formats strfmt.Regis func (m *Tag) contextValidateAttestationPolicy(ctx context.Context, formats strfmt.Registry) error { if m.AttestationPolicy != nil { + + if swag.IsZero(m.AttestationPolicy) { // not required + return nil + } + if err := m.AttestationPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestationPolicy") @@ -497,6 +507,11 @@ func (m *Tag) contextValidateAttr(ctx context.Context, formats strfmt.Registry) func (m *Tag) contextValidateCloudPolicy(ctx context.Context, formats strfmt.Registry) error { if m.CloudPolicy != nil { + + if swag.IsZero(m.CloudPolicy) { // not required + return nil + } + if err := m.CloudPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cloudPolicy") @@ -513,6 +528,11 @@ func (m *Tag) contextValidateCloudPolicy(ctx context.Context, formats strfmt.Reg func (m *Tag) contextValidateDeployment(ctx context.Context, formats strfmt.Registry) error { if m.Deployment != nil { + + if swag.IsZero(m.Deployment) { // not required + return nil + } + if err := m.Deployment.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deployment") @@ -529,6 +549,11 @@ func (m *Tag) contextValidateDeployment(ctx context.Context, formats strfmt.Regi func (m *Tag) contextValidateEdgeviewPolicy(ctx context.Context, formats strfmt.Registry) error { if m.EdgeviewPolicy != nil { + + if swag.IsZero(m.EdgeviewPolicy) { // not required + return nil + } + if err := m.EdgeviewPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("edgeviewPolicy") @@ -560,6 +585,11 @@ func (m *Tag) contextValidateModulePolicy(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.ModulePolicy); i++ { if m.ModulePolicy[i] != nil { + + if swag.IsZero(m.ModulePolicy[i]) { // not required + return nil + } + if err := m.ModulePolicy[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("modulePolicy" + "." + strconv.Itoa(i)) @@ -578,6 +608,11 @@ func (m *Tag) contextValidateModulePolicy(ctx context.Context, formats strfmt.Re func (m *Tag) contextValidateNetworkPolicy(ctx context.Context, formats strfmt.Registry) error { if m.NetworkPolicy != nil { + + if swag.IsZero(m.NetworkPolicy) { // not required + return nil + } + if err := m.NetworkPolicy.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("networkPolicy") @@ -603,6 +638,11 @@ func (m *Tag) contextValidateNumdevices(ctx context.Context, formats strfmt.Regi func (m *Tag) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -619,6 +659,7 @@ func (m *Tag) contextValidateRevision(ctx context.Context, formats strfmt.Regist func (m *Tag) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/tag_config_status.go b/swagger_models/tag_config_status.go index 94ef0f9..f377e9e 100644 --- a/swagger_models/tag_config_status.go +++ b/swagger_models/tag_config_status.go @@ -208,6 +208,11 @@ func (m *TagConfigStatus) ContextValidate(ctx context.Context, formats strfmt.Re func (m *TagConfigStatus) contextValidateAttestPolicyType(ctx context.Context, formats strfmt.Registry) error { if m.AttestPolicyType != nil { + + if swag.IsZero(m.AttestPolicyType) { // not required + return nil + } + if err := m.AttestPolicyType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("attestPolicyType") @@ -224,6 +229,11 @@ func (m *TagConfigStatus) contextValidateAttestPolicyType(ctx context.Context, f func (m *TagConfigStatus) contextValidateCloudPolicyType(ctx context.Context, formats strfmt.Registry) error { if m.CloudPolicyType != nil { + + if swag.IsZero(m.CloudPolicyType) { // not required + return nil + } + if err := m.CloudPolicyType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cloudPolicyType") @@ -249,6 +259,11 @@ func (m *TagConfigStatus) contextValidateID(ctx context.Context, formats strfmt. func (m *TagConfigStatus) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") diff --git a/swagger_models/tag_filter.go b/swagger_models/tag_filter.go index 3c90e26..0ba085e 100644 --- a/swagger_models/tag_filter.go +++ b/swagger_models/tag_filter.go @@ -104,6 +104,11 @@ func (m *TagFilter) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *TagFilter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/tag_status_filter.go b/swagger_models/tag_status_filter.go index 517a47b..cb35229 100644 --- a/swagger_models/tag_status_filter.go +++ b/swagger_models/tag_status_filter.go @@ -134,6 +134,11 @@ func (m *TagStatusFilter) ContextValidate(ctx context.Context, formats strfmt.Re func (m *TagStatusFilter) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -150,6 +155,11 @@ func (m *TagStatusFilter) contextValidateStatus(ctx context.Context, formats str func (m *TagStatusFilter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/tag_status_list_msg.go b/swagger_models/tag_status_list_msg.go index 481df10..7dbb117 100644 --- a/swagger_models/tag_status_list_msg.go +++ b/swagger_models/tag_status_list_msg.go @@ -173,6 +173,11 @@ func (m *TagStatusListMsg) contextValidateList(ctx context.Context, formats strf for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -191,6 +196,11 @@ func (m *TagStatusListMsg) contextValidateList(ctx context.Context, formats strf func (m *TagStatusListMsg) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -207,6 +217,11 @@ func (m *TagStatusListMsg) contextValidateNext(ctx context.Context, formats strf func (m *TagStatusListMsg) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -223,6 +238,11 @@ func (m *TagStatusListMsg) contextValidateSummaryByState(ctx context.Context, fo func (m *TagStatusListMsg) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/tag_status_msg.go b/swagger_models/tag_status_msg.go index 90b307b..8dbae81 100644 --- a/swagger_models/tag_status_msg.go +++ b/swagger_models/tag_status_msg.go @@ -175,6 +175,11 @@ func (m *TagStatusMsg) contextValidateID(ctx context.Context, formats strfmt.Reg func (m *TagStatusMsg) contextValidateStatus(ctx context.Context, formats strfmt.Registry) error { if m.Status != nil { + + if swag.IsZero(m.Status) { // not required + return nil + } + if err := m.Status.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("status") @@ -191,6 +196,11 @@ func (m *TagStatusMsg) contextValidateStatus(ctx context.Context, formats strfmt func (m *TagStatusMsg) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/tags.go b/swagger_models/tags.go index 7c23673..6a4ea24 100644 --- a/swagger_models/tags.go +++ b/swagger_models/tags.go @@ -173,6 +173,11 @@ func (m *Tags) contextValidateList(ctx context.Context, formats strfmt.Registry) for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -191,6 +196,11 @@ func (m *Tags) contextValidateList(ctx context.Context, formats strfmt.Registry) func (m *Tags) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -207,6 +217,11 @@ func (m *Tags) contextValidateNext(ctx context.Context, formats strfmt.Registry) func (m *Tags) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -223,6 +238,11 @@ func (m *Tags) contextValidateSummaryByState(ctx context.Context, formats strfmt func (m *Tags) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/tags_config_status.go b/swagger_models/tags_config_status.go index 03d9fcf..841a2b6 100644 --- a/swagger_models/tags_config_status.go +++ b/swagger_models/tags_config_status.go @@ -176,6 +176,11 @@ func (m *TagsConfigStatus) contextValidateList(ctx context.Context, formats strf for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -194,6 +199,11 @@ func (m *TagsConfigStatus) contextValidateList(ctx context.Context, formats strf func (m *TagsConfigStatus) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -210,6 +220,11 @@ func (m *TagsConfigStatus) contextValidateNext(ctx context.Context, formats strf func (m *TagsConfigStatus) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -226,6 +241,11 @@ func (m *TagsConfigStatus) contextValidateSummaryByState(ctx context.Context, fo func (m *TagsConfigStatus) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/top_talkers_response.go b/swagger_models/top_talkers_response.go index bce0166..ce6f6aa 100644 --- a/swagger_models/top_talkers_response.go +++ b/swagger_models/top_talkers_response.go @@ -113,6 +113,11 @@ func (m *TopTalkersResponse) contextValidateList(ctx context.Context, formats st for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -131,6 +136,11 @@ func (m *TopTalkersResponse) contextValidateList(ctx context.Context, formats st func (m *TopTalkersResponse) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") diff --git a/swagger_models/trans_details.go b/swagger_models/trans_details.go index 49c7862..0331f4b 100644 --- a/swagger_models/trans_details.go +++ b/swagger_models/trans_details.go @@ -106,6 +106,11 @@ func (m *TransDetails) ContextValidate(ctx context.Context, formats strfmt.Regis func (m *TransDetails) contextValidateCause(ctx context.Context, formats strfmt.Registry) error { if m.Cause != nil { + + if swag.IsZero(m.Cause) { // not required + return nil + } + if err := m.Cause.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cause") @@ -122,6 +127,11 @@ func (m *TransDetails) contextValidateCause(ctx context.Context, formats strfmt. func (m *TransDetails) contextValidateScope(ctx context.Context, formats strfmt.Registry) error { if m.Scope != nil { + + if swag.IsZero(m.Scope) { // not required + return nil + } + if err := m.Scope.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("scope") diff --git a/swagger_models/user_data_template.go b/swagger_models/user_data_template.go index 38a5605..68be4ac 100644 --- a/swagger_models/user_data_template.go +++ b/swagger_models/user_data_template.go @@ -73,6 +73,11 @@ func (m *UserDataTemplate) ContextValidate(ctx context.Context, formats strfmt.R func (m *UserDataTemplate) contextValidateCustomConfig(ctx context.Context, formats strfmt.Registry) error { if m.CustomConfig != nil { + + if swag.IsZero(m.CustomConfig) { // not required + return nil + } + if err := m.CustomConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("customConfig") diff --git a/swagger_models/user_report.go b/swagger_models/user_report.go index f7e02bf..c11ddc2 100644 --- a/swagger_models/user_report.go +++ b/swagger_models/user_report.go @@ -99,6 +99,11 @@ func (m *UserReport) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *UserReport) contextValidateUserSummaryReport(ctx context.Context, formats strfmt.Registry) error { if m.UserSummaryReport != nil { + + if swag.IsZero(m.UserSummaryReport) { // not required + return nil + } + if err := m.UserSummaryReport.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userSummaryReport") diff --git a/swagger_models/user_summary_report.go b/swagger_models/user_summary_report.go index d84ce54..a702bb2 100644 --- a/swagger_models/user_summary_report.go +++ b/swagger_models/user_summary_report.go @@ -79,6 +79,11 @@ func (m *UserSummaryReport) ContextValidate(ctx context.Context, formats strfmt. func (m *UserSummaryReport) contextValidateLastLoggedinUserInfo(ctx context.Context, formats strfmt.Registry) error { if m.LastLoggedinUserInfo != nil { + + if swag.IsZero(m.LastLoggedinUserInfo) { // not required + return nil + } + if err := m.LastLoggedinUserInfo.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("lastLoggedinUserInfo") diff --git a/swagger_models/user_usage_per_enterprise_list.go b/swagger_models/user_usage_per_enterprise_list.go index 20b513f..6d03d67 100644 --- a/swagger_models/user_usage_per_enterprise_list.go +++ b/swagger_models/user_usage_per_enterprise_list.go @@ -83,6 +83,11 @@ func (m *UserUsagePerEnterpriseList) contextValidateUserUsagePerEntp(ctx context for i := 0; i < len(m.UserUsagePerEntp); i++ { if m.UserUsagePerEntp[i] != nil { + + if swag.IsZero(m.UserUsagePerEntp[i]) { // not required + return nil + } + if err := m.UserUsagePerEntp[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("userUsagePerEntp" + "." + strconv.Itoa(i)) diff --git a/swagger_models/v_c_e_status.go b/swagger_models/v_c_e_status.go index 9a13bc7..0b54dce 100644 --- a/swagger_models/v_c_e_status.go +++ b/swagger_models/v_c_e_status.go @@ -73,6 +73,11 @@ func (m *VCEStatus) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *VCEStatus) contextValidateVceStatusDetail(ctx context.Context, formats strfmt.Registry) error { if m.VceStatusDetail != nil { + + if swag.IsZero(m.VceStatusDetail) { // not required + return nil + } + if err := m.VceStatusDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("vceStatusDetail") diff --git a/swagger_models/variable_group_condition.go b/swagger_models/variable_group_condition.go index 7c14843..2925afc 100644 --- a/swagger_models/variable_group_condition.go +++ b/swagger_models/variable_group_condition.go @@ -79,6 +79,11 @@ func (m *VariableGroupCondition) ContextValidate(ctx context.Context, formats st func (m *VariableGroupCondition) contextValidateOperator(ctx context.Context, formats strfmt.Registry) error { if m.Operator != nil { + + if swag.IsZero(m.Operator) { // not required + return nil + } + if err := m.Operator.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operator") diff --git a/swagger_models/variable_group_variable.go b/swagger_models/variable_group_variable.go index acb8c9b..bf91968 100644 --- a/swagger_models/variable_group_variable.go +++ b/swagger_models/variable_group_variable.go @@ -217,6 +217,11 @@ func (m *VariableGroupVariable) ContextValidate(ctx context.Context, formats str func (m *VariableGroupVariable) contextValidateEncode(ctx context.Context, formats strfmt.Registry) error { if m.Encode != nil { + + if swag.IsZero(m.Encode) { // not required + return nil + } + if err := m.Encode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("encode") @@ -233,6 +238,7 @@ func (m *VariableGroupVariable) contextValidateEncode(ctx context.Context, forma func (m *VariableGroupVariable) contextValidateFormat(ctx context.Context, formats strfmt.Registry) error { if m.Format != nil { + if err := m.Format.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("format") @@ -251,6 +257,11 @@ func (m *VariableGroupVariable) contextValidateOptions(ctx context.Context, form for i := 0; i < len(m.Options); i++ { if m.Options[i] != nil { + + if swag.IsZero(m.Options[i]) { // not required + return nil + } + if err := m.Options[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("options" + "." + strconv.Itoa(i)) diff --git a/swagger_models/vm.go b/swagger_models/vm.go index dadeab8..143a407 100644 --- a/swagger_models/vm.go +++ b/swagger_models/vm.go @@ -144,6 +144,7 @@ func (m *VM) ContextValidate(ctx context.Context, formats strfmt.Registry) error func (m *VM) contextValidateMode(ctx context.Context, formats strfmt.Registry) error { if m.Mode != nil { + if err := m.Mode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("mode") diff --git a/swagger_models/vm_manifest.go b/swagger_models/vm_manifest.go index 139caf7..6e3d30e 100644 --- a/swagger_models/vm_manifest.go +++ b/swagger_models/vm_manifest.go @@ -437,6 +437,11 @@ func (m *VMManifest) ContextValidate(ctx context.Context, formats strfmt.Registr func (m *VMManifest) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -453,6 +458,11 @@ func (m *VMManifest) contextValidateAppType(ctx context.Context, formats strfmt. func (m *VMManifest) contextValidateConfiguration(ctx context.Context, formats strfmt.Registry) error { if m.Configuration != nil { + + if swag.IsZero(m.Configuration) { // not required + return nil + } + if err := m.Configuration.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("configuration") @@ -469,6 +479,11 @@ func (m *VMManifest) contextValidateConfiguration(ctx context.Context, formats s func (m *VMManifest) contextValidateContainerDetail(ctx context.Context, formats strfmt.Registry) error { if m.ContainerDetail != nil { + + if swag.IsZero(m.ContainerDetail) { // not required + return nil + } + if err := m.ContainerDetail.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("containerDetail") @@ -485,6 +500,11 @@ func (m *VMManifest) contextValidateContainerDetail(ctx context.Context, formats func (m *VMManifest) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -501,6 +521,11 @@ func (m *VMManifest) contextValidateDeploymentType(ctx context.Context, formats func (m *VMManifest) contextValidateDesc(ctx context.Context, formats strfmt.Registry) error { if m.Desc != nil { + + if swag.IsZero(m.Desc) { // not required + return nil + } + if err := m.Desc.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("desc") @@ -519,6 +544,11 @@ func (m *VMManifest) contextValidateImages(ctx context.Context, formats strfmt.R for i := 0; i < len(m.Images); i++ { if m.Images[i] != nil { + + if swag.IsZero(m.Images[i]) { // not required + return nil + } + if err := m.Images[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("images" + "." + strconv.Itoa(i)) @@ -539,6 +569,11 @@ func (m *VMManifest) contextValidateInterfaces(ctx context.Context, formats strf for i := 0; i < len(m.Interfaces); i++ { if m.Interfaces[i] != nil { + + if swag.IsZero(m.Interfaces[i]) { // not required + return nil + } + if err := m.Interfaces[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("interfaces" + "." + strconv.Itoa(i)) @@ -557,6 +592,11 @@ func (m *VMManifest) contextValidateInterfaces(ctx context.Context, formats strf func (m *VMManifest) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { if m.Module != nil { + + if swag.IsZero(m.Module) { // not required + return nil + } + if err := m.Module.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("module") @@ -573,6 +613,11 @@ func (m *VMManifest) contextValidateModule(ctx context.Context, formats strfmt.R func (m *VMManifest) contextValidateOwner(ctx context.Context, formats strfmt.Registry) error { if m.Owner != nil { + + if swag.IsZero(m.Owner) { // not required + return nil + } + if err := m.Owner.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("owner") @@ -591,6 +636,11 @@ func (m *VMManifest) contextValidateResources(ctx context.Context, formats strfm for i := 0; i < len(m.Resources); i++ { if m.Resources[i] != nil { + + if swag.IsZero(m.Resources[i]) { // not required + return nil + } + if err := m.Resources[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resources" + "." + strconv.Itoa(i)) diff --git a/swagger_models/vm_manifest_image.go b/swagger_models/vm_manifest_image.go index 3900952..2620342 100644 --- a/swagger_models/vm_manifest_image.go +++ b/swagger_models/vm_manifest_image.go @@ -148,6 +148,11 @@ func (m *VMManifestImage) ContextValidate(ctx context.Context, formats strfmt.Re func (m *VMManifestImage) contextValidateImageformat(ctx context.Context, formats strfmt.Registry) error { if m.Imageformat != nil { + + if swag.IsZero(m.Imageformat) { // not required + return nil + } + if err := m.Imageformat.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("imageformat") @@ -166,6 +171,11 @@ func (m *VMManifestImage) contextValidateParams(ctx context.Context, formats str for i := 0; i < len(m.Params); i++ { if m.Params[i] != nil { + + if swag.IsZero(m.Params[i]) { // not required + return nil + } + if err := m.Params[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("params" + "." + strconv.Itoa(i)) diff --git a/swagger_models/vm_manifest_summary.go b/swagger_models/vm_manifest_summary.go index c414b9c..dfa33cf 100644 --- a/swagger_models/vm_manifest_summary.go +++ b/swagger_models/vm_manifest_summary.go @@ -208,6 +208,11 @@ func (m *VMManifestSummary) ContextValidate(ctx context.Context, formats strfmt. func (m *VMManifestSummary) contextValidateAppType(ctx context.Context, formats strfmt.Registry) error { if m.AppType != nil { + + if swag.IsZero(m.AppType) { // not required + return nil + } + if err := m.AppType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appType") @@ -224,6 +229,11 @@ func (m *VMManifestSummary) contextValidateAppType(ctx context.Context, formats func (m *VMManifestSummary) contextValidateDeploymentType(ctx context.Context, formats strfmt.Registry) error { if m.DeploymentType != nil { + + if swag.IsZero(m.DeploymentType) { // not required + return nil + } + if err := m.DeploymentType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deploymentType") @@ -240,6 +250,11 @@ func (m *VMManifestSummary) contextValidateDeploymentType(ctx context.Context, f func (m *VMManifestSummary) contextValidateDesc(ctx context.Context, formats strfmt.Registry) error { if m.Desc != nil { + + if swag.IsZero(m.Desc) { // not required + return nil + } + if err := m.Desc.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("desc") @@ -256,6 +271,11 @@ func (m *VMManifestSummary) contextValidateDesc(ctx context.Context, formats str func (m *VMManifestSummary) contextValidateModule(ctx context.Context, formats strfmt.Registry) error { if m.Module != nil { + + if swag.IsZero(m.Module) { // not required + return nil + } + if err := m.Module.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("module") diff --git a/swagger_models/vol_inst_config.go b/swagger_models/vol_inst_config.go index 4a00420..5c0ef8a 100644 --- a/swagger_models/vol_inst_config.go +++ b/swagger_models/vol_inst_config.go @@ -300,6 +300,11 @@ func (m *VolInstConfig) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *VolInstConfig) contextValidateAccessmode(ctx context.Context, formats strfmt.Registry) error { if m.Accessmode != nil { + + if swag.IsZero(m.Accessmode) { // not required + return nil + } + if err := m.Accessmode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessmode") @@ -325,6 +330,11 @@ func (m *VolInstConfig) contextValidateID(ctx context.Context, formats strfmt.Re func (m *VolInstConfig) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if m.Purge != nil { + + if swag.IsZero(m.Purge) { // not required + return nil + } + if err := m.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("purge") @@ -341,6 +351,11 @@ func (m *VolInstConfig) contextValidatePurge(ctx context.Context, formats strfmt func (m *VolInstConfig) contextValidateRevision(ctx context.Context, formats strfmt.Registry) error { if m.Revision != nil { + + if swag.IsZero(m.Revision) { // not required + return nil + } + if err := m.Revision.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("revision") @@ -357,6 +372,11 @@ func (m *VolInstConfig) contextValidateRevision(ctx context.Context, formats str func (m *VolInstConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/vol_inst_filter.go b/swagger_models/vol_inst_filter.go index 5664151..35f7717 100644 --- a/swagger_models/vol_inst_filter.go +++ b/swagger_models/vol_inst_filter.go @@ -94,6 +94,11 @@ func (m *VolInstFilter) ContextValidate(ctx context.Context, formats strfmt.Regi func (m *VolInstFilter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/vol_inst_list.go b/swagger_models/vol_inst_list.go index bdb0ea8..e6d14d4 100644 --- a/swagger_models/vol_inst_list.go +++ b/swagger_models/vol_inst_list.go @@ -180,6 +180,11 @@ func (m *VolInstList) contextValidateCfgList(ctx context.Context, formats strfmt for i := 0; i < len(m.CfgList); i++ { if m.CfgList[i] != nil { + + if swag.IsZero(m.CfgList[i]) { // not required + return nil + } + if err := m.CfgList[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("cfgList" + "." + strconv.Itoa(i)) @@ -200,6 +205,11 @@ func (m *VolInstList) contextValidateList(ctx context.Context, formats strfmt.Re for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -218,6 +228,11 @@ func (m *VolInstList) contextValidateList(ctx context.Context, formats strfmt.Re func (m *VolInstList) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -234,6 +249,11 @@ func (m *VolInstList) contextValidateNext(ctx context.Context, formats strfmt.Re func (m *VolInstList) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/vol_inst_short_config.go b/swagger_models/vol_inst_short_config.go index 7b97cec..913921c 100644 --- a/swagger_models/vol_inst_short_config.go +++ b/swagger_models/vol_inst_short_config.go @@ -85,6 +85,11 @@ func (m *VolInstShortConfig) ContextValidate(ctx context.Context, formats strfmt func (m *VolInstShortConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/vol_inst_status_filter.go b/swagger_models/vol_inst_status_filter.go index 575d43d..d4d5469 100644 --- a/swagger_models/vol_inst_status_filter.go +++ b/swagger_models/vol_inst_status_filter.go @@ -124,6 +124,11 @@ func (m *VolInstStatusFilter) ContextValidate(ctx context.Context, formats strfm func (m *VolInstStatusFilter) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -140,6 +145,11 @@ func (m *VolInstStatusFilter) contextValidateRunState(ctx context.Context, forma func (m *VolInstStatusFilter) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/vol_inst_status_list_msg.go b/swagger_models/vol_inst_status_list_msg.go index c89dab6..264943c 100644 --- a/swagger_models/vol_inst_status_list_msg.go +++ b/swagger_models/vol_inst_status_list_msg.go @@ -176,6 +176,11 @@ func (m *VolInstStatusListMsg) contextValidateList(ctx context.Context, formats for i := 0; i < len(m.List); i++ { if m.List[i] != nil { + + if swag.IsZero(m.List[i]) { // not required + return nil + } + if err := m.List[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("list" + "." + strconv.Itoa(i)) @@ -194,6 +199,11 @@ func (m *VolInstStatusListMsg) contextValidateList(ctx context.Context, formats func (m *VolInstStatusListMsg) contextValidateNext(ctx context.Context, formats strfmt.Registry) error { if m.Next != nil { + + if swag.IsZero(m.Next) { // not required + return nil + } + if err := m.Next.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("next") @@ -210,6 +220,11 @@ func (m *VolInstStatusListMsg) contextValidateNext(ctx context.Context, formats func (m *VolInstStatusListMsg) contextValidateSummaryByState(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByState != nil { + + if swag.IsZero(m.SummaryByState) { // not required + return nil + } + if err := m.SummaryByState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByState") @@ -226,6 +241,11 @@ func (m *VolInstStatusListMsg) contextValidateSummaryByState(ctx context.Context func (m *VolInstStatusListMsg) contextValidateSummaryByType(ctx context.Context, formats strfmt.Registry) error { if m.SummaryByType != nil { + + if swag.IsZero(m.SummaryByType) { // not required + return nil + } + if err := m.SummaryByType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("summaryByType") diff --git a/swagger_models/vol_inst_status_msg.go b/swagger_models/vol_inst_status_msg.go index 5ebb17d..4d54498 100644 --- a/swagger_models/vol_inst_status_msg.go +++ b/swagger_models/vol_inst_status_msg.go @@ -291,6 +291,11 @@ func (m *VolInstStatusMsg) contextValidateBlobs(ctx context.Context, formats str for i := 0; i < len(m.Blobs); i++ { if m.Blobs[i] != nil { + + if swag.IsZero(m.Blobs[i]) { // not required + return nil + } + if err := m.Blobs[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("blobs" + "." + strconv.Itoa(i)) @@ -309,6 +314,11 @@ func (m *VolInstStatusMsg) contextValidateBlobs(ctx context.Context, formats str func (m *VolInstStatusMsg) contextValidateDeviceState(ctx context.Context, formats strfmt.Registry) error { if m.DeviceState != nil { + + if swag.IsZero(m.DeviceState) { // not required + return nil + } + if err := m.DeviceState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceState") @@ -327,6 +337,11 @@ func (m *VolInstStatusMsg) contextValidateErrInfo(ctx context.Context, formats s for i := 0; i < len(m.ErrInfo); i++ { if m.ErrInfo[i] != nil { + + if swag.IsZero(m.ErrInfo[i]) { // not required + return nil + } + if err := m.ErrInfo[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("errInfo" + "." + strconv.Itoa(i)) @@ -345,6 +360,11 @@ func (m *VolInstStatusMsg) contextValidateErrInfo(ctx context.Context, formats s func (m *VolInstStatusMsg) contextValidateResource(ctx context.Context, formats strfmt.Registry) error { if m.Resource != nil { + + if swag.IsZero(m.Resource) { // not required + return nil + } + if err := m.Resource.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("resource") @@ -361,6 +381,11 @@ func (m *VolInstStatusMsg) contextValidateResource(ctx context.Context, formats func (m *VolInstStatusMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -377,6 +402,11 @@ func (m *VolInstStatusMsg) contextValidateRunState(ctx context.Context, formats func (m *VolInstStatusMsg) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") @@ -393,6 +423,11 @@ func (m *VolInstStatusMsg) contextValidateType(ctx context.Context, formats strf func (m *VolInstStatusMsg) contextValidateUsage(ctx context.Context, formats strfmt.Registry) error { if m.Usage != nil { + + if swag.IsZero(m.Usage) { // not required + return nil + } + if err := m.Usage.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("usage") diff --git a/swagger_models/vol_inst_status_summary_msg.go b/swagger_models/vol_inst_status_summary_msg.go index 56edc77..6c68c43 100644 --- a/swagger_models/vol_inst_status_summary_msg.go +++ b/swagger_models/vol_inst_status_summary_msg.go @@ -175,6 +175,11 @@ func (m *VolInstStatusSummaryMsg) ContextValidate(ctx context.Context, formats s func (m *VolInstStatusSummaryMsg) contextValidateDeviceState(ctx context.Context, formats strfmt.Registry) error { if m.DeviceState != nil { + + if swag.IsZero(m.DeviceState) { // not required + return nil + } + if err := m.DeviceState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("deviceState") @@ -191,6 +196,11 @@ func (m *VolInstStatusSummaryMsg) contextValidateDeviceState(ctx context.Context func (m *VolInstStatusSummaryMsg) contextValidateRunState(ctx context.Context, formats strfmt.Registry) error { if m.RunState != nil { + + if swag.IsZero(m.RunState) { // not required + return nil + } + if err := m.RunState.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("runState") @@ -207,6 +217,11 @@ func (m *VolInstStatusSummaryMsg) contextValidateRunState(ctx context.Context, f func (m *VolInstStatusSummaryMsg) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/volume_inst_config.go b/swagger_models/volume_inst_config.go index 744e3c0..71eb132 100644 --- a/swagger_models/volume_inst_config.go +++ b/swagger_models/volume_inst_config.go @@ -157,6 +157,11 @@ func (m *VolumeInstConfig) ContextValidate(ctx context.Context, formats strfmt.R func (m *VolumeInstConfig) contextValidateAccessmode(ctx context.Context, formats strfmt.Registry) error { if m.Accessmode != nil { + + if swag.IsZero(m.Accessmode) { // not required + return nil + } + if err := m.Accessmode.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("accessmode") @@ -173,6 +178,11 @@ func (m *VolumeInstConfig) contextValidateAccessmode(ctx context.Context, format func (m *VolumeInstConfig) contextValidatePurge(ctx context.Context, formats strfmt.Registry) error { if m.Purge != nil { + + if swag.IsZero(m.Purge) { // not required + return nil + } + if err := m.Purge.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("purge") @@ -189,6 +199,11 @@ func (m *VolumeInstConfig) contextValidatePurge(ctx context.Context, formats str func (m *VolumeInstConfig) contextValidateType(ctx context.Context, formats strfmt.Registry) error { if m.Type != nil { + + if swag.IsZero(m.Type) { // not required + return nil + } + if err := m.Type.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("type") diff --git a/swagger_models/volume_inst_policy.go b/swagger_models/volume_inst_policy.go index 996b293..ec6cf1f 100644 --- a/swagger_models/volume_inst_policy.go +++ b/swagger_models/volume_inst_policy.go @@ -103,6 +103,11 @@ func (m *VolumeInstPolicy) ContextValidate(ctx context.Context, formats strfmt.R func (m *VolumeInstPolicy) contextValidateMetaData(ctx context.Context, formats strfmt.Registry) error { if m.MetaData != nil { + + if swag.IsZero(m.MetaData) { // not required + return nil + } + if err := m.MetaData.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("metaData") @@ -119,6 +124,11 @@ func (m *VolumeInstPolicy) contextValidateMetaData(ctx context.Context, formats func (m *VolumeInstPolicy) contextValidateVolInstConfig(ctx context.Context, formats strfmt.Registry) error { if m.VolInstConfig != nil { + + if swag.IsZero(m.VolInstConfig) { // not required + return nil + } + if err := m.VolInstConfig.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("volInstConfig") diff --git a/swagger_models/z_manufacturer_info.go b/swagger_models/z_manufacturer_info.go index b3ebb8b..011f53d 100644 --- a/swagger_models/z_manufacturer_info.go +++ b/swagger_models/z_manufacturer_info.go @@ -106,6 +106,11 @@ func (m *ZManufacturerInfo) ContextValidate(ctx context.Context, formats strfmt. func (m *ZManufacturerInfo) contextValidateHSMStatus(ctx context.Context, formats strfmt.Registry) error { if m.HSMStatus != nil { + + if swag.IsZero(m.HSMStatus) { // not required + return nil + } + if err := m.HSMStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("hSMStatus") diff --git a/swagger_models/zsrv_error.go b/swagger_models/zsrv_error.go index 870eaba..12a79d2 100644 --- a/swagger_models/zsrv_error.go +++ b/swagger_models/zsrv_error.go @@ -80,6 +80,11 @@ func (m *ZsrvError) ContextValidate(ctx context.Context, formats strfmt.Registry func (m *ZsrvError) contextValidateEc(ctx context.Context, formats strfmt.Registry) error { if m.Ec != nil { + + if swag.IsZero(m.Ec) { // not required + return nil + } + if err := m.Ec.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("ec") diff --git a/swagger_models/zsrv_response.go b/swagger_models/zsrv_response.go index d8b6f6e..64dd66c 100644 --- a/swagger_models/zsrv_response.go +++ b/swagger_models/zsrv_response.go @@ -209,6 +209,11 @@ func (m *ZsrvResponse) contextValidateError(ctx context.Context, formats strfmt. for i := 0; i < len(m.Error); i++ { if m.Error[i] != nil { + + if swag.IsZero(m.Error[i]) { // not required + return nil + } + if err := m.Error[i].ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("error" + "." + strconv.Itoa(i)) @@ -227,6 +232,11 @@ func (m *ZsrvResponse) contextValidateError(ctx context.Context, formats strfmt. func (m *ZsrvResponse) contextValidateObjectType(ctx context.Context, formats strfmt.Registry) error { if m.ObjectType != nil { + + if swag.IsZero(m.ObjectType) { // not required + return nil + } + if err := m.ObjectType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("objectType") @@ -243,6 +253,11 @@ func (m *ZsrvResponse) contextValidateObjectType(ctx context.Context, formats st func (m *ZsrvResponse) contextValidateOperationStatus(ctx context.Context, formats strfmt.Registry) error { if m.OperationStatus != nil { + + if swag.IsZero(m.OperationStatus) { // not required + return nil + } + if err := m.OperationStatus.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationStatus") @@ -259,6 +274,11 @@ func (m *ZsrvResponse) contextValidateOperationStatus(ctx context.Context, forma func (m *ZsrvResponse) contextValidateOperationType(ctx context.Context, formats strfmt.Registry) error { if m.OperationType != nil { + + if swag.IsZero(m.OperationType) { // not required + return nil + } + if err := m.OperationType.ContextValidate(ctx, formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("operationType")